:root {
    /* Apple-Inspired Premium Palette */
    --primary-color: #0c2461;
    --primary-light: #1e3799;
    --purple-deep: #2e1a47;
    --secondary-color: #d4af37;
    --secondary-light: #f1c40f;
    --text-dark: #1d1d1f;
    --text-gray: #86868b;
    --background-light: #ffffff;
    --background-off: #f5f5f7;
    --white: #ffffff;
    --glass: rgba(12, 36, 97, 0.7);
    --glass-light: rgba(255, 255, 255, 0.05);
    --gradient-premium: linear-gradient(135deg, #2e1a47 0%, #1e3799 100%);
    --gradient-blue: linear-gradient(135deg, #0c2461 0%, #1e3799 100%);

    --font-heading: 'League Spartan', sans-serif;
    --font-body: 'Outfit', sans-serif;

    --transition-slow: 0.8s cubic-bezier(0.28, 0.11, 0.32, 1);
    --transition-medium: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 8px 30px rgba(0, 0, 0, 0.04);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--background-light);
    line-height: 1.47059;
    /* Apple-style precision */
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header & Logo */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.logo-img {
    height: 48px !important;
    width: auto !important;
    object-fit: contain;
    max-height: 48px;
}

/* Glassmorphism Header */
.header {
    background: var(--gradient-blue);
    backdrop-filter: saturate(180%) blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-medium);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--white);
    letter-spacing: -0.02em;
    transition: font-size var(--transition-medium);
}

@media (max-width: 600px) {
    .logo-text {
        font-size: 0.85rem;
    }

    .header-container {
        padding: 0 1rem;
    }
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-list a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--white);
    opacity: 0.9;
    transition: opacity var(--transition-medium);
}

.nav-list a:hover {
    opacity: 1;
    color: var(--white);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Apple Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--gradient-premium);
    overflow: hidden;
    position: relative;
}

.hero-sm {
    height: 50vh;
    min-height: 400px;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    opacity: 0.6;
    filter: brightness(0.8);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 980px;
    padding: 0 40px;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.05;
    background: linear-gradient(180deg, #fff 0%, #a1a1a6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-weight: 500;
}

/* Scroll-Driven Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Bento-Inspired Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 1.5rem;
}

.bento-item {
    background: var(--background-off);
    border-radius: 28px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all var(--transition-medium);
    overflow: hidden;
    position: relative;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    transition: all var(--transition-medium);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.bento-item.large {
    grid-column: span 2;
    grid-row: span 2;
    background: var(--primary-color);
    color: var(--white);
}

.bento-item.wide {
    grid-column: span 2;
}

.bento-item h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.bento-item p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

.bento-item.large h3,
.bento-item.large p {
    color: var(--white);
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 980px;
    font-size: 1.1rem;
    font-weight: 500;
    display: inline-block;
}

.btn-primary {
    background: #0071e3;
    color: #fff;
}

.btn-primary:hover {
    background: #0077ed;
}

/* Footer Refinement */
.footer {
    background: var(--background-off);
    padding: 4rem 0 2rem;
    font-size: 0.75rem;
    color: var(--text-gray);
}

.footer-links a {
    color: var(--text-dark);
    margin-right: 1.5rem;
}



/* TEAM GRID REDESIGN */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 3rem;
    padding-top: 3rem;
}

.teacher-card {
    background: var(--white);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.teacher-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(12, 36, 97, 0.12);
}

.teacher-image-wrapper {
    height: 380px;
    position: relative;
    overflow: hidden;
}

.teacher-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.6s ease;
}

.teacher-card:hover .teacher-image-wrapper img {
    transform: scale(1.08);
}

.teacher-content {
    padding: 2.5rem;
    background: var(--white);
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.teacher-name {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.teacher-title {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    display: block;
}

.teacher-bio-preview {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.5s ease;
    max-height: 80px;
}

.teacher-card.expanded .teacher-bio-preview {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    max-height: 1000px;
    overflow: visible;
}

.read-more-btn {
    background: none;
    border: none;
    color: #0071e3;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    transition: gap 0.3s ease;
}

.read-more-btn::after {
    content: '→';
    transition: transform 0.3s ease;
}

.teacher-card.expanded .read-more-btn::after {
    content: '↑';
    transform: rotate(-90deg);
}

.teacher-card.expanded .read-more-btn {
    color: var(--text-gray);
}

/* MODAL STYLES */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 36, 97, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    max-width: 800px;
    width: 90%;
    background: white;
    border-radius: 32px;
    padding: 3rem;
    position: relative;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: var(--text-gray);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--primary-color);
}

.modal-body {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.modal-image {
    flex: 0 0 300px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-text h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.modal-text p {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .modal-image {
        flex: 0 0 250px;
        width: 100%;
    }

    .modal-content {
        padding: 2rem;
    }
}