@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@700;800&display=swap');

:root {
    /* Color Palette */
    --primary-color: #1a4332; /* Deep Forest Green */
    --primary-light: #2c5e47;
    --accent-color: #c5a059;  /* Academic Gold */
    --accent-light: #e6c17a;
    --text-dark: #1a1a1a;
    --text-muted: #666666;
    --bg-light: #f9fbf9;
    --white: #ffffff;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    line-height: 1.2;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-padding {
    padding: var(--spacing-lg) 0;
}

.text-center { text-align: center; }
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
}

.btn-accent:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Header Styles */
header {
    background: var(--white);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001; /* Stay above mobile menu */
    position: relative;
}

.logo-text {
    line-height: 1.2;
    display: inline-block;
    white-space: nowrap;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    transition: var(--transition-smooth);
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1001; /* Stay above mobile menu */
    position: relative;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(26, 67, 50, 0.7), rgba(26, 67, 50, 0.4)), url('../assets/hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    color: var(--white);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: var(--spacing-sm);
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
    animation: fadeInUp 1.2s ease-out;
}

.hero-btns {
    display: flex;
    gap: var(--spacing-sm);
    animation: fadeInUp 1.4s ease-out;
}

/* Stats Section */
.stats {
    background: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-lg) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.stat-item h3 {
    color: var(--accent-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.feature-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border-top: 4px solid var(--accent-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-card i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    h1 { font-size: clamp(2rem, 6vw, 3rem) !important; }
    h2 { font-size: clamp(1.8rem, 5vw, 2.5rem) !important; }
    
    .section-padding { padding: 3rem 0; }
}

@media (max-width: 768px) {
    /* Header & Navigation */
    .mobile-toggle {
        display: block !important;
        background: transparent !important;
        border: none !important;
        padding: 5px;
        margin-left: auto;
    }
    
    .header-actions {
        gap: 0;
    }
    
    .header-actions .btn {
        display: none !important; 
    }
    
    .logo {
        font-size: 0.9rem !important;
        gap: 5px !important;
    }
    
    .logo-text {
        white-space: normal !important;
    }
    
    .logo img {
        height: 32px !important;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        backdrop-filter: blur(10px);
        z-index: 1000;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        font-size: 1.5rem;
    }

    /* Hero */
    .hero {
        padding-top: 100px;
        text-align: center;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Layouts */
    .features-grid, .stats-grid {
        grid-template-columns: 1fr;
    }
    
    /* Force any inline grid layouts to stack on mobile */
    div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Force any inline flex layouts to stack if they use gap and center */
    div[style*="display: flex;"][style*="justify-content: center;"] {
        flex-direction: column !important;
        align-items: center !important;
    }
    
    /* Footer */
    footer > .container > div {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    footer ul {
        align-items: center;
    }
}
