/* =============================================
   ULTRA PRO - Premium College Website CSS
   Complete restructured edition
   ============================================= */

:root {
    --bg-primary: #06060a;
    --bg-secondary: #0c0c12;
    --bg-tertiary: #12121a;
    --accent-gold: #f59e0b;
    --accent-gold-light: #fbbf24;
    --accent-gold-glow: #fcd34d;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-teal: #14b8a6;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-hover: rgba(255, 255, 255, 0.06);
    --font-display: 'Sora', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.15;
}

h1:not([class*="text-"]) { font-size: clamp(2.5rem, 7vw, 5rem); }
h2:not([class*="text-"]) { font-size: clamp(2rem, 5vw, 3.5rem); }
h3:not([class*="text-"]) { font-size: clamp(1.5rem, 3vw, 2rem); }
h4:not([class*="text-"]) { font-size: clamp(1.25rem, 2vw, 1.5rem); }

.display {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.025em;
}

.gradient-gold {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 50%, var(--accent-gold-glow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientMove 4s ease infinite;
}

.gradient-mesh {
    background:
        radial-gradient(at 30% 20%, rgba(245, 158, 11, 0.3) 0px, transparent 50%),
        radial-gradient(at 70% 10%, rgba(139, 92, 246, 0.2) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(236, 72, 153, 0.15) 0px, transparent 50%),
        radial-gradient(at 20% 80%, rgba(59, 130, 246, 0.2) 0px, transparent 50%),
        radial-gradient(at 80% 80%, rgba(20, 184, 166, 0.15) 0px, transparent 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-animated {
    background-size: 400% 400%;
    animation: gradientMove 6s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =============================================
   KEYFRAME ANIMATIONS
   ============================================= */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(60px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes scaleInSmall {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes floatRotate {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes floatLeft {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-15px, -10px); }
    50% { transform: translate(-5px, -20px); }
    75% { transform: translate(-20px, -5px); }
}

@keyframes floatRight {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(15px, -10px); }
    50% { transform: translate(5px, -20px); }
    75% { transform: translate(20px, -5px); }
}

@keyframes floatCircle {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, -15px) rotate(5deg); }
    50% { transform: translate(-5px, -25px) rotate(-3deg); }
    75% { transform: translate(-15px, -10px) rotate(3deg); }
}

@keyframes floatZigzag {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(20px, -10px); }
    50% { transform: translate(-10px, -25px); }
    75% { transform: translate(-25px, -15px); }
}

@keyframes floatWander {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-20px, -15px) scale(1.02); }
    50% { transform: translate(10px, -30px) scale(0.98); }
    75% { transform: translate(-15px, -10px) scale(1.01); }
}

@keyframes rotateIn {
    from { transform: rotate(-180deg) scale(0); opacity: 0; }
    to { transform: rotate(0deg) scale(1); opacity: 1; }
}

@keyframes rotate3d {
    from { transform: rotateY(-90deg); opacity: 0; }
    to { transform: rotateY(0deg); opacity: 1; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.3); }
    50% { box-shadow: 0 0 40px rgba(245, 158, 11, 0.5), 0 0 60px rgba(245, 158, 11, 0.2); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes ringPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes meshGradient {
    0%, 100% {
        background-position: 0% 50%, 100% 50%, 50% 50%;
    }
    25% {
        background-position: 100% 50%, 0% 50%, 50% 50%;
    }
    50% {
        background-position: 50% 50%, 100% 50%, 0% 50%;
    }
    75% {
        background-position: 0% 50%, 50% 50%, 100% 50%;
    }
}

@keyframes marquee {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

@keyframes marqueeSmooth {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes loadProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes modalGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes avatarGlow {
    0%, 100% { box-shadow: 0 0 40px rgba(245, 158, 11, 0.15); }
    50% { box-shadow: 0 0 60px rgba(245, 158, 11, 0.25), 0 0 80px rgba(139, 92, 246, 0.1); }
}

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

@keyframes titleGlowPulse {
    0%, 100% { width: 60px; opacity: 0.5; }
    50% { width: 100px; opacity: 1; }
}

@keyframes scrollIndicatorFade {
    0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; transform: translateX(-50%) translateY(-5px); }
}

@keyframes scrollLine {
    0% { transform: scaleY(0.3); opacity: 0.3; }
    50% { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(0.3); opacity: 0.3; }
}

@keyframes floatDrift1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -30px) rotate(5deg); }
    50% { transform: translate(-10px, -50px) rotate(-3deg); }
    75% { transform: translate(-30px, -20px) rotate(4deg); }
}

@keyframes floatDrift2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-25px, -20px) rotate(-5deg); }
    66% { transform: translate(15px, -40px) rotate(3deg); }
}

@keyframes floatDrift3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -25px) scale(1.1); }
}

/* =============================================
   ANIMATION UTILITY CLASSES
   ============================================= */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; }
.delay-8 { animation-delay: 0.8s; }

.animate-fade-in { animation: fadeIn 0.8s var(--ease-out-expo) forwards; opacity: 0; }
.animate-fade-in-up { animation: fadeInUp 0.8s var(--ease-out-expo) forwards; opacity: 0; }
.animate-fade-in-down { animation: fadeInDown 0.8s var(--ease-out-expo) forwards; opacity: 0; }
.animate-fade-in-left { animation: fadeInLeft 0.8s var(--ease-out-expo) forwards; opacity: 0; }
.animate-fade-in-right { animation: fadeInRight 0.8s var(--ease-out-expo) forwards; opacity: 0; }
.animate-scale-in { animation: scaleIn 0.6s var(--ease-out-expo) forwards; opacity: 0; }
.animate-float { animation: float 4s ease-in-out infinite; }
.animate-float-rotate { animation: floatRotate 5s ease-in-out infinite; }
.animate-float-slow { animation: floatSlow 6s ease-in-out infinite; }
.animate-pulse-glow { animation: pulseGlow 2s ease-in-out infinite; }
.animate-marquee {
    display: inline-flex;
    animation: marqueeSmooth 30s linear infinite;
    will-change: transform;
}
.animate-marquee:hover {
    animation-play-state: paused;
}

.logo-animate { animation: float 4s ease-in-out infinite; }
.logo-static { animation: none; }

.stagger-fade-in > * {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s var(--ease-out-expo);
}

.stagger-fade-in > *.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-fade-in > *:nth-child(1) { transition-delay: 0s; }
.stagger-fade-in > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-fade-in > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-fade-in > *:nth-child(4) { transition-delay: 0.3s; }
.stagger-fade-in > *:nth-child(5) { transition-delay: 0.4s; }
.stagger-fade-in > *:nth-child(6) { transition-delay: 0.5s; }

.animate-on-scroll {
    opacity: 1;
}

.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out-expo);
}

.reveal-text.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.8s var(--ease-out-expo);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s var(--ease-out-expo);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s var(--ease-out-expo);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* =============================================
   LOADING SCREEN
   ============================================= */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: var(--glass-border);
    border-radius: 100px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light));
    border-radius: 100px;
    animation: loadProgress 2s ease-in-out forwards;
}

.loader-progress-text {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

/* =============================================
   SCROLL PROGRESS BAR
   ============================================= */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light), var(--accent-gold));
    z-index: 99999;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.4s ease;
}

.nav-scrolled {
    background: rgba(6, 6, 10, 0.88);
    backdrop-filter: blur(24px) saturate(1.3);
    -webkit-backdrop-filter: blur(24px) saturate(1.3);
    border-bottom: 1px solid rgba(245, 158, 11, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(245, 158, 11, 0.05);
}

.nav-link {
    position: relative;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 1.25rem;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s var(--ease-out-expo);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 2.5rem);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active {
    color: var(--accent-gold);
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
}
.nav-link.active::after {
    width: calc(100% - 2.5rem);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: rgba(6, 6, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s var(--ease-out-expo);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--glass);
    color: var(--text-primary);
}

/* Hamburger */
.hamburger-icon {
    width: 24px;
    height: 24px;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s var(--ease-out-expo);
    transform-origin: center;
}

.hamburger-icon.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-icon.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-icon.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =============================================
   MOBILE MENU
   ============================================= */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--glass-border);
    z-index: 9999;
    overflow-y: auto;
    transition: right 0.4s var(--ease-out-expo);
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem;
    border-bottom: 1px solid var(--glass-border);
}

.mobile-menu-body {
    flex: 1;
    padding: 0.75rem;
    overflow-y: auto;
}

.mobile-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: rgba(255, 255, 255, 0.75);
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-link:hover,
.mobile-link.active {
    background: var(--glass);
    color: var(--text-primary);
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 2.5rem;
}

.mobile-submenu.open {
    max-height: 500px;
}

.mobile-sub-link {
    display: block;
    padding: 0.625rem 1rem;
    color: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.mobile-sub-link:hover {
    background: var(--glass);
    color: var(--text-primary);
}

.mobile-menu-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--glass-border);
}

.mobile-dropdown.open .mobile-submenu {
    max-height: 500px;
}

.mobile-dropdown.open .fa-chevron-down {
    transform: rotate(180deg);
}

.mobile-menu .fa-chevron-down {
    transition: transform 0.3s ease;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero {
        min-height: auto !important;
        padding: 3.5rem 0 1.5rem !important;
    }
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 20%, rgba(236, 72, 153, 0.04) 0%, transparent 40%),
        radial-gradient(ellipse at 40% 80%, rgba(59, 130, 246, 0.04) 0%, transparent 40%),
        var(--bg-primary);
}

.hero-mesh {
    position: absolute;
    inset: 0;
    opacity: 0.5;
    background-image:
        linear-gradient(rgba(245, 158, 11, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 158, 11, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
}

.hero-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
    animation: float 14s ease-in-out infinite;
    will-change: transform;
    pointer-events: none;
}

.hero-glow-1 {
    top: -150px;
    left: -150px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.6), rgba(251, 191, 36, 0.2));
    animation-delay: 0s;
}

.hero-glow-2 {
    bottom: -150px;
    right: -150px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.5), rgba(168, 85, 247, 0.15));
    animation-delay: 6s;
    width: 400px;
    height: 400px;
}

.hero-glow-3 {
    top: 40%;
    left: 50%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.3), rgba(236, 72, 153, 0.1));
    animation-delay: 3s;
    animation-duration: 18s;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-floating {
    position: absolute;
    pointer-events: none;
    z-index: 2;
    opacity: 0.8;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.15));
}

.hero-float-1 {
    top: 15%;
    right: 10%;
    animation: floatDrift1 12s ease-in-out infinite;
}

.hero-float-2 {
    bottom: 25%;
    left: 8%;
    animation: floatDrift2 15s ease-in-out infinite;
}

.hero-float-3 {
    top: 40%;
    left: 55%;
    animation: floatDrift3 10s ease-in-out infinite;
}

.hero-float-4 {
    bottom: 35%;
    right: 20%;
    animation: floatDrift1 14s ease-in-out infinite reverse;
}

/* Particles Canvas */
#particles-canvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Hero Quick Links */
.hero-quick-links {
    position: relative;
    z-index: 55;
    padding: 0.75rem 0;
    background: rgba(6, 6, 10, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(245, 158, 11, 0.1);
}

.hero-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s var(--ease-out-expo);
    text-decoration: none;
}

.hero-quick-link i {
    color: #f59e0b;
    font-size: 0.6rem;
}

.hero-quick-link:hover {
    color: #fff;
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.35);
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .hero-quick-link {
        font-size: 0.6rem;
        padding: 0.25rem 0.6rem;
        gap: 0.3rem;
    }
    .hero-quick-link i {
        font-size: 0.5rem;
    }
}

/* Hero Floating Decoration Animations */
.hero-parallax-layer {
    position: absolute;
    will-change: transform;
    pointer-events: none;
}

/* Scroll Down Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: scrollIndicatorFade 3s ease-in-out infinite;
}

.scroll-indicator-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.scroll-indicator-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent-gold), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

/* Typewriter */
#typewriter {
    min-height: 1.8em;
    display: block;
}
#typewriter::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--accent-gold);
    font-weight: 300;
}

/* Hero text hierarchy polish */
.hero-content h1 {
    letter-spacing: -0.03em;
}
.hero-content h1 .gradient-gold {
    letter-spacing: -0.02em;
}
.hero-content #typewriter {
    font-size: clamp(0.95rem, 2.5vw, 1.2rem);
    line-height: 1.8;
    max-width: 480px;
}
@media (max-width: 640px) {
    .hero-content #typewriter {
        max-width: 100%;
    }
    .hero-content h1 {
        letter-spacing: -0.02em;
    }
}

/* Hero Video Paused State */
.hero-video.paused {
    opacity: 0.5;
    filter: grayscale(0.3);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
    text-decoration: none;
    text-transform: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-gold {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%);
    color: #0f0f12;
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.25), 0 0 0 0 rgba(245, 158, 11, 0.4);
}

.btn-gold:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 60px rgba(245, 158, 11, 0.35), 0 0 0 4px rgba(245, 158, 11, 0.1);
}

.btn-glass {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-glass:hover {
    background: var(--glass-hover);
    border-color: var(--accent-gold);
    transform: translateY(-4px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
}

.btn-outline:hover {
    background: var(--accent-gold);
    color: #0f0f12;
    transform: translateY(-4px);
}

.btn-white {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn-white:hover {
    background: #e5e5e5;
    transform: translateY(-4px);
}

.btn-lg {
    padding: 1.25rem 3.5rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.75rem 1.75rem;
    font-size: 0.875rem;
}

.btn-icon {
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 18px;
}

.btn-admission {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.55rem 1.1rem;
    border: 1px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
}

.btn-admission:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
}

.btn-admission .badge-new {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    font-size: 0.55rem;
    font-weight: 800;
    background: #000;
    color: #f59e0b;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

/* Magnetic Button */
.btn-magnetic {
    transition: transform 0.2s ease;
}

/* =============================================
   BADGES
   ============================================= */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 100px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
}

.badge-gold {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--accent-gold);
}

.badge-blue {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--accent-blue);
}

.badge-green {
    background: rgba(20, 184, 166, 0.1);
    border-color: rgba(20, 184, 166, 0.3);
    color: var(--accent-teal);
}

.badge-pink {
    background: rgba(236, 72, 153, 0.1);
    border-color: rgba(236, 72, 153, 0.3);
    color: var(--accent-pink);
}

/* =============================================
   CARDS
   ============================================= */
.card {
    position: relative;
    background: linear-gradient(135deg, rgba(255,255,255,0.025) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.5s var(--ease-out-expo);
    overflow: hidden;
    text-decoration: none;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-12px);
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(245, 158, 11, 0.1),
        0 0 40px rgba(245, 158, 11, 0.05);
    border-color: rgba(245, 158, 11, 0.15);
}

.card-glass {
    background: linear-gradient(135deg, rgba(18, 18, 26, 0.92) 0%, rgba(14, 14, 22, 0.95) 50%, rgba(20, 18, 14, 0.95) 100%);
    border: 1px solid rgba(245, 158, 11, 0.12);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(245, 158, 11, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.card-gradient {
    background: linear-gradient(135deg, rgba(6, 6, 10, 0.9) 0%, rgba(12, 12, 18, 0.9) 100%);
}

.card-tilt {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-tilt:hover {
    transform: rotateX(2deg) rotateY(-2deg) translateY(-12px);
}

/* Card Icons */
.card-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    font-size: 2rem;
    transition: all 0.4s var(--ease-out-expo);
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.icon-gold {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(251, 191, 36, 0.1) 100%);
    color: var(--accent-gold);
}

.icon-blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
    color: var(--accent-blue);
}

.icon-purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: var(--accent-purple);
}

.icon-pink {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2) 0%, rgba(236, 72, 153, 0.1) 100%);
    color: var(--accent-pink);
}

.icon-teal {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.2) 0%, rgba(20, 184, 166, 0.1) 100%);
    color: var(--accent-teal);
}

/* Mission & Vision Cards */
.mission-card {
    position: relative;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(6, 6, 10, 0.9) 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-left: 3px solid #f59e0b;
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.mission-card:hover {
    border-color: rgba(245, 158, 11, 0.4);
    transform: translateX(4px);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.15);
}

.vision-card {
    position: relative;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, rgba(6, 6, 10, 0.9) 100%);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-left: 3px solid #a855f7;
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.vision-card:hover {
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateX(4px);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.15);
}

/* Gradient Border Card */
.card-gradient-border {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
}

.card-gradient-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 25px;
    background: conic-gradient(
        from 0deg,
        transparent,
        var(--accent-gold),
        transparent 40%,
        transparent 60%,
        var(--accent-gold-light),
        transparent
    );
    animation: borderSpin 4s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.card-gradient-border:hover::before {
    opacity: 1;
}

.card-gradient-border::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 23px;
    background: var(--bg-primary);
    z-index: 0;
    pointer-events: none;
}

.card-gradient-border > * {
    position: relative;
    z-index: 1;
}

/* Card content polish */
.card h3 {
    letter-spacing: -0.02em;
}
.card p {
    line-height: 1.7;
}
.card .card-icon + h3 {
    margin-top: -0.25rem;
}
.card:hover .card-icon i {
    transform: scale(1.15);
    transition: transform 0.4s var(--ease-out-expo);
}

.card .learn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-decoration: none;
    transition: all 0.3s var(--ease-out-expo);
}

.card .learn-link i {
    font-size: 0.65rem;
    transition: transform 0.3s var(--ease-out-expo);
}

.card .learn-link:hover i {
    transform: translateX(4px);
}

.card-link-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-gold);
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.4s var(--ease-out-expo);
}

.card:hover .card-link-hint {
    opacity: 1;
    transform: translateY(0);
}

/* About preview checkmark polish */
#about .fa-check-circle.text-amber-500 {
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.3));
}
#about .flex.items-center.gap-2 {
    padding: 0.35rem 0;
    transition: transform 0.3s ease;
}
#about .flex.items-center.gap-2:hover {
    transform: translateX(4px);
}

/* About preview image overlay effect */
#about .rounded-2xl.overflow-hidden {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
#about .rounded-2xl.overflow-hidden:hover {
    border-color: rgba(245, 158, 11, 0.25);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.1);
}
#about .rounded-2xl.overflow-hidden::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    box-shadow: inset 0 0 40px rgba(245, 158, 11, 0.15);
}
#about .rounded-2xl.overflow-hidden:hover::after {
    opacity: 1;
}
#about .rounded-2xl.overflow-hidden img {
    transition: transform 0.7s var(--ease-out-expo), filter 0.4s ease;
}
#about .rounded-2xl.overflow-hidden:hover img {
    filter: brightness(1.05) contrast(1.05);
}

/* Contact cards glass polish */
#contact-preview .card-glass.rounded-xl {
    transition: all 0.4s var(--ease-out-expo);
}
#contact-preview .card-glass.rounded-xl:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(245, 158, 11, 0.15);
    transform: translateX(6px);
}

/* CTA section spacing */
#main-content > section .max-w-3xl.mx-auto .btn-lg {
    letter-spacing: 0.01em;
}

/* =============================================
   SECTION TITLE GLOW
   ============================================= */
.section-title-glow {
    position: relative;
    display: inline-block;
}

.section-title-glow::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), var(--accent-gold-light), transparent);
    border-radius: 2px;
    animation: titleGlowPulse 2s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

/* =============================================
   FORMS
   ============================================= */
.form-input {
    width: 100%;
    padding: 1.125rem 1.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.form-input:focus.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonial-carousel {
    position: relative;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-track {
    display: flex;
    transition: transform 0.6s var(--ease-out-expo);
}

.testimonial {
    flex: 0 0 100%;
    padding: 2.5rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    position: relative;
    opacity: 0.6;
    transform: scale(0.95);
    transition: all 0.5s var(--ease-out-expo);
}

.testimonial.active {
    opacity: 1;
    transform: scale(1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-color: rgba(245, 158, 11, 0.2);
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 6rem;
    font-family: Georgia, serif;
    color: var(--accent-gold);
    opacity: 0.1;
    line-height: 1;
    pointer-events: none;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}

.testimonial-dot.active {
    background: var(--accent-gold);
    width: 32px;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

/* Stats */
.stat-number {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-ring {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.stat-ring svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    width: 100px;
    height: 100px;
}

.stat-ring .ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 2;
}

.stat-ring .ring-fg {
    fill: none;
    stroke: var(--accent-gold);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 2s var(--ease-out-expo);
}

.stat-ring .ring-fg.visible {
    stroke-dashoffset: 0;
}

/* =============================================
   PAGE HEADER
   ============================================= */
.page-header {
    position: relative;
    padding: 10rem 0 4rem;
    background: var(--bg-primary);
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(245, 158, 11, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 158, 11, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* .page-header-pattern defined in patterns.css */

/* Breadcrumb navigation */
.page-header nav.flex.items-center.gap-2 {
    font-size: 0.85rem;
}
.page-header nav.flex.items-center.gap-2 a {
    transition: color 0.3s ease;
    font-weight: 500;
}
.page-header nav.flex.items-center.gap-2 .fa-chevron-right {
    opacity: 0.5;
}
.page-header nav.flex.items-center.gap-2 span:last-child {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* Top Bar Marquee */
.animate-marquee-top-bar {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

/* =============================================
   MARQUEE
   ============================================= */
.marquee {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(251, 191, 36, 0.02) 100%);
    border-top: 1px solid rgba(245, 158, 11, 0.1);
    border-bottom: 1px solid rgba(245, 158, 11, 0.1);
    padding: 1rem 0;
}

.marquee-content {
    display: flex;
    animation: marqueeSmooth 40s linear infinite;
    will-change: transform;
}

.marquee-content:hover {
    animation-play-state: paused;
}



/* =============================================
   FOOTER
   ============================================= */
.footer {
    position: relative;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: 6rem 0 2rem;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.footer-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0;
    padding-left: 0;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.footer-link::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: -0.25rem;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--accent-gold);
    font-size: 0.75rem;
}

.footer-link:hover {
    padding-left: 1.25rem;
    color: var(--accent-gold);
}

.footer-link:hover::before {
    opacity: 1;
    left: 0;
}

.footer-social {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.footer-social:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
}

.footer-social i {
    transition: transform 0.3s ease;
}
.footer-social:hover i {
    transform: scale(1.2);
}

/* =============================================
   GALLERY (shared classes)
   ============================================= */
.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
}

.gallery-item:hover img {
    transform: scale(1.15);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 6, 10, 0.95), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* =============================================
   TABS
   ============================================= */
.tab-nav {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--bg-tertiary);
    border-radius: 16px;
}

.tab-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--bg-primary);
    color: var(--accent-gold);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.tab-btn:hover:not(.active) {
    color: var(--text-primary);
}

/* =============================================
   BACK TO TOP
   ============================================= */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
    color: var(--bg-primary);
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.3);
}

/* =============================================
   FLOATING SOCIAL BAR
   ============================================= */
.floating-social {
    position: fixed;
    bottom: 6rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 999;
}

.social-fab {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
    cursor: pointer;
    text-decoration: none;
}

.social-fab::after {
    content: attr(aria-label);
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(6, 6, 10, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
}

.social-fab:hover::after {
    opacity: 1;
    visibility: visible;
}

.social-fab.phone {
    background: linear-gradient(135deg, #10b981, #059669);
}

.social-fab.whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.social-fab.email {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.social-fab:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* =============================================
   COOKIE CONSENT
   ============================================= */
.cookie-consent {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    max-width: 500px;
    width: calc(100% - 3rem);
    background: rgba(12, 12, 18, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.25rem;
    z-index: 99999;
    display: none;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.cookie-consent.show {
    display: flex;
}

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--accent-gold), var(--accent-gold-light));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

/* =============================================
   IMAGE LIGHTBOX
   ============================================= */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out-expo);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    transform: scale(0.85);
    transition: transform 0.5s var(--ease-out-expo);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.lightbox-nav:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.3);
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-caption {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* =============================================
   FACULTY MODAL
   ============================================= */
.faculty-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faculty-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.faculty-modal {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(145deg, #0e0e16 0%, #08080e 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    transform: scale(0.85) translateY(40px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 60px 120px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.faculty-modal-overlay.active .faculty-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.faculty-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 28px 28px 0 0;
    background: linear-gradient(90deg, #f59e0b, #8b5cf6, #ec4899, #f59e0b);
    background-size: 300% 100%;
    animation: modalGradient 4s ease infinite;
}

.faculty-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 1.2rem;
}

.faculty-modal-close:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
    transform: rotate(90deg);
}

.modal-header {
    position: relative;
    padding: 2.5rem 2rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.15);
    animation: avatarGlow 3s ease-in-out infinite;
}

.modal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-avatar .placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(139, 92, 246, 0.2));
    color: #f59e0b;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Sora', sans-serif;
}

.modal-name {
    font-family: 'Sora', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.modal-designation {
    color: #f59e0b;
    font-weight: 600;
    font-size: 0.95rem;
}

.modal-body {
    padding: 1.5rem 2rem 2rem;
}

.modal-section {
    margin-bottom: 1.5rem;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Sora', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #f59e0b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(245, 158, 11, 0.15);
}

.modal-section-title i {
    font-size: 0.9rem;
}

.modal-about {
    color: #a1a1aa;
    font-size: 0.9rem;
    line-height: 1.7;
}

.modal-qual-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.6rem 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.modal-qual-row:hover {
    background: rgba(245, 158, 11, 0.03);
    border-color: rgba(245, 158, 11, 0.1);
}

.modal-qual-degree {
    font-weight: 700;
    color: #fff;
    font-size: 0.85rem;
    min-width: 80px;
}

.modal-qual-area {
    color: #a1a1aa;
    font-size: 0.8rem;
    flex: 1;
}

.modal-qual-year {
    color: #71717a;
    font-size: 0.75rem;
}

.modal-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.modal-stat {
    text-align: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
}

.modal-stat-value {
    font-family: 'Sora', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #f59e0b;
}

.modal-stat-label {
    font-size: 0.7rem;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.modal-contact-btns {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.modal-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.modal-contact-btn:hover {
    transform: translateY(-2px);
}

.modal-contact-btn.phone:hover {
    background: rgba(20, 184, 166, 0.15);
    border-color: rgba(20, 184, 166, 0.3);
    color: #14b8a6;
}

.modal-contact-btn.email:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

.modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.7rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 20px;
    font-size: 0.7rem;
    color: #fbbf24;
    font-weight: 500;
    margin: 0.25rem;
}

.modal-list {
    list-style: none;
    padding: 0;
}

.modal-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.4rem 0;
    color: #a1a1aa;
    font-size: 0.85rem;
}

.modal-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #f59e0b;
    border-radius: 50%;
    margin-top: 0.4rem;
    flex-shrink: 0;
}

/* =============================================
   CTA BOX
   ============================================= */
.cta-box {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(12, 12, 18, 0.8) 100%);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #000;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.cta-btn:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* Highlights Box */
.highlights-box {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.06) 0%, rgba(12, 12, 18, 0.8) 100%);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 14px;
    padding: 1.25rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    font-size: 0.8rem;
    color: #e4e4e7;
    transition: all 0.2s ease;
}

.highlight-item:hover {
    background: rgba(245, 158, 11, 0.1);
    transform: translateX(2px);
}

/* =============================================
   STICKY ADMISSION BAR
   ============================================= */
.sticky-admission-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(6, 6, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(245, 158, 11, 0.15);
    padding: 0.75rem 0;
    z-index: 9990;
    transform: translateY(100%);
    transition: transform 0.5s var(--ease-out-expo);
}

.sticky-admission-bar.visible {
    transform: translateY(0);
}

@media (min-width: 768px) {
    .sticky-admission-bar { display: none; }
}

/* =============================================
   HERO PAGE LINKS ROW
   ============================================= */
.page-links-row {
    max-width: 620px;
    gap: 0.4rem;
}

.page-link-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.3s var(--ease-out-expo);
    white-space: nowrap;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.page-link-tag i {
    font-size: 0.55rem;
    color: var(--accent-gold);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.page-link-tag:hover {
    color: var(--text-primary);
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.1);
}

.page-link-tag:hover i {
    opacity: 1;
}

/* =============================================
   NOISE TEXTURE OVERLAY
   ============================================= */
.noise-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99999;
    opacity: 0.03;
    mix-blend-mode: overlay;
}

/* =============================================
   GLASSMORPHISM 2.0
   ============================================= */
.glass-deep {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(30px) saturate(1.2);
    -webkit-backdrop-filter: blur(30px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* =============================================
   ANIMATED DIVIDER
   ============================================= */
.section-divider {
    position: relative;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.3), transparent);
    margin: 0;
    overflow: visible;
}

.section-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.section-divider-wave {
    position: relative;
    width: 100%;
    height: 60px;
    overflow: hidden;
    line-height: 0;
}

.section-divider-wave svg {
    width: 100%;
    height: 100%;
}

/* =============================================
   REDUCED MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .loader {
        display: none;
    }
}

/* Faculty card name sizing */
.faculty-card h4 {
    font-size: clamp(0.5rem, 1.3vw, 0.7rem);
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* General text link styling */
a {
    -webkit-tap-highlight-color: rgba(245, 158, 11, 0.15);
}

main a:not(.btn):not(.card):not(.nav-link):not(.hero-quick-link):not(.footer-link):not(.footer-social):not(.learn-link):not(.card-link-hint):not(.gallery-item):not(.album-card):not(.gallery-card):not(.video-card):not(.mobile-link):not([class*="btn-"]):not([class*="badge"]):not(.filter-btn):not(.control-btn):not(.faculty-card):not(.footer-link) {
    color: var(--accent-gold);
    text-decoration: underline;
    text-decoration-color: rgba(245, 158, 11, 0.3);
    text-underline-offset: 3px;
    transition: all 0.3s ease;
}

main a:not(.btn):not(.card):not(.nav-link):not(.hero-quick-link):not(.footer-link):not(.footer-social):not(.learn-link):not(.card-link-hint):not(.gallery-item):not(.album-card):not(.gallery-card):not(.video-card):not(.mobile-link):not([class*="btn-"]):not([class*="badge"]):not(.filter-btn):not(.control-btn):not(.faculty-card):not(.footer-link):hover {
    text-decoration-color: var(--accent-gold);
    color: var(--accent-gold-light);
}

/* =============================================
    GENERAL SPACING & TRANSITIONS
    ============================================= */
section[id] {
    scroll-margin-top: 5rem;
}
#main-content > section {
    transition: background 0.5s ease;
}
#main-content > section + section {
    position: relative;
}
#main-content > section + section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.08), transparent);
    pointer-events: none;
}

/* Footer copyright polish */
.footer .border-t.border-white\/10 {
    position: relative;
}
.footer .border-t.border-white\/10::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.3), transparent);
}

/* Consistent section padding on mobile */
@media (max-width: 768px) {
    section.py-24 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* =============================================
   COUNSELLING TICKER
   ============================================= */
.counselling-ticker {
    width: 100%;
    overflow: hidden;
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.12);
    border-radius: 100px;
    padding: 0.4rem 0;
}

.counselling-ticker-track {
    display: inline-flex;
    white-space: nowrap;
    animation: tickerScroll 20s linear infinite;
    will-change: transform;
}

.counselling-ticker-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: #d4d4d8;
    white-space: nowrap;
    padding: 0 2rem;
}

.counselling-ticker:hover .counselling-ticker-track {
    animation-play-state: paused;
}

@keyframes tickerScroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

@media (max-width: 640px) {
    .counselling-ticker-item {
        font-size: 0.65rem;
        gap: 0.25rem;
        padding: 0 1rem;
    }
}

/* =============================================
   COUNSELING MODAL ADDITIONS
   ============================================= */
#counseling-modal .card-gradient {
    border: 1px solid rgba(245, 158, 11, 0.12);
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(245, 158, 11, 0.06),
        0 0 80px rgba(245, 158, 11, 0.04);
}

#counseling-modal .card-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #f59e0b, #d97706, #f59e0b, transparent);
    border-radius: 24px 24px 0 0;
}

#counseling-modal .modal-scroll::-webkit-scrollbar {
    width: 5px;
}

#counseling-modal .modal-scroll::-webkit-scrollbar-track {
    background: transparent;
}

#counseling-modal .modal-scroll::-webkit-scrollbar-thumb {
    background: rgba(245, 158, 11, 0.3);
    border-radius: 100px;
}

#counseling-modal table {
    border-collapse: collapse;
}

#counseling-modal table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(12, 12, 18, 0.98);
}

#counseling-modal .overflow-x-auto {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 768px) {
    #counseling-modal .card-gradient {
        padding: 1.25rem !important;
    }
    #counseling-modal table {
        font-size: 0.65rem;
    }
    #counseling-modal table th,
    #counseling-modal table td {
        padding: 0.4rem 0.35rem !important;
    }
    #counseling-modal .grid-cols-2.md\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    h1:not([class*="text-"]) { font-size: clamp(2rem, 6vw, 4rem); }
    h2:not([class*="text-"]) { font-size: clamp(1.75rem, 4vw, 2.5rem); }

    .hero-glow { width: 350px; height: 350px; }
    .stat-number { font-size: 3rem; }
}

@media (max-width: 768px) {
    h1:not([class*="text-"]) { font-size: clamp(1.75rem, 5vw, 3rem); }
    h2:not([class*="text-"]) { font-size: clamp(1.5rem, 3.5vw, 2rem); }

    #hero > .container {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    #hero .grid.lg\:grid-cols-2.gap-12 {
        gap: 0.75rem !important;
    }

    #hero h1.display {
        font-size: clamp(1.35rem, 5vw, 2rem) !important;
        margin-bottom: 0.25rem !important;
    }

    #hero h1.display .w-12.h-12 {
        width: 1.75rem !important;
        height: 1.75rem !important;
    }

    #hero .mb-3:not(.card-glass *) { margin-bottom: 0.25rem !important; }
    #hero .mb-6:not(.card-glass *) { margin-bottom: 0.35rem !important; }
    #hero .mb-4:not(.card-glass *) { margin-bottom: 0.25rem !important; }
    #hero .mb-8 { margin-bottom: 0.5rem !important; }
    #hero .mb-10 { margin-bottom: 0.5rem !important; }
    #hero .mb-2 { margin-bottom: 0.15rem !important; }

    #hero .gap-8 { gap: 0.75rem !important; }
    #hero .gap-3 { gap: 0.35rem !important; }

    #hero .counter.text-3xl,
    #hero .counter.text-3xl.font-bold {
        font-size: 1.25rem !important;
    }
    #hero .text-xs.uppercase.tracking-wider {
        font-size: 0.6rem !important;
    }
    #hero .text-xl.text-white {
        font-size: 0.85rem !important;
    }
    #hero .text-zinc-400 {
        font-size: 0.75rem !important;
    }

    #hero .btn-lg {
        padding: 0.4rem 0.9rem !important;
        font-size: 0.7rem !important;
    }

    #hero .card-glass {
        padding: 0.75rem !important;
    }
    #hero .card-glass .text-4xl.font-bold {
        font-size: 1.25rem !important;
        margin-bottom: 0.25rem !important;
    }
    #hero .card-glass .text-sm {
        font-size: 0.7rem !important;
    }
    #hero .card-glass .text-xs {
        font-size: 0.6rem !important;
    }
    #hero .card-glass .text-xl {
        font-size: 0.85rem !important;
    }
    #hero .card-glass .pt-4 {
        padding-top: 0.5rem !important;
    }
    #hero .card-glass .grid-cols-4.gap-4 {
        gap: 0.35rem !important;
    }
    #hero .card-glass .border-x,
    #hero .card-glass .border-l {
        border: none !important;
    }

    .scroll-indicator {
        display: none !important;
    }

    .card { border-radius: 20px; padding: 1.5rem; }
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        border-radius: 18px;
    }

    .btn { padding: 0.875rem 2rem; }
    .btn-lg { padding: 1rem 2.5rem; }

    .footer { padding: 4rem 0 1.5rem; }
    .footer-grid { gap: 2rem; }

    .floating-social {
        bottom: 5rem;
        right: 1rem;
    }
    .social-fab {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    .cookie-consent {
        bottom: 1rem;
        width: calc(100% - 2rem);
        padding: 1rem;
    }
    .mobile-menu {
        width: 280px;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .lightbox-prev { left: 0.75rem; }
    .lightbox-next { right: 0.75rem; }
    .lightbox-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 40px;
        height: 40px;
    }
    .testimonial {
        padding: 1.5rem;
    }
    /* About section images on tablet */
    #about .grid-cols-2 {
        gap: 0.75rem;
    }
    #about .mt-8 {
        margin-top: 0.75rem;
    }
}

@media (max-width: 640px) {
    /* Hero stats card: 4 cols -> 2 cols */
    .card-glass > .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }
    .card-glass > .grid-cols-4 > div:nth-child(2) {
        border-right: none !important;
    }
    .card-glass > .grid-cols-4 > div:nth-child(3),
    .card-glass > .grid-cols-4 > div:nth-child(4) {
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        padding-top: 0.5rem !important;
        border-left: none !important;
    }

    /* Hero quick links smaller spacing */
    #hero .flex-nowrap {
        gap: 0.3rem !important;
    }

    /* About section image grid single column */
    #about .grid-cols-2 {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    #about .mt-8 {
        margin-top: 0;
    }

    .faculty-modal {
        max-width: 100%;
        border-radius: 20px;
        margin: 0.5rem;
    }
    .modal-header {
        padding: 2rem 1.5rem 1rem;
    }
    .modal-body {
        padding: 1rem 1.5rem 1.5rem;
    }
    .modal-avatar {
        width: 100px;
        height: 100px;
    }
    .modal-name {
        font-size: 1.25rem;
    }
    .modal-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    h1:not([class*="text-"]) { font-size: 1.5rem; }
    h2:not([class*="text-"]) { font-size: 1.25rem; }
    .hero h1.display {
        font-size: clamp(1.75rem, 10vw, 2.5rem) !important;
    }
    .hero h1.display .flex .text-left {
        font-size: clamp(1.1rem, 6vw, 1.5rem) !important;
    }

    .stat-number { font-size: 2.5rem !important; }

    .hero-content .counter.text-3xl {
        font-size: 1.5rem !important;
    }

    .btn { padding: 0.75rem 1.5rem; font-size: 0.9rem; }
    .btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }

    .floating-social {
        bottom: 4.5rem;
        right: 0.75rem;
    }
    .social-fab {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    .social-fab::after {
        display: none;
    }

    .testimonial-dot.active {
        width: 24px;
    }

    .page-header {
        padding: 7rem 0 2.5rem;
    }
    .page-header h1 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .hero-content .flex-wrap.gap-8.mb-10 {
        gap: 0.75rem !important;
    }
    .hero-content .btn-lg {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem !important;
    }

    #gallery-preview .grid-cols-2.md\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .sticky-admission-bar .btn-sm {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    #hero .flex-wrap.justify-center.gap-3 .btn-lg,
    #main-content .flex-wrap.gap-3 .btn-lg {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* =============================================
   MOBILE ENHANCEMENTS
   ============================================= */

/* Hero quick links: allow wrapping on small screens */
@media (max-width: 480px) {
    #hero .flex-nowrap {
        flex-wrap: wrap !important;
        gap: 0.2rem !important;
    }
    .hero-quick-link {
        font-size: 0.5rem !important;
        padding: 0.15rem 0.4rem !important;
    }

    #hero .counselling-ticker {
        display: none !important;
    }

    #hero .inline-flex.items-center.gap-2.px-4.rounded-full.mb-6 {
        margin-bottom: 0.35rem !important;
        padding: 0.2rem 0.5rem !important;
    }
    #hero .inline-flex.items-center.gap-2.px-4.rounded-full.mb-6 .text-xs {
        font-size: 0.55rem !important;
    }
    #hero .inline-flex.items-center.gap-2.px-4.rounded-full.mb-6 span:first-child {
        width: 0.35rem !important;
        height: 0.35rem !important;
    }

    #hero h1.display .flex.items-center.justify-center.gap-3.mb-2 {
        margin-bottom: 0.1rem !important;
        gap: 0.35rem !important;
    }

    #hero .btn-lg {
        padding: 0.3rem 0.65rem !important;
        font-size: 0.6rem !important;
    }

    #hero .card-glass .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    #hero .card-glass .grid-cols-4 > div {
        padding: 0.25rem !important;
    }
    #hero .card-glass .grid-cols-4 > div:nth-child(1),
    #hero .card-glass .grid-cols-4 > div:nth-child(2) {
        border-bottom: 1px solid rgba(255,255,255,0.06) !important;
        padding-bottom: 0.35rem !important;
        margin-bottom: 0.25rem !important;
    }
}

/* Top bar: more compact on mobile */
@media (max-width: 480px) {
    #main-nav .container.flex-wrap {
        gap: 0.25rem;
    }
    #main-nav .gap-6 {
        gap: 0.75rem;
    }
    #main-nav .gap-3 {
        gap: 0.4rem;
    }
    #main-nav .text-sm {
        font-size: 0.65rem;
    }
}

/* College name: show shorter on tablets */
@media (min-width: 640px) and (max-width: 1023px) {
    #main-nav .hidden.sm\\:block h1 {
        font-size: 0.8rem;
    }
    #main-nav .hidden.sm\\:block p {
        font-size: 0.6rem;
    }
    #main-nav .btn-ghost.btn-sm {
        display: none !important;
    }
}

/* Right card stats: already handled at 640px by .card-glass > .grid-cols-4 */

/* Very small phones (<= 360px) */
@media (max-width: 360px) {
    #hero .flex-nowrap {
        display: none !important;
    }
    #hero h1.display {
        font-size: clamp(1.1rem, 5vw, 1.4rem) !important;
        margin-bottom: 0.15rem !important;
    }
    #hero h1.display .w-12.h-12 {
        width: 1.35rem !important;
        height: 1.35rem !important;
    }
    #hero .text-xl.text-white {
        font-size: 0.7rem !important;
    }
    #hero .text-zinc-400 {
        font-size: 0.65rem !important;
    }
    #hero .counter.text-3xl,
    #hero .counter.text-3xl.font-bold {
        font-size: 1rem !important;
    }
    #hero .btn-lg {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.55rem !important;
    }
    #hero .card-glass {
        padding: 0.5rem !important;
    }
    #hero .card-glass .text-4xl.font-bold {
        font-size: 1rem !important;
    }
    #hero .card-glass .text-xl {
        font-size: 0.75rem !important;
    }
    #hero .card-glass .text-sm {
        font-size: 0.6rem !important;
    }
    #hero .card-glass .text-xs {
        font-size: 0.5rem !important;
    }
}

/* Touch-friendly improvements for mobile */
@media (hover: none) and (pointer: coarse) {
    .nav-link, .mobile-link, .btn, .hero-quick-link, .footer-link {
        -webkit-tap-highlight-color: rgba(245, 158, 11, 0.2);
    }
    .nav-link, .mobile-link {
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
    }
    .btn {
        min-height: 44px;
    }
}

/* Important links grid: better mobile density */
@media (max-width: 480px) {
    #main-content .xl\:grid-cols-4,
    .xl\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    #main-content .xl\:grid-cols-4 > a,
    .xl\:grid-cols-4 > a {
        padding: 0.75rem !important;
        gap: 0.5rem !important;
    }
    #main-content .xl\:grid-cols-4 > a .w-11,
    .xl\:grid-cols-4 > a .w-11 {
        width: 2.25rem;
        height: 2.25rem;
    }
    #main-content .xl\:grid-cols-4 > a .w-11 i,
    .xl\:grid-cols-4 > a .w-11 i {
        font-size: 0.75rem;
    }
}

/* Admission modal responsive */
@media (max-width: 640px) {
    #admission-modal .grid-cols-2.md\:grid-cols-3.lg\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    #admission-modal .p-8.md\:p-12 {
        padding: 1rem;
    }
    #admission-modal h2 {
        font-size: 1.25rem;
    }
    #admission-modal h3 {
        font-size: 1rem;
    }
}

/* Footer: better mobile layout */
@media (max-width: 640px) {
    .footer .grid-cols-1.md\:grid-cols-2.lg\:grid-cols-4 {
        gap: 2rem;
    }
    .footer .footer-title {
        font-size: 1rem;
    }
}

/* Programs section: card text sizing on mobile */
@media (max-width: 480px) {
    #programs .card {
        padding: 1.25rem;
    }
    #programs .card h3 {
        font-size: 1.1rem;
    }
    #programs .card .text-sm {
        font-size: 0.8rem;
    }
}
