/* ============================================================
   KPI CST HUB — Pro Visual System
   Theme: "Cybernetic Blueprint"
   ============================================================ */

:root {
    --primary: #0ea5a0;
    --primary-glow: rgba(14, 165, 160, 0.4);
    --secondary: #c97f3e;
    --ink: #080c14;
    --ink-2: #111827;
    --ink-3: #1f2937;
    --ink-border: rgba(255, 255, 255, 0.08);
    --paper: #f8fafc;
    --surface: #ffffff;
    --surface-alt: #f1f5f9;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-on-dark: #f1f5f9;
    --text-on-dark-muted: #94a3b8;
    --line: #e2e8f0;
    --line-strong: #cbd5e1;
    --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    --font-body: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --glass-dark: rgba(8, 12, 20, 0.85);
    --blur: 12px;
}

/* Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text-main); background: var(--paper); line-height: 1.6; }
h1, h2, h3, h4 { font-family: var(--font-display); }
a { text-decoration: none; color: inherit; transition: var(--transition); }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 7rem 0; position: relative; }
.bg-light { background: var(--surface-alt); }
.bg-dark { background: var(--ink); color: var(--text-on-dark); }
.text-white { color: var(--text-on-dark); }

/* Buttons */
.btn-primary, .btn-ghost, .btn-admin {
    padding: 0.75rem 1.5rem; border-radius: var(--radius-sm); font-weight: 700;
    font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.02em; display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-primary { background: var(--primary); color: var(--ink); }
.btn-primary:hover { background: #14d2cc; transform: translateY(-2px); box-shadow: 0 0 20px var(--primary-glow); }
.btn-ghost { border: 1px solid var(--line); color: var(--text-main); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: rgba(14,165,160,0.05); }
.btn-admin { border: 1px solid var(--ink-border); color: white !important; }
.btn-admin:hover { border-color: var(--primary); color: var(--primary) !important; background: rgba(255,255,255,0.05); }

/* Navbar */
.navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 1.5rem 0; transition: var(--transition); }
.navbar.scrolled { padding: 0.8rem 0; background: var(--glass-dark); backdrop-filter: blur(var(--blur)); border-bottom: 1px solid var(--ink-border); box-shadow: var(--shadow-md); }
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 0.75rem; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: white; }
.logo i { color: var(--primary); }
.nav-links { display: flex; list-style: none; gap: 0.25rem; align-items: center; }
.nav-links > li { position: relative; }
.nav-links > li > a {
    color: var(--text-on-dark-muted);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-display);
}
.nav-links > li > a:hover, .nav-links > li > a.active { color: white; background: rgba(255, 255, 255, 0.1); }
.nav-links > li > a.active { color: var(--primary); }

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--ink-2);
    border: 1px solid var(--ink-border);
    border-top: 3px solid var(--primary);
    border-radius: var(--radius);
    min-width: 220px;
    padding: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    list-style: none;
    z-index: 1100;
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(5px); }
.dropdown-menu li { margin-bottom: 2px; }
.dropdown-menu li:last-child { margin-bottom: 0; }
.dropdown-menu li a {
    display: block;
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    color: var(--text-on-dark-muted);
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: 0.2s;
}
.dropdown-menu li a:hover { background: rgba(14, 165, 160, 0.15); color: var(--primary); transform: translateX(5px); }
.dropdown a i { font-size: 0.7rem; transition: transform 0.3s; }
.dropdown:hover a i { transform: rotate(180deg); }

.menu-toggle { display: none; color: white; font-size: 1.5rem; }

/* Hero */
.hero { height: 100vh; min-height: 650px; background: var(--ink); display: flex; align-items: center; position: relative; overflow: hidden; }
.hero-slider { position: absolute; inset: 0; z-index: 1; }
.slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.5s ease; }
.slide.active { opacity: 0.45; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at center, transparent 0%, var(--ink) 95%); z-index: 2; }
.hero-grid { position: absolute; inset: 0; z-index: 3; opacity: 0.3; background-image: linear-gradient(var(--ink-border) 1px, transparent 1px), linear-gradient(90deg, var(--ink-border) 1px, transparent 1px); background-size: 3rem 3rem; }
.hero-content { position: relative; z-index: 10; max-width: 850px; padding: 0 2rem; }
.hero-eyebrow { font-family: var(--font-mono); font-size: 0.85rem; color: var(--primary); text-transform: uppercase; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 1rem; }
.hero-eyebrow::before { content: ""; width: 2rem; height: 1px; background: var(--primary); }
.hero-title { font-size: clamp(2.5rem, 7vw, 4.5rem); color: white; line-height: 1.1; margin-bottom: 1.5rem; }
.hero-title em { font-style: normal; color: var(--primary); text-shadow: 0 0 20px var(--primary-glow); }
.hero-sub { font-size: 1.15rem; color: var(--text-on-dark-muted); margin-bottom: 2.5rem; max-width: 550px; }
.scroll-cue { position: absolute; bottom: 2.5rem; right: 3rem; z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: var(--text-on-dark-muted); font-family: var(--font-mono); font-size: 0.75rem; }
.scroll-cue i { animation: bounce 2s infinite; color: var(--primary); }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(8px); } 60% { transform: translateY(4px); } }

/* Stats */
.stats-section { margin-top: -5rem; position: relative; z-index: 20; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.stat-card { background: var(--ink-2); padding: 2.5rem; border-radius: var(--radius); border: 1px solid var(--ink-border); backdrop-filter: blur(10px); transition: var(--transition); }
.stat-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.stat-card i { font-size: 1.5rem; color: var(--primary); margin-bottom: 1.25rem; display: block; }
.stat-card h3 { font-family: var(--font-mono); font-size: 2.5rem; color: white; margin-bottom: 0.25rem; }
.stat-card p { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-on-dark-muted); text-transform: uppercase; letter-spacing: 0.1em; }

/* Utility Components */
.bracket { position: relative; }
.bracket::before, .bracket::after { content: ""; position: absolute; width: 20px; height: 20px; border-color: var(--primary); opacity: 0.8; pointer-events: none; transition: var(--transition); }
.bracket::before { top: 1rem; left: 1rem; border-top: 2px solid var(--primary); border-left: 2px solid var(--primary); }
.bracket::after { bottom: 1rem; right: 1rem; border-bottom: 2px solid var(--primary); border-right: 2px solid var(--primary); }

.hero-frame { position: absolute; inset: 2rem; z-index: 5; pointer-events: none; border: 1px solid rgba(255,255,255,0.05); }
.hero-frame::before, .hero-frame::after { content: ""; position: absolute; width: 30px; height: 30px; border-color: var(--primary); }
.hero-frame::before { top: -1px; left: -1px; border-top: 2px solid var(--primary); border-left: 2px solid var(--primary); }
.hero-frame::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--primary); border-right: 2px solid var(--primary); }
.hero-frame .fr-tr, .hero-frame .fr-bl { position: absolute; width: 30px; height: 30px; border-color: var(--secondary); }
.hero-frame .fr-tr { top: -1px; right: -1px; border-top: 2px solid var(--secondary); border-right: 2px solid var(--secondary); }
.hero-frame .fr-bl { bottom: -1px; left: -1px; border-bottom: 2px solid var(--secondary); border-left: 2px solid var(--secondary); }
.section-header { margin-bottom: 4rem; }
.section-header .eyebrow { font-family: var(--font-mono); font-size: 0.8rem; color: var(--primary); text-transform: uppercase; letter-spacing: 0.15em; display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.section-header .eyebrow::before { content: ""; width: 1.5rem; height: 1px; background: var(--primary); }
.section-header h2 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; margin-bottom: 1.25rem; }
.section-header .line { width: 60px; height: 4px; background: var(--primary); border-radius: 2px; }

/* Notices */
.notices-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.5rem; }
.notice-card { background: var(--surface); padding: 2.5rem; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: var(--transition); position: relative; display: flex; flex-direction: column; }
.notice-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.notice-category { position: absolute; top: 1.5rem; right: 1.5rem; font-family: var(--font-mono); font-size: 0.65rem; background: var(--surface-alt); padding: 0.3rem 0.75rem; border-radius: 4px; font-weight: 700; }
.notice-date { font-family: var(--font-mono); font-size: 0.8rem; color: var(--secondary); margin-bottom: 0.75rem; font-weight: 700; }
.notice-card h3 { font-size: 1.25rem; margin-bottom: 1rem; line-height: 1.4; }
.notice-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; flex-grow: 1; }

/* Teachers */
.filter-tabs { display: flex; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; }
.tab-btn { padding: 0.6rem 1.5rem; border-radius: 99px; font-family: var(--font-mono); font-size: 0.8rem; border: 1px solid var(--line-strong); color: var(--text-muted); }
.tab-btn:hover, .tab-btn.active { border-color: var(--ink); color: var(--ink); }
.tab-btn.active { background: var(--ink); color: white; }
.teachers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2rem; }
.teacher-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: var(--transition); }
.teacher-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.teacher-img-wrapper { height: 320px; overflow: hidden; }
.teacher-img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.teacher-card:hover .teacher-img { transform: scale(1.08); }
.teacher-info { padding: 1.5rem; }
.tr-designation { font-family: var(--font-mono); font-size: 0.8rem; color: var(--primary); font-weight: 700; margin-bottom: 1rem; display: block; }
.teacher-socials { display: flex; gap: 0.75rem; }
.teacher-socials a { width: 36px; height: 36px; border-radius: 8px; background: var(--surface-alt); display: flex; align-items: center; justify-content: center; color: var(--text-muted); border: 1px solid transparent; }
.teacher-socials a:hover { background: var(--ink); color: white; border-color: var(--primary); }

/* Student Records */
.student-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.search-box-wrapper {
    position: relative;
    width: 100%;
}

.search-box-wrapper i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box-wrapper input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-strong);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.search-box-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.filter-group {
    display: flex;
    gap: 1rem;
}

.custom-select {
    flex: 1;
}

.custom-select select {
    width: 100%;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-strong);
    background: var(--surface);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

.custom-select select:focus {
    outline: none;
    border-color: var(--primary);
}

.students-record-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.student-record-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.student-record-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.student-card-header {
    width: 100%;
    height: 100px;
    background: linear-gradient(135deg, #166534 0%, #22c55e 100%);
    position: relative;
}

.student-card-img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 4px solid var(--surface);
    object-fit: cover;
    margin-top: -55px;
    position: relative;
    z-index: 2;
    background: var(--surface-alt);
    box-shadow: var(--shadow-md);
}

.student-card-body {
    padding: 1.5rem;
    width: 100%;
}

.student-card-body h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.student-card-body .roll {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    display: block;
}

.student-card-tags {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.tag-semester, .tag-shift {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tag-semester {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
}

.tag-shift {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #ffedd5;
}

@media (min-width: 768px) {
    .student-controls {
        flex-direction: row;
        align-items: center;
    }
    .search-box-wrapper {
        flex: 2;
    }
    .filter-group {
        flex: 1.5;
    }
}

/* Projects & Practicals */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2rem; }
.project-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: var(--transition); }
.project-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.project-img-container { height: 220px; background: var(--surface-alt); }
.project-img { width: 100%; height: 100%; object-fit: cover; }
.project-body { padding: 1.75rem; }
.student-tag { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.student-tag img { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); }
.student-tag span { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.action-btns { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn-details, .btn-visit, .btn-github { padding: 0.6rem 1.2rem; border-radius: 8px; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; border: 1px solid var(--line); display: flex; align-items: center; gap: 0.5rem; }
.btn-visit { border-color: var(--primary); color: var(--primary); }
.btn-visit:hover { background: var(--primary); color: white; }
.btn-github { border-color: #24292e; color: #24292e; }
.btn-github:hover { background: #24292e; color: white; }

/* Quick Links & Jobs */
.q-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.q-card { background: var(--surface); padding: 2.5rem; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.mini-item { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 0; border-bottom: 1px dashed var(--line); }
.mini-item:last-child { border-bottom: none; }
.tag { font-family: var(--font-mono); font-size: 0.65rem; background: var(--ink); color: white; padding: 0.25rem 0.6rem; border-radius: 4px; font-weight: 700; }
.name { font-size: 0.9rem; font-weight: 600; color: var(--text-main); }
.download-icon { color: var(--primary); font-size: 1.1rem; }

.jobs-list { display: flex; flex-direction: column; gap: 1rem; }
.job-item { background: var(--ink-2); padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--ink-border); display: flex; align-items: center; gap: 1.25rem; transition: var(--transition); }
.job-item:hover { background: var(--ink-3); border-color: var(--primary); }
.job-info h4 { color: white; font-size: 1.05rem; margin-bottom: 0.25rem; }
.job-info p { color: var(--text-on-dark-muted); font-size: 0.85rem; font-family: var(--font-mono); }
.btn-apply { margin-left: auto; padding: 0.6rem 1.25rem; border-radius: 8px; border: 1px solid var(--primary); color: var(--primary); font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; }
.btn-apply:hover { background: var(--primary); color: var(--ink); }

/* Alumni */
.alumni-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }
.alumni-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: var(--transition); text-align: center; padding: 2.5rem 1.5rem; }
.alumni-card:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: var(--shadow-lg); }
.alumni-card img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin-bottom: 1.5rem; border: 3px solid var(--surface-alt); }
.alumni-card h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.alumni-card p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1.5rem; font-family: var(--font-mono); }
.btn-view-profile { display: inline-block; padding: 0.6rem 1.25rem; border-radius: 8px; background: var(--ink); color: white; font-size: 0.8rem; font-family: var(--font-mono); font-weight: 700; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.gallery-item { position: relative; height: 240px; border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); display: flex; align-items: flex-end; padding: 1.5rem; opacity: 0; transition: var(--transition); color: white; font-family: var(--font-mono); font-size: 0.85rem; gap: 0.75rem; }
.gallery-item:hover .overlay { opacity: 1; }

.gallery-detail { background: var(--ink); border-radius: var(--radius-lg); overflow: hidden; }
.gallery-main-img { width: 100%; max-height: 75vh; object-fit: contain; background: #000; display: block; }
.gallery-caption-box { padding: 2rem; background: var(--surface); border-top: 4px solid var(--primary); text-align: left; }
.gallery-caption { font-size: 1.25rem; font-weight: 700; color: var(--text-main); margin-bottom: 0.5rem; line-height: 1.4; }
.gallery-date { font-family: var(--font-mono); font-size: 0.8rem; color: var(--primary); font-weight: 600; text-transform: uppercase; }

/* About Section */
.about-section-item { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-bottom: 6rem; }
.about-section-item:nth-child(even) { direction: rtl; }
.about-section-item:nth-child(even) .about-text { direction: ltr; }
.about-text h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
.about-text p { font-size: 1.1rem; color: var(--text-muted); }
.about-img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* Modals */
.modal { display: none; position: fixed; inset: 0; background: rgba(8, 12, 20, 0.9); backdrop-filter: blur(10px); z-index: 2000; }
.modal-content { background: var(--surface); width: 95%; max-width: 850px; margin: 5vh auto; border-radius: var(--radius-lg); padding: 3.5rem; position: relative; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.close-modal { position: absolute; top: 1.5rem; right: 2rem; font-size: 2rem; color: var(--text-muted); cursor: pointer; transition: var(--transition); }
.close-modal:hover { color: var(--error); transform: rotate(90deg); }

/* Alumni Full Profile Modal */
.full-profile { padding: 0 !important; overflow: hidden !important; }
.alumni-modal-header { background: var(--ink); color: white; padding: 1.25rem 2rem; display: flex; align-items: center; gap: 1rem; font-family: var(--font-mono); font-size: 0.9rem; }
.alumni-profile-summary { text-align: center; padding: 3rem 2rem; background: var(--surface-alt); border-bottom: 1px solid var(--line); }
.alumni-profile-summary img { width: 140px; height: 140px; border-radius: 50%; border: 4px solid white; box-shadow: var(--shadow-md); margin-bottom: 1.5rem; }

/* Teacher Detail Modal */
.tr-modal-header { display: flex; align-items: center; gap: 2rem; margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.tr-modal-img { width: 150px; height: 150px; border-radius: var(--radius); object-fit: cover; border: 4px solid var(--surface-alt); box-shadow: var(--shadow-md); }
.tr-modal-basics h2 { font-size: 2rem; margin-bottom: 0.5rem; color: var(--text-main); }
.tr-modal-basics .dept-tag { background: var(--primary-glow); color: var(--primary); padding: 0.3rem 0.8rem; border-radius: 4px; font-weight: 700; font-size: 0.75rem; font-family: var(--font-mono); text-transform: uppercase; }

.tr-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 2.5rem; }
.tr-info-card { background: var(--surface-alt); padding: 1.25rem; border-radius: var(--radius-sm); border-left: 3px solid var(--primary); }
.tr-info-card i { color: var(--primary); margin-bottom: 0.75rem; display: block; }
.tr-info-card small { color: var(--text-muted); font-weight: 700; text-transform: uppercase; font-size: 0.65rem; display: block; margin-bottom: 0.25rem; }
.tr-info-card p { margin: 0; font-weight: 600; font-size: 0.95rem; color: var(--text-main); }

.tr-expertise-sec { margin-bottom: 2rem; }
.tr-expertise-sec h4 { font-family: var(--font-mono); font-size: 0.85rem; color: var(--secondary); text-transform: uppercase; margin-bottom: 1rem; border-bottom: 1px dashed var(--line-strong); padding-bottom: 0.5rem; }
.tr-expertise-list { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.tr-badge { background: white; border: 1px solid var(--line); padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.85rem; font-weight: 500; }
.alumni-detail-body { padding: 3rem; overflow-y: auto; max-height: 50vh; }
.detail-sec-title { font-size: 1.1rem; color: var(--primary); font-family: var(--font-mono); text-transform: uppercase; margin: 2rem 0 1rem; border-left: 4px solid var(--primary); padding-left: 1rem; }
.prof-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.info-item { font-size: 0.95rem; display: flex; align-items: center; gap: 0.75rem; color: var(--text-main); font-weight: 500; }
.info-item i { color: var(--primary); }
.success-journey-box, .advice-box { background: var(--surface-alt); padding: 1.5rem; border-radius: var(--radius); border-left: 4px solid var(--secondary); margin-bottom: 1.5rem; }
.social-links-footer { display: flex; gap: 1rem; margin-top: 3rem; }
.social-link-item { padding: 0.75rem 1.5rem; border-radius: 8px; border: 1px solid var(--line); display: flex; align-items: center; gap: 0.75rem; font-family: var(--font-mono); font-size: 0.85rem; font-weight: 700; }

/* Footer */
.footer { background: var(--ink); padding: 6rem 0 0; color: var(--text-on-dark-muted); border-top: 1px solid var(--ink-border); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 4rem; padding-bottom: 4rem; }
.footer h4 { color: white; font-family: var(--font-mono); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 1.5rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a:hover { color: var(--primary); padding-left: 0.5rem; }
.footer-contact p { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; font-size: 0.9rem; }
.footer-contact i { color: var(--primary); }
.footer-bottom { padding: 2rem 0; border-top: 1px solid var(--ink-border); text-align: center; font-family: var(--font-mono); font-size: 0.8rem; }

.loading { text-align: center; padding: 3rem; color: var(--text-muted); font-family: var(--font-mono); font-size: 0.9rem; grid-column: 1 / -1; }
.loading::after { content: "..."; animation: dots 1.5s infinite; }
@keyframes dots { 0% { content: "."; } 33% { content: ".."; } 66% { content: "..."; } }
.no-data { text-align: center; padding: 2rem; color: var(--text-muted); font-style: italic; grid-column: 1 / -1; }
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .about-section-item { grid-template-columns: 1fr; gap: 2rem; }
    .about-section-item:nth-child(even) { direction: ltr; }
}
@media (max-width: 768px) {
    .navbar { padding: 1rem 0; background: var(--glass-dark); backdrop-filter: blur(10px); }
    .menu-toggle { display: block; }
    .nav-links { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--ink-2); flex-direction: column; padding: 1.5rem; border-bottom: 1px solid var(--ink-border); }
    .nav-links.active { display: flex; }
    .hero-content { text-align: center; }
    .hero-eyebrow { justify-content: center; }
    .hero-actions { justify-content: center; flex-direction: column; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
    .prof-info-grid { grid-template-columns: 1fr; }
    .modal-content { padding: 2rem; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
}
