/* Table of Contents:
    * 1. Variables
    * 2. Global Styles
    * 3. Navigation Bar
    * 4. Section Styles
    * 5. Hero Section
    * 6. Buttons
    * 7. Featured Courses Section
    * 8. Why Exaverge Section
    * 9. Footer
    * 10. Basic Responsive Adjustments
    * 11. Background Elements
    * 12. Detailed Responsive Media Queries
    * 13. Mobile Menu Components
    * 14. Utilities and Cross-Browser Compatibility
 */


/* =========================================== */
/* #region - 1. VARIABLES */
    :root {
        --background-dark: #343434; /* Very dark grey / near black */
        --nav-background: #262626; /* Slightly darker for nav */
        --text-light: #f0f0f0;      /* Off-white for readability */
        --accent-red: #e60000;     /* Striking red */
        --accent-red-hover: #ff3333; /* Lighter red for hover */
        --accent-blue: #00aaff;
        --accent-blue-hover: #0099e6; /* Lighter blue for hover */
        --card-background: #464646; /* Dark grey for cards */
        --border-color: #2d2d2d;   /* Subtle border */
        --nav-border-color: #686868; /* Slightly lighter for nav */
        --footer-text: #aaaaaa;    /* Grey for footer text */
    }
/* #endregion*/
/* =========================================== */



/* =========================================== */
/* #region - 2. GLOBAL STYLES */
    /* Reset some default styles */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    /* Base responsive typography */
    html {
        scroll-behavior: smooth;
        font-size: clamp(14px, 1vw + 10px, 16px);
    }

    body {
        background-color: var(--background-dark);
        color: var(--text-light);
        font-family: 'Inter', sans-serif;
        line-height: 1.6;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    body::before {
        content: '';
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: 100%;
        /* background: radial-gradient(circle, var(--accent-red) -30%, rgba(255, 0, 0, 0) 50%); */
        z-index: -1; /* Behind all content */
        pointer-events: none;
    }
/* #endregion */
/* =========================================== */



/* =========================================== */
/* #region - 3. NAVIGATION BAR */
.main-nav {
    background-color: var(--nav-background);
    padding: 1.5rem 5%; /* Generous padding */
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--nav-border-color); /* Subtle separator */
}

.logo a {
    color: var(--text-light);
    font-size: 1.8rem;
    font-weight: 900; /* Extra bold */
    text-decoration: none;
    letter-spacing: -1px; /* Tighten spacing slightly */
}

.nav-links ul {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 2.5rem; /* Wider spacing */
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700; /* Bold nav items */
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active { /* Example active state */
    color: var(--accent-blue);
}
/* #endregion */
/* =========================================== */



/* =========================================== */
/* #region - 4. SECTION STYLES */
    .section {
        padding: 6rem 0; /* Remove horizontal padding, add it to inner content */
        margin: 0; /* Remove auto margin */
        width: 100%; /* Full viewport width */
        position: relative; /* For potential overlay effects */
    }

    /* Inner content container for proper spacing */
    .section-content {
        max-width: 1200px; /* Limit content width */
        margin: 0 auto; /* Center content */
        padding: 0 5%; /* Horizontal padding for content */
    }

    /* Alternating section backgrounds that span full width */
    .section:nth-child(even) {
        background: linear-gradient(
            135deg,
            rgba(20, 20, 20, 0.85) 0%,
            rgba(30, 30, 30, 0.75) 50%,
            rgba(25, 25, 25, 0.85) 100%
        );
        backdrop-filter: blur(1px); /* Subtle blur for depth */
    }

    .section:nth-child(odd) {
        background: linear-gradient(
            135deg,
            rgba(40, 40, 40, 0.4) 0%,
            rgba(50, 50, 50, 0.3) 50%,
            rgba(35, 35, 35, 0.4) 100%
        );
    }

    .section-title {
        font-size: 2.5rem;
        font-weight: 900;
        text-align: center;
        margin-bottom: 4rem;
        letter-spacing: -1px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Improve readability */
    }
/* #endregion */
/* =========================================== */



/* =========================================== */
/* #region - 5. HERO SECTION */
.hero {
    min-height: 85vh; /* Slightly less than full viewport height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 5%; /* Use percentage for responsiveness */
    position: relative; /* For background overlay */
    background: linear-gradient(
        135deg,
        rgba(25, 25, 25, 0.75) 0%,
        rgba(35, 35, 35, 0.65) 50%,
        rgba(30, 30, 30, 0.75) 100%
    );
    backdrop-filter: blur(2px); /* Subtle blur for depth */
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem); /* Responsive font size */
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
    max-width: 900px; /* Limit width for better readability */
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8); /* Strong shadow for title */
}

.hero p {
    font-size: clamp(1.1rem, 3vw, 1.5rem); /* Responsive font size */
    font-weight: 400;
    max-width: 700px;
    margin-bottom: 2.5rem;
    color: #f5f5f5; /* Even lighter color for better contrast */
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9); /* Stronger shadow for better readability */
    line-height: 1.7; /* Increased line spacing for better readability */
}
/* #endregion */
/* =========================================== */



/* ============================================ */
/* #region - 6. BUTTONS */
    /* Call to Action Button */
    .cta-button {
        background-color: var(--accent-blue);
        color: var(--text-light);
        font-size: 1.1rem;
        font-weight: 700;
        padding: 1rem 2.5rem;
        border: none;
        border-radius: 4px; /* Subtle rounding */
        text-decoration: none;
        cursor: pointer;
        transition: background-color 0.3s ease, transform 0.2s ease;
        display: inline-block; /* Ensure padding works */
    }

    .cta-button:hover {
        background-color: var(--accent-blue-hover);
        transform: scale(1.05); /* Slight grow effect */
    }
/* #endregion */
/* ============================================ */



/* ============================================ */
/* #region - 7. FEATURED COURSES SECTION */
.course-grid {
    display: grid;
    /* Responsive grid: 1 column on small screens, up to 3 on larger */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem; /* Increased gap */
}

.course-card {
    background-color: rgba(70, 70, 70, 0.8); /* More opaque for better readability */
    border: 1px solid var(--border-color);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative; /* For potential pseudo-elements */
    overflow: hidden; /* Hide overflowing pseudo-elements */
    backdrop-filter: blur(2px); /* Add subtle blur for depth */
}

.course-card::before { /* Red hover effect */
    content: '';
    position: absolute;
    top: 0;
    left: -100%; /* Start hidden */
    width: 100%;
    height: 4px; /* Thin top border */
    background-color: var(--accent-red);
    transition: left 0.4s ease;
}

.course-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-red);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4); /* Subtle shadow */
}

.course-card:hover::before {
     left: 0; /* Slide in on hover */
}


.course-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-light);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7); /* Improve readability */
}

.course-card a {
     color: var(--accent-blue); /* Link color */
     text-decoration: none;
     font-weight: 700;
     display: block; /* Make entire card clickable conceptually */
     margin-top: 1.5rem;
}
 .course-card a::after { /* Make clear it's a link */
    content: ' →';
 }

 .course-card a:hover {
    text-decoration: underline;
 }
/* #endregion */
/* ============================================ */



/* ============================================ */
/* #region - 8. WHY EXAVERGE SECTION */
.why-us-content {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 4rem;
    align-items: center;
}

/* Placeholder for bold imagery */
.why-us-visual {
    background-color: rgba(70, 70, 70, 0.6); /* More transparent placeholder BG */
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-style: italic;
    color: #888;
    border: 1px dashed var(--border-color);
    backdrop-filter: blur(1px);
    padding: 1rem; /* Add padding for frame spacing */
     /* Add abstract wireframe background here */
     /* background: url('path/to/glowing-red-accent-visual.png') no-repeat center center/cover; */
}

.why-us-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1); /* Subtle light border */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1); /* Subtle inner highlight */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-us-image:hover {
    transform: translateY(-2px); /* Slight lift on hover */
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.why-us-text h2 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); /* Improve readability */
}

.why-us-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #e0e0e0; /* Lighter text for better contrast */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.value-props {
    list-style: none;
    padding-left: 0;
}

.value-props li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    color: #e0e0e0; /* Lighter text for better contrast */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

/* Red icon bullet points */
.value-props li::before {
    content: '✓'; /* Or use an SVG icon */
    color: var(--accent-blue);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0px; /* Adjust alignment */
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}
/* #endregion */
/* ============================================ */



/* ============================================ */
/* #region - 9. FOOTER */
.main-footer {
    background-color: #000; /* Solid black footer */
    color: var(--footer-text);
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 6rem; /* Space before footer */
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin: 0 1.5rem;
}

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-blue);
}

.footer-contact p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-copyright {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: #666;
}
/* #endregion */
/* ============================================ */



/* ============================================ */
/* #region - 10. BASIC RESPONSIVE ADJUSTMENTS */
@media (max-width: 768px) {
    .main-nav {
        padding: 1rem 5%;
        flex-direction: column; /* Stack logo and nav */
        align-items: flex-start; /* Align items to left */
    }

    .logo a {
        margin-bottom: 1rem;
    }

    .nav-links ul {
        flex-direction: column; /* Stack nav links */
        width: 100%;
    }

    .nav-links li {
        margin-left: 0;
        margin-bottom: 0.8rem; /* Space between stacked links */
         width: 100%;
         text-align: left;
    }

    .hero h1 {
        font-size: 2.5rem; /* Smaller font on mobile */
    }

     .hero p {
        font-size: 1rem;
    }

    .section-content {
        padding: 0 4%; /* Adjust padding for mobile */
    }

    .section-title {
        font-size: 2rem;
    }

    .why-us-content {
        grid-template-columns: 1fr; /* Stack columns on mobile */
    }

    .why-us-visual {
         margin-bottom: 2rem; /* Space below visual when stacked */
         min-height: 200px; /* Reduce height */
    }

    .footer-links {
        flex-direction: column; /* Stack footer links */
    }

    .footer-links li {
        margin: 0.5rem 0; /* Adjust spacing */
    }
}
/* #endregion */
/* ============================================ */



/* ============================================ */
/* #region - 11. BACKGROUND ELEMENTS */
    /* #region - Background Video */
        .video-background {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -2; /* Behind particles */
            overflow: hidden;
        }

        #bg-video {
            position: absolute;
            top: 60%;
            left: 50%;
            min-width: 100%;
            min-height: 100%;
            width: auto;
            height: auto;
            transform: translateX(-50%) translateY(-50%);
            object-fit: cover;
            opacity: 0.05; /* Opacity of background video */
        }

        .video-overlay { /* This is a vignetting effect */
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(
                ellipse at center,
                transparent 0%,
                rgba(0,0,0,0.7) 70%
            );
        }
    /* #endregion - Background Video */


    /* #region - Three.js Canvas Background */
        /* Three.js Canvas Background - hide by default, use !important to override inline styles */
        canvas,
        canvas.cityscape-canvas {
            display: none !important; /* Hidden by default on desktop */
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            width: 100% !important;
            height: 100% !important;
            z-index: -1 !important; /* Above video background but behind content */
        }

        /* Show canvas background only on mobile devices */
        @media (max-width: 768px) {
            canvas,
            canvas.cityscape-canvas {
                display: block !important; /* Show on mobile */
                opacity: 0.5 !important; /* Subtle opacity for mobile background effect */
            }
        }
        

    /* #endregion - Three.js Canvas Background */
/* #endregion */
/* ============================================ */



/* ============================================ */
/* #region - 12. DETAILED RESPONSIVE MEDIA QUERIES */
    /* --- Media Queries for Different Screen Sizes --- */
        /* Small mobile devices (up to 480px) */
        /* Mobile First (up to 768px) */
        @media (max-width: 768px) {
            .main-nav {
                padding: 1rem 5%;
                flex-direction: column;
                align-items: flex-start;
            }
            
            .logo a {
                font-size: 1.5rem;
                margin-bottom: 0.8rem;
            }
            
            .nav-links {
                width: 100%;
            }
            
            .nav-links ul {
                flex-direction: column;
                width: 100%;
            }
            
            .nav-links li {
                margin-left: 0;
                margin-bottom: 0.8rem;
                width: 100%;
                text-align: left;
            }
            
            .hero h1 {
                font-size: clamp(2rem, 8vw, 3.5rem);
            }
            
            .hero p {
                font-size: 0.9rem;
                padding: 0 1rem;
            }
            
            .section-content {
                padding: 0 4%; /* Adjust padding for mobile */
            }
            
            .section-title {
                font-size: 1.8rem;
                margin-bottom: 2rem;
            }
            
            .why-us-content {
                grid-template-columns: 1fr;
            }
            
            .why-us-visual {
                margin-bottom: 2rem;
                min-height: 200px;
            }
            
            /* Extra small screens (480px and below) */
            @media (max-width: 480px) {
                .main-nav {
                    padding: 0.8rem 4%;
                }
                
                .section-content {
                    padding: 0 3%; /* Even tighter padding for very small screens */
                }
                
                .cta-button {
                    padding: 0.7rem 1.5rem;
                    font-size: 0.9rem;
                }
                
                .course-card {
                    padding: 1.5rem 1rem;
                }
            }
        }

        /* Tablet and Desktop (769px and above) */
        @media (min-width: 769px) {
            .main-nav {
                padding: 1.2rem 5%;
            }
            
            .course-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 2rem;
            }
            
            /* Large screens (1025px and above) */
            @media (min-width: 1025px) {
                .main-nav {
                    padding: 1.5rem 8%;
                }
                
                .section-content {
                    padding: 0 8%; /* Wider padding for large screens */
                    max-width: 1400px; /* Slightly wider max-width */
                }
                
                .course-grid {
                    grid-template-columns: repeat(3, 1fr);
                    gap: 2.5rem;
                }
            }
            
            /* Extra large screens (1441px and above) */
            @media (min-width: 1441px) {
                .main-nav {
                    padding: 1.5rem 10%;
                }
                
                .section-content {
                    padding: 0 10%; /* Even wider padding for extra large screens */
                    max-width: 1600px; /* Maximum content width for very large screens */
                }
                
                .hero {
                    min-height: 90vh;
                }
            }
        }

        /* Reduced motion and mobile video handling */
        @media (prefers-reduced-motion: reduce), (max-width: 768px) {
            #bg-video, .video-overlay {
                display: none;
            }
        }
/* #endregion */
/* ============================================ */



/* ============================================ */
/* #region - 13. MOBILE MENU COMPONENTS */
/* Create a mobile-first approach for the navigation */
.mobile-menu-toggle:hover {
    color: var(--accent-blue);
}

/* --- Mobile Menu Toggle Styling --- */
.mobile-menu-toggle {
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    margin: 3px 0;
    background-color: var(--text-light);
    border-radius: 3px;
    transition: all 0.3s linear;
}

/* Show the mobile menu toggle on mobile devices */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex; /* Show as flex to align the spans properly */
        position: absolute;
        right: 5%;
        top: 1.5rem;
    }
    
    /* When menu is active */
    .mobile-menu-toggle.active span:first-child {
        transform: translateY(9px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:last-child {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* Responsive navbar adjustments */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 5%;
        top: 1.5rem;
    }
    
    .nav-links {
        display: none; /* Hide by default on mobile */
        width: 100%;
    }
    
    .nav-links.active {
        display: block; /* Show when active class is applied via JS */
    }
    
    .logo {
        z-index: 1001; /* Keep logo above mobile menu */
    }
    
    /* Fixed height navbar on mobile */
    .main-nav {
        height: auto;
        min-height: 60px;
    }
}
/* #endregion */
/* ============================================ */



/* ============================================ */
/* #region - 14. UTILITIES AND CROSS-BROWSER COMPATIBILITY */
/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Fixed positioning for sticky elements */
@supports (position: sticky) {
    .main-nav {
        position: sticky;
        top: 0;
    }
}

@supports not (position: sticky) {
    .main-nav {
        position: fixed;
        top: 0;
        width: 100%;
    }
    
    body {
        padding-top: 70px; /* Adjust based on navbar height */
    }
}
/* #endregion */
/* ============================================ */