/* =========================================
   1. GLOBAL VARIABLES & THEMING
   ========================================= */
/* Defining the "Trust & Ambition" color palette for cohesive branding */
:root {
    --primary-navy: #0A192F;    /* Evokes trust, academics, professionalism */
    --accent-amber: #FFC107;    /* High contrast CTA color to drive clicks */
    --accent-hover: #e0a800;    /* Slightly darker for hover states */
    --text-dark: #333333;       /* Softer than pure black for better reading */
    --text-light: #f8f9fa;      /* Used on dark backgrounds */
    --bg-light: #ffffff;        /* Main background */
    --bg-gray: #f4f7f6;         /* Secondary background to break up sections */
    --transition: all 0.3s ease-in-out; /* Standardized animation speed */
}

/* =========================================
   2. RESET & BASE TYPOGRAPHY
   ========================================= */
/* Resets default browser margins to ensure consistency across browsers */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Ensures padding doesn't affect overall width */
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6; /* Improves readability for blocks of text */
    background-color: var(--bg-light);
}

/* Standard container to keep content centered and constrained */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================================
   3. BUTTON COMPONENTS
   ========================================= */
.btn-primary {
    display: inline-block;
    background-color: var(--accent-amber);
    color: var(--primary-navy);
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    transition: var(--transition); /* Smooth hover effect */
    border: none;
    cursor: pointer;
}

/* Micro-animation: Button lifts up slightly when hovered */
.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.4);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* =========================================
   4. STICKY NAVIGATION
   ========================================= */
.navbar {
    background-color: var(--bg-light);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky; /* Keeps nav at the top while scrolling */
    top: 0;
    z-index: 1000; /* Ensures nav stays above all other content */
    padding: 15px 0;
}

/* Uses Flexbox to separate logo (left) and links (right) */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    color: var(--primary-navy);
    font-weight: 700;
}

.logo span {
    color: var(--accent-amber); /* Adds a subtle brand touch to the logo */
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: var(--transition);
}

/* Changes link color on hover, but ignores the button */
.nav-links a:hover:not(.btn-primary) {
    color: var(--accent-amber);
}

/* =========================================
   5. PURE CSS AUTOMATED HERO SLIDER
   ========================================= */
.hero {
    position: relative;
    width: 100%;
    height: 80vh; /* Takes up 80% of the viewport height */
    min-height: 500px;
    overflow: hidden; /* Hides slides that are off-screen */
    background-color: var(--primary-navy);
}

.slider {
    width: 100%;
    height: 100%;
}

/* Container holds 3 slides, so it needs to be 300% wide */
.slides {
    display: flex;
    width: 300%; 
    height: 100%;
    /* Calls the keyframe animation defined below */
    animation: slideAnimation 15s infinite;
}

/* Each individual slide takes up exactly one-third of the 300% width */
.slide {
    width: 33.333%; 
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Dark overlay to ensure white text is readable over any image */
.slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 25, 47, 0.7); 
    z-index: 1; /* Places overlay above image, below text */
}

/* Placeholder backgrounds. Replace gradients with actual image URLs */
.slide-1 { background-image: linear-gradient(45deg, #0A192F, #2c5364); }
.slide-2 { background-image: linear-gradient(45deg, #1f4037, #99f2c8); }
.slide-3 { background-image: linear-gradient(45deg, #141E30, #243B55); }

/* The actual text content inside the slide */
.slide-content {
    position: relative;
    z-index: 2; /* Ensures text stays above the dark overlay */
    color: var(--text-light);
    max-width: 800px;
}

.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* KEYFRAMES: Calculates movement based on 3 slides over 15 seconds */
/* 0-28% = Slide 1, 33-61% = Slide 2, 66-94% = Slide 3 */
@keyframes slideAnimation {
    0%, 28% { transform: translateX(0); }
    33%, 61% { transform: translateX(-33.333%); }
    66%, 94% { transform: translateX(-66.666%); }
    100% { transform: translateX(0); }
}

/* =========================================
   6. IMPACT STATISTICS (TRUST BAR)
   ========================================= */
.stats {
    background-color: var(--primary-navy);
    color: var(--text-light);
    padding: 40px 0;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap; /* Allows items to stack on smaller screens */
    text-align: center;
    gap: 20px;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--accent-amber);
    margin-bottom: 5px;
}

/* =========================================
   7. SERVICES GRID
   ========================================= */
.services {
    padding: 80px 0;
    background-color: var(--bg-gray);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    color: var(--primary-navy);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

/* Uses CSS Grid to automatically create columns based on screen width */
.services-grid {
    display: grid;
    /* Automatically fits as many 300px columns as possible */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition); /* Smooth hover animation */
}

/* Micro-animation: Cards float up on hover to encourage interaction */
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.service-card h3 {
    color: var(--primary-navy);
    margin-bottom: 15px;
}

.service-card p {
    margin-bottom: 20px;
    color: #555;
}

.read-more {
    color: var(--primary-navy);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--accent-amber);
}

/* =========================================
   8. MOBILE RESPONSIVENESS (MEDIA QUERIES)
   ========================================= */
/* Triggers when the screen is smaller than 768px (tablets/phones) */
@media (max-width: 768px) {
    /* Hides desktop navigation to make room for a future mobile menu */
    .nav-links {
        display: none; 
    }
    
    /* Shrinks hero text so it doesn't overflow the screen */
    .slide-content h1 {
        font-size: 2rem;
    }
    
    /* Stacks the impact statistics vertically */
    .stats-container {
        flex-direction: column;
    }
}

/* =========================================
           FOOTER
           ========================================= */
        footer { background-color: var(--brand-blue); color: rgba(255,255,255,0.8); padding: 80px 0 30px; }
        .footer-logo { max-height: 60px; margin-bottom: 20px; filter: brightness(0) invert(1); }
        .footer-title { color: var(--text-light); font-size: 1.2rem; margin-bottom: 25px; font-weight: 700; }
        .footer-links { list-style: none; padding: 0; }
        .footer-links li { margin-bottom: 12px; }
        .footer-links a { color: rgba(255,255,255,0.8); text-decoration: none; transition: all 0.3s; }
        .footer-links a:hover { color: var(--brand-red); padding-left: 5px; }
        .footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; margin-top: 50px; text-align: center; font-size: 0.9rem; }
        
        .scroll-hidden { opacity: 0; visibility: hidden; }