/* Base Variables */
:root {
    --primary-green: #064e3b;
    --primary-light: #0f766e;
    --secondary-gold: #fbbf24;
    --gold-dark: #d97706;
    --dark-bg: #0f172a;
    --dark-card: #1e293b;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-bg-dark: rgba(15, 23, 42, 0.7);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

.urdu-text {
    font-family: 'Noto Nastaliq Urdu', serif;
    direction: rtl;
    line-height: 2;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

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

.text-gold { color: var(--secondary-gold); }
.bg-light { background-color: rgba(255, 255, 255, 0.03); }
.text-center { text-align: center; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.w-100 { width: 100%; }

/* Typography Extras */
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-dark), var(--secondary-gold));
    color: var(--dark-bg);
}
.btn-primary:hover {
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--secondary-gold);
    color: var(--secondary-gold);
}
.btn-outline:hover {
    background: var(--secondary-gold);
    color: var(--dark-bg);
}

.btn-outline-light {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}
.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-green);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
}
.btn-glass:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 1000;
    transition: var(--transition);
}
.navbar.scrolled {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    padding: 0.5rem 0;
}

.nav-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Premium Branding */
.premium-brand {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-shrink: 0;
}
.premium-brand .logo-icon {
    font-size: 2.2rem;
    color: var(--secondary-gold);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(251, 191, 36, 0.05));
    padding: 0.8rem;
    border-radius: 16px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.premium-brand .logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    flex-shrink: 0;
    white-space: nowrap;
}
.premium-brand .brand-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: white;
    margin: 0;
    line-height: 1.2;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.premium-brand .brand-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    color: var(--secondary-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    margin-top: 2px;
}
.premium-brand .brand-urdu {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 0.85rem !important;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 5px;
    line-height: 1.4;
    font-weight: 400;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.8rem;
    white-space: nowrap;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    font-size: 0.85rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--secondary-gold);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 0.5rem;
    white-space: nowrap;
    align-items: center;
}

.nav-actions .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 800px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    overflow: hidden;
    /* Use local path after copying, fallback here */
    background: url('assets/hero_background.png') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.85) 0%, rgba(15, 23, 42, 0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    animation: fadeInUp 1s ease;
}

.badge {
    background: rgba(251, 191, 36, 0.2);
    border: 1px solid var(--secondary-gold);
    color: var(--secondary-gold);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-urdu {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
}

.stat-card .stat-num {
    font-size: 2.5rem;
    color: var(--secondary-gold);
    font-weight: 700;
}

.stat-card p {
    color: var(--text-muted);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sections */
.section-padding {
    padding: 6rem 2rem;
}

.section-header {
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}
.align-center {
    align-items: center;
}

/* Dual Experience Section */
.experience-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.exp-card {
    flex: 1;
    background: var(--dark-card);
    border-radius: 20px;
    padding: 3rem 2rem;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
    z-index: 2;
}

.student-card {
    background: linear-gradient(145deg, var(--primary-green), #022c22);
}

.teacher-card {
    background: linear-gradient(145deg, #1e293b, #0f172a);
}

.exp-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.exp-icon {
    font-size: 3rem;
    color: var(--secondary-gold);
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    margin-top: 1.5rem;
}

.feature-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.exp-image-container {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.exp-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--secondary-gold);
    position: relative;
    z-index: 2;
}

.pulse-ring {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 2px solid var(--secondary-gold);
    animation: pulse 2s infinite;
    z-index: 1;
}

/* --- Study Materials Section --- */
.study-materials-section {
    position: relative;
    z-index: 2;
}
.study-materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Learning Hub */
.learning-hub {
    background: linear-gradient(to bottom, var(--dark-bg), #020617);
}

.hub-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: var(--dark-card);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tab-btn:hover, .tab-btn.active {
    background: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
    box-shadow: 0 4px 15px rgba(6, 78, 59, 0.5);
}

.hub-content-container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--dark-card);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid var(--glass-border);
    min-height: 500px;
}

.hub-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.hub-pane.active {
    display: block;
}

/* Qaida Board */
.qaida-header {
    text-align: center;
    margin-bottom: 2rem;
}

.alphabet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 1rem;
    direction: rtl;
}

.alpha-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.alpha-card:hover {
    background: var(--primary-green);
    transform: translateY(-5px) scale(1.05);
    border-color: var(--secondary-gold);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.alpha-card .urdu-char {
    font-size: 2.5rem;
    color: var(--secondary-gold);
    font-family: 'Noto Nastaliq Urdu', serif;
}

.alpha-card .roman-char {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-family: 'Inter', sans-serif;
}

/* Tracing Canvas */
.tracing-container {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.tracing-controls {
    flex: 1;
}

.letter-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
    direction: rtl;
}

.trace-char-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 1.2rem;
    font-family: 'Noto Nastaliq Urdu';
    cursor: pointer;
    transition: 0.2s;
}

.trace-char-btn:hover, .trace-char-btn.active {
    background: var(--secondary-gold);
    color: var(--dark-bg);
}

.canvas-tools {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.color-picker {
    display: flex;
    gap: 0.5rem;
}

.color-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
}
.color-swatch.active {
    border-color: white;
    transform: scale(1.1);
}

.canvas-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    background: var(--text-light);
    border-radius: 20px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.canvas-watermark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 250px;
    color: rgba(0,0,0,0.05);
    pointer-events: none;
    user-select: none;
    z-index: 1;
}

#tracing-canvas {
    position: relative;
    z-index: 2;
    cursor: crosshair;
}

/* Quiz */
.quiz-container {
    text-align: center;
}
.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.score-board {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-gold);
}
.quiz-question {
    font-size: 2rem;
    margin-bottom: 2rem;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.quiz-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto 2rem;
}
.quiz-opt-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.2s;
}
.quiz-opt-btn:hover {
    background: rgba(255,255,255,0.15);
}
.quiz-opt-btn.correct {
    background: var(--primary-green);
    border-color: var(--primary-green);
}
.quiz-opt-btn.wrong {
    background: #ef4444;
    border-color: #ef4444;
}

/* Form Controls */
.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--secondary-gold);
    background: rgba(255, 255, 255, 0.1);
}
.form-control option {
    background: var(--dark-bg);
    color: white;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-muted);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Checkboxes */
.checkbox-container {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    user-select: none;
}
.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: rgba(255,255,255,0.1);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
}
.checkbox-container:hover input ~ .checkmark {
    background-color: rgba(255,255,255,0.2);
}
.checkbox-container input:checked ~ .checkmark {
    background-color: var(--secondary-gold);
}
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}
.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}
.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid var(--dark-bg);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Receipt Area */
.receipt {
    margin-top: 2rem;
    background: rgba(0,0,0,0.2);
    padding: 1.5rem;
    border-radius: 10px;
}
.receipt-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}
.receipt-total {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(255,255,255,0.2);
    font-size: 1.25rem;
    font-weight: 700;
}

/* Premium Fee Calculator */
.premium-calculator {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #020617 0%, #064e3b 100%);
}
.calc-bg-elements {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}
.orb-1 { width: 400px; height: 400px; background: var(--secondary-gold); top: -100px; right: -100px; }
.orb-2 { width: 300px; height: 300px; background: var(--primary-light); bottom: -100px; left: -100px; }

.premium-text h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.gradient-text {
    background: linear-gradient(to right, var(--secondary-gold), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.lead-text { font-size: 1.1rem; color: rgba(255,255,255,0.8); }
.premium-list { list-style: none; margin-top: 2rem; }
.premium-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: var(--secondary-gold);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.list-content h4 { font-size: 1.2rem; margin-bottom: 0.2rem; }
.list-content p { color: var(--text-muted); font-size: 0.95rem; }

.premium-glass-panel {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.panel-header { display: flex; align-items: center; gap: 1rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 1rem; }
.header-icon { font-size: 2rem; color: var(--secondary-gold); }

.premium-input label { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 0.5rem; }
.select-wrapper { position: relative; }
.glass-select {
    width: 100%;
    appearance: none;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}
.glass-select:focus { border-color: var(--secondary-gold); outline: none; background: rgba(255,255,255,0.1); }
.select-arrow {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-gold);
    pointer-events: none;
}

.premium-toggles { display: flex; flex-direction: column; gap: 1rem; }
.toggle-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}
.toggle-container:hover { background: rgba(255, 255, 255, 0.08); }
.toggle-label { display: flex; align-items: center; gap: 0.8rem; font-size: 1.1rem; }
.toggle-label i { color: var(--primary-light); }
.toggle-switch { position: relative; width: 50px; height: 26px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer; inset: 0; background-color: rgba(255,255,255,0.2);
    transition: .4s; border-radius: 34px;
}
.slider:before {
    position: absolute; content: ""; height: 20px; width: 20px; left: 3px; bottom: 3px;
    background-color: white; transition: .4s; border-radius: 50%;
}
.toggle-switch input:checked + .slider { background-color: var(--secondary-gold); }
.toggle-switch input:checked + .slider:before { transform: translateX(24px); }

.premium-receipt {
    background: rgba(0,0,0,0.3);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}
.receipt-header {
    background: rgba(255,255,255,0.02);
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.receipt-body { padding: 1.5rem; }
.receipt-row { display: flex; justify-content: space-between; margin-bottom: 1rem; align-items: center; font-size: 1.1rem; }
.receipt-row:last-child { margin-bottom: 0; }
.receipt-row span i { width: 25px; }
.receipt-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: rgba(251, 191, 36, 0.1);
    border-top: 1px solid rgba(251, 191, 36, 0.2);
}
.total-label { font-size: 1.2rem; font-weight: 500; }
.total-value { font-size: 1.8rem; font-weight: 700; }

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}
.info-item {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}
.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-gold);
    margin-top: 0.25rem;
}
.social-links {
    display: flex;
    gap: 1rem;
}
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: 0.3s;
}
.social-links a:hover {
    background: var(--secondary-gold);
    color: var(--dark-bg);
    transform: translateY(-3px);
}

/* Premium Admissions Section */
.premium-admissions {
    position: relative;
    background: linear-gradient(to bottom, #020617, #0f172a);
    overflow: hidden;
}
.admissions-bg-glow {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vh;
    background: radial-gradient(circle, rgba(251,191,36,0.08) 0%, rgba(2,6,23,0) 70%);
    pointer-events: none;
}
.premium-contact-grid {
    gap: 3rem;
    align-items: stretch;
}
.premium-info-card {
    position: relative;
    background: linear-gradient(145deg, var(--primary-green), #022c22);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    color: white;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}
.card-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: radial-gradient(var(--secondary-gold) 2px, transparent 2px);
    background-size: 30px 30px;
    z-index: 0;
}
.premium-info-card > * { position: relative; z-index: 1; }
.premium-info-card h3 { font-size: 1.8rem; color: var(--secondary-gold); }
.premium-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}
.premium-info-item:hover { transform: translateX(10px); }
.icon-circle {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--secondary-gold);
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.premium-info-item:hover .icon-circle { background: var(--secondary-gold); color: var(--dark-bg); box-shadow: 0 0 15px var(--secondary-gold); }
.premium-info-item h4 { font-size: 1.1rem; margin-bottom: 0.3rem; color: white; }
.premium-info-item p { color: rgba(255,255,255,0.8); font-size: 0.95rem; }

.premium-social a {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 1.2rem;
}
.premium-social a:hover {
    background: var(--secondary-gold);
    color: var(--dark-bg);
    border-color: var(--secondary-gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(251,191,36,0.3);
}

.premium-form-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.premium-form-card h3 { font-size: 2rem; color: white; border-bottom: 2px solid rgba(255,255,255,0.05); padding-bottom: 1rem; }
.premium-input-field {
    width: 100%;
    padding: 1.2rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.premium-input-field:focus {
    outline: none;
    background: rgba(255,255,255,0.08);
    border-color: var(--secondary-gold);
    box-shadow: 0 0 15px rgba(251,191,36,0.2);
}
.premium-input-field::placeholder { color: rgba(255,255,255,0.3); }

.premium-submit-btn {
    background: linear-gradient(135deg, var(--secondary-gold), #d97706);
    color: #0f172a;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1.2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: all 0.4s ease;
    border: none;
    box-shadow: 0 10px 20px rgba(251,191,36,0.3);
}
.premium-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(251,191,36,0.5);
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

/* Footer */
footer {
    background: #020617;
    padding: 4rem 2rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}
.footer-brand p {
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 300px;
}
.footer-links h3 {
    margin-bottom: 1.5rem;
    color: var(--white);
}
.footer-links ul {
    list-style: none;
}
.footer-links ul li {
    margin-bottom: 0.75rem;
}
.footer-links ul li a {
    color: var(--text-muted);
}
.footer-links ul li a:hover {
    color: var(--secondary-gold);
}
.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.modal-content {
    width: 100%;
    max-width: 500px;
    position: relative;
    transform: scale(0.9);
    transition: 0.3s;
}
.modal-overlay.active .modal-content {
    transform: scale(1);
}
.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Additional Utilities */
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-5 { margin-top: 3rem; }
.p-0 { padding: 0; }
.p-3 { padding: 1rem; }
.text-dark { color: #0f172a !important; }
.bg-white { background-color: #ffffff !important; }

/* Premium Classes Grid */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}
.premium-class-card {
    position: relative;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    z-index: 1;
}
.premium-class-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-green);
    box-shadow: 0 15px 35px rgba(6, 78, 59, 0.3);
}
.class-bg-icon {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.03);
    z-index: -1;
    transform: rotate(15deg);
    transition: transform 0.5s ease;
}
.premium-class-card:hover .class-bg-icon {
    transform: rotate(0deg) scale(1.1);
    color: rgba(6, 78, 59, 0.1);
}
.class-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.2), rgba(6, 78, 59, 0.05));
    border: 1px solid rgba(6, 78, 59, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-light);
    box-shadow: 0 0 20px rgba(6, 78, 59, 0.2);
    transition: all 0.4s ease;
}
.premium-class-card:hover .class-icon {
    background: var(--primary-green);
    color: var(--white);
    box-shadow: 0 0 30px rgba(6, 78, 59, 0.5);
    transform: scale(1.1);
}
.premium-class-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.premium-class-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Premium Streams Grid */
.streams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}
.premium-stream-card {
    position: relative;
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    color: white;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
}
.premium-stream-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.premium-stream-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    filter: brightness(0.8);
    z-index: -2;
}
.stream-bg-icon {
    position: absolute;
    bottom: -30px;
    left: -20px;
    font-size: 10rem;
    color: rgba(255, 255, 255, 0.1);
    z-index: -1;
    transform: rotate(-15deg);
    transition: transform 0.5s ease;
}
.premium-stream-card:hover .stream-bg-icon {
    transform: rotate(0deg) scale(1.2);
}
.stream-content i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.5));
}
.stream-content h4 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}
.stream-content p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
}
.stream-science { background: linear-gradient(135deg, #0284c7, #0369a1); border: 1px solid #38bdf8; box-shadow: inset 0 0 30px rgba(56, 189, 248, 0.3); }
.stream-commerce { background: linear-gradient(135deg, #d97706, #b45309); border: 1px solid #fbbf24; box-shadow: inset 0 0 30px rgba(251, 191, 36, 0.3); }
.stream-arts { background: linear-gradient(135deg, #be185d, #9d174d); border: 1px solid #f472b6; box-shadow: inset 0 0 30px rgba(244, 114, 182, 0.3); }

/* Faculty Grid - Premium Redesign */
.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    padding-top: 3rem;
}
.premium-faculty-card {
    position: relative;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 0 2rem 2.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.premium-faculty-card:hover {
    transform: translateY(-15px);
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 40px rgba(251, 191, 36, 0.1);
}
.card-glow {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    opacity: 0.5;
    transition: all 0.4s ease;
}
.premium-faculty-card:hover .card-glow {
    opacity: 0.8;
    transform: translateX(-50%) scale(1.2);
}
.bg-emerald { background: var(--primary-green); }
.bg-gold { background: var(--secondary-gold); }
.bg-teal { background: var(--primary-light); }

.faculty-avatar {
    position: relative;
    margin-top: -40px;
    margin-bottom: 1.5rem;
    z-index: 2;
}
.faculty-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--dark-bg);
    position: relative;
    z-index: 3;
    transition: transform 0.4s ease;
}
.premium-faculty-card:hover .faculty-avatar img {
    transform: scale(1.05);
}
.avatar-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid transparent;
}
.avatar-ring-1 {
    width: 135px;
    height: 135px;
    border-top-color: var(--secondary-gold);
    border-right-color: var(--secondary-gold);
    animation: spin-ring 8s linear infinite;
}
.avatar-ring-2 {
    width: 150px;
    height: 150px;
    border-bottom-color: var(--primary-light);
    border-left-color: var(--primary-light);
    animation: spin-reverse-ring 12s linear infinite;
}

@keyframes spin-ring {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes spin-reverse-ring {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(-360deg); }
}
.faculty-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.faculty-content h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--white);
    letter-spacing: 0.5px;
}
.subject-badge {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(251, 191, 36, 0.05));
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: var(--secondary-gold);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.faculty-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}
.justify-center { justify-content: center; }

@keyframes spin { 100% { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes spin-reverse { 100% { transform: translate(-50%, -50%) rotate(-360deg); } }

/* Dashboard UI */
.dashboard-container {
    display: flex;
    min-height: 600px;
    overflow: hidden;
}
.dash-sidebar {
    width: 250px;
    background: rgba(0,0,0,0.2);
    border-right: 1px solid var(--glass-border);
}
.student-mini-profile {
    padding: 2rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.student-avatar {
    width: 80px; height: 80px; border-radius: 50%; margin-bottom: 1rem;
}
.badge-small {
    background: var(--primary-green); padding: 0.2rem 0.8rem; border-radius: 10px; font-size: 0.8rem;
}
.dash-menu { list-style: none; padding: 1rem 0; }
.dash-menu li {
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: 0.2s;
    border-left: 3px solid transparent;
    display: flex; align-items: center; gap: 1rem;
}
.dash-menu li:hover { background: rgba(255,255,255,0.05); }
.dash-menu li.active {
    background: rgba(255,255,255,0.1);
    border-left-color: var(--secondary-gold);
    color: var(--secondary-gold);
}
.dash-content {
    flex: 1;
    padding: 3rem;
    background: rgba(15,23,42,0.5);
}
.dash-pane { display: none; animation: fadeIn 0.3s ease; }
.dash-pane.active { display: block; }

/* Profile Detail Row */
.detail-row {
    padding: 1rem; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between;
}
.detail-row span { color: var(--text-muted); }

/* Timeline */
.timeline { border-left: 2px solid var(--primary-green); padding-left: 2rem; margin-left: 1rem; }
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-dot {
    position: absolute; left: -39px; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--secondary-gold); border: 4px solid var(--dark-bg);
}
.timeline-date { color: var(--secondary-gold); font-size: 0.85rem; font-weight: 600; margin-bottom: 0.5rem; }

/* Certificate Layout & Printing */
.certificate-layout { max-width: 800px; width: 95%; background: white; color: black; border-radius: 10px; overflow: hidden; }
.print-area { padding: 4rem; position: relative; }
.cert-header hr { border: none; border-top: 2px solid #064e3b; margin-top: 1rem; }
.cert-footer { display: flex; justify-content: space-between; margin-top: 5rem; align-items: flex-end; }
@media print {
    body * { visibility: hidden; }
    #certificate-modal, #certificate-modal * { visibility: visible; }
    #certificate-modal { position: absolute; left: 0; top: 0; padding: 0; background: none; }
    .cert-actions { display: none !important; }
    .close-modal { display: none !important; }
}

/* Premium Student Dashboard */
.premium-dashboard {
    background: rgba(15, 23, 42, 0.7) !important;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    display: flex;
}
.premium-sidebar {
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(0,0,0,0.2) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 0;
    min-width: 280px;
}
.premium-mini-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 2rem;
}
.avatar-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
}
.avatar-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}
.premium-menu { padding: 0 1rem; list-style: none; margin: 0; }
.premium-menu li {
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    cursor: pointer;
}
.premium-menu li i { font-size: 1.2rem; transition: all 0.3s ease; }
.premium-menu li:hover { background: rgba(255, 255, 255, 0.05); color: white; transform: translateX(5px); }
.premium-menu li.active {
    background: linear-gradient(135deg, var(--primary-green), #022c22);
    color: white;
    box-shadow: 0 10px 20px rgba(6, 78, 59, 0.3);
}
.premium-menu li.active i { color: var(--secondary-gold); }

.premium-dash-content { padding: 3rem; flex: 1; }
.pane-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 1rem;
}
.pane-header h3 { font-size: 2rem; color: white; margin: 0; }
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.profile-card.full-width { grid-column: 1 / -1; }
.profile-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}
.profile-card:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(251, 191, 36, 0.3); transform: translateY(-3px); }
.prof-icon {
    width: 60px;
    height: 60px;
    background: rgba(6, 78, 59, 0.3);
    border: 1px solid rgba(6, 78, 59, 0.5);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--secondary-gold);
    flex-shrink: 0;
}
.prof-info { display: flex; flex-direction: column; gap: 0.3rem; }
.prof-label { font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.prof-value { font-size: 1.2rem; color: white; font-weight: 600; }

@media (max-width: 768px) {
    .premium-dashboard { flex-direction: column; }
    .premium-sidebar { min-width: 100%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); padding: 2rem 0; }
    .profile-grid { grid-template-columns: 1fr; }
    .premium-dash-content { padding: 1.5rem; }
}

/* Premium Status Alert */
.premium-status-alert {
    background: linear-gradient(90deg, rgba(6, 78, 59, 0.4), rgba(15, 23, 42, 0.4));
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(255,255,255,0.05);
    border-left: 4px solid var(--secondary-gold);
}
.status-icon {
    font-size: 1.5rem;
    color: var(--secondary-gold);
}
.status-text {
    display: flex;
    flex-direction: column;
}
.status-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.premium-status-alert strong { font-size: 1.1rem; }

/* Premium Timeline */
.premium-timeline {
    position: relative;
    padding-left: 2rem;
}
.premium-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--secondary-gold), rgba(251,191,36,0.1));
}
.premium-timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}
.glow-dot {
    position: absolute;
    left: -2.4rem;
    top: 0.5rem;
    width: 16px;
    height: 16px;
    background: var(--secondary-gold);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--secondary-gold);
    border: 3px solid var(--dark-bg);
}
.timeline-content.glass-panel {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform 0.3s ease;
    position: relative;
}
.timeline-content.glass-panel:hover {
    transform: translateX(10px);
    background: rgba(255,255,255,0.06);
    border-color: rgba(251,191,36,0.3);
}
.timeline-content .timeline-date {
    display: inline-block;
    color: var(--secondary-gold);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: rgba(251,191,36,0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}
.timeline-content h4 { color: white; font-size: 1.3rem; margin-bottom: 0.5rem; }
.timeline-content p { color: rgba(255,255,255,0.7); margin-bottom: 1rem; }
.timeline-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
}
.timeline-badge.win { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }
.timeline-badge.participate { background: rgba(14, 165, 233, 0.2); color: #38bdf8; }
.timeline-badge.grade { background: rgba(16, 185, 129, 0.2); color: #34d399; }

/* Premium Form overrides */
.premium-form .input-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0.8rem;
}
.premium-form .input-group label i { color: var(--secondary-gold); }

/* Premium Footer */
.premium-footer {
    position: relative;
    background: #020617; /* Very dark slate/blue */
    color: white;
    padding-top: 5rem;
    overflow: hidden;
    border-top: 1px solid rgba(251, 191, 36, 0.1);
}

.footer-top-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary-gold), transparent);
    box-shadow: 0 0 30px 2px var(--secondary-gold);
}

.premium-footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
}

.footer-mission {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-heading {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary-gold);
}

.premium-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.premium-footer-links li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.premium-footer-links li a i {
    font-size: 0.7rem;
    color: var(--secondary-gold);
    transition: transform 0.3s ease;
}

.premium-footer-links li a:hover {
    color: var(--secondary-gold);
    transform: translateX(5px);
}

.premium-footer-links li a:hover i {
    transform: translateX(3px);
}

.premium-footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.premium-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.5;
}

.premium-footer-contact li i {
    color: var(--secondary-gold);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.premium-footer .footer-bottom {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 992px) {
    .premium-footer .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .premium-footer .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Virtual Campus Carousel */
.premium-carousel-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 500px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}
.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 8s ease-out;
}
.carousel-slide.active img {
    transform: scale(1);
}
.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.9), transparent);
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s ease 0.3s;
}
.carousel-slide.active .slide-caption {
    transform: translateY(0);
    opacity: 1;
}
.slide-caption h3 {
    color: var(--secondary-gold);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}
.carousel-btn:hover {
    background: var(--secondary-gold);
    color: var(--dark-bg);
}
.prev-btn { left: 1rem; }
.next-btn { right: 1rem; }
.carousel-indicators {
    position: absolute;
    bottom: 1.5rem;
    right: 2rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}
.carousel-indicators .dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}
.carousel-indicators .dot.active {
    background: var(--secondary-gold);
    width: 24px;
    border-radius: 6px;
}

/* Infinite Marquee */
.premium-marquee-container {
    width: 100%;
    background: rgba(2, 6, 23, 0.95);
    border-top: 1px solid rgba(251, 191, 36, 0.1);
    border-bottom: 1px solid rgba(251, 191, 36, 0.1);
    padding: 1rem 0;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    display: flex;
}
.premium-marquee-container::before,
.premium-marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.premium-marquee-container::before {
    left: 0;
    background: linear-gradient(to right, #020617, transparent);
}
.premium-marquee-container::after {
    right: 0;
    background: linear-gradient(to left, #020617, transparent);
}
.marquee-content {
    display: flex;
    animation: scrollLeft 30s linear infinite;
}
.marquee-content:hover {
    animation-play-state: paused;
}
.marquee-item {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 3rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    letter-spacing: 1px;
}
@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Scrolls exactly half the width to seamlessly loop */
}

/* Premium Theme Toggle Button */
.premium-theme-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--secondary-gold);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.premium-theme-btn:hover {
    background: var(--secondary-gold);
    color: var(--dark-bg);
    transform: rotate(15deg) scale(1.1);
}

/* --- Pearl (Light) Theme Overrides --- */
body.pearl-theme {
    background: #f8fafc;
    color: #0f172a;
}
body.pearl-theme .navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
body.pearl-theme .nav-links a { color: #334155; }
body.pearl-theme .nav-links a:hover { color: var(--primary-green); }
body.pearl-theme .premium-brand .brand-title {
    background: linear-gradient(to right, #0f172a, #334155);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
body.pearl-theme .premium-brand .brand-urdu { color: rgba(15, 23, 42, 0.6); }

/* Hero section inversion */
body.pearl-theme .hero-overlay {
    background: linear-gradient(135deg, rgba(248,250,252,0.9) 0%, rgba(226,232,240,0.8) 100%);
}
body.pearl-theme .hero-title, body.pearl-theme .hero-urdu, body.pearl-theme .hero-description { color: #0f172a; }
body.pearl-theme .stat-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #0f172a;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* General Cards & Glass */
body.pearl-theme .glass-card, 
body.pearl-theme .premium-class-card, 
body.pearl-theme .premium-faculty-card,
body.pearl-theme .premium-form-card,
body.pearl-theme .premium-info-card,
body.pearl-theme .timeline-content.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #0f172a;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
body.pearl-theme .premium-class-card p,
body.pearl-theme .premium-faculty-card p,
body.pearl-theme .premium-info-card p,
body.pearl-theme .timeline-content p {
    color: #475569;
}
body.pearl-theme .premium-class-card h3,
body.pearl-theme .premium-faculty-card h4,
body.pearl-theme .premium-info-card h4,
body.pearl-theme .timeline-content h4,
body.pearl-theme .section-header h2,
body.pearl-theme .dual-experience h2 {
    color: #0f172a;
}
body.pearl-theme .premium-class-card:hover,
body.pearl-theme .premium-faculty-card:hover,
body.pearl-theme .timeline-content.glass-panel:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--primary-green);
}
body.pearl-theme .premium-dashboard {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0,0,0,0.1);
}
body.pearl-theme .pane-header h3, 
body.pearl-theme .prof-value { color: #0f172a; }
body.pearl-theme .premium-menu li { color: #475569; }
body.pearl-theme .premium-menu li:hover { background: rgba(0,0,0,0.05); color: #0f172a; }

/* Footers & Containers */
body.pearl-theme .premium-marquee-container {
    background: #f1f5f9;
    border-color: rgba(0,0,0,0.1);
}
body.pearl-theme .premium-marquee-container::before { background: linear-gradient(to right, #f1f5f9, transparent); }
body.pearl-theme .premium-marquee-container::after { background: linear-gradient(to left, #f1f5f9, transparent); }
body.pearl-theme .marquee-item { color: #334155; }

body.pearl-theme .premium-footer {
    background: #f8fafc;
    border-top: 1px solid rgba(0,0,0,0.1);
}
body.pearl-theme .footer-heading,
body.pearl-theme .footer-mission { color: #0f172a; }
body.pearl-theme .premium-footer-links li a { color: #475569; }
body.pearl-theme .premium-footer-contact li { color: #475569; }

body.pearl-theme #constellation-canvas {
    opacity: 0.5;
}

/* --- Ink Reveal Typography --- */
.ink-reveal {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    filter: blur(10px);
    transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}
.ink-reveal.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* --- Premium Success Toast --- */
.premium-toast {
    position: fixed;
    bottom: 30px;
    right: -400px; /* Hidden by default */
    background: rgba(6, 78, 59, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--secondary-gold);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 9999;
    transition: right 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 350px;
}
.premium-toast.show {
    right: 30px;
}
.toast-icon {
    font-size: 2rem;
    color: var(--secondary-gold);
}
.toast-content h4 {
    margin: 0 0 0.2rem 0;
    font-size: 1.1rem;
}
.toast-content p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}
.toast-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: auto;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}
.toast-close:hover {
    opacity: 1;
}

/* Spinner */
.premium-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Constellation Canvas */
#constellation-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Above background, below content */
    pointer-events: none;
}
.hero-overlay { z-index: 2; }
.hero-content { z-index: 3; position: relative; }

/* Premium Preloader */
body.loading {
    overflow: hidden;
}
#premium-preloader {
    position: fixed;
    inset: 0;
    background: #020617;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
}
#premium-preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}
.preloader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
.preloader-logo {
    font-size: 3rem;
    color: var(--secondary-gold);
    animation: pulseGlow 2s infinite ease-in-out;
}
.preloader-quote {
    font-size: 1.8rem;
    color: white;
    line-height: 2;
    text-shadow: 0 0 20px rgba(255,255,255,0.2);
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}
.preloader-author {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 1.2rem;
    color: var(--secondary-gold);
    opacity: 0;
    animation: fadeInUp 1s ease 1s forwards;
}
.preloader-progress {
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}
.preloader-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--secondary-gold);
    box-shadow: 0 0 10px var(--secondary-gold);
    animation: loadBar 2s ease-in-out forwards;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(251,191,36,0.5)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 25px rgba(251,191,36,0.8)); }
}
@keyframes loadBar {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title { font-size: 3rem; }
    .hero-urdu { font-size: 2.5rem; }
    .grid-2-col, .contact-grid { grid-template-columns: 1fr; }
    .experience-grid { flex-direction: column; }
    .exp-image-container { display: none; }
    .tracing-container { flex-direction: column; }
    .canvas-wrapper { width: 100%; max-width: 400px; margin: 0 auto; }
}

@media (max-width: 1024px) {
    /* Mobile Navigation Drawer */
    .nav-links {
        position: absolute;
        top: 80px;
        right: -100%;
        flex-direction: column;
        background: rgba(6, 78, 59, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: right 0.4s ease;
        padding: 2rem 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
    body.pearl-theme .nav-links {
        background: rgba(248, 250, 252, 0.98);
    }
    
    .nav-links.nav-active {
        right: 0;
    }
    
    .nav-links li {
        margin: 1.5rem 0;
    }
    
    .nav-actions {
        display: none;
    }
    
    .hamburger {
        display: block;
        font-size: 1.8rem;
        cursor: pointer;
        color: white;
    }
    body.pearl-theme .hamburger {
        color: var(--primary-midnight);
    }

    .stats-container { flex-direction: column; gap: 1.5rem; }
    .hero-buttons { flex-direction: column; }
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
    .form-row { grid-template-columns: 1fr; }
}

/* ===================================================
   SCHOOL GALLERY SECTION
   =================================================== */
.school-gallery-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #020617 0%, var(--dark-bg) 50%, #020617 100%);
}
.gallery-bg-decoration { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.gallery-orb { position: absolute; width: 500px; height: 500px; border-radius: 50%; filter: blur(120px); opacity: 0.12; }
.gallery-orb.orb-left { top: -100px; left: -200px; background: radial-gradient(circle, var(--primary-green), transparent); }
.gallery-orb.orb-right { bottom: -100px; right: -200px; background: radial-gradient(circle, var(--secondary-gold), transparent); }

.gallery-badge-top {
    display: inline-block;
    background: linear-gradient(135deg, rgba(251,191,36,0.15), rgba(251,191,36,0.05));
    border: 1px solid rgba(251,191,36,0.4);
    color: var(--secondary-gold);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.2rem;
}

.gallery-filter-bar {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}
.gallery-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}
.gallery-filter-btn:hover {
    border-color: var(--secondary-gold);
    color: var(--secondary-gold);
    background: rgba(251,191,36,0.08);
}
.gallery-filter-btn.active {
    background: linear-gradient(135deg, var(--gold-dark), var(--secondary-gold));
    color: var(--dark-bg);
    border-color: transparent;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(251,191,36,0.35);
}

.gallery-masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 280px;
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    z-index: 2;
}
.gallery-item-wide { grid-column: span 2; }
.gallery-item-tall { grid-row: span 2; }

.gallery-img-wrap { width: 100%; height: 100%; position: relative; overflow: hidden; }
.gallery-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; display: block; }
.gallery-item:hover .gallery-img-wrap img { transform: scale(1.08); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6,78,59,0.9) 0%, rgba(15,23,42,0.5) 60%, transparent 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 2;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay-content {
    text-align: center;
    color: white;
    padding: 1.5rem;
    width: 100%;
}
.gallery-overlay-content i {
    font-size: 2rem;
    color: var(--secondary-gold);
    margin-bottom: 0.5rem;
    display: block;
}
.gallery-overlay-content span { font-size: 0.95rem; font-weight: 600; }
.gallery-category-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(15,23,42,0.75);
    backdrop-filter: blur(8px);
    color: var(--secondary-gold);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    border: 1px solid rgba(251,191,36,0.3);
    z-index: 3;
}

.gallery-item-video { cursor: default; }
.gallery-item-video:hover { transform: translateY(-4px); }
.gallery-video-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--dark-card);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    overflow: hidden;
}
.video-embed-wrap { position: relative; flex: 1; min-height: 0; }
.video-embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; display: block; }
.video-card-info {
    padding: 0.9rem 1.2rem;
    background: rgba(255,255,255,0.02);
    border-top: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}
.video-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.3);
    color: #f87171;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
    margin-bottom: 0.4rem;
}
.video-card-info h4 { font-size: 0.92rem; color: var(--text-light); margin-bottom: 0.25rem; font-weight: 600; }
.video-card-info p { font-size: 0.75rem; color: var(--text-muted); line-height: 1.4; }
.gallery-item.gallery-hidden { display: none; }

/* ===================================================
   GALLERY LIGHTBOX
   =================================================== */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
.gallery-lightbox.active { display: flex; }
.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2,6,23,0.92);
    backdrop-filter: blur(12px);
    cursor: pointer;
}
.lightbox-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: lightboxIn 0.3s ease;
}
@keyframes lightboxIn {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}
.lightbox-image-wrap {
    max-height: 70vh;
    max-width: 85vw;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.1);
}
.lightbox-image-wrap img {
    max-width: 85vw;
    max-height: 70vh;
    object-fit: contain;
    display: block;
    border-radius: 16px;
}
.lightbox-close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}
.lightbox-close:hover { background: rgba(239,68,68,0.4); border-color: #ef4444; transform: scale(1.1); }
.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}
.lightbox-nav:hover { background: rgba(251,191,36,0.25); border-color: var(--secondary-gold); color: var(--secondary-gold); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-caption { text-align: center; color: white; max-width: 600px; padding: 0 1rem; }
.lightbox-caption h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.35rem; color: var(--secondary-gold); }
.lightbox-caption p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }
.lightbox-counter { margin-top: 0.75rem; font-size: 0.78rem; color: rgba(255,255,255,0.4); font-weight: 600; letter-spacing: 1px; }

@media (max-width: 900px) {
    .gallery-masonry-grid { grid-template-columns: repeat(2,1fr); grid-auto-rows: 240px; }
    .gallery-item-wide { grid-column: span 2; }
    .gallery-item-tall { grid-row: span 1; }
}
@media (max-width: 600px) {
    .gallery-masonry-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
    .gallery-item-wide { grid-column: span 1; }
    .gallery-filter-btn { padding: 0.5rem 1rem; font-size: 0.8rem; }
    .lightbox-prev { left: 0.5rem; }
    .lightbox-next { right: 0.5rem; }
}

/* ===================================================
   WALL OF FAME (اسنادِ اعزاز) SECTION
   =================================================== */
.wall-of-fame {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--dark-bg) 0%, #020617 50%, var(--dark-bg) 100%);
    padding: 6rem 2rem;
}

.fame-bg-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.fame-bg-elements .glow-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.08;
}

.fame-bg-elements .orb-gold {
    top: 10%;
    left: -150px;
    background: radial-gradient(circle, var(--secondary-gold), transparent);
}

.fame-bg-elements .orb-emerald {
    bottom: 10%;
    right: -150px;
    background: radial-gradient(circle, var(--primary-green), transparent);
}

.badge-gold-premium {
    display: inline-block;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(251, 191, 36, 0.05));
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: var(--secondary-gold);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.2rem;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.1);
}

/* Fame Grid */
.fame-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Fame Card Base */
.fame-card {
    position: relative;
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    overflow: hidden;
}

.fame-card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% -20%, rgba(255, 255, 255, 0.08), transparent 60%);
    opacity: 0.5;
    z-index: 1;
    transition: opacity 0.3s;
}

/* Glow Variations */
.fame-card.gold-glow { border-color: rgba(251, 191, 36, 0.15); }
.fame-card.emerald-glow { border-color: rgba(16, 185, 129, 0.15); }
.fame-card.teal-glow { border-color: rgba(20, 184, 166, 0.15); }
.fame-card.amber-glow { border-color: rgba(245, 158, 11, 0.15); }

/* Hover effects */
.fame-card:hover {
    transform: translateY(-8px);
    background: rgba(30, 41, 59, 0.6);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.fame-card.gold-glow:hover { border-color: rgba(251, 191, 36, 0.6); box-shadow: 0 20px 40px rgba(251, 191, 36, 0.15); }
.fame-card.emerald-glow:hover { border-color: rgba(16, 185, 129, 0.6); box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15); }
.fame-card.teal-glow:hover { border-color: rgba(20, 184, 166, 0.6); box-shadow: 0 20px 40px rgba(20, 184, 166, 0.15); }
.fame-card.amber-glow:hover { border-color: rgba(245, 158, 11, 0.6); box-shadow: 0 20px 40px rgba(245, 158, 11, 0.15); }

/* Avatar Styling */
.fame-avatar-wrap {
    position: relative;
    width: 140px;
    height: 140px;
    margin-bottom: 1.8rem;
    z-index: 2;
}

.fame-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--dark-bg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.avatar-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    animation: rotateRing 30s linear infinite;
}

.gold-glow .avatar-ring { border-color: rgba(251, 191, 36, 0.4); }
.emerald-glow .avatar-ring { border-color: rgba(16, 185, 129, 0.4); }
.teal-glow .avatar-ring { border-color: rgba(20, 184, 166, 0.4); }
.amber-glow .avatar-ring { border-color: rgba(245, 158, 11, 0.4); }

.fame-card:hover .avatar-ring {
    animation-duration: 15s;
    border-style: solid;
}

@keyframes rotateRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.fame-badge-icon {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-dark), var(--secondary-gold));
    color: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    border: 3px solid var(--dark-bg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.fame-card:hover .fame-badge-icon {
    transform: scale(1.15) rotate(15deg);
}

/* Content Area */
.fame-content {
    z-index: 2;
    width: 100%;
}

.fame-student-title {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-gold);
    margin-bottom: 0.4rem;
}

.fame-student-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.fame-student-urdu {
    display: block;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 1.2rem;
    line-height: 1.4;
}

.fame-score-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.2);
    color: var(--secondary-gold);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
}

.gold-glow .fame-score-badge { background: rgba(251, 191, 36, 0.08); border-color: rgba(251, 191, 36, 0.2); color: var(--secondary-gold); }
.emerald-glow .fame-score-badge { background: rgba(16, 185, 129, 0.08); border-color: rgba(16, 185, 129, 0.2); color: #34d399; }
.teal-glow .fame-score-badge { background: rgba(20, 184, 166, 0.08); border-color: rgba(20, 184, 166, 0.2); color: #2dd4bf; }
.amber-glow .fame-score-badge { background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.2); color: #fbbf24; }

.fame-student-class {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.fame-student-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.8rem;
    min-height: 72px;
}

.fame-card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
    width: 100%;
}

.academic-year {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Theme adaptation */
body.pearl-theme .wall-of-fame {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #f8fafc 100%);
}
body.pearl-theme .fame-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
body.pearl-theme .fame-card:hover {
    background: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}
body.pearl-theme .fame-student-name { color: #0f172a; }
body.pearl-theme .fame-student-urdu { color: #475569; }
body.pearl-theme .fame-avatar { border-color: white; }

/* ==========================================================================
   MOBILE RESPONSIVENESS (MEDIA QUERIES)
   ========================================================================== */

/* Tablet & Smaller Devices (max-width: 992px) */
@media (max-width: 992px) {
    /* Navbar */
    .nav-links, .nav-actions { display: none; }
    .hamburger { display: block; color: var(--secondary-gold); font-size: 1.8rem; }
    
    /* Layouts */
    .grid-2-col, .experience-grid, .contact-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
    
    .exp-image-container {
        width: 250px;
        height: 250px;
        margin: 2rem auto;
    }
    
    /* Admin Portal */
    .admin-container { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; position: fixed; z-index: 100; height: 100vh; }
    .admin-sidebar.active { display: block; }
    .admin-main { padding: 1rem; }
    
    .stats-container { gap: 1.5rem; flex-wrap: wrap; }
    .stat-card { flex: 1 1 40%; min-width: 150px; }
}

/* Mobile Phones (max-width: 768px) */
@media (max-width: 768px) {
    .section-padding { padding: 4rem 1.5rem; }
    
    /* Hero Section */
    .hero-title { font-size: 2.5rem; }
    .hero-urdu { font-size: 2rem; }
    .hero-description { font-size: 1rem; }
    .hero-buttons { flex-direction: column; gap: 1rem; }
    .hero-buttons .btn { width: 100%; text-align: center; justify-content: center; }
    
    /* Stats */
    .stats-container { flex-direction: column; gap: 1rem; }
    .stat-card { width: 100%; }
    
    /* Typography */
    .section-header h2 { font-size: 2rem; }
    .urdu-title { font-size: 1.5rem !important; }
    
    /* Form */
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 1.5rem; }
    
    /* Dashboard */
    .dashboard-container { flex-direction: column; }
    .dash-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--glass-border); }
    .dash-content { padding: 1.5rem; }
    .profile-card { width: 100%; }
    
    /* Hub */
    .hub-content-container { padding: 1.5rem; }
    .canvas-wrapper { width: 100%; height: 300px; }
    #tracing-canvas { width: 100%; height: 100%; }
    
    /* Gallery */
    .gallery-filter-bar { flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
    .gallery-filter-btn { padding: 0.5rem 1rem; font-size: 0.8rem; }
    
    /* Premium Brand */
    .premium-brand .logo-icon { font-size: 1.5rem; padding: 0.5rem; }
    .premium-brand .brand-title { font-size: 1rem !important; }
    .premium-brand .brand-subtitle { font-size: 0.5rem; }
    .premium-brand .brand-urdu { font-size: 0.65rem !important; }
    
    /* Footer */
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
    .footer-contact-section { margin-top: 1rem; }
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 2rem;
    display: none;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 999;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    animation: slideDown 0.3s ease forwards;
}

.mobile-nav-drawer.active { display: flex; }

.mobile-nav-drawer a {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 0.5rem;
}

.mobile-nav-drawer .nav-actions {
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
}
.mobile-nav-drawer .nav-actions .btn {
    width: 100%;
    justify-content: center;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
