/* ==========================================
   SUNRISE PUBLIC SCHOOL - 3D CSS STYLES
   Professional School Website with 3D Effects
   ========================================== */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --accent: #06b6d4;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-3d: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

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

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

/* ==========================================
   3D NAVIGATION
   ========================================== */
.navbar-3d {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-3d.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-3d {
    display: flex;
    align-items: center;
    text-decoration: none;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.logo-3d:hover {
    transform: translateZ(20px) rotateY(5deg);
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-right: 12px;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    transform: translateZ(30px);
}

.logo-main {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}

.logo-sub {
    display: block;
    font-size: 12px;
    color: var(--gray);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-menu-3d {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    position: relative;
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-1);
    transform: translateY(100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
}

.nav-link:hover::before,
.nav-link.active::before {
    transform: translateY(0);
    opacity: 1;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.nav-spacer {
    height: 80px;
}
/* ==========================================
   MOBILE NAVIGATION - COMPLETE FIX
   ========================================== */

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* Mobile Toggle Button */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    background: rgba(99, 102, 241, 0.1);
}

.hamburger-line {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: all 0.3s ease;
    position: relative;
    margin: 3px 0;
}

/* Hamburger Animation when Active */
.mobile-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: var(--primary);
}

.mobile-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: var(--primary);
}

/* Navigation Menu - Desktop Default */
.nav-menu-3d {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    position: relative;
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-icon {
    display: none; /* Hidden on desktop */
}

/* Mobile CTA Hidden on Desktop */
.mobile-cta {
    display: none;
}

/* ==========================================
   MOBILE RESPONSIVE STYLES
   ========================================== */
@media (max-width: 992px) {
    /* Show Mobile Toggle */
    .mobile-toggle {
        display: flex;
    }
    
    /* Mobile Menu Styles */
    .nav-menu-3d {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 30px 30px;
        gap: 5px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-menu-3d.active {
        right: 0;
    }
    
    .nav-item {
        width: 90%;
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.3s ease;
    }
    
    .nav-menu-3d.active .nav-item {
        opacity: 1;
        transform: translateX(0);
    }
    
    /* Staggered Animation for Menu Items */
    .nav-menu-3d.active .nav-item:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu-3d.active .nav-item:nth-child(2) { transition-delay: 0.15s; }
    .nav-menu-3d.active .nav-item:nth-child(3) { transition-delay: 0.2s; }
    .nav-menu-3d.active .nav-item:nth-child(4) { transition-delay: 0.25s; }
    .nav-menu-3d.active .nav-item:nth-child(5) { transition-delay: 0.3s; }
    .nav-menu-3d.active .nav-item:nth-child(6) { transition-delay: 0.35s; }
    .nav-menu-3d.active .nav-item:nth-child(7) { transition-delay: 0.4s; }
    .nav-menu-3d.active .nav-item:nth-child(8) { transition-delay: 0.45s; }
    
    .nav-link {
        width: 100%;
        padding: 15px 20px;
        border-radius: 15px;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-link::before {
        border-radius: 15px;
    }
    
    .nav-link:hover,
    .nav-link.active {
        transform: translateX(10px);
    }
    
    /* Show Icons on Mobile */
    .nav-icon {
        display: flex;
        width: 40px;
        height: 40px;
        background: rgba(99, 102, 241, 0.1);
        border-radius: 10px;
        align-items: center;
        justify-content: center;
        color: var(--primary);
        font-size: 1.1rem;
    }
    
    .nav-link:hover .nav-icon,
    .nav-link.active .nav-icon {
        background: white;
        color: var(--primary);
    }
    
    /* Mobile CTA Button */
    .mobile-cta {
        display: block;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 2px solid rgba(0, 0, 0, 0.1);
    }
    
    .btn-mobile-nav {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding: 18px;
        background: var(--gradient-1);
        color: white;
        text-decoration: none;
        border-radius: 15px;
        font-weight: 600;
        font-size: 1.1rem;
        box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
        transition: all 0.3s ease;
    }
    
    .btn-mobile-nav:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
    }
    
    /* Prevent body scroll when menu open */
    body.menu-open {
        overflow: hidden;
    }
    
    /* Adjust nav spacer for mobile */
    .nav-spacer {
        height: 70px;
    }
    
    /* Smaller logo on mobile */
    .logo-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .logo-main {
        font-size: 20px;
    }
    
    .logo-sub {
        font-size: 10px;
    }
    
    .nav-container {
        height: 70px;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .nav-menu-3d {
        width: 85%;
        padding: 90px 20px 30px;
    }
    
    .nav-link {
        padding: 12px 15px;
        font-size: 1rem;
    }
    
    .nav-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* ==========================================
   HERO SECTION WITH 3D PARALLAX
   ========================================== */
   /* ==========================================
   ADVANCED 3D HERO SECTION - CINEMATIC
   ========================================== */
.hero-cinematic {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    perspective: 2000px;
}

/* Animated Particles Background */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float-particle 15s infinite;
}

@keyframes float-particle {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Floating 3D Shapes */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: morph-shape 20s ease-in-out infinite;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: #f093fb;
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: #4facfe;
    bottom: -100px;
    left: -100px;
    animation-delay: 5s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: #43e97b;
    top: 50%;
    left: 30%;
    animation-delay: 10s;
}

.shape-4 {
    width: 500px;
    height: 500px;
    background: #fa709a;
    bottom: 20%;
    right: 20%;
    animation-delay: 15s;
}

@keyframes morph-shape {
    0%, 100% {
        border-radius: 50%;
        transform: rotate(0deg) scale(1);
    }
    33% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(120deg) scale(1.1);
    }
    66% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
        transform: rotate(240deg) scale(0.9);
    }
}

/* Hero Content Layout */
.hero-content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 20px 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 10;
}

/* Animated Badge */
.badge-animated {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
}

.badge-animated i {
    color: #fee140;
}

/* Hero Title with 3D Effect */
.hero-title {
    margin-bottom: 25px;
}

.title-line {
    display: block;
    font-family: 'Playfair Display', serif;
    color: white;
    line-height: 1.2;
}

.title-line:first-child {
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 10px;
}

.title-highlight {
    font-size: 4.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #fee140 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: title-glow 3s ease-in-out infinite;
}

@keyframes title-glow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

.title-sub {
    font-size: 2rem;
    font-weight: 300;
    opacity: 0.9;
    margin-top: 10px;
}

/* Hero Description */
.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 500px;
}

.text-gradient {
    background: linear-gradient(135deg, #fee140 0%, #fa709a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

/* Magnetic Buttons */
.hero-cta-group {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn-magnetic {
    position: relative;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    overflow: hidden;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.btn-primary-glow {
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    color: #667eea;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.btn-primary-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.btn-magnetic:hover .btn-shine {
    left: 100%;
}

.btn-outline-glow {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.btn-outline-glow:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-3px);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.trust-item i {
    color: #fee140;
    font-size: 1.2rem;
}

/* 3D Glass Card */
.hero-visual-3d {
    perspective: 1000px;
}

.glass-card-3d {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
    transition: transform 0.1s ease;
    position: relative;
    /*overflow: hidden;*/
}

.card-glare {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-25deg);
    transition: left 0.5s;
    pointer-events: none;
}

.glass-card-3d:hover .card-glare {
    left: 150%;
}

.card-title {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

/* Stats Grid */
.stats-grid-3d {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-box:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-icon-float {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 20px;
    animation: icon-float 3s ease-in-out infinite;
}

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

.stat-number-wrapper {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 5px;
}

.stat-counter {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fee140;
}

.stat-label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.stat-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    transition: width 1.5s ease;
}

/* Floating Badge */
.floating-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 30px rgba(240, 147, 251, 0.4);
    animation: badge-bounce 2s ease-in-out infinite;
}

@keyframes badge-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: white;
    opacity: 0.7;
    animation: bounce-scroll 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheel-scroll 1.5s infinite;
}

@keyframes wheel-scroll {
    0% { opacity: 1; top: 10px; }
    100% { opacity: 0; top: 25px; }
}

@keyframes bounce-scroll {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ==========================================
   ANNOUNCEMENT MARQUEE
   ========================================== */
.announcement-marquee {
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
    padding: 15px 0;
    overflow: hidden;
    position: relative;
}

.marquee-content {
    display: flex;
    gap: 50px;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
    color: white;
    font-weight: 500;
}

.marquee-content span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.marquee-content i {
    color: #fee140;
}

.separator {
    color: rgba(255, 255, 255, 0.3);
}

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

/* ==========================================
   ADVANCED FEATURES SECTION
   ========================================== */
.features-section {
    padding: 120px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
}

.section-header-animated {
    text-align: center;
    margin-bottom: 80px;
}

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title-3d {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: #0f172a;
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-subtitle {
    color: #64748b;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Advanced Feature Cards */
.features-grid-advanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    perspective: 1000px;
}

.feature-card-advanced {
    background: white;
    border-radius: 30px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.5s ease;
    transform-style: preserve-3d;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card-advanced:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: skewX(-25deg);
    transition: left 0.6s;
}

.feature-card-advanced:hover .card-shine {
    left: 150%;
}

.feature-icon-wrapper {
    position: relative;
    margin-bottom: 25px;
    display: inline-block;
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    position: relative;
    z-index: 2;
    transform: translateZ(30px);
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: rgba(102, 126, 234, 0.3);
    border-radius: 24px;
    filter: blur(20px);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card-advanced:hover .icon-glow {
    opacity: 1;
}

.feature-card-advanced h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #0f172a;
}

.feature-card-advanced p {
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 20px;
}

.feature-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s;
}

.feature-link:hover {
    gap: 15px;
}

.card-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 5rem;
    font-weight: 800;
    color: rgba(102, 126, 234, 0.05);
    line-height: 1;
}

/* ==========================================
   PARALLAX COUNTER SECTION
   ========================================== */
.parallax-counter {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background-attachment: fixed;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?w=1920') center/cover;
    filter: brightness(0.3);
}

.counter-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
}

.counters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
    text-align: center;
}

.counter-item {
    color: white;
}

.counter-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.counter-item:hover .counter-icon {
    background: rgba(255, 255, 255, 0.2);
    transform: rotateY(360deg);
    transition: transform 0.6s;
}

.counter-number {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
}

.counter-suffix {
    font-size: 2rem;
    font-weight: 600;
    color: #fee140;
}

.counter-item p {
    margin-top: 10px;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ==========================================
   UPDATES SECTION - HORIZONTAL SCROLL
   ========================================== */
.updates-section {
    padding: 120px 0;
    background: #f1f5f9;
    overflow: hidden;
}

.updates-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0 -20px;
    padding: 20px;
}

.updates-scroll-container::-webkit-scrollbar {
    display: none;
}

.updates-track {
    display: flex;
    gap: 30px;
    width: max-content;
}

.update-card-large {
    width: 400px;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.update-card-large:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.update-image {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.update-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.update-card-large:hover .update-image img {
    transform: scale(1.1);
}

.update-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 16px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
}

.update-badge.hot { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.update-badge.event { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.update-badge.result { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }

.update-content {
    padding: 30px;
}

.update-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.update-date {
    color: #64748b;
    font-size: 0.9rem;
}

.update-category {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.update-category.admission { background: #fee2e2; color: #dc2626; }
.update-category.event { background: #dbeafe; color: #2563eb; }
.update-category.result { background: #d1fae5; color: #059669; }

.update-content h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #0f172a;
}

.update-content p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Scroll Controls */
.scroll-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.scroll-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-btn:hover {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

/* ==========================================
   TESTIMONIALS SECTION
   ========================================== */
.testimonials-section {
    padding: 120px 0;
    background: white;
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 30px;
    padding: 50px;
    text-align: center;
    display: none;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-card.active {
    display: block;
    animation: fadeIn 0.5s;
}

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

.quote-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: white;
    font-size: 24px;
}

.testimonial-text {
    font-size: 1.3rem;
    color: #334155;
    line-height: 1.8;
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.author-avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
}

.author-info h4 {
    color: #0f172a;
    margin-bottom: 5px;
}

.author-info span {
    color: #64748b;
    font-size: 0.9rem;
}

.rating {
    color: #fbbf24;
    margin-top: 5px;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: #667eea;
    width: 30px;
    border-radius: 6px;
}

/* ==========================================
   CTA SECTION - ANIMATED
   ========================================== */
.cta-animated {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    background: #0f172a;
}

.cta-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #4facfe);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
    opacity: 0.8;
}

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

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.cta-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.text-white-glow {
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.cta-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn-cta-primary {
    background: white;
    color: #667eea;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.btn-cta-secondary {
    background: transparent;
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.5);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.cta-features {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-features span {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.9;
}

.cta-features i {
    color: #43e97b;
}

/* ==========================================
   RESPONSIVE STYLES
   ========================================== */
@media (max-width: 992px) {
    .hero-content-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    
    .hero-description {
        margin: 0 auto 40px;
    }
    
    .trust-badges {
        justify-content: center;
    }
    
    .title-highlight {
        font-size: 3rem;
    }
    
    .section-title-3d {
        font-size: 2.5rem;
    }
    
    .stats-grid-3d {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .title-highlight {
        font-size: 2.5rem;
    }
    
    .title-sub {
        font-size: 1.5rem;
    }
    
    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid-advanced {
        grid-template-columns: 1fr;
    }
    
    .counters-row {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .counter-number {
        font-size: 3rem;
    }
    
    .update-card-large {
        width: 320px;
    }
    
    .cta-title {
        font-size: 2.5rem;
    }
    
    .testimonial-card {
        padding: 30px;
    }
}
.hero-3d {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    perspective: 1000px;
}

.hero-3d::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    animation: wave 20s linear infinite;
    opacity: 0.3;
}

@keyframes wave {
    0% { transform: translateX(0) translateZ(-100px); }
    100% { transform: translateX(-50%) translateZ(-100px); }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: white;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: fadeInUp 1s ease;
}

.hero-text .highlight {
    background: linear-gradient(120deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn-3d {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.btn-3d-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-3d-primary:hover {
    transform: translateY(-5px) translateZ(20px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.btn-3d-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.5);
}

.btn-3d-secondary:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-5px);
}

/* 3D Hero Image/Graphic */
.hero-visual {
    position: relative;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

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

.hero-card-3d {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 40px;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.hero-card-3d:hover {
    transform: rotateY(0) rotateX(0) scale(1.05);
}

.stats-3d {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transform: translateZ(30px);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateZ(50px) scale(1.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #00f2fe;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

/* ==========================================
   3D CARDS & COMPONENTS
   ========================================== */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 3D Feature Cards */
.features-3d {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    perspective: 1000px;
}

.feature-card-3d {
    background: white;
    border-radius: 25px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transform-style: preserve-3d;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.feature-card-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    transition: left 0.5s ease;
    z-index: 0;
}

.feature-card-3d:hover::before {
    left: 0;
}

.feature-card-3d:hover {
    transform: translateY(-20px) rotateX(10deg);
    box-shadow: 0 30px 60px rgba(99, 102, 241, 0.2);
}

.feature-card-3d > * {
    position: relative;
    z-index: 1;
}

.feature-card-3d:hover h3,
.feature-card-3d:hover p {
    color: white;
}

.feature-icon-3d {
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    color: white;
    transform: translateZ(50px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
}

.feature-card-3d:hover .feature-icon-3d {
    background: white;
    color: var(--primary);
    transform: translateZ(80px) rotateY(360deg);
}

.feature-card-3d h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
    transition: color 0.3s ease;
}

.feature-card-3d p {
    color: var(--gray);
    line-height: 1.8;
    transition: color 0.3s ease;
}

/* ==========================================
   3D FLIP CARDS (About Page)
   ========================================== */
.flip-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    perspective: 1000px;
}

.flip-card-3d {
    height: 400px;
    position: relative;
    transform-style: preserve-3d;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card-3d:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 25px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-3d);
}

.flip-card-front {
    background: white;
}

.flip-card-back {
    background: var(--gradient-1);
    color: white;
    transform: rotateY(180deg);
}

.flip-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    margin-bottom: 20px;
}

.flip-card-back .flip-icon {
    background: rgba(255,255,255,0.2);
}

/* ==========================================
   3D GALLERY
   ========================================== */
.gallery-3d {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item-3d {
    position: relative;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: all 0.5s ease;
    cursor: pointer;
}

.gallery-item-3d:hover {
    transform: translateZ(50px) scale(1.05);
    z-index: 10;
}

.gallery-item-3d img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item-3d:hover img {
    transform: scale(1.2);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 30px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item-3d:hover .gallery-overlay {
    transform: translateY(0);
}

/* ==========================================
   3D FACULTY CARDS
   ========================================== */
.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.faculty-card-3d {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transform-style: preserve-3d;
    transition: all 0.5s ease;
}

.faculty-card-3d:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.faculty-image {
    height: 300px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.faculty-image::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transform: translateZ(30px);
}

.faculty-image i {
    font-size: 80px;
    color: rgba(255,255,255,0.9);
}

.faculty-info {
    padding: 30px;
    text-align: center;
}

.faculty-info h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.faculty-info .subject {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.faculty-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.faculty-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    text-decoration: none;
    transition: all 0.3s ease;
    transform: translateZ(20px);
}

.faculty-social a:hover {
    background: var(--primary);
    color: white;
    transform: translateZ(40px) scale(1.2);
}

/* ==========================================
   3D CONTACT FORM
   ========================================== */
.contact-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-form-3d {
    background: white;
    padding: 50px;
    border-radius: 30px;
    box-shadow: var(--shadow-3d);
    transform-style: preserve-3d;
}

.form-group-3d {
    margin-bottom: 25px;
    position: relative;
}

.form-group-3d input,
.form-group-3d textarea,
.form-group-3d select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: transparent;
}

.form-group-3d input:focus,
.form-group-3d textarea:focus,
.form-group-3d select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    transform: translateZ(20px);
}

.form-group-3d label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    transition: all 0.3s ease;
    pointer-events: none;
    background: white;
    padding: 0 5px;
}

.form-group-3d input:focus + label,
.form-group-3d input:not(:placeholder-shown) + label,
.form-group-3d textarea:focus + label,
.form-group-3d textarea:not(:placeholder-shown) + label {
    top: 0;
    font-size: 0.85rem;
    color: var(--primary);
}

.form-group-3d textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group-3d textarea + label {
    top: 20px;
    transform: translateY(0);
}

.btn-submit-3d {
    width: 100%;
    padding: 18px;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.btn-submit-3d:hover {
    transform: translateY(-5px) translateZ(20px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
}

.contact-info-3d {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card-3d {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.info-card-3d:hover {
    transform: translateX(20px) translateZ(30px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.info-icon-3d {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transform: translateZ(40px);
}

/* ==========================================
   3D FOOTER
   ========================================== */
.footer-3d {
    background: var(--dark);
    color: white;
    position: relative;
    padding-top: 100px;
}

.footer-waves {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.footer-waves svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 50px;
}

.wave-fill {
    fill: var(--dark);
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 25px;
    color: white;
}

.footer-section h3 i {
    color: var(--accent);
    margin-right: 10px;
}

.footer-section p {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-links,
.contact-list {
    list-style: none;
}

.footer-links li,
.contact-list li {
    margin-bottom: 12px;
}

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

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(10px);
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255,255,255,0.7);
}

.contact-list i {
    color: var(--accent);
    margin-top: 5px;
}

.social-links-3d {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-3d {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.social-3d:hover {
    background: var(--primary);
    transform: translateY(-5px) translateZ(20px) rotateY(360deg);
}

.newsletter-form-3d {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-form-3d input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    color: white;
}

.newsletter-form-3d input::placeholder {
    color: rgba(255,255,255,0.5);
}

.btn-3d-subscribe {
    width: 45px;
    height: 45px;
    background: var(--gradient-1);
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-3d-subscribe:hover {
    transform: scale(1.1) translateZ(20px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255,255,255,0.5);
}

.footer-bottom i {
    color: var(--secondary);
}

/* Back to Top Button */
.back-to-top-3d {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateZ(100px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    z-index: 999;
}

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

.back-to-top-3d:hover {
    transform: translateY(-10px) translateZ(100px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.6);
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ==========================================
   ADMISSIONS PAGE SPECIFIC
   ========================================== */
.admission-process {
    display: flex;
    justify-content: space-between;
    margin: 60px 0;
    position: relative;
}

.admission-process::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: var(--gradient-1);
    z-index: 0;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    background: white;
    border: 4px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0 auto 20px;
    box-shadow: var(--shadow-3d);
    transition: all 0.3s ease;
}

.process-step:hover .step-number {
    background: var(--gradient-1);
    color: white;
    transform: translateZ(30px) scale(1.1);
}

.fee-table-3d {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-3d);
    margin-top: 40px;
}

.fee-table-3d th,
.fee-table-3d td {
    padding: 20px;
    text-align: left;
}

.fee-table-3d th {
    background: var(--gradient-1);
    color: white;
    font-weight: 600;
}

.fee-table-3d tr:nth-child(even) {
    background: #f8fafc;
}

.fee-table-3d tr:hover {
    background: rgba(99, 102, 241, 0.05);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

/* ==========================================
   ACADEMICS PAGE
   ========================================== */
.curriculum-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 15px 30px;
    border: none;
    background: white;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--gradient-1);
    color: white;
    transform: translateY(-3px);
}

.tab-content {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.tab-content.active {
    display: block;
}

.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.subject-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.subject-card:hover {
    transform: translateY(-10px) rotateY(10deg);
    box-shadow: var(--shadow-3d);
}

.subject-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 28px;
    color: white;
}