/* ===== CSS VARIABLES ===== */
:root {
    /* Colors - Enhanced Cobalt Blue, Yellow, White, Red */
    --cobalt-blue: #0047AB;
    --dark-blue: #002B6B;
    --light-blue: #4A90E2;
    --electric-blue: #0066FF;
    --bright-yellow: #FFD700;
    --golden-yellow: #FFC107;
    --amber: #FFBF00;
    --pure-white: #FFFFFF;
    --off-white: #F8F9FA;
    --glass-white: rgba(255, 255, 255, 0.1);
    --accent-red: #DC3545;
    --dark-red: #C82333;
    --neon-red: #FF0040;
    --text-dark: #212529;
    --text-gray: #6C757D;
    --text-light: #ADB5BD;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(0, 71, 171, 0.2);

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --font-inter: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 100px;
    --mobile-padding: 50px;

    /* Border Radius */
    --radius-xl: 30px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --radius-full: 50%;

    /* Transitions */
    --transition-fast: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 800ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Shadows */
    --shadow-sm: 0 2px 12px rgba(0, 71, 171, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 71, 171, 0.12);
    --shadow-lg: 0 16px 48px rgba(0, 71, 171, 0.16);
    --shadow-xl: 0 24px 64px rgba(0, 71, 171, 0.2);
    --shadow-glow: 0 0 40px rgba(255, 215, 0, 0.4);
    --shadow-neon: 0 0 20px rgba(0, 102, 255, 0.6);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--pure-white);
}

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

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

ul {
    list-style: none;
}

/* ===== ANIMATED BACKGROUND PATTERNS ===== */
.animated-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

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

.bg-shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--electric-blue), var(--cobalt-blue));
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.bg-shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--bright-yellow), var(--amber));
    top: 50%;
    right: -50px;
    animation-delay: 5s;
}

.bg-shape-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, var(--accent-red), var(--neon-red));
    bottom: -100px;
    left: 30%;
    animation-delay: 10s;
}

@keyframes float-random {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(50px, -50px) scale(1.1);
    }

    50% {
        transform: translate(-30px, 30px) scale(0.9);
    }

    75% {
        transform: translate(30px, 50px) scale(1.05);
    }
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--cobalt-blue);
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, var(--cobalt-blue), var(--electric-blue), var(--cobalt-blue));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {

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

    50% {
        background-position: 100% 50%;
    }
}

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

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Glassmorphism Button Styles */
.btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 1.05rem;
    transition: var(--transition-medium);
    text-align: center;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: var(--font-inter);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--bright-yellow), var(--amber));
    color: var(--cobalt-blue);
    box-shadow: var(--shadow-glow);
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 0 60px rgba(255, 215, 0, 0.6);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--cobalt-blue), var(--electric-blue));
    color: var(--pure-white);
    box-shadow: var(--shadow-neon);
    border: 2px solid transparent;
}

.btn-secondary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 0 60px rgba(0, 102, 255, 0.8);
}

.btn-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    color: var(--pure-white);
    box-shadow: var(--glass-shadow);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-4px);
}

/* ===== TOP BAR WITH GLASSMORPHISM ===== */
.top-bar {
    background: linear-gradient(135deg, var(--cobalt-blue), var(--dark-blue));
    color: var(--pure-white);
    padding: 12px 0;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.top-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-fast);
}

.top-bar-item:hover {
    transform: translateY(-2px);
}

.top-bar-item ion-icon {
    font-size: 1.3rem;
    color: var(--bright-yellow);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* ===== HEADER WITH GLASSMORPHISM ===== */
.header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 71, 171, 0.1);
    transition: var(--transition-fast);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

.header-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 24px;
    /* Increased padding to give logo more space */
}

/* Header Background Icons */
.header-bg-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    color: var(--cobalt-blue);
    opacity: 0.7; /* Increased opacity for less transparency */
    font-size: 2.5rem;
    animation: float-icon 10s ease-in-out infinite alternate;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.icon-chem { top: 10%; left: 5%; font-size: 3.2rem; color: var(--cobalt-blue); animation-delay: 0s; }
.icon-math { top: 50%; left: 25%; font-size: 2.8rem; color: var(--electric-blue); animation-delay: 1.5s; }
.icon-phy { top: 15%; left: 45%; font-size: 3.8rem; color: var(--amber); opacity: 0.8; animation-delay: 0.5s; }
.icon-sci { top: 60%; right: 20%; font-size: 2.5rem; color: var(--cobalt-blue); animation-delay: 2.5s; }
.icon-geom { top: 20%; right: 5%; font-size: 3.5rem; color: var(--electric-blue); animation-delay: 3s; }
.icon-atom { top: 40%; left: 60%; font-size: 3rem; color: var(--amber); opacity: 0.8; animation-delay: 1s; }

@keyframes float-icon {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-10px) rotate(15deg); }
}


/* ===== LOGO STYLING (FIXED FOR IMAGE) ===== */
.logo {
    display: flex;
    align-items: center;
    transition: var(--transition-fast);
}

.logo img {
    height: 80px;
    /* Increased height */
    width: auto;
    max-width: 350px;
    /* Increased max-width for horizontal logos */
    object-fit: contain;
    transition: var(--transition-fast);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15)); /* Makes logo look bold and stand out */
}

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


.nav-toggle {
    display: none;
    font-size: 2rem;
    color: var(--cobalt-blue);
    transition: var(--transition-fast);
}

.nav-toggle:hover {
    transform: rotate(90deg);
}

.navbar {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    font-family: var(--font-inter);
    color: var(--text-dark);
    position: relative;
    padding: 8px 0;
    transition: var(--transition-fast);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--bright-yellow), var(--amber));
    border-radius: 3px;
    transition: var(--transition-medium);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-link:hover {
    color: var(--cobalt-blue);
}

/* ===== HERO SECTION WITH ADVANCED ANIMATIONS ===== */
.hero {
    background: linear-gradient(135deg, #001f3f 0%, var(--dark-blue) 50%, var(--cobalt-blue) 100%);
    color: var(--pure-white);
    padding: 120px 0 100px;
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

/* Animated gradient mesh background */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-hero 15s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(220, 53, 69, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-hero 20s ease-in-out infinite reverse;
}

@keyframes float-hero {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-badge {
    display: inline-block;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    animation: fadeInDown 1s ease-out 0.3s both;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -2px;
    animation: fadeInUp 1s ease-out 0.5s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text .highlight {
    background: linear-gradient(135deg, var(--bright-yellow), var(--amber), var(--bright-yellow));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
    position: relative;
    display: inline-block;
}

.hero-text .highlight::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--bright-yellow), var(--amber));
    border-radius: 3px;
    animation: expand-width 1s ease-out 1s both;
}

@keyframes expand-width {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.7s both;
}

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

/* 3D Card Effect for Hero Image */
.hero-image {
    perspective: 1000px;
    animation: slideInRight 1s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    box-shadow: var(--shadow-xl);
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card:hover {
    transform: rotateY(5deg) rotateX(5deg);
}

.hero-card img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

/* ===== STATS SECTION WITH ANIMATED COUNTERS ===== */
.stats {
    background: var(--off-white);
    padding: 70px 0;
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    background: var(--pure-white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--cobalt-blue), var(--electric-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-medium);
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: var(--shadow-lg);
    border-color: var(--bright-yellow);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--cobalt-blue), var(--electric-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    line-height: 1;
}

.stat-number span {
    background: linear-gradient(135deg, var(--accent-red), var(--neon-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-gray);
    font-weight: 600;
    font-family: var(--font-inter);
}

/* ===== COURSES SECTION WITH ENHANCED CARDS - 3 COLUMNS GRID ===== */
.courses {
    background: var(--pure-white);
    position: relative;
}

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

/* Advanced Card with Glassmorphism - Equal Heights */
.course-card {
    background: var(--pure-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-medium);
    border: 2px solid transparent;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(0, 71, 171, 0.05) 0%,
            rgba(255, 215, 0, 0.05) 100%);
    opacity: 0;
    transition: var(--transition-medium);
    z-index: 0;
}

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

.course-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--bright-yellow);
}

.course-header {
    background: linear-gradient(135deg, var(--cobalt-blue), var(--electric-blue));
    color: var(--pure-white);
    padding: 40px 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.course-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, transparent 70%);
    animation: rotate-slow 15s linear infinite;
}

.course-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: var(--bright-yellow);
    animation: bounce-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.4));
    position: relative;
    z-index: 1;
}

@keyframes bounce-in {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.course-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.course-subtitle {
    font-size: 0.9rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.course-body {
    padding: 30px 25px;
    position: relative;
    z-index: 1;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-features {
    margin-bottom: auto;
}

.course-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--text-dark);
    transition: var(--transition-fast);
    padding: 8px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
}

.course-feature:hover {
    background: var(--off-white);
    transform: translateX(5px);
}

.course-feature ion-icon {
    color: var(--accent-red);
    font-size: 1.3rem;
    flex-shrink: 0;
    animation: pop 0.3s ease;
}

@keyframes pop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.course-feature:hover ion-icon {
    animation: pop 0.3s ease;
}

.course-footer {
    padding: 20px 25px;
    background: linear-gradient(to bottom, transparent, var(--off-white));
    text-align: center;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

/* ===== UDAAN EVENT SECTION ===== */
.udaan-event {
    background: linear-gradient(135deg, var(--cobalt-blue) 0%, var(--dark-blue) 100%);
    color: var(--pure-white);
    position: relative;
    overflow: hidden;
}

.udaan-event .animated-bg {
    opacity: 0.3;
}

.udaan-event .section-title {
    color: var(--pure-white);
    -webkit-text-fill-color: var(--pure-white);
}

.udaan-event .section-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

.udaan-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.udaan-image {
    position: relative;
}

.udaan-image-wrapper {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 3px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 15px;
    /* Slightly more padding */
    box-shadow: var(--shadow-xl);
    transition: var(--transition-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    overflow: visible;
    /* Added this */
}


.udaan-image-wrapper:hover {
    transform: scale(1.05);
    border-color: var(--bright-yellow);
}

.udaan-image-wrapper img {
    width: 100%;
    height: auto;
    max-height: none;
    /* REMOVED height restriction */
    display: block;
    object-fit: contain;
    /* Changed from 'cover' to 'contain' */
    border-radius: var(--radius-md);
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.17);
    margin: 0 auto;
}

.udaan-text h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--bright-yellow), var(--amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.udaan-text p {
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 20px;
    opacity: 0.95;
}

.udaan-highlights {
    display: grid;
    gap: 20px;
    margin: 30px 0;
}

.udaan-highlight {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    transition: var(--transition-medium);
}

.udaan-highlight:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
}

.udaan-highlight ion-icon {
    font-size: 2.5rem;
    color: var(--bright-yellow);
    flex-shrink: 0;
}

.udaan-highlight-text {
    flex: 1;
}

.udaan-highlight-text strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--bright-yellow);
}

/* ===== ABOUT SECTION WITH ENHANCED VISUALS ===== */
.about {
    background: var(--off-white);
    position: relative;
    color: var(--text-dark);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-image {
    position: relative;
}

.about .animated-bg {
    z-index: -1;
    pointer-events: none;
}

.about-image-wrapper {
    position: relative;
    background: var(--cobalt-blue);
    border-radius: var(--radius-lg);
    padding: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    z-index: 0;
}

.about-image-wrapper img {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
    border-radius: var(--radius-md);
}

.about-text h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 24px;
    line-height: 1.2;
}

.about-text h2 {
    background: linear-gradient(135deg, var(--cobalt-blue), var(--electric-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text h2 span {
    background: linear-gradient(135deg, var(--bright-yellow), var(--amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text p {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.9;
}

.about-features {
    display: grid;
    gap: 20px;
    margin: 40px 0;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--pure-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--cobalt-blue);
    transition: var(--transition-medium);
}

.about-feature:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--bright-yellow);
}

.about-feature ion-icon {
    font-size: 2.5rem;
    color: var(--accent-red);
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}

.about-feature-text {
    flex: 1;
}

.about-feature-text strong {
    color: var(--cobalt-blue);
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 4px;
}

/* ===== FACULTY SECTION WITH ENHANCED CARDS - 3 COLUMNS GRID ===== */
.faculty {
    background: var(--pure-white);
    position: relative;
}

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

.faculty-card {
    background: var(--pure-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-medium);
    border: 2px solid transparent;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.faculty-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: var(--transition-medium);
}

.faculty-card:hover::before {
    left: 100%;
}

.faculty-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: var(--shadow-xl);
    border-color: var(--bright-yellow);
}

.faculty-image {
    background: linear-gradient(135deg, var(--cobalt-blue), var(--electric-blue));
    padding: 45px 25px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.faculty-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
    animation: rotate-slow 20s linear infinite;
}

.faculty-avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--bright-yellow), var(--amber));
    border-radius: var(--radius-full);
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--cobalt-blue);
    font-weight: 900;
    border: 5px solid var(--pure-white);
    box-shadow: var(--shadow-glow);
    position: relative;
    z-index: 1;
    transition: var(--transition-medium);
}

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

.faculty-info {
    padding: 25px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.faculty-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--cobalt-blue);
    margin-bottom: 8px;
}

.faculty-subject {
    color: var(--accent-red);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1rem;
}

.faculty-qualification {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.7;
    flex-grow: 1;
}

/* ===== TESTIMONIALS WITH GLASSMORPHISM ===== */
.testimonials {
    background: linear-gradient(135deg, var(--cobalt-blue) 0%, var(--dark-blue) 100%);
    color: var(--pure-white);
    position: relative;
    overflow: hidden;
}

.testimonials .animated-bg {
    opacity: 0.3;
}

.testimonials .section-title {
    color: var(--pure-white);
    -webkit-text-fill-color: var(--pure-white);
}

.testimonials .section-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 40px;
    border: 2px solid var(--glass-border);
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--bright-yellow), var(--amber));
    border-radius: var(--radius-xl);
    opacity: 0;
    transition: var(--transition-medium);
    z-index: -1;
}

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

.testimonial-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-xl);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.testimonial-avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--bright-yellow), var(--amber));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--cobalt-blue);
    font-weight: 900;
    box-shadow: var(--shadow-glow);
    flex-shrink: 0;
}

.testimonial-student-info h4 {
    font-size: 1.3rem;
    margin-bottom: 6px;
    font-weight: 700;
}

.testimonial-achievement {
    color: var(--neon-red);
    font-size: 0.95rem;
    font-weight: 700;
}

.testimonial-text {
    font-style: italic;
    line-height: 1.9;
    opacity: 0.95;
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.testimonial-rating {
    display: flex;
    gap: 6px;
}

.testimonial-rating ion-icon {
    color: var(--bright-yellow);
    font-size: 1.4rem;
    animation: star-glow 1.5s ease-in-out infinite;
}

.testimonial-rating ion-icon:nth-child(1) {
    animation-delay: 0s;
}

.testimonial-rating ion-icon:nth-child(2) {
    animation-delay: 0.1s;
}

.testimonial-rating ion-icon:nth-child(3) {
    animation-delay: 0.2s;
}

.testimonial-rating ion-icon:nth-child(4) {
    animation-delay: 0.3s;
}

.testimonial-rating ion-icon:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes star-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.5));
    }

    50% {
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
    }
}

/* ===== CONTACT SECTION WITH ENHANCED DESIGN ===== */
.contact {
    background: linear-gradient(135deg, var(--off-white) 0%, var(--pure-white) 100%);
    position: relative;
}

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

.contact-info {
    background: var(--pure-white);
    padding: 50px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 2px solid transparent;
    transition: var(--transition-medium);
}

.contact-info:hover {
    border-color: var(--bright-yellow);
    box-shadow: var(--shadow-xl);
}

.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--cobalt-blue), var(--electric-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 35px;
    font-weight: 900;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding: 24px;
    background: var(--off-white);
    border-radius: var(--radius-md);
    transition: var(--transition-medium);
    border-left: 4px solid transparent;
}

.contact-item:hover {
    background: linear-gradient(135deg, var(--cobalt-blue), var(--electric-blue));
    color: var(--pure-white);
    transform: translateX(10px);
    border-left-color: var(--bright-yellow);
}

.contact-item ion-icon {
    font-size: 2.5rem;
    color: var(--accent-red);
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.contact-item:hover ion-icon {
    color: var(--bright-yellow);
    animation: pulse 0.6s ease;
}

.contact-item-text h4 {
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.contact-form {
    background: var(--pure-white);
    padding: 50px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 2px solid transparent;
    transition: var(--transition-medium);
}

.contact-form:hover {
    border-color: var(--cobalt-blue);
    box-shadow: var(--shadow-xl);
}

.contact-form h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--cobalt-blue), var(--electric-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 35px;
    font-weight: 900;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--text-dark);
    font-family: var(--font-inter);
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
    background: var(--pure-white);
}

.form-control:focus {
    outline: none;
    border-color: var(--cobalt-blue);
    box-shadow: 0 0 0 4px rgba(0, 71, 171, 0.1);
    transform: translateY(-2px);
}

.form-control:hover {
    border-color: var(--light-blue);
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

select.form-control {
    cursor: pointer;
}

/* ===== FOOTER WITH ENHANCED DESIGN ===== */
.footer {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--cobalt-blue) 100%);
    color: var(--pure-white);
    padding: 70px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
            var(--bright-yellow),
            var(--amber),
            var(--accent-red),
            var(--bright-yellow));
    background-size: 200% auto;
    animation: gradient-shift 3s linear infinite;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-section h3 {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--bright-yellow), var(--amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.footer-section p {
    line-height: 1.9;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.9;
    transition: var(--transition-fast);
    padding: 8px 0;
}

.footer-link:hover {
    opacity: 1;
    color: var(--bright-yellow);
    transform: translateX(8px);
}

.footer-link ion-icon {
    font-size: 1.3rem;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 25px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-medium);
    border: 2px solid transparent;
}

.social-link:hover {
    background: linear-gradient(135deg, var(--bright-yellow), var(--amber));
    color: var(--cobalt-blue);
    transform: translateY(-5px) rotate(10deg);
    border-color: var(--pure-white);
    box-shadow: var(--shadow-glow);
}

.social-link ion-icon {
    font-size: 1.6rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    text-align: center;
    opacity: 0.85;
}

/* ===== BACK TO TOP WITH ENHANCED DESIGN ===== */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-red), var(--neon-red));
    color: var(--pure-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    transition: var(--transition-medium);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    border: 3px solid var(--pure-white);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--bright-yellow), var(--amber));
    color: var(--cobalt-blue);
    transform: translateY(-8px) scale(1.1);
    box-shadow: var(--shadow-glow);
}

.back-to-top ion-icon {
    font-size: 2rem;
}

/* ===== SCROLL ANIMATIONS ===== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {

    .hero-content,
    .about-content,
    .contact-content,
    .udaan-content {
        /* Already there */
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .udaan-image-wrapper {
        padding: 12px;
        max-width: 600px;
        /* Limit width on tablets */
        margin: 0 auto;
        /* Center it */
    }

    .udaan-image-wrapper img {
        max-height: 550px;
        /* Control height on tablets */
    }

    .courses-grid,
    .faculty-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-image {
        order: -1;
    }

    .section-title {
        font-size: 2.8rem;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero {
        padding: 80px 0 60px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 40px 40px;
        box-shadow: var(--shadow-xl);
        transition: var(--transition-medium);
        align-items: flex-start;
    }

    .navbar.active {
        right: 0;
    }

    .nav-close {
        position: absolute;
        top: 30px;
        right: 30px;
        font-size: 2.5rem;
        color: var(--cobalt-blue);
    }

    .courses-grid,
    .faculty-grid {
        grid-template-columns: 1fr;
    }

    .top-bar-content {
        justify-content: center;
        text-align: center;
    }

    .section {
        padding: var(--mobile-padding) 0;
    }

    .hero {
        padding: 60px 0 40px;
        min-height: auto;
    }

    .hero-text h1 {
        font-size: 2.5rem;
        /* Reduced from 3rem */
        letter-spacing: -1.5px;
        line-height: 1.2;
        word-break: keep-all;
        /* Prevent awkward breaks */
    }

    .hero-text .highlight {
        display: inline;
        /* Keep words together */
        white-space: nowrap;
        /* Prevent "Education" from breaking */
    }

    .hero-text .highlight::after {
        bottom: -4px;
        /* Adjust underline position */
        height: 4px;
    }

    .hero-badge {
        font-size: 0.85rem;
        padding: 8px 20px;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .stat-number {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    /* CONTACT SECTION FIX */
    .contact-info,
    .contact-form {
        padding: 30px 20px;
        /* Reduced padding */
    }

    .contact-info h3,
    .contact-form h3 {
        font-size: 2rem;
        /* Smaller heading */
        margin-bottom: 25px;
    }

    .contact-item {
        padding: 18px;
        /* Reduced padding */
        margin-bottom: 20px;
    }

    .contact-item ion-icon {
        font-size: 2rem;
        /* Smaller icons */
    }

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

    .form-control {
        padding: 14px 16px;
        /* Slightly smaller inputs */
        font-size: 0.95rem;
    }

    .logo img {
        height: 70px;
    }

    .udaan-image-wrapper {
        padding: 10px;
        max-width: 100%;
    }

    .udaan-image-wrapper img {
        max-height: 450px;
        /* Smaller on mobile landscape */
        border-radius: var(--radius-sm);
    }

    .udaan-image {
        order: -1;
        /* Show image first on mobile */
    }

    /* AUTO-SHOW EFFECTS ON MOBILE - NO HOVER NEEDED */

    /* Course Cards - Always show hover state */
    .course-card {
        transform: translateY(-5px);
        border-color: rgba(255, 215, 0, 0.3);
    }

    .course-card::before {
        opacity: 1;
    }

    /* Faculty Cards - Always show effects */
    .faculty-card {
        transform: translateY(-5px);
        border-color: rgba(255, 215, 0, 0.3);
    }

    /* Stats Items - Always elevated */
    .stat-item {
        transform: translateY(-3px);
        border-color: rgba(255, 215, 0, 0.2);
    }

    .stat-item::before {
        transform: scaleX(1);
    }

    /* Testimonial Cards - Always highlighted */
    .testimonial-card {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 215, 0, 0.3);
    }

    /* About Features - Always visible */
    .about-feature {
        transform: translateX(5px);
    }

    /* Udaan Highlights - Always shown */
    .udaan-highlight {
        background: rgba(255, 255, 255, 0.2);
        transform: translateX(5px);
    }

    /* Contact Items - Subtle effect always on */
    .contact-item {
        border-left-color: var(--bright-yellow);
    }

    /* Remove hover transitions on mobile for instant effects */
    .course-card,
    .faculty-card,
    .stat-item,
    .testimonial-card,
    .about-feature,
    .udaan-highlight,
    .contact-item {
        transition: none;
    }
}



@media (max-width: 480px) {
    .logo img {
        height: 65px;
    }

    .hero-text h1 {
        font-size: 2rem;
        /* Smaller for mobile */
        letter-spacing: -1px;
        line-height: 1.25;
        margin-bottom: 20px;
        word-spacing: 0.05em;
        /* Better word spacing */
    }

    .hero-text .highlight {
        display: inline-block;
        /* Keep highlighted words intact */
        white-space: nowrap;
    }

    .hero-text .highlight::after {
        bottom: -3px;
        height: 3px;
    }

    .hero-text p {
        font-size: 1rem;
        /* Adjust paragraph size */
        line-height: 1.6;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 8px 16px;
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 1.9rem;
    }

    .about-text h2,
    .contact-form h3,
    .contact-info h3,
    .udaan-text h3 {
        font-size: 2rem;
    }

    .hero-card {
        padding: 40px 30px;
    }

    /* CONTACT SECTION MOBILE FIX */
    .contact-info,
    .contact-form {
        padding: 25px 16px;
        /* Even smaller padding for mobile */
        border-radius: var(--radius-md);
        /* Smaller border radius */
    }

    .contact-info h3,
    .contact-form h3 {
        font-size: 1.6rem;
        /* Smaller heading on mobile */
        margin-bottom: 20px;
    }

    .contact-item {
        padding: 14px;
        /* Compact padding */
        margin-bottom: 16px;
        flex-direction: column;
        /* Stack icon and text vertically */
        align-items: flex-start;
        gap: 12px;
    }

    .contact-item ion-icon {
        font-size: 1.8rem;
        /* Smaller icons */
    }

    .contact-item-text h4 {
        font-size: 1rem;
    }

    .contact-item-text p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

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

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    .form-control {
        padding: 12px 14px;
        /* Compact input fields */
        font-size: 0.9rem;
        border-radius: var(--radius-sm);
    }

    textarea.form-control {
        min-height: 100px;
        /* Smaller textarea on mobile */
    }

    .btn {
        padding: 14px 28px;
        /* Smaller button */
        font-size: 0.95rem;
    }

    .stat-item {
        padding: 30px 20px;
    }

    /* ADD THESE FOR UDAAN IMAGE: */
    .udaan-image-wrapper {
        padding: 8px;
        border: 2px solid var(--glass-border);
        /* Thinner border */
    }

    .udaan-image-wrapper img {
        max-height: 380px;
        /* Even smaller for small phones */
        border-radius: var(--radius-sm);
    }

}

@media (max-width: 380px) {

    .contact-info h3,
    .contact-form h3 {
        font-size: 1.4rem;
    }

    .contact-info,
    .contact-form {
        padding: 20px 12px;
    }

    .contact-item {
        padding: 12px;
    }

    .form-control {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.85rem;
    }
}

/* ===== TOPPERS SECTION ===== */
.toppers-section {
    background: linear-gradient(135deg, #001f3f 0%, var(--dark-blue) 50%, var(--cobalt-blue) 100%);
    color: var(--pure-white);
    position: relative;
    overflow: hidden;
    padding-top: 120px;
}

/* PODIUM LAYOUT */
.toppers-podium {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 28px;
    margin-bottom: 60px;
    padding: 0 20px;
}

.podium-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    text-align: center;
    position: relative;
    transition: var(--transition-medium);
    flex: 0 1 320px;
    max-width: 360px;
    overflow: hidden;
}

.podium-card:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Gold Card - 1st Place */
.podium-gold {
    order: 2;
    border-color: rgba(255, 215, 0, 0.4);
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.12), rgba(255, 191, 0, 0.06), rgba(255, 255, 255, 0.06));
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.15), 0 16px 48px rgba(0, 0, 0, 0.2);
    z-index: 2;
    flex: 0 1 350px;
    max-width: 380px;
}

.podium-gold:hover {
    box-shadow: 0 0 80px rgba(255, 215, 0, 0.3), 0 24px 64px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.6);
}

/* Silver Card - 2nd Place */
.podium-silver {
    order: 1;
    border-color: rgba(192, 192, 192, 0.3);
    background: linear-gradient(145deg, rgba(192, 192, 192, 0.1), rgba(255, 255, 255, 0.05));
}

.podium-silver:hover {
    border-color: rgba(192, 192, 192, 0.5);
}

/* Bronze Card - 3rd Place */
.podium-bronze {
    order: 3;
    border-color: rgba(205, 127, 50, 0.3);
    background: linear-gradient(145deg, rgba(205, 127, 50, 0.1), rgba(255, 255, 255, 0.05));
}

.podium-bronze:hover {
    border-color: rgba(205, 127, 50, 0.5);
}

/* Photo Area — RECTANGULAR for real student images */
.podium-photo {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
    background: var(--pure-white);
}

.podium-gold .podium-photo {
    height: 250px;
}

.podium-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    display: block;
    transition: transform 0.4s ease;
}

.podium-card:hover .podium-photo img {
    transform: scale(1.05);
}

/* Fallback initials — shows when image hasn't loaded */
.podium-initials {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 3.5rem;
    color: var(--pure-white);
    background: linear-gradient(135deg, var(--cobalt-blue), var(--electric-blue));
    z-index: 0;
}

.podium-gold .podium-initials {
    font-size: 4rem;
    background: linear-gradient(135deg, var(--dark-blue), var(--cobalt-blue));
}

/* Hide initials when image loads successfully */
.podium-photo img:not([src=""]) ~ .podium-initials {
    z-index: -1;
}

/* Student Details */
.podium-details {
    padding: 20px 24px 24px;
}

.podium-gold .podium-details {
    padding: 24px 28px 28px;
}

.podium-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--pure-white);
}

.podium-gold .podium-name {
    font-size: 1.5rem;
}

.podium-exam {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-inter);
}

.podium-score {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 900;
    margin-bottom: 10px;
    position: relative;
    display: block;
}

.podium-gold .podium-score {
    font-size: 2.2rem;
    color: goldenrod;
}

.podium-silver .podium-score {
    color: goldenrod;
}

.podium-bronze .podium-score {
    color: goldenrod;
}

.podium-college {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    font-family: var(--font-inter);
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    display: inline-block;
}

/* ===== MARQUEE STYLES ===== */
.toppers-marquee-wrapper {
    margin-top: 20px;
}

.marquee-heading {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--bright-yellow);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.marquee-heading ion-icon {
    font-size: 1.2rem;
    color: var(--bright-yellow);
    animation: pulse 2s ease-in-out infinite;
}

.toppers-marquee {
    overflow: hidden;
    position: relative;
    padding: 10px 0;
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.marquee-track {
    display: flex;
    gap: 20px;
    animation: marquee-scroll 40s linear infinite;
    width: max-content;
}

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

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

.marquee-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 20px 28px;
    min-width: 320px;
    transition: var(--transition-fast);
    cursor: default;
}

.marquee-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.marquee-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid rgba(255, 215, 0, 0.4);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cobalt-blue), var(--electric-blue));
}

.marquee-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.marquee-photo span {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--pure-white);
}

.marquee-info h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pure-white);
    margin-bottom: 2px;
    white-space: nowrap;
}

.marquee-exam {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    margin: 0;
}

.marquee-score {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--bright-yellow);
    margin: 0;
}

/* ===== TOPPERS RESPONSIVE ===== */
@media (max-width: 768px) {
    .toppers-podium {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .podium-card {
        max-width: 100%;
        width: 100%;
    }

    .podium-gold {
        order: -1;
        max-width: 100%;
    }

    .podium-silver {
        order: 0;
    }

    .podium-bronze {
        order: 1;
    }

    .podium-photo {
        height: 200px;
    }

    .podium-gold .podium-photo {
        height: 220px;
    }

    .podium-gold .podium-name {
        font-size: 1.3rem;
    }

    .podium-gold .podium-score {
        font-size: 1.8rem;
    }

    .toppers-section {
        padding-top: 100px;
    }

    .marquee-card {
        min-width: 280px;
        padding: 14px 20px;
    }

    .marquee-photo {
        width: 80px;
        height: 80px;
    }

    .marquee-track {
        animation-duration: 30s;
    }
}

@media (max-width: 480px) {
    .toppers-section .section-title {
        font-size: 1.8rem;
    }

    .toppers-section {
        padding-top: 90px;
    }

    .podium-photo {
        height: 180px;
    }

    .podium-gold .podium-photo {
        height: 200px;
    }

    .podium-details {
        padding: 16px 18px 20px;
    }

    .podium-score {
        font-size: 1.4rem;
    }

    .podium-gold .podium-score {
        font-size: 1.6rem;
    }

    .marquee-card {
        min-width: 250px;
        padding: 12px 16px;
        gap: 12px;
    }

    .marquee-photo {
        width: 65px;
        height: 65px;
    }

    .marquee-info h4 {
        font-size: 1rem;
    }

    .marquee-score {
        font-size: 1.1rem;
    }
}

/* ===== DOWNLOADS PAGE STYLES ===== */




.downloads-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.downloads-section h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--cobalt-blue);
    text-align: center;
    margin-bottom: 60px;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.download-box {
    background: var(--pure-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-medium);
    border: 2px solid transparent;
}

.download-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--bright-yellow);
}

.download-box h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--cobalt-blue);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--bright-yellow);
}

/* Dropdown Menu Styles */
.dropdown-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-item {
    position: relative;
    margin-bottom: 8px;
}

.dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    color: var(--cobalt-blue);
    transition: var(--transition-fast);
    width: 100%;
    text-align: left;
}

.dropdown-btn:hover {
    background: linear-gradient(135deg, var(--cobalt-blue), var(--electric-blue));
    color: var(--pure-white);
}

.dropdown-btn ion-icon {
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.dropdown-item.active .dropdown-btn ion-icon {
    transform: rotate(180deg);
}

/* Dropdown Content */
.dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: #f0f7ff;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    margin-top: 4px;
}

.dropdown-item.active .dropdown-content {
    max-height: 800px;
    transition: max-height 0.5s ease-in;
}

.dropdown-content a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    border-left: 3px solid transparent;
}

.dropdown-content a:hover {
    background: var(--pure-white);
    color: var(--cobalt-blue);
    border-left-color: var(--bright-yellow);
    padding-left: 24px;
}

.download-tag {
    font-size: 0.75rem;
    color: var(--bright-yellow);
    font-weight: 700;
    background: var(--cobalt-blue);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Simple list for entrance papers */
.simple-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.simple-list li {
    margin-bottom: 12px;
}

.simple-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--cobalt-blue);
    font-weight: 600;
    transition: var(--transition-fast);
}

.simple-list a:hover {
    background: var(--bright-yellow);
    transform: translateX(8px);
}
#toppers .section-title {
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: var(--bright-yellow) !important;
    color: var(--bright-yellow) !important;
}

#toppers .section-subtitle {
    color: var(--pure-white);
}

/* Responsive */
@media (max-width: 768px) {
    .downloads-section h2 {
        font-size: 2rem;
    }

    .downloads-grid {
        grid-template-columns: 1fr;
    }

    .download-box {
        padding: 24px;
    }
    
    /* Mobile Header Background Icons */
    .floating-icon {
        font-size: 1.5rem !important;
        opacity: 0.75 !important; /* Higher opacity for mobile */
        display: block !important;
        filter: drop-shadow(0 2px 5px rgba(0,0,0,0.2)) !important;
    }
    .icon-chem { top: 15%; left: 5%; font-size: 1.8rem !important; }
    .icon-math { top: 60%; left: 10%; font-size: 1.5rem !important; }
    .icon-phy { top: 20%; left: 85%; font-size: 2rem !important; }
    .icon-sci { top: 65%; left: 80%; font-size: 1.4rem !important; }
    .icon-geom { top: 45%; left: 50%; font-size: 1.8rem !important; }
    .icon-atom { top: 30%; left: 30%; font-size: 1.6rem !important; }

    .logo img {
        filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2)) !important; /* Extra bold shadow for mobile */
    }

    #toppers .section-title {
        color: #FFD700 !important; /* Force gold color */
        -webkit-text-fill-color: #FFD700 !important;
    }
}