/* Global Styles & Variables */
:root {
    --primary-color: #545454;
    /* Dark Ash */
    --secondary-color: #ffffff;
    /* White */
    --text-dark: #333333;
    /* Charcoal */
    --text-light: #ffffff;
    --bg-light: #dcdcdc;
    /* Ash Grey Background */
    --bg-dark: #2c2c2c;
    /* Dark Grey Footer */
    --glass-bg: rgba(255, 255, 255, 0.15);
    /* Slightly more visible glass */
    --glass-border: rgba(255, 255, 255, 0.3);
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

ul {
    list-style: none;
}

/* Animations Utility */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar */
.navbar {
    background-color: rgba(0, 0, 0, 0.8);
    /* Semi-transparent black */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-light);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    font-weight: 400;
    /* Lighter font weight */
    font-size: 0.95rem;
    /* Slightly smaller text */
    letter-spacing: 0.5px;
    /* Spacing for elegance */
    opacity: 0.9;
}

.nav-links a:hover {
    color: var(--secondary-color);
    opacity: 1;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Mobile Menu */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--primary-color);
        text-align: center;
        padding: 1rem 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .nav-links.active {
        max-height: 300px;
        /* Adjust as needed */
    }

    .hamburger {
        display: block;
    }
}

/* Footer */
footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: bold;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}


/* Hero Section */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(98, 97, 97, 0.6), rgba(95, 95, 95, 0.6)), url('../assets/images/hero-student.png');
    /* Placeholder BG */
    background-size: cover;
    background-position: center;
    background-color: var(--primary-color);
    /* Fallback */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Sections & Grid */
.section {
    padding: 4rem 0;
}

.bg-light {
    background-color: #eaeaea;
}

.text-center {
    text-align: center;
    margin-bottom: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    background: rgba(255, 255, 255, 0.7);
    /* Semi-transparent white */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    /* Softer corners */
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-align: center;
    transition: transform 0.3s, background-color 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.9);
}



.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Page Header */
.page-header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Grid Variants */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Team Styles */
.team-img-placeholder {
    width: 100px;
    height: 100px;
    background-color: #ddd;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.role {
    color: var(--text-dark);
    /* Changed from secondary (white) to dark for visibility */
    font-weight: bold;
    margin-top: 0.5rem;
}

/* Active Link */
.active {
    color: var(--secondary-color) !important;
    border-bottom: 2px solid var(--secondary-color);
}

/* Contact Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
}

.map-placeholder {
    width: 100%;
    height: 300px;
    background-color: #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
    margin-top: 2rem;
    border-radius: 8px;
}

/* Mobile Responsiveness Enhancements */
@media (max-width: 768px) {

    /* Global Typography */
    html {
        font-size: 14px;
        /* Slightly smaller base font */
    }

    h1 {
        font-size: 2rem !important;
        /* Smaller headings */
    }

    h2 {
        font-size: 1.5rem;
    }

    .section {
        padding: 2rem 0;
        /* Reduce vertical padding */
    }

    .container {
        padding: 1rem;
        /* Reduce side padding */
    }

    /* Hero Section */
    .hero {
        height: 60vh;
        /* Shorter hero on mobile */
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Grid Adjustments */
    .grid-2,
    .grid-3 {
        gap: 1.5rem;
    }

    /* Form Adjustments */
    .form-group input,
    .form-group textarea {
        font-size: 1rem;
        /* Prevent zoom on iOS */
    }
}