/* Countdown Page Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Background content (blurred) */
.background-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    filter: blur(4px);
    opacity: 0.6;
    z-index: -2;
    transform: scale(1.05);
    transition: filter 1s ease-out, opacity 1s ease-out, transform 1s ease-out;
}

/* Background content when overlay is dismissed */
.background-content.revealed {
    filter: blur(0px);
    opacity: 1;
    z-index: 1;
    transform: scale(1);
}

.background-content .hero,
.background-content .about,
.background-content .services,
.background-content .portfolio-previews,
.background-content .testimonials,
.background-content .contact-cta,
.background-content nav.navbar,
.background-content footer {
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.5s ease-out;
}

/* Background content elements when overlay is dismissed */
.background-content.revealed .hero,
.background-content.revealed .about,
.background-content.revealed .services,
.background-content.revealed .portfolio-previews,
.background-content.revealed .testimonials,
.background-content.revealed .contact-cta {
    opacity: 1;
    pointer-events: auto;
}

/* Header and footer styling when revealed */
.background-content.revealed nav.navbar {
    opacity: 1;
    pointer-events: auto;
    position: relative;
    z-index: 1000;
    background: rgba(13, 110, 253, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.background-content.revealed footer {
    opacity: 1;
    pointer-events: auto;
    position: relative;
    z-index: 1000;
    background: rgba(13, 110, 253, 0.95) !important;
    backdrop-filter: blur(10px);
}

/* Enhanced styling for revealed background content */
.background-content.revealed {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.background-content.revealed .hero,
.background-content.revealed .about,
.background-content.revealed .services,
.background-content.revealed .portfolio-previews,
.background-content.revealed .testimonials,
.background-content.revealed .contact-cta {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    margin: 1rem 0;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive design for revealed content */
@media (max-width: 768px) {
    .background-content.revealed {
        padding: 1rem;
    }
    
    .background-content.revealed .hero,
    .background-content.revealed .about,
    .background-content.revealed .services,
    .background-content.revealed .portfolio-previews,
    .background-content.revealed .testimonials,
    .background-content.revealed .contact-cta {
        padding: 1.5rem;
        margin: 0.5rem 0;
    }
    
    .background-content.revealed nav.navbar {
        padding: 0.5rem 1rem;
    }
    
    .background-content.revealed footer {
        padding: 1rem;
    }
    
    .countdown-container::before {
        top: 10px;
        right: 10px;
        font-size: 10px;
        padding: 6px 8px;
    }
}

.countdown-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10;
    cursor: pointer;
}

.countdown-container:hover::before {
    opacity: 1;
}

/* Dismiss button styles */
.dismiss-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dismiss-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.dismiss-btn:active {
    transform: scale(0.95);
}

.countdown-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/background-visual.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.05;
    z-index: -1;
}

.countdown-content {
    background: rgba(255, 255, 255, 0.98);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    max-width: 800px;
    width: 100%;
    margin: 2rem;
    position: relative;
    z-index: 2;
}

.countdown-title {
    font-size: 3.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.countdown-subtitle {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 3rem;
    font-weight: 300;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.countdown-item {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 2rem 1.5rem;
    border-radius: 15px;
    min-width: 120px;
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
    transition: transform 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-5px);
}

.countdown-number {
    font-size: 3rem;
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
}

.countdown-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.waitlist-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid rgba(0, 123, 255, 0.2);
}

.waitlist-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
}

.waitlist-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.waitlist-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.waitlist-input {
    padding: 1.2rem 1.5rem;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    min-width: 250px;
    transition: all 0.3s ease;
    background: #ffffff !important;
    color: #333333 !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-height: 44px; /* Touch target minimum */
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.waitlist-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.15);
    transform: translateY(-2px);
    background: #ffffff !important;
    color: #333333 !important;
}

.waitlist-input::placeholder {
    color: #6c757d;
    opacity: 1;
}

.waitlist-btn {
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 15px rgba(40, 167, 69, 0.3);
    position: relative;
    overflow: hidden;
    min-height: 44px; /* Touch target minimum */
    min-width: 44px; /* Touch target minimum */
}

.waitlist-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.waitlist-btn:hover {
    background: linear-gradient(135deg, #218838, #1ea085);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(40, 167, 69, 0.4);
}

.waitlist-btn:hover::before {
    left: 100%;
}

.waitlist-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.waitlist-btn:disabled::before {
    display: none;
}

.visitor-counter {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.visitor-counter-text {
    font-size: 1rem;
    color: #007bff;
    margin: 0;
    font-weight: 500;
}

.alert {
    margin-top: 1rem;
    border-radius: 12px;
    border: none;
    padding: 1.2rem 1.5rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    animation: slideInDown 0.3s ease-out;
}

.alert-success {
    background: rgba(40, 167, 69, 0.15);
    color: #155724;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.15);
    color: #721c24;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.invalid-feedback {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #dc3545;
    font-weight: 500;
}

.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15) !important;
}

/* Hide CSRF token field */
input[name="csrf_token"] {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Floating particles animation */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
    width: 80px;
    height: 80px;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 60px;
    height: 60px;
    left: 20%;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    width: 100px;
    height: 100px;
    left: 70%;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    width: 40px;
    height: 40px;
    left: 80%;
    animation-delay: 1s;
}

.particle:nth-child(5) {
    width: 70px;
    height: 70px;
    left: 50%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-100px) rotate(180deg);
        opacity: 0.7;
    }
}

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
    .countdown-content {
        max-width: 700px;
        padding: 2.5rem;
        margin: 1.5rem;
    }
    
    .countdown-title {
        font-size: 3rem;
    }
    
    .countdown-subtitle {
        font-size: 1.3rem;
    }
    
    .countdown-timer {
        gap: 1.5rem;
    }
    
    .countdown-item {
        padding: 1.75rem 1.25rem;
        min-width: 110px;
    }
    
    .countdown-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .countdown-content {
        max-width: 600px;
        padding: 2rem;
        margin: 1rem;
    }
    
    .countdown-title {
        font-size: 2.5rem;
    }
    
    .countdown-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2.5rem;
    }
    
    .countdown-timer {
        gap: 1.25rem;
    }
    
    .countdown-item {
        padding: 1.5rem 1rem;
        min-width: 100px;
    }
    
    .countdown-number {
        font-size: 2.25rem;
    }
    
    .waitlist-title {
        font-size: 1.75rem;
    }
    
    .waitlist-description {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .background-content {
        filter: blur(6px);
        opacity: 0.25;
    }
    
    .countdown-container {
        padding: 1rem;
    }
    
    .countdown-content {
        padding: 2rem;
        margin: 1rem;
        border-radius: 15px;
    }
    
    .countdown-title {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }
    
    .countdown-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
    
    .countdown-timer {
        gap: 1rem;
        margin-bottom: 2.5rem;
    }
    
    .countdown-item {
        padding: 1.5rem 1rem;
        min-width: 100px;
        border-radius: 12px;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .countdown-label {
        font-size: 0.8rem;
    }
    
    .waitlist-section {
        margin-top: 2rem;
        padding-top: 2rem;
    }
    
    .waitlist-title {
        font-size: 1.5rem;
    }
    
    .waitlist-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .waitlist-form {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .waitlist-input {
        min-width: 200px;
        width: 100%;
        max-width: 300px;
        padding: 1rem 1.25rem;
        font-size: 16px; /* Prevent zoom on iOS */
        background: #ffffff;
        color: #333333;
    }
    
    .waitlist-btn {
        width: 100%;
        max-width: 300px;
        padding: 1rem 2rem;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .visitor-counter {
        margin-top: 1.5rem;
        padding: 0.75rem;
    }
    
    .visitor-counter-text {
        font-size: 0.9rem;
    }
    
    .alert {
        padding: 1rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .countdown-container {
        padding: 0.5rem;
    }
    
    .countdown-content {
        padding: 1.5rem;
        margin: 0.5rem;
        border-radius: 12px;
    }
    
    .countdown-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .countdown-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .countdown-timer {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
    
    .countdown-item {
        padding: 1rem 0.5rem;
        min-width: 80px;
        border-radius: 10px;
    }
    
    .countdown-number {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    .countdown-label {
        font-size: 0.7rem;
    }
    
    .waitlist-section {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
    
    .waitlist-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .waitlist-description {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
    
    .waitlist-form {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .waitlist-input {
        min-width: 180px;
        max-width: 280px;
        padding: 0.875rem 1rem;
        font-size: 16px;
        background: #ffffff;
        color: #333333;
    }
    
    .waitlist-btn {
        max-width: 280px;
        padding: 0.875rem 1.5rem;
        font-size: 16px;
    }
    
    .visitor-counter {
        margin-top: 1rem;
        padding: 0.5rem;
    }
    
    .visitor-counter-text {
        font-size: 0.8rem;
    }
    
    .alert {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        margin-top: 0.75rem;
    }
}

@media (max-width: 480px) {
    .countdown-content {
        padding: 1.25rem;
        margin: 0.25rem;
        border-radius: 10px;
    }
    
    .countdown-title {
        font-size: 1.75rem;
    }
    
    .countdown-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
    
    .countdown-timer {
        gap: 0.25rem;
        margin-bottom: 1.5rem;
    }
    
    .countdown-item {
        padding: 0.75rem 0.25rem;
        min-width: 70px;
        border-radius: 8px;
    }
    
    .countdown-number {
        font-size: 1.25rem;
    }
    
    .countdown-label {
        font-size: 0.6rem;
    }
    
    .waitlist-section {
        margin-top: 1rem;
        padding-top: 1rem;
    }
    
    .waitlist-title {
        font-size: 1.1rem;
    }
    
    .waitlist-description {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .waitlist-form {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .waitlist-input {
        min-width: 160px;
        max-width: 260px;
        padding: 0.75rem 0.875rem;
        background: #ffffff;
        color: #333333;
    }
    
    .waitlist-btn {
        max-width: 260px;
        padding: 0.75rem 1.25rem;
    }
    
    .visitor-counter {
        margin-top: 0.75rem;
        padding: 0.5rem;
    }
    
    .visitor-counter-text {
        font-size: 0.75rem;
    }
    
    .alert {
        padding: 0.625rem 0.875rem;
        font-size: 0.8rem;
        margin-top: 0.5rem;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .countdown-container {
        padding: 0.5rem;
    }
    
    .countdown-content {
        padding: 1rem;
        margin: 0.5rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .countdown-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .countdown-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .countdown-timer {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .countdown-item {
        padding: 0.75rem 0.5rem;
        min-width: 60px;
    }
    
    .countdown-number {
        font-size: 1.25rem;
    }
    
    .countdown-label {
        font-size: 0.6rem;
    }
    
    .waitlist-section {
        margin-top: 1rem;
        padding-top: 1rem;
    }
    
    .waitlist-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .waitlist-description {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }
    
    .waitlist-form {
        flex-direction: row;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .waitlist-input {
        min-width: 120px;
        max-width: 200px;
        padding: 0.5rem 0.75rem;
        background: #ffffff;
        color: #333333;
    }
    
    .waitlist-btn {
        max-width: 120px;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .visitor-counter {
        margin-top: 0.5rem;
        padding: 0.25rem;
    }
    
    .visitor-counter-text {
        font-size: 0.7rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .countdown-overlay {
        background-image: url('../images/background-visual@2x.png');
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .countdown-item,
    .waitlist-btn,
    .waitlist-input,
    .particle {
        transition: none;
        animation: none;
    }
    
    .countdown-item:hover {
        transform: none;
    }
    
    .waitlist-btn:hover {
        transform: none;
    }
    
    .waitlist-input:focus {
        transform: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .countdown-content {
        background: rgba(30, 30, 30, 0.98);
        color: #ffffff;
    }
    
    .countdown-title {
        color: #ffffff;
    }
    
    .countdown-subtitle {
        color: #cccccc;
    }
    
    .waitlist-title {
        color: #ffffff;
    }
    
    .waitlist-description {
        color: #cccccc;
    }
    
    .waitlist-input {
        background: #2d2d2d;
        border-color: #555555;
        color: #ffffff;
    }
    
    .waitlist-input::placeholder {
        color: #aaaaaa;
    }
    
    .visitor-counter {
        background: rgba(0, 123, 255, 0.2);
        border-color: rgba(0, 123, 255, 0.4);
    }
} 