/* Modern UI Token System */
:root {
    --brand-green: #2E7D32;
    --brand-blue: #1565C0;
    --brand-dark: #121212;
    --brand-light: #f8f9fa;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #2E7D32 0%, #43A047 100%);
    --gradient-secondary: linear-gradient(135deg, #1565C0 0%, #1E88E5 100%);
    --gradient-hero: linear-gradient(135deg, rgba(46, 125, 50, 0.9) 0%, rgba(21, 101, 192, 0.8) 100%);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--brand-dark);
    background-color: #f4f6f8;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    /* Switched to Montserrat for a more modern geo-grotesque look */
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Glassmorphism Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 10px 0 !important;
}

.nav-link {
    color: var(--brand-dark) !important;
    font-weight: 600;
    font-size: 0.9rem;
    /* Reduced from 0.95rem */
    padding: 0.5rem 0.6rem !important;
    /* Reduced side padding */
    white-space: nowrap;
    /* Prevent text wrapping */
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-green) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background-color: var(--brand-green);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 25px;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-hero), url('https://images.unsplash.com/photo-1541872703-74c5963631df?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 85vh;
    /* Taller hero */
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    /* Modern angled bottom */
    border-bottom: none;
    position: relative;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Modern Cards */
.card {
    border: none;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.badge {
    padding: 0.5em 1em;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Section Styling */
.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.h-line {
    width: 80px;
    height: 6px;
    border-radius: 3px;
    background: var(--gradient-primary) !important;
    margin-bottom: 3rem;
}

/* Buttons */
.btn {
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
}

.btn-brand {
    background: var(--gradient-primary);
    color: white;
}

.btn-brand:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.4);
    color: white;
}

/* Achievements */
#achievements {
    background: var(--brand-dark);
    position: relative;
    overflow: hidden;
}

#achievements::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(46, 125, 50, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
}

.counter-box h2 {
    font-size: 3.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Footer */
footer {
    background: #0f1114;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--brand-green);
    transform: translateY(-3px);
}

/* Text Colors */
.text-brand-primary {
    color: var(--brand-green) !important;
}

.text-brand-secondary {
    color: var(--brand-blue) !important;
}

.bg-brand-secondary {
    background-color: var(--brand-blue) !important;
}

.bg-brand-primary {
    background-color: var(--brand-green) !important;
}

/* --- Responsive Media Queries --- */

/* Laptops & Tablets (Max 991px) */
@media (max-width: 991px) {
    .navbar-collapse {
        background: #fff;
        padding: 1rem;
        border-radius: 12px;
        margin-top: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-section {
        height: auto;
        min-height: 70vh;
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    }

    .counter-box h2 {
        font-size: 2.5rem;
    }
}

/* Mobile Devices (Max 768px) */
@media (max-width: 768px) {
    body {
        font-size: 15px;
        /* Better readability on mobile */
    }

    /* Adjust Hero */
    .hero-section {
        height: auto;
        min-height: 80vh;
        padding: 80px 0 60px 0;
        clip-path: none;
        /* Remove clip path for better mobile flow */
    }

    .hero-title {
        font-size: 2.2rem !important;
        /* Force resize */
        margin-bottom: 2rem !important;
    }

    .lead {
        font-size: 1.1rem !important;
    }

    /* Stack buttons nicely */
    .hero-section .d-flex {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }

    .hero-section .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    /* Adjust Section Titles */
    .section-title h2 {
        font-size: 2rem;
    }

    /* Cards */
    .card-img-top {
        height: 200px;
    }

    /* Counters */
    .counter-box {
        margin-bottom: 2rem;
    }

    .display-3 {
        font-size: 2.5rem;
        /* Smaller counter numbers */
    }

    /* Footer */
    .footer .row {
        text-align: center;
    }

    .footer .col-lg-4 {
        margin-bottom: 2rem;
    }
}