/* ============================================
   VISION PHYSICS INSTITUTE - DARK GREEN THEME
   ============================================ */

/* CSS Variables */
:root {
    --bg-primary: #031B26;
    --bg-secondary: #071612;
    --bg-card: #0B2419;
    --bg-hover: #1A4A3C;
    --border-color: #1A3A2A;
    --accent-teal: #00E5CC;
    --accent-teal-dim: #00A896;
    --accent-green: #4ADE80;
    --accent-green-dim: #22C55E;
    --text-primary: #FFFFFF;
    --text-secondary: #A8D5C8;
    --text-muted: #5A9080;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --transition: all 0.3s ease;
    --shadow-teal: 0 0 25px rgba(0, 229, 204, 0.18);
    --shadow-green: 0 0 25px rgba(74, 222, 128, 0.18);
    --radius: 12px;
    --radius-lg: 20px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

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

.preloader-logo {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
}

.preloader-bar {
    width: 200px;
    height: 4px;
    background: var(--bg-card);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.preloader-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-green));
    animation: preloaderProgress 2s ease-in-out forwards;
}

@keyframes preloaderPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

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

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(3, 27, 38, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(3, 27, 38, 0.99);
    border-bottom-color: var(--border-color);
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.nav-spacer { height: 70px; }

.nav-container {
    max-width: 100%;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    flex-shrink: 0;
    overflow: visible;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-logo img {
    height: 52px;
    width: auto;
    max-width: 200px;
    transition: var(--transition);
    object-fit: contain;
    display: block;
}

.nav-logo:hover img {
    transform: scale(1.08) rotate(-3deg);
}

.logo-svg-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.logo-svg-wrap:hover svg {
    transform: scale(1.12);
    filter: drop-shadow(0 0 10px rgba(0, 229, 204, 0.5));
}

.logo-svg-wrap svg {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.logo-tagline {
    font-size: 0.68rem;
    color: var(--accent-teal);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 24px 14px;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-teal);
    border-bottom-color: var(--accent-teal);
}

.nav-link i {
    font-size: 0.65rem;
    margin-left: 4px;
    transition: var(--transition);
}

.nav-item:hover .nav-link i {
    transform: rotate(180deg);
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-secondary);
    min-width: 220px;
    border: 1px solid var(--border-color);
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    list-style: none;
    z-index: 100;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

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

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.83rem;
    color: var(--text-secondary);
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.dropdown-menu li a:hover {
    color: var(--accent-teal);
    background: var(--bg-card);
    border-left-color: var(--accent-teal);
    padding-left: 25px;
}

.nav-cta {
    display: inline-block;
    padding: 10px 26px;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-teal-dim));
    color: var(--bg-primary);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    transition: var(--transition);
    border: 2px solid var(--accent-teal);
    letter-spacing: 0.5px;
}

.nav-cta:hover {
    background: transparent;
    color: var(--accent-teal);
    box-shadow: var(--shadow-teal);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-teal-dim));
    color: var(--bg-primary);
    border-color: var(--accent-teal);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-teal);
    box-shadow: var(--shadow-teal);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--accent-green);
    border-color: var(--accent-green);
}

.btn-outline:hover {
    background: var(--accent-green);
    color: var(--bg-primary);
    box-shadow: var(--shadow-green);
    transform: translateY(-3px);
}

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

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

.btn-sm {
    padding: 8px 22px;
    font-size: 0.8rem;
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section {
    padding: 90px 0;
    position: relative;
}

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

.section-label {
    display: inline-block;
    padding: 6px 22px;
    background: rgba(0, 229, 204, 0.08);
    color: var(--accent-teal);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    border-radius: 50px;
    margin-bottom: 16px;
    border: 1px solid rgba(0, 229, 204, 0.25);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-title span {
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #041f1a 50%, var(--bg-secondary) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 229, 204, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.hero-bg-particles {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: rgba(0, 229, 204, 0.07);
    animation: float 15s infinite ease-in-out;
}

.particle:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { top: 20%; left: 70%; animation-delay: -2s; }
.particle:nth-child(3) { top: 60%; left: 20%; animation-delay: -4s; }
.particle:nth-child(4) { top: 40%; left: 80%; animation-delay: -6s; }
.particle:nth-child(5) { top: 80%; left: 50%; animation-delay: -8s; }
.particle:nth-child(6) { top: 15%; left: 40%; animation-delay: -10s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.07; }
    50% { transform: translateY(-30px) rotate(5deg); opacity: 0.18; }
}

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

.hero-rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 229, 204, 0.08);
    border: 1px solid rgba(0, 229, 204, 0.25);
    border-radius: 50px;
    margin-bottom: 20px;
    animation: revealLeft 1s ease;
}

.hero-rating .stars { color: #FFD700; font-size: 0.8rem; }

.hero-rating span {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--accent-teal);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 15px;
    animation: revealLeft 1s ease 0.2s both;
}

.hero-title span {
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--accent-green);
    margin-bottom: 20px;
    animation: revealLeft 1s ease 0.4s both;
}

.hero-description {
    font-size: 0.98rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
    animation: revealLeft 1s ease 0.6s both;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    animation: revealLeft 1s ease 0.8s both;
}

.hero-stats {
    display: flex;
    gap: 30px;
    animation: revealLeft 1s ease 1s both;
}

.stat-item { text-align: center; }

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Hero Image */
.hero-image-frame {
    position: relative;
    animation: revealRight 1s ease 0.5s both;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid rgba(0, 229, 204, 0.25);
    box-shadow: 0 0 60px rgba(0, 229, 204, 0.1), 0 20px 40px rgba(0,0,0,0.5);
    transition: var(--transition);
    animation: heroFloat 4s ease-in-out infinite;
}

.hero-image-wrapper:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateX(3deg);
    box-shadow: 0 0 80px rgba(0, 229, 204, 0.2), 0 20px 40px rgba(0,0,0,0.5);
}

.hero-image-wrapper img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.hero-play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 72px; height: 72px;
    background: rgba(0, 229, 204, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.hero-play-btn:hover {
    background: var(--accent-teal);
    transform: translate(-50%, -50%) scale(1.12);
}

.hero-play-btn i {
    color: var(--bg-primary);
    font-size: 1.5rem;
    margin-left: 4px;
}

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

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-slides-wrapper {
    display: grid;
    min-height: calc(100vh - 70px);
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-slide {
    grid-row: 1;
    grid-column: 1;
    opacity: 0;
    transition: opacity 0.9s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: calc(100vh - 70px);
}

.hero-slide.slide-active {
    opacity: 1;
    pointer-events: all;
    z-index: 1;
}

.hero-slider-controls {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 18px;
    z-index: 10;
}

.hero-slider-prev,
.hero-slider-next {
    background: rgba(0, 229, 204, 0.12);
    border: 1px solid rgba(0, 229, 204, 0.35);
    color: var(--accent-teal);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 0.85rem;
}

.hero-slider-prev:hover,
.hero-slider-next:hover {
    background: var(--accent-teal);
    color: var(--bg-primary);
    box-shadow: 0 0 20px rgba(0,229,204,0.4);
}

.hero-slider-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 229, 204, 0.3);
    border: 1px solid rgba(0, 229, 204, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-dot.active {
    background: var(--accent-teal);
    width: 26px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0,229,204,0.5);
}

/* Progress bar on dots */
.hero-slide-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-green));
    width: 0%;
    transition: none;
    z-index: 10;
}

.hero-slide-progress.animating {
    width: 100%;
    transition: width 5s linear;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 229, 204, 0.4); }
    50% { box-shadow: 0 0 0 22px rgba(0, 229, 204, 0); }
}

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

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

/* Typing cursor */
.typing-text::after {
    content: '|';
    animation: blink 0.7s infinite;
    color: var(--accent-teal);
}

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

/* ============================================
   MARQUEE / TRUST BAR
   ============================================ */
.marquee-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 18px 0;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    animation: marqueeScroll 25s linear infinite;
    width: max-content;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 40px;
    white-space: nowrap;
    color: var(--accent-teal);
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 500;
}

.marquee-item i { font-size: 1.1rem; color: var(--accent-green); }

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

/* ============================================
   ABOUT PREVIEW
   ============================================ */
.about-preview {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    align-items: center;
}

.about-image { position: relative; }

.about-image img {
    border-radius: var(--radius-lg);
    border: 2px solid rgba(0, 229, 204, 0.2);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.02);
    border-color: rgba(0, 229, 204, 0.4);
    box-shadow: 0 25px 70px rgba(0, 229, 204, 0.12);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -15px; left: -15px;
    width: 100%; height: 100%;
    border: 2px solid var(--accent-teal);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.2;
}

.about-content h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.about-content h2 span {
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 25px 0;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.about-feature:hover {
    border-color: var(--accent-teal);
    transform: translateX(5px);
    background: rgba(0, 229, 204, 0.05);
}

.about-feature i {
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 229, 204, 0.1);
    color: var(--accent-teal);
    border-radius: 8px;
    font-size: 0.9rem;
}

.about-feature span {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ============================================
   COURSES GRID
   ============================================ */
.courses-section {
    background: var(--bg-primary);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.course-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px 22px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-green));
    transform: scaleX(0);
    transition: var(--transition);
}

.course-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 229, 204, 0.3);
    box-shadow: var(--shadow-teal);
}

.course-card:hover::before { transform: scaleX(1); }

.course-icon {
    width: 62px; height: 62px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, rgba(0, 229, 204, 0.1), rgba(74, 222, 128, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-teal);
    border: 1px solid rgba(0, 229, 204, 0.2);
    transition: var(--transition);
}

.course-card:hover .course-icon {
    background: linear-gradient(135deg, rgba(0, 229, 204, 0.2), rgba(74, 222, 128, 0.2));
    transform: scale(1.1) rotate(5deg);
}

.course-card h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.course-card p {
    font-size: 0.83rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    font-family: var(--font-heading);
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--accent-teal);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    color: var(--accent-green);
    gap: 8px;
}

/* ============================================
   STATS / COUNTER
   ============================================ */
.stats-section {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(0, 229, 204, 0.03) 0%, transparent 60%);
    animation: rotate 30s linear infinite;
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    position: relative;
    z-index: 1;
}

.stat-card {
    text-align: center;
    padding: 32px 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(0, 229, 204, 0.05);
    border-color: rgba(0, 229, 204, 0.3);
    transform: translateY(-6px);
    box-shadow: var(--shadow-teal);
}

.stat-card .counter {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.stat-card .counter-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
}

/* ============================================
   IPHONE APP SHOWCASE SECTION
   ============================================ */
.app-showcase-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

.app-showcase-section::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0, 229, 204, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.app-showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.app-showcase-content .section-label {
    display: inline-block;
    padding: 6px 22px;
    background: rgba(0, 229, 204, 0.08);
    color: var(--accent-teal);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    border-radius: 50px;
    margin-bottom: 16px;
    border: 1px solid rgba(0, 229, 204, 0.25);
}

.app-showcase-content h2 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 18px;
}

.app-showcase-content h2 span {
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.app-showcase-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 28px;
    font-size: 1rem;
}

.showcase-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 35px;
}

.showcase-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.showcase-feature:hover {
    border-color: var(--accent-teal);
    transform: translateX(6px);
    background: rgba(0, 229, 204, 0.04);
}

.showcase-feature-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, rgba(0, 229, 204, 0.15), rgba(74, 222, 128, 0.15));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-teal);
    font-size: 1rem;
    flex-shrink: 0;
}

.showcase-feature-text h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--text-primary);
}

.showcase-feature-text p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* iPhone Frame */
.iphone-frame-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: revealRight 1s ease 0.5s both;
}

.iphone-frame {
    position: relative;
    width: 280px;
    height: 580px;
    background: #0D1117;
    border-radius: 50px;
    border: 10px solid #1C2526;
    box-shadow:
        0 0 0 2px #0D1117,
        0 0 0 4px #2A3A3C,
        0 30px 80px rgba(0, 229, 204, 0.12),
        0 20px 40px rgba(0,0,0,0.7),
        inset 0 0 0 1px rgba(255,255,255,0.05);
    overflow: hidden;
    animation: phoneFloat 4s ease-in-out infinite;
    transition: var(--transition);
}

.iphone-frame:hover {
    box-shadow:
        0 0 0 2px #0D1117,
        0 0 0 4px #2A3A3C,
        0 30px 100px rgba(0, 229, 204, 0.22),
        0 20px 50px rgba(0,0,0,0.7),
        inset 0 0 0 1px rgba(255,255,255,0.05);
}

.iphone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background: #0D1117;
    border-radius: 0 0 18px 18px;
    z-index: 10;
}

.iphone-screen {
    width: 100%;
    height: 100%;
    border-radius: 40px;
    overflow: hidden;
    background: #000;
    position: relative;
}

.iphone-screen iframe,
.iphone-screen video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    pointer-events: none;
}

.iphone-screen-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-hover));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-align: center;
    padding: 20px;
}

.iphone-screen-placeholder i {
    font-size: 3rem;
    color: var(--accent-teal);
    opacity: 0.6;
}

.iphone-screen-placeholder p {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.iphone-side-btn {
    position: absolute;
    right: -12px;
    top: 90px;
    width: 4px; height: 60px;
    background: #1C2526;
    border-radius: 2px;
}

.iphone-side-btn-left {
    position: absolute;
    left: -12px;
    top: 80px;
    width: 4px; height: 35px;
    background: #1C2526;
    border-radius: 2px;
}

.iphone-side-btn-left-2 {
    position: absolute;
    left: -12px;
    top: 130px;
    width: 4px; height: 55px;
    background: #1C2526;
    border-radius: 2px;
}

@keyframes phoneFloat {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-18px) rotate(1deg); }
}

/* ============================================
   FACULTY SHOWCASE
   ============================================ */
.faculty-section {
    background: var(--bg-primary);
}

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.faculty-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: var(--transition);
}

.faculty-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 229, 204, 0.3);
    box-shadow: var(--shadow-teal);
}

.faculty-image {
    width: 140px; height: 140px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-teal);
    padding: 4px;
    position: relative;
}

.faculty-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: var(--transition);
}

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

.faculty-card h3 {
    font-family: var(--font-heading);
    font-size: 1.08rem;
    margin-bottom: 5px;
}

.faculty-card .qualification {
    font-size: 0.8rem;
    color: var(--accent-teal);
    margin-bottom: 5px;
}

.faculty-card .experience {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.faculty-card .subject {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 16px;
    background: rgba(0, 229, 204, 0.08);
    color: var(--accent-teal);
    font-size: 0.75rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 229, 204, 0.2);
}

.faculty-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.faculty-card:hover .faculty-social {
    opacity: 1;
    transform: translateY(0);
}

.faculty-social a {
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-hover);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 0.8rem;
    transition: var(--transition);
}

.faculty-social a:hover {
    background: var(--accent-teal);
    color: var(--bg-primary);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px;
    position: relative;
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: rgba(0, 229, 204, 0.3);
    box-shadow: var(--shadow-teal);
    transform: translateY(-5px);
}

.testimonial-stars {
    color: #FFD700;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.testimonial-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-author img {
    width: 50px; height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-teal);
}

.testimonial-author-info h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
}

.testimonial-author-info span {
    font-size: 0.8rem;
    color: var(--accent-teal);
}

.testimonial-badge {
    position: absolute;
    top: 20px; right: 20px;
    padding: 4px 10px;
    background: rgba(74, 222, 128, 0.08);
    color: var(--accent-green);
    font-size: 0.68rem;
    border-radius: 50px;
    border: 1px solid rgba(74, 222, 128, 0.2);
}

/* ============================================
   RESULTS / TOPPERS
   ============================================ */
.results-section {
    background: var(--bg-primary);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.result-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    text-align: center;
    position: relative;
}

.result-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-teal);
    box-shadow: var(--shadow-teal);
}

.result-card .trophy {
    position: absolute;
    top: 10px; right: 10px;
    color: #FFD700;
    font-size: 1.2rem;
    z-index: 2;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.5));
}

.result-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.result-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.result-info { padding: 20px; }

.result-info h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 5px;
}

.result-info .exam {
    font-size: 0.8rem;
    color: var(--accent-teal);
    margin-bottom: 5px;
}

.result-info .rank {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.result-info .quote {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 10px;
    font-style: italic;
}

/* ============================================
   GALLERY PREVIEW
   ============================================ */
.gallery-preview {
    background: var(--bg-secondary);
}

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 14px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item:nth-child(1) { grid-row: span 2; }
.gallery-item:nth-child(4) { grid-row: span 2; }

.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.gallery-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(3, 27, 38, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    transition: var(--transition);
    border: 2px solid transparent;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    border-color: rgba(0, 229, 204, 0.3);
}

.gallery-overlay i {
    font-size: 2rem;
    color: var(--accent-teal);
    margin-bottom: 10px;
}

.gallery-overlay span {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    background: var(--bg-primary);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(0, 229, 204, 0.25);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: var(--bg-card);
    border: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.faq-question:hover { background: var(--bg-hover); }

.faq-question i {
    color: var(--accent-teal);
    transition: var(--transition);
    font-size: 0.8rem;
}

.faq-item.active .faq-question i { transform: rotate(45deg); }

.faq-item.active .faq-question {
    color: var(--accent-teal);
    background: rgba(0, 229, 204, 0.05);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 25px;
    background: var(--bg-card);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 25px 20px;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

/* ============================================
   BLOG PREVIEW
   ============================================ */
.blog-preview {
    background: var(--bg-secondary);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 229, 204, 0.3);
    box-shadow: var(--shadow-teal);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.blog-content { padding: 24px; }

.blog-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.blog-meta .category {
    padding: 3px 12px;
    background: rgba(0, 229, 204, 0.08);
    color: var(--accent-teal);
    border-radius: 50px;
    border: 1px solid rgba(0, 229, 204, 0.2);
}

.blog-content h3 {
    font-family: var(--font-heading);
    font-size: 1.08rem;
    margin-bottom: 10px;
    line-height: 1.4;
    transition: var(--transition);
}

.blog-card:hover .blog-content h3 { color: var(--accent-teal); }

.blog-content p {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 15px;
}

/* ============================================
   CONTACT / CTA SECTION
   ============================================ */
.contact-section {
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    position: relative;
}

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

.contact-info h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 15px;
}

.contact-info h2 span {
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 22px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.contact-detail:hover {
    border-color: var(--accent-teal);
    transform: translateX(5px);
    background: rgba(0, 229, 204, 0.04);
}

.contact-detail i {
    width: 45px; height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 229, 204, 0.1);
    color: var(--accent-teal);
    border-radius: 10px;
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-detail h4 {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    margin-bottom: 3px;
}

.contact-detail span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.contact-social {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.contact-social a {
    width: 45px; height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: var(--transition);
}

.contact-social a:hover {
    background: var(--accent-teal);
    color: var(--bg-primary);
    border-color: var(--accent-teal);
    transform: translateY(-3px);
}

.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.84rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 13px 18px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 3px rgba(0, 229, 204, 0.1);
}

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-top { padding: 65px 0 35px; }

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

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.footer-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 22px;
}

.footer-social { display: flex; gap: 10px; }

.social-link {
    width: 38px; height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent-teal);
    color: var(--bg-primary);
    border-color: var(--accent-teal);
    transform: translateY(-3px);
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 600;
    margin-bottom: 22px;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 30px; height: 2px;
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-green));
    border-radius: 2px;
}

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

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links a::before {
    content: '›';
    color: var(--accent-teal);
    font-size: 1rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-teal);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-contact i {
    color: var(--accent-teal);
    margin-top: 3px;
    width: 16px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-credit { margin-top: 5px; }
.footer-credit i { color: #ff6b6b; }

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 60px; height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    z-index: 999;
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover { transform: scale(1.12); }

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 35px rgba(37, 211, 102, 0.7); }
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px; right: 100px;
    width: 45px; height: 45px;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-teal-dim));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    font-size: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 998;
    cursor: pointer;
    border: none;
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-teal);
}

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

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(0, 229, 204, 0.2); }
    50% { box-shadow: 0 0 25px rgba(0, 229, 204, 0.5); }
}

.glow-border {
    animation: glow 3s ease-in-out infinite;
}

/* Tilt 3D */
.tilt-3d { perspective: 1000px; }
.tilt-3d:hover { transform: perspective(1000px) rotateY(-5deg) rotateX(3deg); }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1199px) {
    .nav-container { padding: 0 25px; }
    .courses-grid { grid-template-columns: repeat(3, 1fr); }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .faculty-grid { grid-template-columns: repeat(2, 1fr); }
    .results-grid { grid-template-columns: repeat(3, 1fr); }
    .app-showcase-grid { gap: 50px; }
}

@media (max-width: 991px) {
    .nav-toggle { display: block; }
    .nav-cta { display: none; }
    .nav-menu {
        position: fixed;
        top: 70px; left: 0;
        width: 100%;
        background: var(--bg-secondary);
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        border-bottom: 1px solid var(--border-color);
    }
    .nav-menu.active { max-height: calc(100vh - 70px); overflow-y: auto; }
    .nav-link { padding: 15px 20px; border-bottom: 1px solid var(--border-color); }
    .dropdown-menu {
        position: static;
        opacity: 1; visibility: visible;
        transform: none;
        display: none;
        box-shadow: none;
        border: none;
        background: var(--bg-card);
    }
    .nav-item.dropdown:hover .dropdown-menu { display: none; }
    .nav-item.dropdown.active .dropdown-menu { display: block; }

    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-title { font-size: 2.5rem; }
    .hero-image-wrapper { max-width: 500px; margin: 0 auto; }

    .about-grid { grid-template-columns: 1fr; }
    .about-image { max-width: 400px; margin: 0 auto; }

    .contact-grid { grid-template-columns: 1fr; }
    .testimonials-slider { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }

    .app-showcase-grid { grid-template-columns: 1fr; }
    .iphone-frame-wrap { margin-top: 40px; }
}

@media (max-width: 767px) {
    .nav-container { padding: 0 20px; }
    .section { padding: 55px 0; }
    .section-title { font-size: 1.9rem; }
    .hero-title { font-size: 2rem; }
    .hero-stats { flex-wrap: wrap; gap: 15px; }
    .courses-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .results-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-masonry { grid-template-columns: repeat(2, 1fr); }
    .about-features { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .whatsapp-float { width: 50px; height: 50px; font-size: 1.5rem; bottom: 20px; right: 20px; }
    .back-to-top { right: 80px; bottom: 20px; }
    .iphone-frame { width: 240px; height: 500px; }
    .app-showcase-content h2 { font-size: 2rem; }
}

@media (max-width: 479px) {
    .courses-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .faculty-grid { grid-template-columns: 1fr; }
    .results-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; }
    .btn { width: 100%; }
    .contact-form-wrapper { padding: 24px; }
    .iphone-frame { width: 220px; height: 460px; }
}
