/* --- Global Styles & Variables --- */
:root {
    --primary-bg: #0a2463; /* Dark Blue */
    --text-light: #ffffff;
    --accent-cyan: #00bcd4;
    --accent-blue-darker: #1e3a8a; /* Slightly lighter blue for signup or darker elements */
    --font-primary: 'Arial', sans-serif; /* Or a Google Font like 'Poppins' or 'Montserrat' */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--primary-bg); /* Main background for the whole page */
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll from bubbles if they peek out */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Bubble Background --- */
.bubble-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Behind all content */
    overflow: hidden; /* Crucial to contain bubbles */
}

.bubble {
    position: absolute;
    background-color: rgba(0, 188, 212, 0.2); /* Semi-transparent cyan */
    border-radius: 50%;
    animation: floatUp 10s linear infinite;
    bottom: -150px; /* Start below the screen */
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.2;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-120vh) scale(1.2); /* Move up well past the viewport */
        opacity: 0;
    }
}


/* --- Navbar Styles --- */
.navbar {
    background-color: var(--primary-bg);
    padding: 15px 0;
    color: var(--text-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: 1px;
    flex-shrink: 0; /* Prevent logo from shrinking too much */
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0 auto; /* Center links between logo and actions on desktop */
}

.nav-links li {
    margin-left: 25px;
}
.nav-links li:first-child {
    margin-left: 0;
}

/* Hide mobile-specific action items by default (on desktop) */
.nav-action-mobile {
    display: none;
}

/* Style regular nav links, exclude buttons */
.nav-links a:not(.btn) {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-links a:not(.btn):hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* This is the DESKTOP container for buttons */
.nav-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0; /* Prevent buttons from shrinking too much */
}

.btn {
    padding: 10px 20px;
    border-radius: 20px; /* Rounded corners */
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    transition: opacity 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.btn i {
    margin-right: 8px;
}

.btn-login {
    background-color: var(--accent-cyan);
    color: var(--text-light);
    margin-right: 10px; /* Applies to desktop version */
}

/* Remove margin-right for mobile login button if it's the only button in its line or handled by li */
.nav-action-mobile .btn-login {
    margin-right: 0; /* Override for mobile menu */
}

.btn-signup {
    background-color: var(--accent-blue-darker);
    color: var(--text-light);
    border: 2px solid var(--accent-cyan);
}

.mobile-menu-toggle {
    display: none; /* Hidden by default, shown on smaller screens */
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.8em;
    cursor: pointer;
}

/* --- Contact Page Styles --- */
.contact-page {
    padding: 40px 0;
}

.contact-page h1 {
    font-size: 2.8em;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-light);
}
.contact-page .intro-text {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-sections {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-form-section,
.contact-info-section {
    flex: 1;
    min-width: 300px;
    background-color: rgba(0,0,0, 0.15);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-form-section h2,
.contact-info-section h2 {
    font-size: 1.8em;
    margin-bottom: 25px;
    color: var(--accent-cyan);
    border-bottom: 2px solid var(--accent-cyan);
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-light);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-size: 1em;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 2px rgba(0, 188, 212, 0.5);
}

.btn-submit {
    background-color: var(--accent-cyan);
    color: var(--text-light);
    padding: 12px 25px;
    font-size: 1.1em;
    border-radius: 5px;
}
.btn-submit:hover {
    background-color: #00a8b5;
}

.contact-info-section .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.contact-info-section .info-item i {
    font-size: 1.5em;
    color: var(--accent-cyan);
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.contact-info-section .info-item p {
    margin: 0;
}
.contact-info-section .info-item a {
    color: var(--text-light);
    text-decoration: none;
}
.contact-info-section .info-item a:hover {
    color: var(--accent-cyan);
    text-decoration: underline;
}

.map-container {
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--accent-cyan);
}
.map-container iframe {
    display: block;
}


/* --- Footer --- */
footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    background-color: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}


/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .nav-links {
        display: none; /* Initially hidden on mobile */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%; /* Position below the navbar */
        left: 0;
        background-color: var(--primary-bg);
        padding: 10px 0;
        border-top: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
        z-index: 999; /* Ensure it's above content but within navbar stacking context */
    }

    .nav-links.active {
        display: flex; /* Show when active */
    }

    .nav-links li {
        margin: 0; /* Reset desktop margin-left */
        text-align: center;
        width: 100%; /* Make list items take full width */
    }
    /* Style for regular navigation links in mobile menu */
    .nav-links li a:not(.btn) {
        display: block; /* Make links take full width of li */
        padding: 12px 20px; /* More touch-friendly padding */
        color: var(--text-light); /* Ensure color consistency */
        text-decoration: none; /* Ensure no underline unless hovered */
    }
    .nav-links li a:not(.btn):hover {
        background-color: rgba(255, 255, 255, 0.1); /* Consistent hover */
    }


    /* Show and style mobile-specific action items */
    .nav-action-mobile {
        display: list-item; /* Show them as list items */
        padding: 10px 0;   /* Add some vertical spacing around the buttons */
    }

    /* Style the buttons within the mobile menu */
    .nav-action-mobile .btn {
        display: inline-block; /* Allows centering if li is text-align: center */
        width: auto; /* Or set a specific width like 60%, 150px, etc. */
        padding: 8px 16px; /* Slightly smaller buttons for mobile menu */
        font-size: 0.9em;
        /* margin: 5px auto; /* Centers the button if width is less than 100% and display is block */
    }
    /* Ensure buttons stack nicely or have some space between them if on same line */
    .nav-action-mobile:not(:last-of-type) { /* If you want more spacing between stacked buttons */
        margin-bottom: 5px;
    }


    .nav-actions { /* Hide the original desktop button container */
        display: none;
    }

    .mobile-menu-toggle {
        display: block; /* Show hamburger icon */
        margin-left: auto; /* Push it to the right */
    }
}

@media (max-width: 768px) {
    .contact-sections {
        flex-direction: column;
    }
    .logo {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.3em;
    }
    .contact-page h1 {
        font-size: 2.2em;
    }
    .contact-form-section h2,
    .contact-info-section h2 {
        font-size: 1.5em;
    }
    /* This general .btn rule will affect all buttons, including mobile nav buttons */
    /* It's okay if the mobile nav buttons were already sized by .nav-action-mobile .btn above */
     .btn {
        padding: 8px 12px;
        font-size: 0.85em;
    }
    .btn i {
        margin-right: 4px;
    }
    /* If the above general .btn makes mobile nav buttons too small, you might need to specifically override it */
    /* Example:
    .nav-action-mobile .btn {
        padding: 8px 16px;
        font-size: 0.9em;
    }
    */
}


/* 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 */
    }
}