html {
    /* Disable html scroll since layers handle it */
    overflow: hidden; 
}

body { margin: 0; overflow: hidden; background-color: #000000; color: white; font-family: 'Arial', sans-serif; }

/* Utility: Visually Hidden (for accessibility) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Dynamic Background Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
    background: 
        radial-gradient(circle at 20% 30%, rgba(41, 98, 255, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.4) 0%, transparent 50%);
    filter: blur(60px);
    animation: bgFlow 10s ease-in-out infinite alternate;
}

@keyframes bgFlow {
    0% { opacity: 0.6; transform: scale(1); }
    100% { opacity: 0.9; transform: scale(1.1); }
}
#webgl-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
/* Navigation */
nav { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    padding: 20px 40px; 
    z-index: 100; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    box-sizing: border-box;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent); /* Default background */
    transition: opacity 0.5s ease, background 0.5s ease;
}

nav.scrolled {
    opacity: 0.3; /* High transparency when scrolled away from top sections */
}

nav.scrolled:hover {
    opacity: 1; /* Restore opacity on hover */
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.logo img {
    height: 30px; /* Adjust based on navbar height */
    width: auto;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    background: linear-gradient(to right, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 40px;
}

nav a { color: rgba(255, 255, 255, 0.7); text-decoration: none; font-size: 0.9rem; transition: color 0.3s; cursor: pointer; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; }
nav a:hover, nav a.active { color: white; text-shadow: 0 0 10px rgba(129, 140, 248, 0.5); }

/* Buttons */
.cta-button {
    display: inline-block;
    margin-top: 40px;
    padding: 15px 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.cta-button:hover {
    background: white;
    color: black;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}

.cta-button.secondary {
    margin-top: 30px;
    border-color: #818cf8;
    background: rgba(129, 140, 248, 0.1);
}

.cta-button.secondary:hover {
    background: #818cf8;
    color: white;
}

/* Contact Page */
.contact-layout {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 40px;
    width: 90%;
    max-width: 1000px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.contact-card {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05); /* Very transparent */
    backdrop-filter: blur(15px); /* Strong frosted glass */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-card h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 300;
}

.contact-card p {
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.7);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    flex: 1; /* Allow form to take up remaining space in card */
}

.contact-form input, .contact-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s, background 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.contact-form textarea {
    flex: 1; /* Allow textarea to fill remaining vertical space */
    resize: none; /* Prevent manual resize breaking layout */
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

/* Join Us Card Specifics */
.join-list {
    text-align: left;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.join-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.join-item .role {
    font-weight: bold;
    color: white;
}

.join-item .type {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.join-info {
    margin-bottom: 20px;
}

.join-info p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.email-link {
    color: #818cf8;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.email-link:hover {
    color: #c084fc;
}

.text-link {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
    transition: color 0.3s;
}

.text-link:hover {
    color: white;
}

/* Partners Grid */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 80%;
    max-width: 900px;
    margin: 0 auto;
}

.partner-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s;
    cursor: pointer;
}

.partner-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Footer Layout Page */
.footer-layout {
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Align content to bottom */
    align-items: center;
    padding-bottom: 0;
}

/* Ensure footer aligns to the very bottom */
#main-footer-page, 
#service-footer-page {
    padding: 0;
    justify-content: flex-end;
}

.footer-content-wrapper {
    width: 100%;
    max-width: 100%; /* Full width */
    background: rgba(0, 0, 0, 0.3); /* Semi-transparent black */
    padding: 30px 10%; /* Reduced vertical padding */
    border-radius: 0;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Minimal separator */
    backdrop-filter: blur(10px); /* Add blur */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    box-sizing: border-box;
    /* Ensure it sits at the bottom */
    margin-top: auto; 
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 20px; /* Reduced margin */
    border-bottom: none; /* Remove inner border */
    padding-bottom: 0;
}

.footer-brand h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
}

.footer-nav-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav-col h4 {
    margin-bottom: 15px;
    color: white;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.footer-nav-col a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-nav-col a:hover {
    color: #818cf8;
}

.footer-bottom {
    margin-top: 10px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

/* Layer Containers */
.layer-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s;
    z-index: 1; /* Below Nav and Intro */
}

.layer-container.active {
    opacity: 1;
    visibility: visible;
    z-index: 5;
}

/* Page Sections */
.page-section { 
    position: relative; 
    width: 100%; 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    opacity: 1; 
    visibility: visible; 
    padding: 100px 0; 
    box-sizing: border-box;
    scroll-snap-align: start; /* Snap to the start of each section */
    scroll-snap-stop: always; /* Force snap to stop at section */
}

/* Specific Section Adjustments */
#main-page {
    height: 100vh;
}

#constellation-page, #orion-page, #lyra-page {
    height: 100vh;
    background: transparent;
    justify-content: flex-end; /* Align content to bottom */
    padding-bottom: 15vh; /* Space from bottom */
}

#main-footer-page, 
#service-footer-page {
    padding: 0;
    justify-content: flex-end;
}

/* Main Page */
#main-page .brand-container { text-align: center; margin-bottom: 50px; }
#main-page h1 { font-size: 6rem; margin: 0; font-weight: 300; letter-spacing: 15px; background: linear-gradient(to right, #fff, #a5b4fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: fadeIn 2s ease-out; }
#main-page p { font-size: 1.2rem; margin-top: 20px; color: rgba(255, 255, 255, 0.6); letter-spacing: 4px; text-transform: uppercase; }

/* Service Page */
.service-single {
    height: 100vh;
    background: transparent;
    padding: 0;
    position: relative; /* Ensure absolute positioning works relative to section */
    justify-content: flex-end; /* Align content towards bottom */
    align-items: flex-start; /* Default align left */
}

/* Specific Section Alignments */
#service-soul {
    align-items: flex-start; /* Left */
}

#service-mind {
    align-items: flex-end; /* Right */
}

#service-time, #service-memory {
    align-items: flex-start; /* Left */
}

.service-content {
    text-align: left;
    width: 400px;
    padding: 0;
    margin: 0 10% 15% 10%; /* Bottom margin for spacing from edge */
    background: transparent;
    border: none;
    backdrop-filter: none;
    box-shadow: none;
    cursor: default;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

#service-mind .service-content {
    text-align: right;
}

.service-content:hover {
    transform: none;
    background: transparent;
    box-shadow: none;
}

.service-content h3 { 
    font-size: 4rem; 
    margin: 0 0 10px 0; 
    letter-spacing: 8px; 
    font-weight: 300;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-content p { 
    font-size: 1.1rem; 
    line-height: 1.6; 
    color: rgba(255, 255, 255, 0.8); 
    margin-bottom: 30px; 
    max-width: 350px;
}

#service-mind .service-content p {
    margin-left: auto; /* Push text to right */
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    opacity: 1;
    display: inline-block;
}

.card-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    transition: opacity 0.3s;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 5px;
    cursor: pointer;
}

.card-link:hover { opacity: 1; border-color: white; }

.service-content.soul .card-icon { color: #818cf8; text-shadow: 0 0 20px rgba(129, 140, 248, 0.5); }
.service-content.mind .card-icon { color: #c084fc; text-shadow: 0 0 20px rgba(192, 132, 252, 0.5); }
.service-content.time .card-icon, .service-content.memory .card-icon { color: #2dd4bf; text-shadow: 0 0 20px rgba(45, 212, 191, 0.5); }

/* Remove old service-page styles */
#service-page, .section-title, .cards-container, .service-card {
    display: none; 
}

/* About Page */
#about-page {
    justify-content: space-between; /* Space out content to push footer to bottom */
    padding-bottom: 0; /* Remove bottom padding to allow footer to flush */
}

#about-page .content { 
    max-width: 900px; 
    text-align: center; 
    padding: 60px; 
    background: radial-gradient(circle at center, rgba(0,0,0,0.4) 0%, transparent 70%);
    margin-top: auto; /* Push content down or center */
    margin-bottom: auto;
}
#about-page h2 { font-size: 4rem; margin-bottom: 40px; font-weight: 300; letter-spacing: 5px; }
#about-page p { font-size: 1.1rem; line-height: 1.8; color: rgba(255, 255, 255, 0.8); margin-bottom: 20px; font-weight: 300; }
#about-page p.about-intro { font-size: 1.3rem; margin-bottom: 15px; color: rgba(255, 255, 255, 0.9); }

/* About Page Toggle Buttons */
.toggle-buttons {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
    margin-top: 60px; /* Added spacing above buttons */
}

.toggle-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.6);
    padding: 10px 25px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    border-color: white;
    color: white;
}

.toggle-btn.active {
    background: white;
    color: black;
    border-color: white;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.desc-content {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.desc-content.active {
    display: block;
    animation: fadeInContent 0.5s forwards;
}

@keyframes fadeInContent {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin: 50px 0;
}

.stat { display: flex; flex-direction: column; }
.stat .number { font-size: 2.5rem; font-weight: 700; color: #fff; margin-bottom: 5px; background: linear-gradient(to bottom, #fff, #999); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat .label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; color: rgba(255, 255, 255, 0.5); }

footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 30px 50px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0,0,0,0.3);
}

footer p { font-size: 0.8rem; color: rgba(255, 255, 255, 0.4); margin: 0; }
.socials { display: flex; gap: 20px; }
.socials span { font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); cursor: pointer; transition: color 0.3s; }
.socials span:hover { color: white; }

/* Scroll hint */
.scroll-hint { 
    position: fixed; 
    bottom: 40px; 
    left: 50%; 
    transform: translateX(-50%); 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    transition: opacity 0.5s ease, visibility 0.5s; /* Add transition */
}

.scroll-hint.hidden {
    opacity: 0;
    visibility: hidden;
}

.scroll-hint span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 3px; }

.mouse-icon {
    width: 20px;
    height: 35px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    position: relative;
}

.mouse-icon::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 6px;
    background: white;
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% { top: 5px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

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

/* Fullscreen Button */
#fullscreen-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease, opacity 0.5s ease, visibility 0.5s; /* Add visibility transition */
    color: rgba(255, 255, 255, 0.7);
    opacity: 1;
    visibility: visible;
}

#fullscreen-btn.hidden {
    opacity: 0;
    visibility: hidden;
}

#fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.1);
}

/* Intro Overlay */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000; /* Above everything */
    background: transparent; /* Particle background visible */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    opacity: 1;
    transition: opacity 0.5s ease, visibility 0.5s;
    visibility: visible;
    perspective: 1000px; /* Enable 3D perspective for child elements */
}

#intro-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Parallax Layers for Intro */
.parallax-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allow clicks to pass through */
    transition: transform 0.1s linear; /* Smooth follow */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* Allow vertical stacking */
}

/* Specific depths for elements */
.layer-bg { transform: translateZ(-50px); }
.layer-mid { transform: translateZ(0px); }
/* .layer-front { transform: translateZ(50px); } Removed front layer separation to group with inputs */

.intro-header {
    position: absolute;
    top: 15%;
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    /* Make header float slightly */
    transform-style: preserve-3d;
}

.intro-header span {
    display: inline-block;
    opacity: 0.5; /* Base opacity */
    animation: starTwinkle infinite ease-in-out alternate;
}

@keyframes starTwinkle {
    0% { 
        opacity: 0.4; /* Darkest state (was 0.2) */
        text-shadow: none;
        transform: scale(1);
    }
    100% { 
        opacity: 0.9; /* Brightest state (was 1.0) */
        text-shadow: 
            0 0 5px rgba(255, 255, 255, 0.8),
            0 0 10px rgba(255, 255, 255, 0.5),
            0 0 20px rgba(129, 140, 248, 0.3);
        transform: scale(1.05); /* Reduced scale slightly */
    }
}

.question-container {
    text-align: center;
    width: 90%;
    max-width: 600px;
    transform-style: preserve-3d; /* Preserve 3D transforms */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px; /* Space between question/input and button */
}

#question-text {
    margin-bottom: 20px; /* Reduced margin */
    min-height: 5rem; /* Increased height for two lines */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0; /* Hidden initially */
}

.friendly-text {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.formal-text {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Animations for Questions */
.fly-in {
    animation: flyInFromDistance 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.fly-out {
    animation: flyOutToCamera 1.2s cubic-bezier(0.5, 0, 0.8, 0.2) forwards;
}

@keyframes flyInFromDistance {
    0% {
        opacity: 0;
        transform: translateZ(-300px) scale(0.5);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateZ(0) scale(1);
        filter: blur(0);
    }
}

@keyframes flyOutToCamera {
    0% {
        opacity: 1;
        transform: translateZ(0) scale(1);
        filter: blur(0);
    }
    100% {
        opacity: 0;
        transform: translateZ(300px) scale(2);
        filter: blur(20px);
    }
}

@keyframes blinkEffect {
    0%, 100% { opacity: 1; text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }
    50% { opacity: 0.2; text-shadow: none; }
}

.blink-trigger .friendly-text {
    animation: blinkEffect 2s ease-in-out 3 forwards; /* 3 cycles, 2s each */
}

#intro-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.5rem;
    padding: 10px 0;
    width: 100%;
    text-align: center;
    outline: none;
    transition: border-color 0.3s, opacity 0.5s;
    font-family: inherit;
    opacity: 0; /* Hidden initially */
    pointer-events: auto; /* Re-enable pointer events */
    margin-bottom: 20px; /* Space below input */
}

#intro-input.visible {
    opacity: 1;
}

#intro-input:focus {
    border-color: rgba(255, 255, 255, 0.8);
}

.nav-buttons {
    margin-top: 0; /* Reset margin */
    width: 100%;
    display: flex;
    justify-content: center;
    pointer-events: auto;
}

#btn-next {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 40px; /* Wider button */
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease; /* Smooth transition for opacity */
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0; /* Hidden initially */
    visibility: hidden;
    pointer-events: auto; /* Re-enable pointer events */
}

#btn-next.visible {
    opacity: 1;
    visibility: visible;
}

#btn-next:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
}

#intro-progress {
    height: 100%;
    width: 0%;
    background: rgba(255, 255, 255, 0.3); /* Low contrast */
    transition: width 0.5s ease;
}

#btn-exit-intro {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

#btn-exit-intro:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    /* Navigation */
    nav {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
        background: rgba(0,0,0,0.8); /* Solid bg for mobile readability */
    }

    .nav-links {
        gap: 20px;
        font-size: 0.8rem;
    }

    /* Main Page */
    #main-page h1 {
        font-size: 3rem;
        letter-spacing: 5px;
    }

    #main-page p {
        font-size: 0.9rem;
        letter-spacing: 2px;
        padding: 0 20px;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 0.8rem;
        margin-top: 30px;
    }

    /* Constellation Pages */
    #constellation-page, 
    #orion-page, 
    #lyra-page {
        padding-bottom: 100px; /* Adjust padding for mobile */
    }

    #constellation-page h2, 
    #orion-page h2, 
    #lyra-page h2 {
        font-size: 2rem !important; /* Override inline styles */
        letter-spacing: 2px !important;
        padding: 0 20px;
    }

    #constellation-page p, 
    #orion-page p, 
    #lyra-page p {
        font-size: 1rem !important;
        padding: 0 30px;
    }

    /* Service Page Mobile */
    .service-single {
        justify-content: flex-end !important; /* Bottom align for all */
        align-items: center !important; /* Center align for all */
        padding-bottom: 80px;
    }

    .service-content {
        width: 80%;
        margin: 0;
        text-align: center !important; /* Center text */
    }

    #service-mind .service-content {
        text-align: center;
    }

    #service-mind .service-content p {
        margin: 0 auto 30px auto; /* Reset margin */
    }

    .service-content h3 {
        font-size: 2.5rem;
    }

    .service-content p {
        font-size: 0.9rem;
    }

    /* About Page */
    #about-page .content {
        padding: 30px;
        width: 90%;
    }

    #about-page h2 {
        font-size: 2.5rem;
    }

    .stats-row {
        flex-direction: column;
        gap: 30px;
    }

    footer {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        text-align: center;
    }
}
