* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Animation and scroll wrapper variables */
    --scroll-wrapper-height: 100vh;
    --scroll-wrapper-margin: 30px;
    --animation-transition-duration: 0.2s;
    
    /* Text sizing variables */
    --text-large: 3rem;
    --text-medium: 2rem;
    --text-small: 1.5rem;
    --text-extra-small: 1rem;
    
    /* Spacing variables */
    --element-spacing-large: 15%;
    --element-spacing-medium: 10%;
    --element-spacing-small: 5%;
    
    /* Color variables */
    --primary-green: #00FF80;
    --text-white: #fff;
    --background-dark: #161513;
    
    /* Z-index layers */
    --z-text: 10;
    --z-star: 8;
    --z-graphics: 5;
}

html {
    position: relative;
    min-height: 100vh;
}

body {
    background-color: #161513;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    /* padding-top: 100px; */
    padding-bottom: 70px;
    min-height: 100vh;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.header {
    background-color: #161513;
    color: #fff;
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex-direction: column;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 70px;
    margin-right: 10px;
}

.brand-name {
    font-size: 2rem;
    font-weight: 600;
}

.tagline {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.7);
}

.main-content {
    flex: 1;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Hero section with centered search */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* ===========================================
   ANIMATION SECTION & SCROLL WRAPPER
   =========================================== 
   
   Modular scroll-triggered animation system with:
   - Semantic HTML structure (animation-content > texts/graphics)
   - Responsive positioning system
   - GSAP-powered scroll animations
   - Forward-only animation progression
   - Dynamic viewport adjustments
   
   Structure:
   .animation-section
     └── .scroll-wrapper
         └── .animation-content
             ├── .animation-texts (text elements)
             └── .animation-graphics (SVG & images)
   =========================================== */

/* Animation section container */
.animation-section {
    min-height: 100vh;
    position: relative;
}

/* Content section */
.content-section {
    padding: 2rem;
}

/* Card layout styles */
.cards-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.card {
    background-color: rgba(4, 69, 149, 0);
    border-radius: 8px;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
    padding: 2rem;
    width: calc(50% - 1rem);
    min-width: 300px;
    aspect-ratio: 1/1;
    /* Make cards square */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Center content vertically */
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    /* Added to establish positioning context */
    overflow: hidden;
    /* Ensure content doesn't overflow */
}

/* .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
} */

.card-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Center the image */
    width: 70%;
    /* Reduced from 100% */
    height: 70%;
    /* Reduced from 100% */
    object-fit: contain;
    z-index: 0;
    opacity: 0.4;
}

.card-title {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 3rem;
    /* Increased spacing between title and image */
    color: #ffffff;
    text-align: center;
    position: absolute;
    z-index: 1;
    top: 2%;
}

.card-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: #ffffff;
    text-align: center;
    margin-top: 3rem;
    /* Added spacing above subtitle */
    margin-bottom: 1rem;
    position: absolute;
    z-index: 1;
    top: 20%;
    left: 2%;
    right: 2%;
}

.contact-button {
    position: relative;
    /* Make text appear on top of image */
    z-index: 1;
    /* Higher than image */
}

.footer {
    background-color: #161513;
    color: #fff;
    padding: 1rem 2rem;
    width: 100%;
    margin-top: auto;
    /* Push to the bottom */
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.footer-content {
    display: flex;
    justify-content: center;
    /* Center the content horizontally */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    height: 30px;
    width: auto;
}

.footer-links {
    display: flex;
    list-style: none;
}

.footer-links li {
    margin-left: 1.5rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ddd;
}

/* Wide card styles */
.wide-card {
    background-color: rgba(4, 69, 149, 0);
    border-radius: 8px;
    padding: 2rem;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.search-title {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-align: center;
}

.search-container {
    display: flex;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    align-items: center;
    gap: 1rem;
    flex-direction: row; /* Ensure horizontal layout always */
}

.fake-search {
    flex-grow: 1;
    height: 50px;
    border: 2px solid #00FF80;
    border-radius: 10px;
    padding: 0 20px;
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    color: #ffffff;
    background: #161513;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

#typedText {
    white-space: nowrap;
    overflow: hidden;
    flex-grow: 1;
    font-size: inherit;
}

.fake-search-text {
    position: absolute;
    visibility: hidden;
    opacity: 0;
    white-space: nowrap;
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 20px;
    background-color: #ffffff;
    margin-left: 3px;
    animation: blink 1s infinite;
    vertical-align: middle;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.fake-button {
    height: auto;
    width: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.fake-button:hover {
    transform: scale(1.1);
}

.fake-button img {
    height: 100%;
    width: 100%;
}

/* Wait list card styles */
.waitlist-card {
    margin-top: 2rem;
    min-height: auto;
}

.waitlist-title {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 4rem;
    color: #ffffff;
    text-align: center;
}

.waitlist-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: #ffffff;
    text-align: center;
    margin-top: 4rem;
    max-width: 600px;
    margin: 0 auto 1.5rem auto;
}

.waitlist-container {
    display: flex;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    align-items: center;
    gap: 0.5rem;
}

.email-field {
    flex-grow: 1;
    height: 50px;
    border: 2px solid #00FF80;
    border-radius: 10px;
    padding: 0 20px;
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    color: #ffffff;
    background: #161513;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    /* Added transition for box-shadow */
}

.email-field:focus {
    border-color: #00FF80;
    box-shadow: 0 0 10px rgba(0, 255, 128, 0.5);
    /* Add glow effect on focus */
    outline: none;
}

.email-field::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.subscribe-button {
    height: 50px;
    padding: 0 25px;
    border: none;
    border-radius: 10px;
    background-color: rgba(4, 70, 150, 0.8);
    color: #161513;
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s;
}

.subscribe-button:hover {
    transform: translateY(-2px);
    background-color: rgba(4, 70, 150, 1);
}

/* Contact button style */
.contact-button {
    margin-top: 1.5rem;
    padding: 0.8rem 2.5rem;
    border: none;
    border-radius: 10px;
    background-color: rgba(4, 70, 150, 0.8);
    color: #161513;
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s;
}

.contact-button:hover {
    transform: translateY(-2px);
    background-color: rgba(4, 70, 150, 1);
}

/* Logo card specific styling */
.logo-card {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.logo-built-title {
    font-size: 3rem;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    position: relative;
    z-index: 1;
}

.logo-built-image {
    width: 70%;
    /* Reduced size */
    height: 70%;
    /* Reduced size */
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    z-index: 1;
    opacity: 1;
}

/* ===========================================
   SCROLL WRAPPER - MAIN CONTAINER
   =========================================== */

.scroll-wrapper {
    position: relative;
    width: 100%;
    height: var(--scroll-wrapper-height);
    margin: var(--scroll-wrapper-margin) auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.animation-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===========================================
   ANIMATION ELEMENTS - BASE STYLES
   =========================================== */

.step {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--animation-transition-duration) ease;
}

.text-element {
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    z-index: var(--z-text);
}

.graphic-element {
    z-index: var(--z-graphics);
}

/* ===========================================
   TEXT ELEMENTS - POSITIONING & STYLING
   =========================================== */

#text-top-left {
    top: var(--element-spacing-large);
    left: var(--element-spacing-large);
    text-align: center;
    font-size: var(--text-large);
    font-weight: 600;
    opacity: 1; /* Visible by default */
    line-height: 1.2;
}

#text-top-right {
    top: 25%;
    right: var(--element-spacing-large);
    width: 30vw;
    text-align: center;
    font-size: var(--text-small);
    line-height: 1.4;
}

#text-bottom-right {
    top: 55%;
    right: var(--element-spacing-large);
    text-align: center;
    font-size: var(--text-large);
    font-weight: 600;
    line-height: 1.2;
}

#text-bottom-left {
    bottom: var(--element-spacing-small);
    left: var(--element-spacing-large);
    width: 30vw;
    text-align: center;
    font-size: var(--text-medium);
    line-height: 1.4;
}

/* ===========================================
   GRAPHIC ELEMENTS - SVG & IMAGES
   =========================================== */

#knowledge-path {
    position: absolute;
    top: var(--element-spacing-large);
    left: var(--element-spacing-large);
    width: 100%;
    height: 100%;
    opacity: 0;
    overflow: visible;
}

.knowledge-path-svg {
    width: 45%;
    height: 50%;
    max-width: 100%;
    height: auto;
}

#guiding-star {
    position: absolute;
    top: 60%;
    right: var(--element-spacing-small);
    width: 500px;
    height: auto;
    opacity: 0;
    z-index: var(--z-star);
}

/* Notification styles */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #00ff80;
    color: #1a1a1a;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 255, 128, 0.25);
    font-weight: 500;
    z-index: 1000;
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.notification.active {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 768px) {
    .notification {
        bottom: 20px;
        right: 20px;
        left: 20px;
        text-align: center;
    }
}

/* Media queries for responsive design */
/* Tablets and small desktops */
@media (max-width: 1024px) {
    .card {
        width: 100%;
        max-width: 500px;
    }
    
    .main-content {
        padding: 1.5rem;
    }
    
    .search-title, .waitlist-title, .card-title {
        font-size: 2.5rem;
    }
    
    .waitlist-subtitle, .card-subtitle {
        font-size: 1.2rem;
    }
    
/* ===========================================
   RESPONSIVE DESIGN - TABLETS (768px - 1024px)
   =========================================== */

@media (max-width: 1024px) {
    .card {
        width: 100%;
        max-width: 500px;
    }
    
    .main-content {
        padding: 1.5rem;
    }
    
    .search-title, .waitlist-title, .card-title {
        font-size: 2.5rem;
    }
    
    .waitlist-subtitle, .card-subtitle {
        font-size: 1.2rem;
    }
    
    /* Scroll wrapper adjustments for tablets */
    .scroll-wrapper {
        height: 80vh;
        margin: 20px auto;
    }
    
    .knowledge-path-svg {
        width: 60% !important;
        height: 60% !important;
    }
    
    #text-top-left {
        top: 10%;
        left: 10%;
        font-size: 2.5rem;
    }
    
    #text-top-right {
        top: 20%;
        right: 10%;
        width: 35vw;
        font-size: 1.3rem;
    }
    
    #text-bottom-right {
        top: 50%;
        right: 10%;
        font-size: 2.5rem;
    }
    
    #text-bottom-left {
        bottom: 8%;
        left: 10%;
        width: 35vw;
        font-size: 1.8rem;
    }
    
    #guiding-star {
        width: 400px;
        top: 55%;
        right: 8%;
    }
}
    
    #text-top-right {
        top: 20%;
        right: 10%;
        width: 35vw;
        font-size: 1.2rem;
    }
    
    #text-bottom-right {
        top: 50%;
        right: 10%;
        font-size: 2.5rem;
    }
    
    #text-bottom-left {
        bottom: 5%;
        left: 10%;
        width: 35vw;
        font-size: 1.5rem;
    }
    
    #guiding-star {
        width: 400px;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .header {
        padding: 0.8rem 1rem;
    }
    
    .logo {
        height: 50px;
    }
    
    .brand-name {
        font-size: 1.5rem;
    }
    
    .tagline {
        font-size: 0.8rem;
    }
    
    .main-content {
        padding: 1rem;
        margin-top: 100px;
    }
    
    .search-title, .waitlist-title, .card-title {
        font-size: 2rem;
    }
    
    .card {
        padding: 1.5rem;
        min-width: 100%;
    }
    
    .card-subtitle {
        font-size: 1rem;
        top: 25%;
    }
    
    .wide-card {
        padding: 1.5rem;
        aspect-ratio: auto;
        height: auto;
    }
    
    .search-container {
        flex-direction: row; /* Keep horizontal layout for search bar */
        align-items: center;
        gap: 0.5rem;
    }
    
    .fake-search {
        width: 85%; /* Allow room for button */
    }
    
    .fake-button {
        width: 15%;
        min-width: 40px;
    }
    
    .waitlist-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .email-field, .subscribe-button {
        width: 100%;
    }
    
    /* Mobile scroll wrapper - compact and full viewport */
    .animation-section {
        margin-top: -100px; /* Counteract main-content margin-top */
        padding-top: 100px; /* Add padding to maintain spacing */
    }
    
    .scroll-wrapper {
        height: 100vh;
        margin: 0 auto;
        padding: 0;
        padding-top: 70px; /* Account for mobile header height */
    }
    
    .animation-content {
        transform: scale(0.9);
        height: calc(100% - 70px); /* Adjust for header padding */
    }
    
    #knowledge-path {
        transform: scale(0.7) !important;
        top: -18% !important;
        left: 0% !important;
        width: 100% !important;
        height: 60% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: flex-start !important;
    }
    
    .knowledge-path-svg {
        width: 100% !important;
        height: auto !important;
        max-width: none !important;
    }
    
    #text-top-left {
        top: 8%;
        left: 10%;
        right: 10%;
        width: 80%;
        text-align: center;
        font-size: 1.8rem;
    }
    
    #text-top-right {
        top: 30%;
        left: 10%;
        right: 10%;
        width: 80%;
        text-align: center;
        font-size: 1rem;
    }
    
    #text-bottom-right {
        top: 45%;
        left: 5%;
        right: 5%;
        width: 90%;
        text-align: center;
        font-size: 1.8rem;
    }
    
    #text-bottom-left {
        bottom: 5%;
        left: 5%;
        right: 5%;
        width: 90%;
        text-align: center;
        font-size: 1.2rem;
    }
    
    #guiding-star {
        width: 60%;
        max-width: 250px;
        top: 55%;
        left: 20%;
        right: 20%;
    }
    
    .footer {
        padding: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-logo-section {
        justify-content: center;
    }
    
    .contact-button {
        padding: 0.6rem 2rem;
        font-size: 1.2rem;
    }
}

/* ===========================================
   RESPONSIVE DESIGN - EXTRA SMALL (max-width: 480px)
   =========================================== */

@media (max-width: 480px) {
    .logo-container {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        margin-right: 0;
        margin-bottom: 5px;
        height: 40px;
    }
    
    .search-title, .waitlist-title, .card-title {
        font-size: 1.5rem;
    }
    
    .waitlist-subtitle {
        font-size: 1rem;
    }
    
    .fake-search {
        width: 80%;
    }
    
    .fake-button {
        width: 20%;
        min-width: 30px;
    }
    
    /* Extra small scroll wrapper - very compact and full viewport */
    .animation-section {
        margin-top: -100px; /* Counteract main-content margin-top */
        padding-top: 100px; /* Add padding to maintain spacing */
    }
    
    .scroll-wrapper {
        margin: 0 auto;
        padding: 0;
        padding-top: 60px; /* Account for smaller header on extra small */
        height: 100vh;
    }
    
    .animation-content {
        transform: scale(0.8);
        height: calc(100% - 60px); /* Adjust for header padding */
    }
    
    #knowledge-path {
        transform: scale(0.5) !important;
        top: -18% !important;
        left: 0% !important;
        width: 100% !important;
        height: 60% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: flex-start !important;
    }
    
    .knowledge-path-svg {
        width: 100% !important;
        height: auto !important;
        max-width: none !important;
    }
    
    #text-top-left,
    #text-bottom-right {
        font-size: 1.5rem;
    }
    
    #text-top-right,
    #text-bottom-left {
        font-size: 0.9rem;
    }
    
    #guiding-star {
        width: 50%;
        max-width: 200px;
    }
}

/* ===========================================
   SCROLL INDICATOR COMPONENT
   =========================================== */

.scroll-indicator {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 255, 128, 0.2);
    border: 2px solid #00FF80;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    color: #00FF80;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 255, 128, 0.3);
}

.scroll-indicator.show {
    opacity: 1;
    transform: translateY(0);
}

.scroll-indicator:hover {
    background: rgba(0, 255, 128, 0.15);
    transform: translateY(-2px);
}

.scroll-text {
    margin-bottom: 0.3rem;
    font-size: 0.8rem;
    text-align: center;
}

.scroll-arrow {
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* Hide scroll indicator on mobile to avoid clutter */
@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 1rem;
        right: 1rem;
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .scroll-text {
        font-size: 0.7rem;
    }
    
    .scroll-arrow {
        font-size: 1rem;
    }
}