/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    height: 100%;
}



body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /*background-image: url('./public/gradient-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll; /* Changed from fixed for iOS */
    color: #fff;
    overflow-x: hidden;
    height: 100%;
    position: relative;
    -webkit-overflow-scrolling: touch;
    animation: pulse 3s ease-in-out infinite;
}

/* Main container with video background */
.main-container {
    min-height: 100vh;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: rgba(232, 232, 232, 0.73);
    padding: 0.5rem 0;
}


/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .video-background {
        /* Better quality for retina displays */
        image-rendering: -webkit-optimize-contrast;
        image-rendering: optimize-contrast;
    }
}


/* Hero section styling */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    max-width: 800px;
    width: 100%;
}

/* Brand logo/title */
.brand-logo {
    margin-bottom: 2rem;
}

.brand-logo-img {
    max-width: 100%;
    height: auto;
    width: 400px;
}



/* Countdown timer styling */
.countdown-container {
    margin-bottom: 2rem;
}

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

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(23, 23, 23, 0.091);
    border: 2px solid #3a3a3abe;
    border-radius: 10px;
    padding: 1rem;
    min-width: 80px;
    box-shadow: 0 0 15px rgba(130, 130, 130, 0.56);
}

.time-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #000000;
    margin-bottom: 0.5rem;
}

.time-label {
    font-size: 0.8rem;
    color: #000000;
    font-weight: bold;
    letter-spacing: 0.1em;
}

/* Progress bar section */
.progress-section {
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 400px;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(0, 0, 0, 0.139);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #92e692, #00ff66);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px #3366cc;
}

.progress-percentage {
    color: #000000;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    text-shadow: 0 0 5px #aeaeae;
    min-width: 30px;
}

.progress-text {
    color: #000000;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    display: block;
    text-align: center;
}

/* ===== EMAIL SIGNUP SECTION - APPLE INSPIRED DESIGN ===== */

/* Base mobile styles (391px and up) */
.email-section {
    width: 100%;
    max-width: 100%;
    margin-bottom: 0.5rem;
    padding: 0 1rem;
    box-sizing: border-box;
    position: relative;
}

.email-prompt {
    color: rgba(0, 0, 0, 0.9);
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 400;
    text-align: center;
    line-height: 1.5;
    letter-spacing: -0.01em;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.email-form {
    display: flex;
    flex-direction: row;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    width: 100%;
    position: relative;
    align-items: stretch;
    justify-content: center;
}

/* Apple-inspired input styling */
#emailInput,
#mce-EMAIL {
    flex: 1;
    min-width: 0;
    padding: 1rem 1.2rem;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(0, 0, 0, 0.276);
    border-radius: 12px;
    color: #020202;
    font-size: 16px; /* Prevents iOS zoom */
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: background 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    text-align: center;
    direction: ltr;
    z-index: 1;
    /* iOS specific fixes */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    /* Fix iOS zoom on focus */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

#emailInput:focus,
#mce-EMAIL:focus {
    outline: none;
    border-color: rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.164);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.06),
                0 8px 32px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
    text-align: left !important;
    transition: border-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                background 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#emailInput::placeholder,
#mce-EMAIL::placeholder {
    color: rgba(0, 0, 0, 0.5);
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.3s ease;
}

#emailInput:focus::placeholder,
#mce-EMAIL:focus::placeholder {
    color: rgba(0, 0, 0, 0.4);
    opacity: 0.8;
}

/* Dynamic text alignment classes */
#emailInput.has-content,
#mce-EMAIL.has-content {
    text-align: left !important;
}

#emailInput.empty-focused,
#mce-EMAIL.empty-focused {
    text-align: left !important;
}

#emailInput.empty-focused::placeholder,
#mce-EMAIL.empty-focused::placeholder {
    text-align: left;
}

/* Force left alignment on any focus/active state */
#emailInput:focus,
#emailInput:active,
#emailInput.focused,
#mce-EMAIL:focus,
#mce-EMAIL:active,
#mce-EMAIL.focused {
    text-align: left !important;
    caret-color: #000000;
}

/* Apple-inspired submit button */
.submit-btn,
#mc-embedded-subscribe {
    width: auto;
    min-width: 120px;
    padding: 1rem 1.4rem;
    background-color: #92e692;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    color: #000000;
    font-weight: 500;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    letter-spacing: -0.01em;
    -webkit-appearance: none;
    appearance: none;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    z-index: 1;
    flex-shrink: 0;
    white-space: nowrap;
    box-sizing: border-box;
    /* iOS specific fixes */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    /* Fix iOS rendering */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    /* Prevent iOS button styling */
    -webkit-border-radius: 12px;
}

.submit-btn::before,
#mc-embedded-subscribe::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

.submit-btn:hover::before,
#mc-embedded-subscribe:hover::before {
    left: 100%;
}

.submit-btn:hover,
#mc-embedded-subscribe:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.submit-btn:active,
#mc-embedded-subscribe:active {
    transform: translateY(0px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Apple-style floating label animation */
.email-form {
    position: relative;
}

.email-form::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: width 0.6s ease;
}

.email-form:focus-within::after {
    width: 100%;
}

/* Success and error messages - Apple style */
.success-message, 
.error-message {
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    letter-spacing: -0.01em;
}

.success-message {
    color: rgba(52, 199, 89, 1);
    background: rgba(52, 199, 89, 0.1);
    border: 1px solid rgba(52, 199, 89, 0.2);
    box-shadow: 0 8px 32px rgba(52, 199, 89, 0.1);
}

.error-message {
    color: rgba(255, 69, 58, 1);
    background: rgba(255, 69, 58, 0.1);
    border: 1px solid rgba(255, 69, 58, 0.2);
    box-shadow: 0 8px 32px rgba(255, 69, 58, 0.1);
}

.success-message.show, 
.error-message.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Apple-style ripple effect */
.submit-btn,
#mc-embedded-subscribe {
    position: relative;
    overflow: hidden;
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.6;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    pointer-events: none;
    animation: ripple 0.6s ease-out;
}

/* ===== RESPONSIVE EMAIL SIGNUP - APPLE STYLE ===== */

/* Large Mobile (Landscape) - 481px to 767px */
@media (min-width: 481px) {
    .email-section {
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
        padding: 0;
    }
    
    .email-prompt {
        font-size: 1.1rem;
        margin-bottom: 2.2rem;
    }
    
    .email-form {
        gap: 1rem;
    }
    
    #emailInput,
    #mce-EMAIL {
        padding: 1rem 1.3rem;
        font-size: 1rem;
    }
    
    .submit-btn,
    #mc-embedded-subscribe {
        min-width: 140px;
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .success-message, 
    .error-message {
        font-size: 0.95rem;
        margin-top: 1.2rem;
    }
}

/* Tablets (Portrait) - 768px to 1023px */
@media (min-width: 768px) {
    .email-section {
        max-width: 480px;
        margin-bottom: 3.5rem;
    }
    
    .email-prompt {
        font-size: 1.2rem;
        margin-bottom: 2.5rem;
        font-weight: 300;
    }
    
    .email-form {
        gap: 1.2rem;
        flex-direction: row;
    }
    
    #emailInput,
    #mce-EMAIL {
        padding: 1.2rem 1.4rem;
        font-size: 1.1rem;
        border-radius: 14px;
    }
    
    .submit-btn,
    #mc-embedded-subscribe {
        min-width: 160px;
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
        border-radius: 14px;
    }
    
    .success-message, 
    .error-message {
        font-size: 1rem;
        margin-top: 1.5rem;
        padding: 1.2rem 1.8rem;
        border-radius: 14px;
    }
}

/* Standard Desktops - 1024px to 1199px */
@media (min-width: 1024px) {
    .email-section {
        max-width: 520px;
        margin-bottom: 4rem;
    }
    
    .email-prompt {
        font-size: 1.3rem;
        margin-bottom: 2.8rem;
        font-weight: 300;
    }
    
    .email-form {
        gap: 1.5rem;
        flex-direction: row;
    }
    
    #emailInput,
    #mce-EMAIL {
        padding: 1.3rem 1.6rem;
        font-size: 1.1rem;
        border-radius: 16px;
    }
    
    #emailInput:focus,
    #mce-EMAIL:focus {
        box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08),
                    0 12px 40px rgba(0, 0, 0, 0.4);
        transform: translateY(-3px);
    }
    
    .submit-btn,
    #mc-embedded-subscribe {
        min-width: 180px;
        padding: 1.3rem 2.5rem;
        font-size: 1.1rem;
        border-radius: 16px;
    }
    
    .submit-btn:hover,
    #mc-embedded-subscribe:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5),
                    0 0 0 1px rgba(255, 255, 255, 0.15);
    }
    
    .success-message, 
    .error-message {
        font-size: 1.05rem;
        margin-top: 2rem;
        padding: 1.3rem 2rem;
        border-radius: 16px;
    }
}

/* Large Desktops - 1200px to 1439px */
@media (min-width: 1200px) {
    .email-section {
        max-width: 400px;
        margin: 0 auto 4.5rem auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .email-prompt {
        font-size: 1.4rem;
        margin-bottom: 3rem;
        font-weight: 300;
        text-align: center;
    }
    
    .email-form {
        gap: 1.8rem;
        max-width: 380px;
        margin: 0 auto;
    }
    
    #emailInput,
    #mce-EMAIL {
        padding: 1.4rem 1.8rem;
        font-size: 1.2rem;
        border-radius: 18px;
        width: 100%;
        max-width: 380px;
    }
    
    .submit-btn,
    #mc-embedded-subscribe {
        width: 100%;
        max-width: 380px;
        padding: 1.4rem 3rem;
        font-size: 1.2rem;
        border-radius: 18px;
    }
}

/* Extra Large Desktops - 1440px and up */
@media (min-width: 1440px) {
    .email-section {
        max-width: 420px;
        margin: 0 auto 5rem auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .email-prompt {
        font-size: 1.5rem;
        margin-bottom: 3.5rem;
        font-weight: 300;
        line-height: 1.4;
        text-align: center;
    }
    
    .email-form {
        gap: 2rem;
        max-width: 400px;
        margin: 0 auto;
    }
    
    #emailInput,
    #mce-EMAIL {
        padding: 1.6rem 2rem;
        font-size: 1.3rem;
        border-radius: 20px;
        width: 100%;
        max-width: 400px;
    }
    
    .submit-btn,
    #mc-embedded-subscribe {
        width: 100%;
        max-width: 400px;
        padding: 1.6rem 3.5rem;
        font-size: 1.3rem;
        border-radius: 20px;
    }
    
    .success-message, 
    .error-message {
        font-size: 1.1rem;
        margin-top: 2.5rem;
        padding: 1.5rem 2.5rem;
        border-radius: 20px;
    }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    #emailInput,
    #mce-EMAIL {
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
    }
    
    .submit-btn,
    #mc-embedded-subscribe {
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
    }
    
    .submit-btn:hover,
    #mc-embedded-subscribe:hover {
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6),
                    0 0 0 1px rgba(255, 255, 255, 0.2);
    }
}

/* Landscape orientation optimizations */
@media (orientation: landscape) and (max-height: 600px) {
    .email-section {
        margin-bottom: 2rem;
    }
    
    .email-prompt {
        margin-bottom: 1.5rem;
        font-size: 1rem;
    }
    
    .email-form {
        gap: 1rem;
    }
    
    #emailInput,
    #mce-EMAIL {
        padding: 0.9rem 1.1rem;
    }
    
    .submit-btn,
    #mc-embedded-subscribe {
        padding: 0.9rem 1.5rem;
    }
}

/* iPhone 13 and smaller devices - 390px and below */
@media (max-width: 390px) {
    .email-section {
        padding: 0 0.8rem;
        margin-bottom: 2rem;
    }
    
    .email-prompt {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .email-form {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    #emailInput,
    #mce-EMAIL {
        width: 100%;
        padding: 0.9rem 1rem;
        font-size: 16px; /* Prevents iOS zoom */
        border-radius: 10px;
    }
    
    .submit-btn,
    #mc-embedded-subscribe {
        width: 100%;
        min-width: auto;
        padding: 0.9rem 1.5rem;
        font-size: 16px; /* Prevents iOS zoom */
        border-radius: 10px;
    }
    
    .success-message, 
    .error-message {
        font-size: 0.85rem;
        margin-top: 1rem;
        padding: 0.8rem 1rem;
        border-radius: 10px;
    }
}

/* iPhone SE and very small devices - 320px and below */
@media (max-width: 320px) {
    .email-section {
        padding: 0 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .email-prompt {
        font-size: 0.85rem;
        margin-bottom: 1.2rem;
    }
    
    .email-form {
        flex-direction: column;
        gap: 0.6rem;
    }
    
    #emailInput,
    #mce-EMAIL {
        padding: 0.8rem 0.9rem;
        font-size: 16px; /* Prevents iOS zoom */
        border-radius: 8px;
    }
    
    .submit-btn,
    #mc-embedded-subscribe {
        padding: 0.8rem 1.2rem;
        font-size: 16px; /* Prevents iOS zoom */
        border-radius: 8px;
    }
    
    .success-message, 
    .error-message {
        font-size: 0.8rem;
        padding: 0.7rem 0.9rem;
        border-radius: 8px;
    }
}

/* Very small height devices */
@media (max-height: 500px) {
    .email-section {
        margin-bottom: 1.5rem;
    }
    
    .email-prompt {
        margin-bottom: 1rem;
        font-size: 0.9rem;
    }
    
    .email-form {
        gap: 0.8rem;
    }
    
    #emailInput,
    #mce-EMAIL {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    
    .submit-btn,
    #mc-embedded-subscribe {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }
}

/* Mobile devices - Instagram compatible */
@media screen and (max-width: 430px) {
    .main-container {
        padding: 0.25rem 0 !important;
    }
    
    .hero-section {
        padding: 0.5rem !important;
    }
    
    .brand-logo {
        margin-bottom: 1rem !important;
    }
    
    .countdown-container {
        margin-bottom: 1rem !important;
    }
    
    .progress-section {
        margin-bottom: 1rem !important;
    }
    
    .email-form {
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: center !important;
        max-width: 320px !important;
        margin: 0 auto 1rem auto !important;
    }
    
    #mce-EMAIL {
        width: 100% !important;
        max-width: 280px !important;
        font-size: 16px !important;
        padding: 1rem !important;
        text-align: center !important;
        flex: none !important;
    }
    
    .submit-btn,
    #mc-embedded-subscribe {
        width: 100% !important;
        max-width: 280px !important;
        font-size: 14px !important;
        padding: 1rem !important;
        flex-shrink: 0 !important;
    }
    
    .email-section {
        margin-bottom: 0.5rem !important;
        padding: 0 1rem !important;
    }
    
    .email-prompt {
        margin-bottom: 0.75rem !important;
    }
    
    /* Instagram links - compact for mobile */
    .instagram-accounts {
        gap: 0.5rem !important;
    }
    
    .instagram-link {
        min-width: 120px !important;
        font-size: 0.65rem !important;
        padding: 0.5rem 0.6rem !important;
        gap: 0.3rem !important;
    }
    
    .profile-pic {
        width: 16px !important;
        height: 16px !important;
    }
    
    .instagram-icon {
        width: 14px !important;
        height: 14px !important;
    }
}

/* Extra small screens */
@media screen and (max-width: 375px) {
    .instagram-link {
        min-width: 100px !important;
        font-size: 0.6rem !important;
        padding: 0.4rem 0.5rem !important;
        gap: 0.25rem !important;
    }
    
    .profile-pic {
        width: 14px !important;
        height: 14px !important;
    }
    
    .instagram-icon {
        width: 12px !important;
        height: 12px !important;
    }
    
    .instagram-accounts {
        gap: 0.3rem !important;
    }
}

/* Very small screens (iPhone SE and similar) */
@media screen and (max-width: 320px) {
    .instagram-link {
        min-width: 85px !important;
        font-size: 0.55rem !important;
        padding: 0.3rem 0.4rem !important;
        gap: 0.2rem !important;
        border-radius: 20px !important;
    }
    
    .profile-pic {
        width: 12px !important;
        height: 12px !important;
    }
    
    .instagram-icon {
        width: 10px !important;
        height: 10px !important;
    }
    
    .instagram-accounts {
        gap: 0.25rem !important;
    }
    
    .instagram-handle {
        font-size: 0.5rem !important;
    }
}

/* Emergency fallback for very narrow screens */
@media screen and (max-width: 280px) {
    .instagram-accounts {
        flex-direction: column !important;
        gap: 0.5rem !important;
        align-items: center !important;
    }
    
    .instagram-link {
        min-width: 180px !important;
        font-size: 0.6rem !important;
        padding: 0.4rem 0.6rem !important;
    }
}

/* Specific Instagram WebView detection and fixes */
@supports (-webkit-touch-callout: none) {
    @media screen and (max-width: 430px) and (max-height: 932px) {
        /* Instagram stories/webview specific */
        .main-container {
            padding: 1rem !important;
            justify-content: center !important;
        }
        
        .hero-section {
            width: 100% !important;
            max-width: 320px !important;
            margin: 0 auto !important;
        }
        
        .email-form {
            flex-wrap: nowrap !important;
            overflow: visible !important;
            flex-direction: column !important;
        }
        
        /* Ensure form elements are symmetric */
        .mc-field-group {
            display: block !important;
            width: 100% !important;
            max-width: 280px !important;
        }
        
        .optionalParent {
            display: block !important;
            width: 100% !important;
            max-width: 280px !important;
        }
        
        #mc_embed_signup_scroll {
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
            gap: 1rem !important;
            width: 100% !important;
        }
    }
}

/* Instagram browser external link indicator */
.instagram-browser .instagram-link::after {
    content: "↗";
    font-size: 0.6rem;
    opacity: 0.7;
    margin-left: 0.2rem;
}

/* Instagram browser specific styles */
.instagram-browser .email-form {
    flex-direction: column !important;
    gap: 1rem !important;
    align-items: center !important;
    max-width: 320px !important;
    margin: 0 auto 1rem auto !important;
}

.instagram-browser #mc_embed_signup_scroll {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1rem !important;
    width: 100% !important;
}

.instagram-browser #mce-EMAIL {
    width: 100% !important;
    max-width: 280px !important;
    flex: none !important;
    text-align: center !important;
}

/* Instagram browser input focus overrides */
.instagram-browser #mce-EMAIL:focus,
.instagram-browser #mce-EMAIL:active,
.instagram-browser #mce-EMAIL.focused {
    text-align: left !important;
    caret-color: #fff !important;
    -webkit-text-align-last: left !important;
    text-align-last: left !important;
}

.instagram-browser #mce-EMAIL:focus::placeholder,
.instagram-browser #mce-EMAIL.focused::placeholder {
    text-align: left !important;
    opacity: 0.6 !important;
}

.instagram-browser .submit-btn,
.instagram-browser #mc-embedded-subscribe {
    width: 100% !important;
    max-width: 280px !important;
    flex-shrink: 0 !important;
}

.instagram-browser .email-section {
    margin-bottom: 0.5rem !important;
    padding: 0 1rem !important;
}

.instagram-browser .hero-section {
    padding: 0.5rem !important;
}

.instagram-browser .brand-logo {
    margin-bottom: 1.5rem !important;
}

.instagram-browser .countdown-container {
    margin-bottom: 1.5rem !important;
}

.instagram-browser .progress-section {
    margin-bottom: 1rem !important;
}

.instagram-browser .footer {
    position: relative !important;
    bottom: auto !important;
    margin-top: 1rem !important;
}

.instagram-browser .instagram-link {
    min-width: 110px !important;
    font-size: 0.65rem !important;
    padding: 0.4rem 0.6rem !important;
    gap: 0.3rem !important;
}

.instagram-browser .instagram-accounts {
    gap: 0.4rem !important;
}

.instagram-browser .profile-pic {
    width: 14px !important;
    height: 14px !important;
}

.instagram-browser .instagram-icon {
    width: 12px !important;
    height: 12px !important;
}

/* Accessibility and reduced motion */
@media (prefers-reduced-motion: reduce) {
    #emailInput,
    #mce-EMAIL,
    .submit-btn,
    #mc-embedded-subscribe,
    .success-message,
    .error-message {
        transition: none !important;
    }
    
    .submit-btn:hover,
    #mc-embedded-subscribe:hover {
        transform: none !important;
    }
    
    .email-form::after {
        transition: none !important;
    }
    
    .ripple-effect {
        animation: none !important;
    }
}

/* ===== MAILCHIMP EMBEDDED FORM INTEGRATION ===== */

#mc_embed_signup {
    width: 100% !important;
    background: transparent !important;
    clear: none !important;
    font-family: inherit !important;
}

#mc_embed_signup form {
    padding: 0 !important;
    margin: 0 !important;
    text-align: left !important;
}

#mc_embed_signup_scroll {
    width: 100% !important;
}

#mc_embed_signup .mc-field-group {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

/* Override Mailchimp styles to use our responsive design */
#mc_embed_signup .mc-field-group,
#mc_embed_signup .optionalParent,
#mc_embed_signup .clear.foot {
    display: contents !important;
}

/* Hide unwanted Mailchimp elements */
#mc_embed_signup h2,
#mc_embed_signup .indicates-required,
#mc_embed_signup label,
#mc_embed_signup .asterisk {
    display: none !important;
}

/* Mailchimp response messages - mobile first */
#mc_embed_signup div.mce_inline_error,
#mc_embed_signup div.response {
    background-color: rgba(255, 102, 102, 0.1) !important;
    border: 1px solid #ff6666 !important;
    color: #ff6666 !important;
    border-radius: 4px !important;
    padding: 0.5rem !important;
    margin: 0.8rem 0 0 0 !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    text-align: center !important;
    font-family: inherit !important;
}

#mc_embed_signup div.response {
    background-color: rgba(0, 255, 102, 0.1) !important;
    border-color: #00ff66 !important;
    color: #00ff66 !important;
}

#mc_embed_signup #mce-responses {
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
    width: 100% !important;
}

/* Responsive Mailchimp message styling */
@media (min-width: 481px) {
    #mc_embed_signup div.mce_inline_error,
    #mc_embed_signup div.response {
        font-size: 0.9rem !important;
        margin-top: 1rem !important;
    }
}

@media (min-width: 768px) {
    #mc_embed_signup div.mce_inline_error,
    #mc_embed_signup div.response {
        font-size: 0.95rem !important;
        padding: 0.7rem !important;
        margin-top: 1.2rem !important;
        border-radius: 5px !important;
    }
}

@media (min-width: 1024px) {
    #mc_embed_signup div.mce_inline_error,
    #mc_embed_signup div.response {
        font-size: 1rem !important;
        padding: 0.8rem !important;
        margin-top: 1.5rem !important;
    }
}

@media (min-width: 1440px) {
    #mc_embed_signup div.mce_inline_error,
    #mc_embed_signup div.response {
        font-size: 1.1rem !important;
        padding: 1rem !important;
        margin-top: 2rem !important;
    }
}

/* ===== INSTAGRAM ACCOUNTS SECTION ===== */

/* Mobile first - base styles - always horizontal */
.instagram-accounts {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.instagram-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.8rem;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgb(255, 255, 255);
    border-radius: 25px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 140px;
    justify-content: center;
    white-space: nowrap;
}

.instagram-link:hover {
    background: rgba(0, 255, 102, 0.1);
    border-color: #000000;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(248, 248, 248, 0.2);
}

/* Profile picture container */
.profile-pic {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ffffff79;
    background: rgba(0, 255, 102, 0.1);
    flex-shrink: 0;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    color: #000000;
    background: rgba(0, 0, 0, 0.8);
}

/* Hide fallback when image loads */
.profile-image:not([style*="display: none"]) + .profile-fallback {
    display: none;
}

.instagram-icon {
    width: 20px;
    height: 20px;
    color: #92e692;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.instagram-handle {
    font-family: inherit;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.instagram-link:hover .instagram-icon {
    color: #00ff80;
    transform: scale(1.1);
}

.instagram-link:hover .profile-pic {
    border-color: #00ff80;
    transform: scale(1.05);
}

/* Responsive Instagram accounts */
@media (min-width: 481px) {
    .instagram-accounts {
        flex-direction: row;
        gap: 1.5rem;
        justify-content: center;
    }
    
    .instagram-link {
        min-width: 180px;
        font-size: 0.9rem;
        padding: 1rem 1.5rem;
    }
    
    .profile-pic {
        width: 36px;
        height: 36px;
    }
    
    .instagram-icon {
        width: 22px;
        height: 22px;
    }
}

@media (min-width: 768px) {
    .instagram-accounts {
        gap: 2rem;
    }
    
    .instagram-link {
        min-width: 200px;
        font-size: 1rem;
        padding: 1.2rem 1.8rem;
        border-radius: 30px;
    }
    
    .profile-pic {
        width: 40px;
        height: 40px;
    }
    
    .instagram-icon {
        width: 24px;
        height: 24px;
    }
}

@media (min-width: 1024px) {
    .instagram-accounts {
        gap: 2.5rem;
    }
    
    .instagram-link {
        min-width: 220px;
        font-size: 1.1rem;
        padding: 1.3rem 2rem;
    }
    
    .profile-pic {
        width: 44px;
        height: 44px;
        border-width: 2.5px;
    }
    
    .instagram-icon {
        width: 26px;
        height: 26px;
    }
}

@media (min-width: 1440px) {
    .instagram-accounts {
        gap: 3rem;
    }
    
    .instagram-link {
        min-width: 240px;
        font-size: 1.2rem;
        padding: 1.5rem 2.5rem;
        border-radius: 35px;
    }
    
    .profile-pic {
        width: 48px;
        height: 48px;
        border-width: 3px;
    }
    
    .instagram-icon {
        width: 28px;
        height: 28px;
    }
}

/* Footer styling */
.footer {
    position: absolute;
    bottom: 1rem;
    text-align: center;
    width: 100%;
}

/* Social section styling */
.social-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.instagram-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.instagram-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.577);
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.558);
}

.instagram-link:hover {
    color: #00ff80;
    border-color: #00ff66;
    background: rgba(0, 255, 102, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 255, 102, 0.2);
}

.instagram-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.instagram-link:hover .instagram-icon {
    transform: scale(1.1);
}

.instagram-text {
    letter-spacing: 0.05em;
}

/* Follower count styling */
.follower-count {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #00ff66;
    font-size: 0.85rem;
    font-weight: 500;
}

.follower-number {
    font-size: 1.1rem;
    font-weight: bold;
    color: #00ff66;
    text-shadow: 0 0 5px rgba(0, 255, 102, 0.3);
}

.follower-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-style: italic;
    letter-spacing: 0.1em;
}

/* ===== RESPONSIVE DESIGN - MOBILE FIRST ===== */

/* Extra Large Desktops - 1440px and up */
@media (min-width: 1440px) {
    .hero-section {
        padding: 3rem;
        max-width: 1000px;
    }
    
    .brand-logo-img {
        width: 500px;
        margin-bottom: 4rem;
    }
    
    .countdown-timer {
        gap: 3rem;
    }
    
    .time-unit {
        min-width: 120px;
        padding: 2rem;
    }
    
    .time-number {
        font-size: 3.5rem;
    }
    
    .time-label {
        font-size: 1rem;
    }
    
    .progress-section {
        max-width: 600px;
    }
    
    .progress-bar {
        height: 12px;
    }
    
    .progress-percentage {
        font-size: 1rem;
    }
    
    .footer-text {
        font-size: 1.1rem;
    }
    
    .instagram-link {
        font-size: 1rem;
        padding: 0.7rem 1.3rem;
    }
    
    .instagram-icon {
        width: 22px;
        height: 22px;
    }
    
    .follower-count {
        font-size: 0.95rem;
    }
    
    .follower-number {
        font-size: 1.2rem;
    }
}

/* Large Desktops - 1200px to 1439px */
@media (min-width: 1200px) and (max-width: 1439px) {
    .hero-section {
        padding: 2.5rem;
        max-width: 900px;
    }
    
    .brand-logo-img {
        width: 450px;
    }
    
    .countdown-timer {
        gap: 2.5rem;
    }
    
    .time-unit {
        min-width: 100px;
        padding: 1.5rem;
    }
    
    .time-number {
        font-size: 3rem;
    }
    
    .progress-section {
        max-width: 500px;
    }
    
    .progress-bar {
        height: 10px;
    }
}

/* Standard Desktops - 1024px to 1199px */
@media (min-width: 1024px) and (max-width: 1199px) {
    .hero-section {
        padding: 2rem;
        max-width: 800px;
    }
    
    .brand-logo-img {
        width: 400px;
    }
    
    .countdown-timer {
        gap: 2rem;
    }
    
    .time-unit {
        min-width: 90px;
        padding: 1.2rem;
    }
    
    .time-number {
        font-size: 2.8rem;
    }
    
    .progress-section {
        max-width: 450px;
    }
}

/* Tablets (Portrait) - 768px to 1023px */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-section {
        padding: 2rem;
        max-width: 600px;
    }
    
    .brand-logo-img {
        width: 350px;
        margin-bottom: 2.5rem;
    }
    
    .countdown-timer {
        gap: 1.5rem;
    }
    
    .time-unit {
        min-width: 80px;
        padding: 1rem;
    }
    
    .time-number {
        font-size: 2.5rem;
    }
    
    .time-label {
        font-size: 0.85rem;
    }
    
    .progress-section {
        max-width: 400px;
    }
    
    .progress-container {
        gap: 1rem;
    }
    
    .progress-percentage {
        font-size: 0.85rem;
        min-width: 35px;
    }
    
    .footer {
        bottom: 1.5rem;
    }
}

/* Large Mobile (Landscape) - 481px to 767px */
@media (min-width: 481px) and (max-width: 767px) {
    .hero-section {
        padding: 1.5rem;
        max-width: 500px;
    }
    
    .brand-logo-img {
        width: 300px;
        margin-bottom: 2rem;
    }
    
    .countdown-timer {
        gap: 1rem;
        justify-content: space-between;
    }
    
    .time-unit {
        min-width: 70px;
        padding: 0.9rem;
        flex: 1;
        max-width: 80px;
    }
    
    .time-number {
        font-size: 2.2rem;
    }
    
    .time-label {
        font-size: 0.75rem;
    }
    
    .progress-section {
        max-width: 350px;
    }
    
    .progress-container {
        gap: 0.8rem;
    }
    
    .progress-percentage {
        font-size: 0.8rem;
        min-width: 30px;
    }
    
    .footer {
        bottom: 1rem;
    }
    
    .footer-text {
        font-size: 0.85rem;
    }
}

/* Small Mobile (Portrait) - 320px to 480px */
@media (max-width: 480px) {
    .hero-section {
        padding: 1rem;
        max-width: 100%;
    }
    
    .brand-logo-img {
        width: 250px;
        margin-bottom: 1.5rem;
    }
    
    .countdown-container {
        margin-bottom: 2rem;
    }
    
    .countdown-timer {
        gap: 0.5rem;
        justify-content: space-between;
    }
    
    .time-unit {
        min-width: 60px;
        padding: 0.7rem 0.5rem;
        flex: 1;
        max-width: 70px;
    }
    
    .time-number {
        font-size: 1.8rem;
        margin-bottom: 0.3rem;
    }
    
    .time-label {
        font-size: 0.65rem;
    }
    
    .progress-section {
        max-width: 300px;
        margin-bottom: 2rem;
    }
    
    .progress-container {
        gap: 0.6rem;
    }
    
    .progress-bar {
        height: 6px;
    }
    
    .progress-percentage {
        font-size: 0.75rem;
        min-width: 25px;
    }
    
    .progress-text {
        font-size: 0.8rem;
    }
    
    .footer {
        bottom: 0.5rem;
    }
    
    .footer-text {
        font-size: 0.8rem;
    }
    
    .instagram-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .instagram-icon {
        width: 18px;
        height: 18px;
    }
    
    .follower-count {
        font-size: 0.75rem;
    }
    
    .follower-number {
        font-size: 0.9rem;
    }
}

/* Extra Small Mobile - 320px and below */
@media (max-width: 320px) {
    .hero-section {
        padding: 0.8rem;
    }
    
    .brand-logo-img {
        width: 200px;
        margin-bottom: 1.2rem;
    }
    
    .countdown-timer {
        gap: 0.3rem;
    }
    
    .time-unit {
        min-width: 50px;
        padding: 0.6rem 0.3rem;
        max-width: 60px;
    }
    
    .time-number {
        font-size: 1.5rem;
    }
    
    .time-label {
        font-size: 0.6rem;
    }
    
    .progress-section {
        max-width: 250px;
    }
    
    .progress-container {
        gap: 0.5rem;
    }
    
    .progress-percentage {
        font-size: 0.7rem;
        min-width: 22px;
    }
    
    .progress-text {
        font-size: 0.75rem;
    }
    
    .footer-text {
        font-size: 0.75rem;
    }
    
    .instagram-link {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    .instagram-icon {
        width: 16px;
        height: 16px;
    }
    
    .follower-count {
        font-size: 0.7rem;
    }
    
    .follower-number {
        font-size: 0.8rem;
    }
}

/* ===== ORIENTATION & DEVICE SPECIFIC OPTIMIZATIONS ===== */

/* Landscape phones and small tablets */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        padding: 1rem;
    }
    
    .brand-logo-img {
        width: 280px;
        margin-bottom: 1rem;
    }
    
    .countdown-container {
        margin-bottom: 1.5rem;
    }
    
    .progress-section {
        margin-bottom: 1.5rem;
    }
    
    .footer {
        bottom: 0.5rem;
    }
}

/* Very small height devices */
@media (max-height: 500px) {
    .hero-section {
        padding: 0.5rem;
    }
    
    .brand-logo-img {
        width: 200px;
        margin-bottom: 0.8rem;
    }
    
    .countdown-container {
        margin-bottom: 1rem;
    }
    
    .time-unit {
        padding: 0.5rem;
    }
    
    .time-number {
        font-size: 1.5rem;
    }
    
    .progress-section {
        margin-bottom: 1rem;
    }
    
    .footer {
        position: relative;
        bottom: auto;
        margin-top: 1rem;
    }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .brand-title {
        text-shadow: 0 0 20px #00ff66, 0 0 40px #00ff66, 0 0 60px #00ff66, 0 0 80px #00ff66;
    }
    
    
}

/* Accessibility and reduced motion */
@media (prefers-reduced-motion: reduce) {
    .brand-logo-img {
        animation: none;
    }
    
    .progress-fill {
        transition: none;
    }
    
    .main-container {
        animation: none;
        opacity: 1;
    }
    
    .video-background {
        animation-play-state: paused;
    }
}



/* Loading animation for page load */
.main-container {
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ===== UTILITY CLASSES FOR RESPONSIVE DESIGN ===== */

/* Ensure text remains readable on all devices */
.brand-logo-img,
.time-number,
.time-label,
.progress-text,
.progress-percentage,
.footer-text {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Prevent horizontal scrolling on small devices */
body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Ensure video never causes horizontal scroll */
.video-background {
    max-width: 100vw;
    min-width: 100vw;
    min-height: 100vh;
    /* Additional iOS Safari fixes */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
}

/* iOS-specific video container fixes */
@supports (-webkit-touch-callout: none) {
    .video-background {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: -2;
    }
}