/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Set body and html to full height */
body, html {
    height: 100%;
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #000;
    overflow: hidden;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
}

/* Header styling */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5vw;
    z-index: 1000;
}

.logo-img{
    width: 50px;
    margin-right: 12px;
}

#logo{
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
}

/* Logo styling */
#logo h2 {
    color: white;
    font-size: 1.8em;
    font-weight: 600;
}

/* Call-to-Action button styling */
.cta-button a {
    color: #FFFFFF;
    background-color: #667FFF;
    text-decoration: none;
    padding: 12px 24px;
    border: 2px solid #667FFF;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9em;
}

.cta-button a:hover {
    background-color: transparent;
    color: #FFFFFF;
}

/* Sections container */
#sections-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-color: #000;
}

.section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Subtle dark overlay for text readability */
}

.section.active {
    opacity: 1;
}

.section video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content overlay */
#content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    z-index: 2;
    padding: 10vh 5vw;
}

#content-overlay .content {
    display: none;
}

#content-overlay .content.active {
    display: block;
    /* The animation property has been removed from here */
}

.title {
    font-size: 3.2em;
    font-weight: 700;
    line-height: 1.2;
    display: block;
    max-width: 650px;
    margin-bottom: 20px;
}

.subtitle {
    font-size: 1.1em;
    display: block;
    max-width: 500px;
    margin-bottom: 40px;
    opacity: 0.8;
    line-height: 1.6;
}

#content-overlay .content h1 {
    font-size: 2em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

/* Navigation indicator */
#nav-indicator {
    position: fixed;
    top: 50%;
    right: 5vw;
    transform: translateY(-50%);
    z-index: 1000;
}

#nav-indicator ul {
    list-style: none;
}

#nav-indicator li {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.4);
    margin: 15px 0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

#nav-indicator li.active {
    background-color: #fff;
    transform: scale(1.2);
}

/* Scroll Down Icon */
.scrolldown-wrapper {
    left: 50%;
    position: absolute;
    text-align: center;
    bottom: 0;
    transform: translate(-50%, -50%);
}

.scrolldown {
    border: 2px solid #FFFFFF;
    border-radius: 30px;
    height: 46px;
    margin: 0 auto 8px;
    text-align: center;
    width: 30px;
}


.scrolldown-p1, .scrolldown-p2 {
    animation-duration: 1.5s;
    animation-name: scrolldown;
    animation-iteration-count: infinite;
    fill: #FFFFFF;
}

.scrolldown-p2 {
    animation-delay: .75s;
}


@keyframes scrolldown {

    0% {
        opacity: 0;
        transform: translate(0, -8px);
    }

    50% {
        opacity: 1;
        transform: translate(0, 0);
    }

    100% {
        opacity: 0;
        transform: translate(0, 8px);
    }

} 


/* Waitlist Modal Styling */
.modal-container {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #1c1c1e;
    padding: 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    color: #fff;
    position: relative;
    animation: modalFadeIn 0.5s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover {
    color: #fff;
}

.modal-content h2 {
    margin-bottom: 15px;
    font-size: 2em;
}

.modal-content p {
    margin-bottom: 30px;
    opacity: 0.7;
    line-height: 1.6;
}

#waitlist-form input {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #444;
    background-color: #333;
    color: #fff;
    font-size: 1em;
}

#waitlist-form button {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: none;
    background-color: #fff;
    color: #000;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

#waitlist-form button:hover {
    opacity: 0.9;
}

#form-success-message p {
    color: #4cd964; /* A nice success green */
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Header adjustments for smaller screens */
    #main-header {
        height: 70px; /* Make header shorter */
        padding: 0 5vw;
    }
    #logo h2 {
        font-size: 1.5em; /* Smaller logo text */
    }
    .logo-img {
        width: 40px; /* Smaller logo icon */
    }

    /* Adjust CTA button sizes */
    .cta-button a {
        padding: 10px 20px;
        font-size: 0.85em;
    }

    /* Main content overlay adjustments */
    #content-overlay {
        padding: 0 5vw 12vh; /* Adjust padding */
        text-align: start; /* Center text for a better mobile layout */
        justify-content: flex-end;
    }

    #content-overlay .content.active {
        display: flex; /* Use flexbox for better alignment */
        flex-direction: column;
        align-items: start;
    }
    
    /* Reduce font sizes for readability */
    .title {
        font-size: 2em; /* Significantly smaller title */
        max-width: 100%;
    }

    .subtitle {
        font-size: 0.95em; /* Slightly smaller subtitle */
        max-width: 90%;
        margin-bottom: 30px;
    }

    #content-overlay .content h1 {
        font-size: 1.2em; /* Smaller time/activity text */
    }

    /* Hide unnecessary desktop elements */
    #nav-indicator {
        display: none; /* Hide nav dots on smaller screens */
    }

    #scroll-icon {
        display: none; /* Hide scroll icon on mobile */
    }

    /* Modal adjustments */
    .modal-content {
        padding: 30px 25px; /* Reduce padding inside modal */
        width: 90vw; /* Ensure it fits well on screen */
    }

    .modal-content h2 {
        font-size: 1.6em;
    }

    #top{
        display: none;
    }
}