/* Basic Reset & Font */
:root {
    --primary-blue: #0a255e;
    --accent-blue: #00b8d4;
    --light-blue-bg: #1e3a8a; /* Used for mobile menu bg */
    --text-color: #ffffff;
    --dot-color: rgba(255, 255, 255, 0.3);
    --line-color: rgba(255, 255, 255, 0.1);
    --bird-color: rgba(220, 220, 250, 0.6);

    /* Stats Section */
    --card-bg: #1a3272;
    --card-accent-gradient: linear-gradient(90deg, var(--accent-blue), #00c9e4);
    --icon-bg-bitcoin: #f7931a;
    --icon-bg-ethereum: #627eea;
    --icon-bg-dollar: #f7931a;
    --icon-bg-total-usd: #26a17b;
    --icon-bg-token-sale: #f7931a;

    /* About Project Section */
    --countdown-box-bg: rgba(255, 255, 255, 0.08);
    --countdown-box-border: rgba(255, 255, 255, 0.3);
    --wave-color: #132f70;

    /* Banner Section */
    --banner-bg: #2a65c9;
    --wave-fill: #1c4b8f;
    --text-primary: #ffffff; /* Re-using --text-color */
    --text-secondary: #e0e7ff;
    --accent-gradient-start: #4ade80;
    --accent-gradient-end: #22d3ee;

    /* About Cards Section */
    --section-bg: #2a65c9; /* Could reuse --primary-blue if preferred */
    --card-bg-about: #1c4b8f; /* Renamed to avoid conflict if --card-bg is different for stats */
    --icon-color-card: #ffffff;

    /* Footer Variables */
    --bg-overlay-color-start: rgba(10, 36, 94, 0.85); /* var(--primary-blue) with alpha */
    --bg-overlay-color-end: rgba(29, 75, 143, 0.9); /* var(--wave-fill) with alpha */
    --footer-card-bg: rgba(26, 50, 114, 0.9); /* var(--card-bg) with alpha, or a new dark shade */
    --text-light: #c0d0f0; /* Lighter than --text-secondary for less emphasis */
    --social-icon-bg: rgba(255, 255, 255, 0.1);
    --social-icon-color: #ffffff;
    --gradient-start-footer: var(--accent-gradient-start); /* Can reuse or define new */
    --gradient-end-footer: var(--accent-gradient-end);
    --gradient-end-rgb: 34,211,238; /* For RGBA glow */
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: var(--primary-blue);
    color: var(--text-color);
    overflow-x: hidden; /* Prevent horizontal scrollbars */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative; /* Good for child absolute positioning or z-index stacking */
    z-index: 1; /* Ensure containers are above page-level backgrounds like canvas */
}


/* Header Styles - DESKTOP */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: var(--primary-blue);
    position: sticky;
    top: 0;
    z-index: 1000; /* High z-index to stay on top */
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo-container h1 { /* Target the h1 inside for styling */
    margin: 0;
    font-size: 1.5em; /* Adjust as needed */
    font-style: italic;
    font-weight: bold;
    color: var(--text-color);
}
/* .logo-container .logo { height: 40px; } */ /* Uncomment if you use an <img> logo */

.nav-wrapper { /* Wrapper for main-nav and auth-buttons */
    display: flex;
    align-items: center;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    font-size: 0.9em;
    transition: color 0.3s ease;
    padding: 5px 0; /* Add some vertical padding for easier clicking */
}

.main-nav ul li a:hover {
    color: var(--accent-blue);
}

.auth-buttons {
    display: flex; /* Added to ensure buttons are in a row */
    align-items: center; /* Vertically align items if heights differ */
}

.auth-buttons .btn {
    margin-left: 15px;
    padding: 8px 18px;
    border: none;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 0.85em;
    color: var(--text-color); /* Default text color for buttons */
    text-decoration: none; /* Ensure <a> tags styled as buttons don't have underlines */
    display: inline-flex; /* Align icon and text */
    align-items: center;
    justify-content: center;
}

.auth-buttons .btn i {
    margin-right: 5px;
}

.auth-buttons .btn-login {
    background-color: var(--accent-blue);
    color: var(--primary-blue); /* Text color for login button */
}

.auth-buttons .btn-signup {
    background-color: var(--light-blue-bg);
    color: var(--text-color); /* Text color for signup button */
    border: 1px solid var(--accent-blue);
}

.auth-buttons .btn:hover {
    transform: translateY(-2px);
}

.auth-buttons .btn-login:hover {
    background-color: #00a8c0; /* Slightly darker accent blue */
}

.auth-buttons .btn-signup:hover {
    background-color: var(--accent-blue);
    color: var(--primary-blue);
}

.menu-toggle { /* Hamburger icon button */
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.8em;
    cursor: pointer;
    padding: 5px;
    margin-left: auto; /* Push to the right if header becomes flex-wrap */
    order: 2; /* Ensure it's after logo but before dropdown in source order for flex wrap */
}

/* Canvas for Bubbles */
#bubblesAboutCanvas {
    position: fixed; /* Fixed to viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Behind all other content */
    /* background-color: var(--primary-blue); */ /* Optional: if canvas doesn't fill for some reason */
}


/* About Banner Section */
.about-banner-section {
    background-color: var(--banner-bg);
    position: relative;
    width: 100%;
    min-height: 60vh;
    max-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-primary);
    padding: 80px 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.top-banner-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    max-height: 120px;
    z-index: 1;
}
.top-banner-wave path {
    fill: var(--wave-fill);
}

.banner-content-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.banner-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.2;
}

.banner-tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.banner-accent-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--accent-gradient-start), var(--accent-gradient-end));
    border-radius: 2px;
    margin: 0 auto;
}

/* Stats Section Styles */
.stats-section {
    background-color: var(--primary-blue);
    padding: 60px 0;
    color: var(--text-color);
}
/* .stats-section .container { width: 90%; max-width: 1300px; margin: 0 auto; } */ /* .container is global */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}
.stat-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.stat-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.card-accent-bar {
    height: 15px;
    background: var(--card-accent-gradient);
    border-radius: 15px 15px 0 0;
    margin: 10px 15px 0 15px;
}
.card-main-content {
    padding: 20px 25px 25px 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1;
}
.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    width: 100%;
}
.icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.3em;
    color: white;
}
.icon-wrapper.bitcoin-icon { background-color: var(--icon-bg-bitcoin); }
.icon-wrapper.ethereum-icon i { color: #3c3c3d; font-size: 1.5em; background-color: #e0e0e0; padding: 5px; border-radius: 4px; }
.icon-wrapper.dollar-icon { background-color: var(--icon-bg-dollar); }
.icon-wrapper.total-usd-icon { background-color: var(--icon-bg-total-usd); }
.icon-wrapper.token-sale-icon { background-color: var(--icon-bg-token-sale); }

.card-header h3 {
    margin: 0;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-color);
}
.card-value {
    background: var(--card-accent-gradient);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 1em;
    font-weight: bold;
    color: var(--primary-blue);
    align-self: flex-start;
    margin-top: auto;
}
.card-value span {
    display: inline-block;
    min-width: 50px; /* Ensure consistent width for numbers */
    text-align: right;
}

/* About The Project Section Styles */
.about-project-section {
    background-color: var(--primary-blue);
    padding: 80px 0 120px 0;
    color: var(--text-color);
    position: relative;
    overflow: hidden; /* Contains the bottom wave */
}
.about-project-content {
    display: flex;
    align-items: flex-start; /* Align items to the top */
    gap: 40px;
}
.about-text-content {
    flex: 1.2; /* Give more space to text */
    max-width: 60%;
}
.about-text-content h2 {
    font-size: 2.5em;
    margin-bottom: 25px;
    font-weight: bold;
    /* margin-left: 60px; /* Removed, use container padding or specific padding if needed */
}
.about-text-content p {
    font-size: 0.9em; /* Slightly smaller for more content */
    line-height: 1.6;
    margin-bottom: 15px;
    opacity: 0.9;
    /* margin-left: 50px; */
}
.about-text-content .action-buttons {
    margin-top: 30px;
    /* margin-left: 100px; */ /* Removed, let text flow or center if needed on mobile */
}
.about-text-content .action-buttons .btn { /* This re-declares .btn. Consider merging with global .btn or making more specific */
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-right: 15px;
    font-size: 0.9em;
}
.about-text-content .action-buttons .btn-primary {
    background: linear-gradient(90deg, var(--accent-blue), #00c9e4);
    color: var(--primary-blue);
}
.about-text-content .action-buttons .btn-primary:hover { transform: translateY(-2px); }
.about-text-content .action-buttons .btn-secondary {
    background-color: var(--accent-blue); /* Consider a different style for secondary button */
    color: var(--primary-blue);
    /* border: 1px solid var(--accent-blue); */ /* Example: outline style */
}
.about-text-content .action-buttons .btn-secondary:hover { transform: translateY(-2px); }

.countdown-timer-wrapper {
    flex: 0.8;
    max-width: 40%;
    display: flex; /* Center the timer within this wrapper */
    justify-content: center;
    align-items: center; /* Vertically center timer if text content is taller */
}
.countdown-timer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 100%;
    max-width: 450px; /* Max width for the timer itself */
}
.time-unit {
    background-color: var(--countdown-box-bg);
    border: 2px dashed var(--countdown-box-border);
    border-radius: 10px;
    padding: 20px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100px; /* Ensure consistent height */
}
.time-unit span {
    font-size: 2.8em;
    font-weight: bold;
    line-height: 1.1;
    display: block;
    color: var(--text-color);
    margin-bottom: 5px;
    position: relative;
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}
.time-unit span.changing { opacity: 0.5; transform: translateY(-5px) scale(0.95); }
.time-unit span.updated { opacity: 1; transform: translateY(0) scale(1); }
.time-unit small {
    font-size: 0.85em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}
.bottom-wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto; /* Let SVG define height */
    line-height: 0; /* Remove extra space below SVG */
    z-index: 5; /* Above content but below fixed elements like scroll-to-top */
}
.bottom-wave {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove extra space below inline SVG */
}
.bottom-wave path { fill: var(--wave-color); }

.scroll-to-top-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent-blue);
    color: var(--primary-blue);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 990; /* Below header but above most content */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}
.scroll-to-top-button.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-to-top-button:hover { background-color: #00a8c0; }

/* About Project Section Animations */
.about-project-section .animate-on-scroll {
    opacity: 0;
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.about-project-section .animate-on-scroll.from-left { transform: translateX(-50px); }
.about-project-section .animate-on-scroll.from-right { transform: translateX(50px); }
.about-project-section .animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateX(0) translateY(0); /* Reset both transforms */
}
.about-text-content p.animate-paragraph {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.about-text-content p.animate-paragraph.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* About Cards Section */
.about-cards-section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
    background-color: var(--section-bg); /* Or var(--primary-blue) if preferred */
}
.section-title {
    font-size: 2.8rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-primary); /* Ensure it's visible on section background */
}
.about-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.about-card {
    background-color: var(--card-bg-about);
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}
.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}
.card-highlight-bar { /* Used in about-card */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
}
.card-icon-wrapper { margin-bottom: 20px; }
.card-icon-wrapper svg {
    width: 48px;
    height: 48px;
    fill: var(--icon-color-card);
}
.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}
.card-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* General Animations for on-scroll elements */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px); /* Default transform */
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1),
                transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* Specific animation delays if needed, e.g., for banner */
.banner-title.animate-on-scroll { transition-delay: 0.2s; }
.banner-tagline.animate-on-scroll { transition-delay: 0.4s; }
.banner-accent-line.animate-on-scroll { transition-delay: 0.6s; }
/* Delays for about cards */
.section-title.animate-on-scroll { transition-delay: 0.1s; } /* For .about-cards-section title */
.about-card.animate-on-scroll:nth-child(1) { transition-delay: 0.3s; }
.about-card.animate-on-scroll:nth-child(2) { transition-delay: 0.5s; }
.about-card.animate-on-scroll:nth-child(3) { transition-delay: 0.7s; }


/* Footer Styles */
.site-footer {
    background-color: #0A2463; /* Fallback if image fails */
    /* Consider adding your crypto background image here if desired */
    /* background-image: url('path/to/your/crypto-background.jpg'); */
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.site-footer::before { /* Overlay */
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--bg-overlay-color-start), var(--bg-overlay-color-end));
    z-index: 0; /* Ensure it's behind .footer-card */
}
.footer-card { /* Ensure .container > .footer-card for correct centering if needed */
    background-color: var(--footer-card-bg);
    border-radius: 16px;
    padding: 35px 45px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1; /* Above the ::before overlay */
    overflow: hidden;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.footer-highlight-bar { /* Used in footer-card */
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: linear-gradient(to right, var(--gradient-start-footer), var(--gradient-end-footer));
}
.footer-content-wrapper { display: flex; flex-direction: column; gap: 30px; }
.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.footer-brand-info { flex-basis: 100%; max-width: 320px; }
.footer-brand-name {
    font-size: 1.9rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-primary);
}
.footer-tagline { font-size: 0.95rem; color: var(--text-light); line-height: 1.6; }
.footer-links-column { flex-grow: 1; min-width: 170px; }
.footer-links-column h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 18px;
}
.footer-links-column ul { list-style: none; padding: 0; margin: 0; }
.footer-links-column ul li { margin-bottom: 12px; }
.footer-links-column ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease, padding-left 0.3s ease;
}
.footer-links-column ul li a:hover { color: var(--gradient-end-footer); padding-left: 5px; }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    gap: 20px;
}
.footer-social-links { display: flex; gap: 15px; }
.social-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    background-color: var(--social-icon-bg);
    display: flex; align-items: center; justify-content: center;
    color: var(--social-icon-color);
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.social-icon:hover {
    background-color: var(--gradient-end-footer);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 8px rgba(var(--gradient-end-rgb), 0.4);
}
.social-icon svg { width: 20px; height: 20px; fill: currentColor; }
.copyright-text { font-size: 0.9rem; color: var(--text-secondary); text-align: center; flex-grow: 1; }

/* Footer Animations */
.footer-card.animate-on-scroll { transition-delay: 0.2s; }
.footer-brand-info.animate-on-scroll { transition-delay: 0.4s; }
.footer-links-column:nth-of-type(1).animate-on-scroll { transition-delay: 0.6s; }
.footer-links-column:nth-of-type(2).animate-on-scroll { transition-delay: 0.8s; }
.footer-social-links.animate-on-scroll { transition-delay: 1s; }
.copyright-text.animate-on-scroll { transition-delay: 1.2s; }


/* Responsive Adjustments - General */
@media (max-width: 992px) {
    /* .slide-content { flex-direction: column; text-align: center; } */ /* Assuming this was for a slider not present in about.html */
    /* .slide-left, .slide-right { flex-basis: 100%; padding-right: 0; margin-bottom: 30px; } */
    /* .slide-left h1 { font-size: 2.2em; } */
    /* .slide .social-icons, .slide .action-buttons { justify-content: center; display: flex; } */
    /* .slide .action-buttons .btn { margin: 0 10px; } */
    /* .slider-nav { padding: 10px; font-size: 1.2em; width: 40px; height: 40px; } */

    .stats-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
    .card-main-content { padding: 15px 20px 20px 20px; } /* For stat-card */
    .card-header h3 { font-size: 1.1em; } /* For stat-card */
    .icon-wrapper { width: 35px; height: 35px; font-size: 1.1em; } /* For stat-card */
    .card-value { font-size: 0.9em; padding: 8px 15px; } /* For stat-card */
    .card-accent-bar { margin: 8px 10px 0 10px; height: 12px; } /* For stat-card */

    .about-project-content { flex-direction: column; align-items: center; }
    .about-text-content, .countdown-timer-wrapper { max-width: 90%; width: 100%; }
    .about-text-content { text-align: center; margin-bottom: 40px; }
    .about-text-content .action-buttons { justify-content: center; display: flex; }
    .countdown-timer { gap: 10px; max-width: 100%; }
    .time-unit span { font-size: 2.2em; }

    .footer-card { padding: 30px; } /* For footer */
}

/* Styles for Mobile Navigation Menu - THIS IS THE KEY FIX */
@media (max-width: 768px) {
    header {
        flex-wrap: wrap;
    }

    .menu-toggle { /* Show hamburger icon */
        display: block;
        /* order: 2; already set */
        /* margin-left: auto; already set */
    }

    .nav-wrapper { /* This is the container for main-nav and auth-buttons */
        order: 3; /* After logo and toggle button if header wraps */
        width: 100%;
        max-height: 0; /* Hidden by default */
        overflow: hidden;
        transition: max-height 0.4s ease-in-out; /* Smoother transition */
        background-color: var(--light-blue-bg);
        position: absolute;
        top: 100%; /* Position below the header */
        left: 0;
        z-index: 999; /* Below header's z-index but above page content */
        display: flex;
        flex-direction: column;
        align-items: stretch; /* Children take full width */
        box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Add a subtle shadow */
    }

    .nav-wrapper.active { /* This class is toggled by JS to show the menu */
        max-height: 70vh; /* Adjust as needed, should be enough for your items. Can use px too. */
        /* border-top: 1px solid rgba(255,255,255,0.15); */ /* Optional top border */
    }

    /* Styles for the main navigation links within the active mobile menu */
    .nav-wrapper.active .main-nav {
        display: block; /* Ensure the nav element itself is displayed */
        width: 100%;
        order: 1; /* Nav links first */
    }

    .nav-wrapper.active .main-nav ul {
        flex-direction: column;
        align-items: stretch; /* Stretch li to full width */
        padding: 0; /* Remove padding from ul, apply to a/li */
        margin: 0;
        width: 100%;
    }

    .nav-wrapper.active .main-nav ul li {
        margin: 0;
        margin-left: 0; /* Override desktop margin */
        width: 100%;
        text-align: center;
    }

    .nav-wrapper.active .main-nav ul li a {
        padding: 15px 20px; /* Generous padding for touch */
        display: block; /* Make the entire area clickable */
        width: 100%;
        color: var(--text-color);
        border-bottom: 1px solid rgba(var(--primary-blue-rgb, 10, 37, 94), 0.3); /* Darker separator */
    }
    /* Define --primary-blue-rgb if not already defined, or use a fixed color */
    /* Example: --primary-blue-rgb: 10, 37, 94; */


    .nav-wrapper.active .main-nav ul li:last-child a {
        border-bottom: none;
    }
    .nav-wrapper.active .main-nav ul li a:hover {
        background-color: rgba(255, 255, 255, 0.05); /* Subtle hover */
        color: var(--accent-blue);
    }

    /* Styles for authentication buttons within the active mobile menu */
    .nav-wrapper.active .auth-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 15px 0 20px 0; /* Top and bottom padding */
        margin-left: 0; /* Reset desktop margin */
        order: 2; /* Auth buttons after nav links */
        border-top: 1px solid rgba(var(--primary-blue-rgb, 10, 37, 94), 0.3); /* Separator if needed */
    }

    .nav-wrapper.active .auth-buttons .btn {
        margin: 10px 0; /* Spacing between stacked buttons */
        width: 80%;
        max-width: 250px; /* Limit button width on mobile */
    }

    /* Banner adjustments for 768px */
    .about-banner-section { min-height: 50vh; padding: 60px 20px; }
    .banner-title { font-size: 2.5rem; }
    .banner-tagline { font-size: 1.1rem; }
    .top-banner-wave { max-height: 100px; }

    /* General text size adjustments for 768px */
    .about-text-content h2 { font-size: 2em; } /* For about-project */
    .section-title { font-size: 2.2rem; margin-bottom: 40px; } /* For about-cards */


    .scroll-to-top-button { width: 40px; height: 40px; font-size: 1em; bottom: 20px; right: 20px; }

    /* Footer for 768px */
    .site-footer { padding: 60px 0; background-attachment: scroll; }
    .footer-card { margin-left: 15px; margin-right: 15px; max-width: none; }
    .footer-top { flex-direction: column; align-items: center; text-align: center; }
    .footer-brand-info { max-width: 100%; }
    .footer-links-column { min-width: auto; width: 100%; margin-bottom: 20px; }
    .footer-links-column:last-child { margin-bottom: 0; }
    .footer-bottom { flex-direction: column; }
    .copyright-text { order: 1; /* Social links below copyright on small screens */ }
}

@media (max-width: 480px) {
    /* Banner for 480px */
    .about-banner-section { min-height: 45vh; }
    .banner-title { font-size: 2rem; }
    .banner-tagline { font-size: 1rem; }
    .top-banner-wave { max-height: 80px; }

    /* About cards for 480px */
    .section-title { font-size: 1.8rem; }
    .card-title { font-size: 1.3rem; }
    .card-description { font-size: 0.9rem; }

    /* Stats for 480px */
    /* .stats-grid { grid-template-columns: 1fr; } */ /* Already handled by auto-fit */
    .card-header h3 { font-size: 1em; } /* For stat-card */

    /* Countdown for 480px */
    .countdown-timer { grid-template-columns: repeat(2, 1fr); } /* 2 columns for very small screens */
    .time-unit { padding: 15px 8px; }
    .time-unit span { font-size: 1.8em; }
    .time-unit small { font-size: 0.75em; }

    .nav-wrapper.active .main-nav ul li a {
        padding: 12px 15px; /* Slightly less padding on very small screens */
    }
    .nav-wrapper.active .auth-buttons .btn {
        width: 90%; /* Wider buttons on very small screens */
    }
}