/* ====== PREMIUM CSS VARIABLES & THEMING ====== */
:root {
    --color-primary: #040f22;
    --color-primary-light: #0A192F;
    --color-secondary: #00A676;
    --color-orange: #E66C2C;
    --color-accent: #FFD166;
    --color-text: #E6F1FF;
    --color-text-light: #8892B0;
    --color-bg: #EAEAEA;
    --color-bg-light: #F4F7F6;
    --color-border: #E0E5EC;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition-fast: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-smooth: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-spring: 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 20px rgba(0, 166, 118, 0.4);

    --border-radius: 16px;
    --border-radius-lg: 24px;
}

[data-theme="dark"] {
    --color-bg: #030816;
    --color-bg-light: #0A192F;
    --color-border: rgba(255, 255, 255, 0.1);
    --color-text: #E6F1FF;
    --shadow-md: 0 15px 35px rgba(0, 0, 0, 0.5);
}

/* Base Light Theme overrides */
:root:not([data-theme="dark"]) {
    --color-text: #1a202c;
    --color-text-light: #4a5568;
}

.hero,
.impact,
.cta,
.hero h1,
.impact h2,
.cta h2 {
    --color-text: #ffffff;
    color: #ffffff !important;
}

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

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

/* Custom Scrollbar for premium feel */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--color-primary-light);
    border-radius: 10px;
    border: 2px solid var(--color-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary);
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

/* Ambient glow blobs in background */
.ambient-glow {
    position: fixed;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
    transition: all 2s ease;
}

.glow-1 {
    top: -20%;
    left: -10%;
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    animation: floatGlow 20s infinite alternate;
}

.glow-2 {
    bottom: -20%;
    right: -10%;
    background: radial-gradient(circle, var(--color-orange), transparent 70%);
    animation: floatGlow 25s infinite alternate reverse;
}

@keyframes floatGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(10%, 10%) scale(1.1);
    }
}

[data-theme="dark"] .ambient-glow {
    opacity: 0.08;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-text);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.text-accent {
    color: var(--color-accent);
}

.text-green {
    color: var(--color-secondary);
}

.text-white {
    color: white !important;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-accent), var(--color-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title-underline {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--color-secondary), transparent);
    margin: 0.5rem 0 2rem;
    border-radius: 2px;
}

.title-underline.center {
    margin: 0.5rem auto 2rem;
    background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
    width: 100px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.section-padding {
    padding: 120px 0;
}

.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

.bg-light {
    background-color: var(--color-bg-light);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-white {
    color: white !important;
}

.text-grey {
    color: #8892B0;
}

.w-100 {
    width: 100%;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 2.5rem;
}

.pt-0 {
    padding-top: 0 !important;
}

/* ====== REVEAL ANIMATIONS (Triggered by JS) ====== */
.scroll-reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scroll-reveal-up.revealed,
.scroll-reveal-left.revealed,
.scroll-reveal-right.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

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

.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
}

.stagger-4 {
    animation-delay: 0.4s;
}

.stagger-5 {
    animation-delay: 0.5s;
}

/* ====== NAVIGATION ====== */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: all 0.5s ease;
    border-bottom: 1px solid transparent;
}

.mobile-menu,
.mobile-menu-btn {
    display: none;
}

#navbar.scrolled {
    padding: 1rem 0;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-bottom-color: rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] #navbar.scrolled {
    background-color: rgba(3, 8, 22, 0.85);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    transition: color var(--transition-fast);
}

#navbar.scrolled .logo,
[data-theme="dark"] #navbar.scrolled .logo {
    color: var(--color-text);
}

.logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.logo i {
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: white;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding-bottom: 5px;
}

#navbar.scrolled .nav-links a {
    color: var(--color-text);
}

/* Premium Nav Hover */
.nav-hover::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-secondary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-hover:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.theme-toggle {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

#navbar.scrolled .theme-toggle {
    color: var(--color-text);
}

.theme-toggle:hover {
    transform: rotate(30deg) scale(1.1);
}

/* ====== PREMIUM BUTTONS ====== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    font-family: var(--font-heading);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-fast);
    border: none;
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 166, 118, 0.3);
}

.btn-primary:hover {
    background-color: #008761;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 166, 118, 0.4);
}

/* Button Shine Effect */
.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
}

.btn-shine:hover::after {
    left: 150%;
}

/* Outline Button with Sweep Fill */
.btn-outline {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    z-index: 1;
}

.btn-hover-reveal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn-hover-reveal:hover::before {
    transform: scaleX(1);
}

.btn-hover-reveal:hover {
    color: var(--color-primary);
    border-color: white;
}

.btn-hover-reveal span {
    z-index: 2;
    position: relative;
}

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

.hero-bg-layer {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-image: url('assets/hero_bg.png');
    background-size: cover;
    background-position: center;
    animation: slowZoom 25s ease-in-out infinite alternate;
    z-index: 0;
}

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

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(135deg, rgba(4, 15, 34, 0.95) 0%, rgba(4, 15, 34, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding-top: 5rem;
}

.hero-tagline {
    display: inline-block;
    color: var(--color-accent);
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    border: 1px solid rgba(255, 209, 102, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    color: #E2E8F0;
    font-size: 1.25rem;
    margin-bottom: 3rem;
    max-width: 600px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

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

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    border-radius: 2px;
    background-color: white;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% {
        top: 8px;
        opacity: 1;
    }

    100% {
        top: 25px;
        opacity: 0;
    }
}

/* ====== ABOUT & CARDS ====== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.lead-text {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

.about-features {
    margin-top: 2rem;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.feature-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 166, 118, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-frame {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform var(--transition-smooth);
    box-shadow: var(--shadow-lg);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
}

.image-frame:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.about-image {
    border-radius: var(--border-radius-lg);
    transition: transform 0.6s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-frame:hover .about-image {
    transform: scale(1.05);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: var(--color-accent);
    color: var(--color-primary);
    padding: 2rem;
    border-radius: 50%;
    width: 160px;
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    text-align: center;
    border: 8px solid var(--color-bg);
}

.badge-num {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1;
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

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

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

/* MVV Cards with Premium Glass/Border Glow */
.mvv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.mvv-card {
    background: var(--color-bg);
    padding: 3rem 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all var(--transition-smooth);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .mvv-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
}

.mvv-glow {
    position: absolute;
    top: -50px;
    left: 50%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--color-secondary) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: -1;
    pointer-events: none;
}

.mvv-card:hover .mvv-glow {
    opacity: 0.15;
}

.mvv-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 166, 118, 0.3);
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    background: var(--color-primary);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-spring);
}

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

/* IMPACT PARALLAX SECTION */
.impact {
    position: relative;
    overflow: hidden;
    padding: 150px 0;
}

.impact-bg-parallax {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 130%;
    background-image: url('assets/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
    /* Fallback parallax */
}

.impact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(135deg, rgba(4, 15, 34, 0.98), rgba(0, 166, 118, 0.85));
}

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

.stat-card {
    text-align: center;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 209, 102, 0.5);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: white;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.progress-bars {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.3);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.progress-box {
    margin-bottom: 1.5rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-weight: 500;
    font-size: 1.1rem;
}

.progress-bg {
    width: 100%;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
    border-radius: 6px;
    transition: width 2s cubic-bezier(0.2, 0.8, 0.2, 1);
    width: 0%;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: shimmer 2s infinite;
}

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

    100% {
        transform: translateX(100%);
    }
}

/* FILTER GRID */
.filter-controls {
    margin-bottom: 3rem;
    background: rgba(136, 146, 176, 0.1);
    display: inline-block;
    padding: 0.5rem;
    border-radius: 50px;
}

.filter-btn {
    background: transparent;
    border: none;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-light);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn.active {
    background: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .filter-btn.active {
    background: var(--color-secondary);
    color: white;
}

.institutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.inst-card {
    background: var(--color-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    opacity: 0;
    transform: scale(0.95);
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.inst-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.inst-card-img-wrapper {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.inst-card-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
}

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

.inst-card-content {
    padding: 2rem;
    position: relative;
}

.inst-badge {
    position: absolute;
    top: -15px;
    right: 2rem;
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--color-secondary);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 166, 118, 0.4);
}

.inst-name {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

[data-theme="dark"] .inst-name {
    color: #E6F1FF;
}

.inst-location {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* PROCESS TIMELINE */
.timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 4rem;
    padding: 2rem 0;
}

.timeline-progress-bar {
    position: absolute;
    top: 50px;
    left: 12.5%;
    width: 75%;
    height: 4px;
    background: var(--color-border);
    z-index: 1;
    border-radius: 2px;
}

.timeline-progress-fill {
    height: 100%;
    width: 0;
    background: var(--color-secondary);
    transition: width 0.5s ease;
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    z-index: 2;
    flex: 1;
    text-align: center;
    padding: 0 1rem;
}

.timeline-icon {
    width: 70px;
    height: 70px;
    background: white;
    border: 4px solid var(--color-bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: var(--color-text-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
}

[data-theme="dark"] .timeline-icon {
    background: var(--color-primary-light);
    border-color: var(--color-primary);
}

.timeline-item.active .timeline-icon {
    border-color: var(--color-secondary);
    color: white;
    background: var(--color-secondary);
    box-shadow: var(--shadow-glow);
    transform: scale(1.1);
}

/* TESTIMONIALS (Glassmorphism) */
.glassmorphism {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .glassmorphism {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

.hover-lift {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

.testimonial-slider {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.testimonial-card {
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    position: relative;
}

.test-quote-mark {
    position: absolute;
    top: -20px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--color-primary);
    box-shadow: 0 5px 15px rgba(255, 209, 102, 0.4);
}

.test-content p {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.8;
}

.test-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-img-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
}

.author-img-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-bg);
}

/* INFINITE PARTNERS SCROLL */
.partner-scroll-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.partner-logos {
    display: flex;
    width: max-content;
    gap: 4rem;
    animation: scrollTrack 30s linear infinite;
}

@keyframes scrollTrack {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 2rem));
    }
}

.logo-item {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-light);
    opacity: 0.5;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-item:hover {
    opacity: 1;
    color: var(--color-primary);
    transform: scale(1.05);
}

[data-theme="dark"] .logo-item:hover {
    color: var(--color-accent);
}

/* CTA SECTION */
.cta {
    padding: 120px 0;
    overflow: hidden;
}

.cta-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: grayscale(50%);
    z-index: 0;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 15, 34, 0.85);
    z-index: 1;
}

/* FOOTER */
.footer {
    background-color: var(--color-primary);
    color: #8892B0;
    padding-top: 5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 2fr;
    gap: 3rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.icon-sq {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: var(--color-accent);
    flex-shrink: 0;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-icons a {
    display: inline-flex;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: white;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
    margin-right: 0.5rem;
}

.social-icons a:hover {
    background: var(--color-secondary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 166, 118, 0.3);
}

/* Floating Label Inputs */
.input-anim {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-anim input,
.input-anim textarea {
    width: 100%;
    padding: 1rem 0.5rem;
    background: transparent;
    border: none;
    color: white;
    font-family: inherit;
    font-size: 1rem;
}

.input-anim input:focus,
.input-anim textarea:focus {
    outline: none;
}

.input-anim label {
    position: absolute;
    top: 1rem;
    left: 0.5rem;
    pointer-events: none;
    transition: 0.3s ease all;
    color: #8892B0;
}

.input-anim .input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.input-anim .input-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--color-secondary);
    transition: 0.3s ease width;
}

.input-anim input:focus~label,
.input-anim input:not(:placeholder-shown)~label,
.input-anim textarea:focus~label,
.input-anim textarea:not(:placeholder-shown)~label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--color-secondary);
}

.input-anim input:focus~.input-line::after,
.input-anim textarea:focus~.input-line::after {
    width: 100%;
}

@media (max-width: 1024px) {
    .timeline {
        flex-direction: column;
        gap: 3rem;
    }

    .timeline-progress-bar {
        left: 35px;
        top: 0;
        bottom: 0;
        width: 4px;
        height: auto;
    }

    .timeline-progress-fill {
        width: 100%;
        height: 0;
    }

    .timeline-item {
        display: flex;
        text-align: left;
        gap: 2rem;
        align-items: flex-start;
    }

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

@media (max-width: 768px) {

    .about-grid,
    .mvv-grid,
    .testimonial-slider {
        grid-template-columns: 1fr;
    }

    .nav-links,
    .nav-actions .btn {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        background: transparent;
        border: none;
        color: white;
        font-size: 1.8rem;
        cursor: pointer;
    }

    #navbar.scrolled .mobile-menu-btn {
        color: var(--color-primary);
    }

    [data-theme="dark"] #navbar.scrolled .mobile-menu-btn {
        color: white;
    }

    .mobile-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-bg);
        padding: 1rem;
        box-shadow: var(--shadow-md);
    }

    .mobile-menu.active {
        display: flex;
        flex-direction: column;
    }

    .mobile-menu a {
        padding: 1rem;
        border-bottom: 1px solid var(--color-border);
        color: var(--color-text);
        font-weight: 600;
    }

    .experience-badge {
        width: 120px;
        height: 120px;
        padding: 1rem;
    }

    .experience-badge .badge-num {
        font-size: 2rem;
    }
}

/* SUBPAGE HERO & GRIDS */
.page-hero {
    height: 40vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    padding-top: 60px;
}

.page-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    z-index: 2;
    position: relative;
    color: white;
    margin-bottom: 0;
}

/* TEAM GRID */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2.5rem;
}

.team-card {
    background: var(--color-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    text-align: center;
    padding-bottom: 1.5rem;
    transition: transform var(--transition-fast);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.team-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-bottom: 3px solid var(--color-secondary);
    transition: transform var(--transition-smooth);
}

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

.team-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 1rem 0 0.25rem;
}

[data-theme="dark"] .team-name {
    color: #E6F1FF;
}

.team-role {
    color: var(--color-text-light);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* GALLERY GRID */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
}

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

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

/* TOPPER CAROUSEL */
.carousel-container {
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    position: relative;
    box-shadow: var(--shadow-md);
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide {
    min-width: 100%;
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('assets/about_bg.png') center/cover;
    position: relative;
    z-index: 1;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(4, 15, 34, 0.92), rgba(0, 166, 118, 0.7));
    z-index: -1;
}

.topper-card {
    display: flex;
    align-items: center;
    gap: 3rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    max-width: 850px;
    width: 100%;
    color: white;
    --color-text: #ffffff;
}

.topper-img {
    width: 180px;
    height: 180px;
    flex-shrink: 0;
    border-radius: 50%;
    padding: 6px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
}

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

.topper-info {
    text-align: left;
}

.topper-name {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.topper-score {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    display: inline-block;
    margin-bottom: 1rem;
    background: var(--color-accent);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 209, 102, 0.3);
}

.topper-institute {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.topper-institute i {
    color: var(--color-secondary);
    margin-right: 0.5rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.carousel-btn:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-border);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: var(--color-secondary);
    transform: scale(1.4);
}

@media (max-width: 768px) {
    .topper-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem;
    }

    .topper-info {
        text-align: center;
    }

    .carousel-slide {
        padding: 2rem 1rem;
    }

    .carousel-btn {
        display: none;
    }
}