:root {
    --primary: #1E3A8A;
    /* Elite Navy Blue */
    --primary-light: #3B82F6;
    --primary-glow: rgba(30, 58, 138, 0.1);
    --secondary: #e11d48;
    /* Vibrant Crimson */
    --secondary-glow: rgba(225, 29, 72, 0.1);
    --accent: #F59E0B;
    /* Sporty Amber */
    --bg: #F8FAFC;
    --surface: #FFFFFF;
    --text: #0F172A;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@700;800;900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

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

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 1.1;
    font-weight: 900;
}

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

/* Navbar */
.navbar {
    background: transparent;
    backdrop-filter: none;
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled .logo {
    color: var(--primary);
    text-shadow: none;
}

.navbar.scrolled .nav-link {
    color: var(--text-muted);
    text-shadow: none;
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4rem;
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: var(--transition);
}

.hero-active .navbar:not(.scrolled) .logo {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

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

.nav-link {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition);
}

.hero-active .navbar:not(.scrolled) .nav-link {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    transition: var(--transition);
}

.hero-active .navbar:not(.scrolled) .menu-toggle {
    color: white;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 180px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
    z-index: 5;
}

.hero-video {
    position: absolute;
    top: 60%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;

    scale: 1.1;
    /* Scale up slightly to hide blurred edges */
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, var(--bg) 200%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 0 2rem;
    text-align: center;
}

.hero-badge {
    background: linear-gradient(45deg, var(--secondary), #f43f5e);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 900;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 2.5rem;
    display: inline-block;
    box-shadow: 0 10px 25px rgba(225, 29, 72, 0.4);
    animation: fadeInDown 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-title {
    font-size: clamp(3.5rem, 12vw, 7rem);
    line-height: 0.9;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.hero-title span {
    display: block;
    color: var(--secondary);
}

.hero-subtitle {

    font-size: 1.25rem;
    margin-bottom: 3rem;
    max-width: 650px;
    margin-inline: auto;
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px var(--primary-glow);
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--secondary-glow);
}

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

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

/* Section Styling */
.section {
    padding: 50px 0;
    position: relative;
}

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

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 800px;
    margin-inline: auto;
}

.section-tag {
    color: var(--secondary);
    font-weight: 800;
    font-size: 1.9rem;
    display: block;
    margin-bottom: 1rem;
}

.section-title {
    /* font-size: clamp(2.5rem, 5vw, 3.5rem);*/
    font-size: 40px;
    color: var(--primary);
}

.section-titles {
    /* font-size: clamp(2.5rem, 5vw, 3.5rem);*/
    font-size: 30px;
    color: var(--primary);
}

/* Grid System */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

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

@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Feature Cards */
.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 3rem 2rem;
    border-radius: 24px;
    transition: var(--transition);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-light);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    display: block;
}

/* Project Cards */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.card-img-container {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

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

.card-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    z-index: 10;
}

.card-content {
    padding: 2rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.form-input {
    width: 100%;
    padding: 1.25rem 1.5rem;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    background: #f8fafc;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.08);
    transform: translateY(-2px);
}

.form-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

textarea.form-input {
    resize: none;
}

/* Support & FAQ Styling */
.support-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: center;
}

.support-image {
    width: 100%;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.support-image img {
    width: 130%;
    height: 100%;
    object-fit: cover;
}

.faq-page {
    display: none;
}

.faq-page.active {
    display: grid;
    gap: 1.25rem;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: var(--transition);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.99rem;

}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.faq-item.active .faq-question {
    color: var(--secondary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 2rem 2rem;

}

.faq-pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.faq-nav-btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
}

.faq-nav-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.faq-nav-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 1024px) {
    .support-layout {
        grid-template-columns: 1fr;
    }
}

/* Stats Section */
.stats-bar {
    background: var(--primary);
    padding: 5rem 0;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    padding: 0 2rem;
}

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

.stat-value {
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 900;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
}

/* Footer */
footer {
    background: #0F172A;
    padding: 80px 0 40px;
    color: white;
}

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

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    }
}

.footer-logo {
    color: white;
    font-size: 1.75rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    display: block;
    font-family: var(--font-heading);
}

.footer-desc {
    color: #94a3b8;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.footer-title {
    color: white;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.9rem;
}

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

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748b;
    font-size: 0.85rem;
}

/* Project Panels (Taft School Style) */
.project-panels-section {

    overflow: hidden;
    background: var(--bg);
}

.project-panels-section .section-header {
    margin-bottom: 4rem;
}

.project-panels-grid {
    display: flex;
    height: 600px;
    width: 100%;
}

.project-panel {
    position: relative;
    flex: 1;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.project-panel:last-child {
    border-right: none;
}

.project-panel:hover {
    flex: 2;
}

.panel-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 1s ease;
}

.project-panel:hover .panel-bg {
    transform: scale(1.1);
}

.panel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
    opacity: 0.6;
    transition: var(--transition);
}

.project-panel:hover .panel-overlay {
    opacity: 0.9;
    background: linear-gradient(to bottom, rgba(30, 58, 138, 0.6) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.panel-content {
    position: absolute;
    inset: 0;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
    z-index: 10;
}

.panel-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    margin-bottom: 2rem;
}

.project-panel:hover .panel-details {
    max-height: 200px;
    opacity: 1;
    margin-bottom: 2.5rem;
}

.panel-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    transform: translateY(20px);
    transition: transform 0.5s ease;
}

.project-panel:hover .panel-title {
    transform: translateY(0);
}

.panel-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 5;
}

.project-panel:nth-child(even) .panel-bottom-bar {
    background: var(--secondary);
}

.panel-bottom-bar span {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    color: white;
}

.project-panel:hover .panel-bottom-bar {
    background: transparent !important;
}

@media (max-width: 1024px) {
    .project-panels-grid {
        flex-direction: column;
        height: auto;
    }

    .project-panel {
        height: 400px;
        flex: none;
    }

    .project-panel:hover {
        flex: none;
    }

    .panel-details {
        max-height: 100px;
        opacity: 1;
    }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-container {
        padding: 0 1.5rem;
        max-width: 100%;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-link {
        color: white !important;
        font-size: 1.5rem;
        text-shadow: none !important;
    }

    .hero-title {
        font-size: 3rem;
    }
}

/* Institution Detail Pages */
.inst-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    padding-top: 100px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.inst-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(30, 58, 138, 0.3) 0%, rgba(15, 23, 42, 0.7) 100%);
    z-index: 1;
}

.inst-hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 0 2rem;
}

.inst-hero h1 {
    color: white;
    font-size: clamp(3.5rem, 10vw, 6.5rem);
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    font-weight: 900;
    line-height: 0.9;
}

.inst-hero h1 span {
    background: linear-gradient(to right, #ffffff, #f1f5f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.class-card {
    background: white;
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.class-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.class-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--secondary);
    display: block;
    margin-bottom: 0.5rem;
}

.class-label {
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.fee-container {
    background: white;
    border-radius: 30px;
    padding: 4rem;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.fee-row {
    display: flex;
    justify-content: space-between;
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--border);
}

.fee-row:last-child {
    border-bottom: none;
}

.fee-label {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.fee-value {
    font-weight: 900;
    color: var(--secondary);
    font-size: 1.25rem;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

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

.section .reveal p {
    margin-bottom: 1.5rem;
}

.media-item {
    border-radius: 24px;
    overflow: hidden;
    height: 300px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.media-item img,
.media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

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

/* Preloader */
#preloader {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.05);
}

.preloader-content {
    text-align: center;
    position: relative;
    width: 100%;
    max-width: 400px;
}

.preloader-logo {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 3rem;
    letter-spacing: -0.04em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.preloader-logo i {
    color: var(--secondary);
    animation: shieldReveal 1s ease-out forwards;
}

.preloader-track {
    position: relative;
    width: 250px;
    margin: 0 auto;
}

.preloader-skate {
    position: absolute;
    top: -35px;
    left: 0;
    font-size: 2rem;
    color: var(--secondary);
    animation: skateGlide 2s infinite ease-in-out;
    z-index: 2;
}

.preloader-bar {
    width: 100%;
    height: 4px;
    background: rgba(30, 58, 138, 0.1);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.preloader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
    animation: elegantLoading 2s infinite ease-in-out;
}

@keyframes skateGlide {
    0% { left: 0; transform: translateX(0) rotate(0); }
    45% { transform: translateX(210px) rotate(5deg); }
    50% { left: 0; transform: translateX(210px) rotate(5deg); }
    95% { transform: translateX(0) rotate(-5deg); }
    100% { left: 0; transform: translateX(0) rotate(0); }
}

@keyframes shieldReveal {
    0% { transform: scale(0) rotate(-45deg); opacity: 0; }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

@keyframes elegantLoading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Contact Page Enhancements */
.glass-pill {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.glass-pill i {
    color: #10b981;
}

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

.premium-contact-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    padding: 3.5rem 2.5rem;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.premium-contact-card:hover {
    transform: translateY(-15px);
    background: white;
    border-color: var(--primary-light);
    box-shadow: 0 40px 80px rgba(30, 58, 138, 0.12);
}

.premium-contact-card.active {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 30px 60px rgba(30, 58, 138, 0.25);
}

.premium-contact-card .icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    transition: var(--transition);
}

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

.premium-contact-card.active .icon-box {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

.premium-contact-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.premium-contact-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.premium-contact-card.active p {
    color: rgba(255, 255, 255, 0.85);
}

.card-link {
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
}

.premium-contact-card.active .card-link {
    color: var(--secondary);
}

/* Glass Form */
.form-actual-pane {
    padding: 5rem 4rem;
    background: white;
    position: relative;
}

.form-actual-pane::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at top right, rgba(30, 58, 138, 0.03), transparent 70%);
    pointer-events: none;
}

.glass-form-container {
    background: white;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.02);
    border: none;
    display: grid;
}

.form-info-pane {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    padding: 5rem 4rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.form-info-pane::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: var(--secondary);
    opacity: 0.1;
    filter: blur(80px);
    border-radius: 50%;
}

.form-info-pane h2 span {
    color: var(--secondary);
}

.info-items-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    transition: var(--transition);
}

.info-item:hover {
    transform: translateX(10px);
}

.info-item i {
    color: white;
    font-size: 1.25rem;
}

@media (max-width: 1024px) {
    .glass-form-container .grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   V2 Institutional Design System
   Used in: IdleConvent, SportsAcademy, ForceFitness, SWS
   ========================================================================== */

.elite-v2-section {
    padding: 100px 0;
    overflow: hidden;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 60px;
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1024px) {
    .split-layout {
        grid-template-columns: 1fr;
    }
}

.split-left, .split-right {
    padding: 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .split-left, .split-right {
        padding: 4rem 2rem;
    }
}

/* Fee List V2 */
.fee-list-v2 {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.fee-row-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.split-right .fee-row-v2 {
    border-bottom: 1px solid #f1f5f9;
}

.fee-info-v2 h4 {
    margin-bottom: 0.25rem;
}

.fee-price-v2 {
    font-weight: 900;
    font-family: var(--font-display);
}

/* Feature Grid V2 */
.feature-grid-v2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 600px) {
    .feature-grid-v2 {
        grid-template-columns: 1fr;
    }
}

.feature-item-v2 {
    padding: 2rem;
    border-radius: 24px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    transition: var(--transition);
}

.feature-item-v2:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-light);
}

/* Media Gallery V2 */
.media-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
    height: 600px;
}

@media (max-width: 1024px) {
    .media-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
}

.media-item {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.media-item img, .media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.media-item:hover img, .media-item:hover video {
    transform: scale(1.05);
}

@media (max-width: 1024px) {
    .media-item {
        height: 400px;
    }
}

/* Contact Page V8: Glass Dashboard */
.contact-v8-layout {
    background: #f8fafc;
    padding-bottom: 150px;
}

.v8-info-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

@media (max-width: 992px) {
    .v8-info-row {
        grid-template-columns: 1fr;
        margin-top: -40px;
    }
}

.v8-info-pill {
    background: white;
    padding: 2.5rem;
    margin-top: 50px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
    border: 1px solid #f1f5f9;
}

.v8-info-pill:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.1);
    border-color: var(--primary-light);
}

.v8-pill-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-glow);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition);
}

.v8-info-pill:hover .v8-pill-icon {
    background: var(--primary);
    color: white;
}
/* Founder Card V2 - Cinematic Redesign */
.founder-section-v2 {
    padding: 100px 0;
    background: white;
}

/* Faculty Section */
.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.faculty-card {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
}

.faculty-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 40px 80px rgba(0,0,0,0.1);
    border-color: var(--primary-light);
}

.faculty-image {
    height: 350px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.faculty-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

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

.faculty-info {
    padding: 2.5rem;
    text-align: center;
}

.faculty-name {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.faculty-role {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

@media (max-width: 1024px) {
    .faculty-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }
}

.founder-card-v2 {
    background: #0f172a; /* Deep Navy */
    border-radius: 40px;
    padding: 80px;
    display: flex;
    align-items: center;
    gap: 80px;
    color: white;
    box-shadow: 0 40px 100px rgba(15, 23, 42, 0.2);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.founder-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.founder-card-v2.profile-card {
    flex-direction: column;
    padding: 60px 40px;
    text-align: center;
    gap: 40px;
}

.founder-card-v2.profile-card .founder-image-portal {
    margin: 0 auto;
}

.founder-card-v2::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.founder-image-portal {
    flex-shrink: 0;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    position: relative;
    padding: 10px;
    background: linear-gradient(135deg, var(--secondary) 0%, #06b6d4 100%);
    box-shadow: 0 0 50px rgba(225, 29, 72, 0.3);
}

.founder-image-portal img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #1e293b;
    border: 5px solid #0f172a;
}

.founder-content-v2 {
    flex-grow: 1;
}

.founder-content-v2 h2 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.founder-content-v2 p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.founder-content-v2 strong {
    color: white;
    font-weight: 800;
}

@media (max-width: 1024px) {
    .founder-grid {
        grid-template-columns: 1fr;
    }
    .founder-card-v2 {
        flex-direction: column;
        padding: 60px 40px;
        text-align: center;
        gap: 40px;
    }
    .founder-image-portal {
        width: 240px;
        height: 240px;
        margin: 0 auto;
    }
    .founder-content-v2 h2 {
        font-size: 2.5rem;
    }
}

.v8-pill-content h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.v8-pill-content p {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
}

.v8-form-portal {
    max-width: 1000px;
    margin: 100px auto 0;
    background: white;
    border-radius: 50px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    border: 1px solid #f1f5f9;
}

@media (max-width: 1024px) {
    .v8-form-portal {
        grid-template-columns: 1fr;
    }
}

.v8-form-visual {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    padding: 5rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.v8-form-visual::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.v8-form-visual h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: white;
}

.v8-form-visual p {
    font-size: 1.15rem;
    opacity: 0.8;
    line-height: 1.8;
}

.v8-form-actual {
    padding: 5rem;
}

.v8-input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 600px) {
    .v8-input-grid {
        grid-template-columns: 1fr;
    }
}

.v8-field {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.v8-field label {
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
}

.v8-input {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 1.25rem;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.v8-input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 10px 25px var(--primary-glow);
}

.v8-submit {
    width: 100%;
    padding: 1.5rem;
    background: var(--primary);
    color: white;
    border-radius: 50px;
    border: none;
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    box-shadow: 0 20px 40px var(--primary-glow);
    margin-top: 1rem;
}

.v8-submit:hover {
    background: var(--secondary);
    box-shadow: 0 30px 60px var(--secondary-glow);
    transform: translateY(-5px);
}