/* ====== Root & Base ====== */
:root {
    --bg: #ffffff;
    --ink: #0a0a0a;
    --muted: #555;
    --soft: #f5f5f8;
    --primary: #d90429;
    --navy: #0a1128;
    --accent: #d90429;
    --dark: #0a1128;
    --ring: rgba(217, 4, 41, .25);
    --radius: 18px;
    --shadow: 0 14px 40px rgba(10, 17, 40, .10);
    --gradient-brand: linear-gradient(135deg, #0a1128, #1b2a4a);
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-shadow: 0 8px 32px rgba(10, 17, 40, 0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}



img {
    max-width: 100%;
    display: block;
}

html,
body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #334155; /* High-legibility slate grey */
    background: var(--bg);
    line-height: 1.8; /* Increased line spacing for readability */
    font-size: 16px; /* Restored standard browser baseline size */
    letter-spacing: 0.015em; /* Slight tracking for clearer word shapes */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.25;
    letter-spacing: -0.01em;
    font-weight: 700;
    color: #0f172a;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 800;
    color: var(--navy);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; }

.text-gradient {
    background: linear-gradient(135deg, #d90429, #0a1128);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-dark {
    background: var(--dark);
    color: #fff;
}

.bg-dark h2 {
    color: #fff;
}

.bg-dark .stat-label {
    color: #a0aec0;
}

.bg-dark .stat {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
    backdrop-filter: blur(12px);
}

.bg-dark .stat-num {
    color: #d90429;
}

/* ====== Glassmorphism Utility ====== */
.glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(10, 17, 40, 0.08);
}

/* ====== Marquee (Trusted By) ====== */
.marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 2.5rem 0;
    background: var(--navy);
}

.marquee-wrapper::before,
.marquee-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--navy), transparent);
}

.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--navy), transparent);
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.marquee-content img {
    height: 36px;
    display: inline-block;
    margin: 0 3rem;
    opacity: 0.5;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.marquee-content img:hover {
    opacity: 1;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ====== Split Layouts ====== */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-reverse {
    direction: rtl;
}

.split-reverse > * {
    direction: ltr;
}

@media (max-width: 900px) {
    .split-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .split-reverse {
        direction: ltr;
    }
}

.container {
    width: min(1140px, 92%);
    margin-inline: auto;
}

/* ====== Header / Nav ====== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(10, 17, 40, 0.08);
}

.menu a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.menu a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, #d90429, #0a1128);
    border-radius: 3px;
    transition: transform 0.3s ease;
}

.menu a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.menu a:hover {
    color: var(--primary);
    background: rgba(217, 4, 41, 0.06);
}

.menu a.active {
    background: rgba(217, 4, 41, 0.08);
    color: var(--primary);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .8rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
    color: var(--navy);
    font-weight: 800;
}

.logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.big-logo {
    width: 64px;
    height: 64px;
}

/* ===== Modern Hamburger Button with X Animation ===== */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1201;
    transition: transform 0.3s ease;
}

.nav-toggle .bar {
    width: 100%;
    height: 3.5px;
    background-color: var(--navy);
    border-radius: 4px;
    transition: all 0.45s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* X Animation */
.nav-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background-color: var(--primary);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.nav-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background-color: var(--primary);
}

/* ===== Advanced Glossy Mobile Menu ===== */
@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .menu {
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        width: 85%;
        max-width: 340px;
        height: auto;
        background: rgba(255, 255, 255, 0.75);
        backdrop-filter: blur(18px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 0 0 0 25px;
        box-shadow: -10px 15px 35px rgba(0, 0, 0, 0.25);
        padding: 4rem 1.5rem 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        opacity: 0;
        transform: translate(100%, 0) scale(0.95);
        pointer-events: none;
        transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
        z-index: 9999;
    }

    .menu.open {
        opacity: 1;
        transform: translate(0, 0) scale(1);
        pointer-events: auto;
    }

    /* Menu links */
    .menu a {
        font-size: 1.1rem;
        color: var(--navy);
        font-weight: 600;
        text-decoration: none;
        margin: 0.4rem 0;
        padding: 0.6rem 1rem;
        width: 100%;
        text-align: center;
        border-radius: 10px;
        transition: all 0.3s ease;
    }

    .menu a:hover {
        background: rgba(217, 4, 41, 0.08);
        color: var(--primary);
        transform: translateY(-2px) scale(1.03);
        box-shadow: 0 4px 14px rgba(217, 4, 41, 0.15);
    }

    /* Overlay (dim background) */
    .menu-overlay {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(6px);
        opacity: 0;
        visibility: hidden;
        z-index: 9998;
        transition: all 0.4s ease;
    }

    .menu-overlay.show {
        opacity: 1;
        visibility: visible;
    }
}


/* ===== Modern Buttons ===== */
.btn {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #d90429, #8b0000);
    color: #fff;
    font-weight: 700;
    padding: 0.85rem 1.6rem;
    border-radius: 12px;
    border: none;
    text-decoration: none;
    text-align: center;
    letter-spacing: 0.3px;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(217, 4, 41, 0.3);
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(217, 4, 41, 0.4);
}

/* Ripple effect */
.btn::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: width 0.5s ease, height 0.5s ease, opacity 0.4s ease;
}

.btn:active::after {
    width: 220%;
    height: 220%;
    opacity: 0;
}

/* ===== Ghost Button (Outline) ===== */
.btn.ghost {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: none;
}

.btn.ghost:hover {
    background: linear-gradient(135deg, #d90429, #8b0000);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(217, 4, 41, 0.3);
}

/* ===== Small Button ===== */
.btn-sm {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    border-radius: 10px;
}

/* ===== Full Width Button ===== */
.btn-block {
    display: block;
    width: 100%;
}

/* ===== Neon Accent Variant ===== */
.btn.accent {
    background: linear-gradient(135deg, #0a1128, #1b2a4a);
    box-shadow: 0 8px 22px rgba(10, 17, 40, 0.4);
}

.btn.accent:hover {
    box-shadow: 0 10px 30px rgba(10, 17, 40, 0.5);
    transform: translateY(-3px);
}

/* Overlay Effect when menu is open */



/* ====== Hero ====== */
.hero {
    padding: 5rem 0 3rem 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #ffffff 0%, #f0f0f5 50%, #e8e8f0 100%);
}

.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(217, 4, 41, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(10, 17, 40, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    gap: 3rem;
    grid-template-columns: 1.2fr .8fr;
    align-items: center;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-copy h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    line-height: 1.1;
    margin: .2rem 0;
}

.lead {
    font-size: 1.1rem;
    color: var(--muted);
    text-align: left;
}

.hero-media img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(10, 17, 40, .18);
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding: 0;
    list-style: none;
    margin: 1.1rem 0 0 0;
}

.pill-list li {
    background: rgba(10, 17, 40, 0.06);
    padding: .45rem .8rem;
    border-radius: 999px;
    font-weight: 600;
    color: var(--navy);
    font-size: 0.9rem;
    border: 1px solid rgba(10, 17, 40, 0.1);
    transition: all 0.3s ease;
}

.pill-list li:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.cta-row {
    display: flex;
    gap: .8rem;
    margin-top: 1.5rem;
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero {
        padding: 3rem 0 2rem;
    }
}

/* ====== Particle Background ====== */
.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ====== Sections ====== */
.section {
    padding: 4.5rem 0;
    position: relative;
    z-index: 2;
}

.bg-soft {
    background: var(--soft);
}

.section-title {
    margin: 0 0 1rem 0;
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    position: relative;
}

/* ====== Glassmorphism Cards & Grids ====== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.cards .card {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 1.8rem;
    box-shadow: 0 8px 32px rgba(10, 17, 40, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cards .card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(217, 4, 41, 0.12);
    border-color: rgba(217, 4, 41, 0.2);
}

.cards .card h3 {
    margin: .2rem 0 .6rem 0;
    color: var(--navy);
}

/* ====== Testimonials Slider ====== */
.testimonials-slider {
    padding-bottom: 3rem !important;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 200px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 20px;
    padding: 1.8rem !important;
    box-shadow: 0 8px 32px rgba(10, 17, 40, 0.06);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 18px 40px rgba(217, 4, 41, 0.12);
}

.testimonial-card .quote {
    font-style: italic;
    color: #444;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.testimonial-card .author strong {
    display: block;
    color: var(--primary);
    font-size: 1.1rem;
}

.testimonial-card .author span {
    font-size: 0.85rem;
    color: var(--muted);
}

.swiper-pagination-bullet-active {
    background: var(--primary) !important;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
    .cards,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ====== Stats ====== */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(10, 17, 40, 0.06);
    transition: all 0.4s ease;
}

.stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(217, 4, 41, 0.15);
}

.stat-num {
    font-weight: 800;
    font-size: 2.8rem;
    color: var(--primary);
}

.stat-label {
    color: var(--muted);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    margin-top: 0.3rem;
}

.plus {
    font-size: 2.2rem;
    color: var(--primary);
    line-height: 1;
}

@media (max-width: 900px) {
    .stats {
        grid-template-columns: 1fr;
    }
}


/* ====== CTA ====== */
.cta {
    background: linear-gradient(135deg, #0a1128, #1b2a4a, #d90429);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    color: #fff;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.cta h2 {
    color: #fff;
}

.cta-inner {
    display: grid;
    gap: .8rem;
    text-align: center;
    padding: 1rem 0;
}

.cta .btn {
    background: #fff;
    color: var(--primary);
    font-weight: 800;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.cta .btn:hover {
    background: var(--primary);
    color: #fff;
}

/* ====== Page hero ====== */
.page-hero {
    padding: 2.6rem 0 1rem 0;
    background: var(--soft);
    border-bottom: 1px solid rgba(10, 17, 40, 0.08);
}

.page-hero h1 {
    margin: .2rem 0;
}

/* ====== Layout helpers ====== */
.two-col {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1.2fr .8fr;
}

@media (max-width: 900px) {
    .two-col {
        grid-template-columns: 1fr;
    }
}

.highlight {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(10, 17, 40, .06);
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.checklist li {
    padding: 0.4rem 0 0.4rem 1.6rem;
    position: relative;
    font-weight: 500;
}

.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 800;
    font-size: 1.1rem;
}

/* ====== Projects gallery ====== */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.project {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 1.2rem;
    box-shadow: 0 6px 24px rgba(10, 17, 40, .06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(217, 4, 41, 0.12);
}

.project .thumb {
    height: 140px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f0f0f5, #e8e8f0);
    border: 1px dashed rgba(10, 17, 40, 0.15);
    margin-bottom: .8rem;
}

@media (max-width: 900px) {
    .gallery {
        grid-template-columns: 1fr;
    }
}

/* ====== E-cart ====== */
.ecart {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 1rem;
}

.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.product {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 26px rgba(10, 17, 40, .06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 16px 40px rgba(217, 4, 41, 0.1);
}

.product .img {
    height: 120px;
    background: linear-gradient(135deg, #f0f0f5, #e8e8f0);
    border: 1px dashed rgba(10, 17, 40, 0.12);
    border-radius: 14px;
    margin-bottom: .8rem;
}

.product .title {
    font-weight: 700;
}

.product .price {
    margin: .2rem 0 .6rem 0;
    font-weight: 800;
    color: var(--primary);
}

.product .actions {
    margin-top: auto;
    display: flex;
    gap: .5rem;
}

.cart {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 1.2rem;
    position: sticky;
    top: 88px;
    height: fit-content;
    box-shadow: var(--shadow);
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    margin: .6rem 0;
}

.cart-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: .6rem;
    align-items: center;
}

.cart-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
}

@media (max-width: 900px) {
    .ecart {
        grid-template-columns: 1fr;
    }

    .products {
        grid-template-columns: 1fr;
    }
}

/* ====== Forms ====== */
.form {
    display: grid;
    gap: .8rem;
}

.form label {
    font-weight: 700;
}

.form input,
.form textarea {
    width: 100%;
    padding: .8rem .9rem;
    border: 1px solid rgba(10, 17, 40, 0.12);
    border-radius: 12px;
    outline: none;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.form input:focus,
.form textarea:focus {
    box-shadow: 0 0 0 4px var(--ring);
    border-color: var(--primary);
}

.newsletter {
    display: flex;
    gap: .4rem;
}

.newsletter input {
    flex: 1;
    padding: .7rem .8rem;
    border: 1px solid rgba(10, 17, 40, 0.12);
    border-radius: 10px;
    outline: none;
}

.newsletter input:focus {
    box-shadow: 0 0 0 3px var(--ring);
}

/* ===== Modern Footer Styling ===== */
.site-footer {
    padding: 3rem 1.5rem 1rem;
    background: var(--navy);
    color: #ccc;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(217, 4, 41, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 2rem;
}

.footer-col {
    position: relative;
}

.footer-title {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    color: #fff;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    padding-bottom: 4px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin: 0.4rem 0;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 6px;
}

.social-icons {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.8rem;
}

.social-icons img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 0 12px rgba(217, 4, 41, 0.2);
}

.social-icons img:hover {
    transform: scale(1.15);
    box-shadow: 0 0 18px rgba(217, 4, 41, 0.5);
    background: rgba(217, 4, 41, 0.2);
}

.tagline {
    font-style: italic;
    font-size: 0.9rem;
    color: #888;
    margin-top: 0.8rem;
}

.newsletter .btn {
    width: 100%;
    background: linear-gradient(135deg, #d90429, #8b0000);
    color: #fff;
    border: none;
    font-weight: 700;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.newsletter .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(217, 4, 41, 0.3);
}

.footer-bottom {
    margin-top: 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    font-size: 0.9rem;
    color: #888;
}

@media (max-width: 600px) {
    .footer-grid {
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}

.center {
    margin-top: 0.5em;
    text-align: center;
}

.dim {
    color: var(--muted);
}

.note {
    color: #555;
}

/* ====== Gallery (home & page) ====== */
.gallery-preview {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.gallery-preview img {
    width: calc(25% - .75rem);
    flex: 1 1 calc(25% - .75rem);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 24px rgba(10, 17, 40, .06);
    object-fit: cover;
}

.gallery-preview img:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 45px rgba(217, 4, 41, 0.15);
}

.gallery-grid, #instafeed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.gallery-grid img, #instafeed img {
    width: 100%;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    object-fit: cover;
    aspect-ratio: 4/3;
    box-shadow: 0 10px 30px rgba(10, 17, 40, .08);
}

.gallery-grid img:hover, #instafeed img:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 22px 50px rgba(217, 4, 41, 0.2);
    z-index: 10;
    position: relative;
}

@media (max-width: 475px) {
    .gallery-preview img {
        width: calc(50% - .5rem);
        flex: 1 1 calc(50% - .5rem);
    }
}

/* ====== Services cards (icons & lift) ====== */
.service {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
}

.service:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 22px 45px rgba(217, 4, 41, 0.15);
    border-color: rgba(217, 4, 41, 0.2);
}

.icon {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

/* ====== Map ====== */
.map iframe {
    width: 100%;
    height: 320px;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(10, 17, 40, .10);
}

/* ====== Utilities ====== */
.card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.35s ease;
}

.shadow {
    box-shadow: var(--shadow);
}

.hide {
    display: none;
}

/* ====== Simple fade / slide-in if AOS missing ====== */
[data-aos] {
    opacity: 1;
    transform: none;
}

/* AOS will override. This keeps layout stable. */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.lightbox img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    animation: zoomIn 0.4s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ====== Floating Shapes Decoration ====== */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(217, 4, 41, 0.2); }
    50% { box-shadow: 0 0 40px rgba(217, 4, 41, 0.4); }
}

/* ====== Red accent line for section titles ====== */
.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #d90429, #0a1128);
    border-radius: 4px;
    margin-top: 0.6rem;
}

.section-title.center::after {
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   GLOBAL RESPONSIVENESS & FOOTER STYLES
   ========================================= */

.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; }
.footer-col { display: flex; flex-direction: column; }
.footer-title { color: #fff; font-size: 1.25rem; margin-bottom: 1.5rem; position: relative; padding-bottom: 0.75rem; }
.footer-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: #d90429; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: #94a3b8; text-decoration: none; transition: all 0.3s ease; display: inline-block; }
.footer-links a:hover { color: #fff; transform: translateX(5px); }
.social-icons { display: flex; gap: 1rem; }
.social-icons a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); transition: all 0.3s ease; }
.social-icons a img { width: 18px; height: 18px; filter: brightness(0) invert(1); opacity: 0.7; transition: all 0.3s ease; }
.social-icons a:hover { background: #d90429; border-color: #d90429; transform: translateY(-3px); }
.social-icons a:hover img { opacity: 1; }
.footer-bottom { background: rgba(0,0,0,0.2); padding: 1.5rem 0; margin-top: 2rem; border-top: 1px solid rgba(255,255,255,0.05); }

@media (max-width: 1200px) { .container { width: 95%; } }
@media (max-width: 900px) {
    .page-hero, .gallery-hero, .library-hero, .contact-hero { padding: 7rem 1rem 3rem 1rem !important; }
    .split-section { grid-template-columns: 1fr !important; gap: 2rem !important; }
    .split-section > div { text-align: center; }
    .footer-map iframe { height: 250px !important; }
    .stats-grid, .impact-grid, .glass-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important; }
    h1 { font-size: clamp(2rem, 8vw, 3rem) !important; }
    h2 { font-size: clamp(1.5rem, 6vw, 2.2rem) !important; }
    .dropdown-content {
        position: relative !important; top: 0 !important; left: 0 !important; transform: none !important; box-shadow: none !important;
        background: transparent !important; border: none !important; visibility: visible !important; opacity: 1 !important; display: flex !important;
        flex-direction: column; align-items: center; padding-left: 0; margin-top: 0.5rem; border-left: none;
    }
    .dropdown .dropbtn { pointer-events: none; color: #d90429 !important; } 
    .dropdown-content a { font-size: 1rem !important; font-weight: 500 !important; color: #64748b !important; padding: 0.4rem 0 !important; }
}
@media (max-width: 600px) {
    body { font-size: 15px; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .footer-title::after { left: 50%; transform: translateX(-50%); }
    .social-icons { justify-content: center; }
    .bento-gallery { grid-template-columns: 1fr !important; }
}

.bg-space {
    background: radial-gradient(circle at center, #0a1128 0%, #000000 100%);
    position: relative;
    overflow: hidden;
    color: #fff;
}
.bg-space::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(1.5px 1.5px at 20px 30px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 40px 70px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, #ffffff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.3;
    animation: space-drift 60s linear infinite;
    pointer-events: none;
}
@keyframes space-drift {
    from { transform: translateY(0); }
    to { transform: translateY(-200px); }
}

.bg-space .stat-label {
    color: #a0aec0;
}

.bg-space .stat {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top-color: rgba(255, 255, 255, 0.3);
    border-left-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
    backdrop-filter: blur(16px);
    transition: all 0.4s ease;
}

.bg-space .stat:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: rgba(217, 4, 41, 0.3);
}

.bg-space .stat-num {
    color: #d90429;
}

/* ====== Premium Holographic Glass ====== */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top-color: rgba(255, 255, 255, 0.3);
    border-left-color: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.glass:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.3);
    border-color: rgba(217, 4, 41, 0.3);
}


/* =========================================
   RESTORED DROPDOWN CSS (DESKTOP)
   ========================================= */
.dropdown { position: relative; display: inline-block; }
.dropdown .dropbtn { display: inline-flex; align-items: center; gap: 0.3rem; cursor: pointer; }
.dropdown-content {
    visibility: hidden; opacity: 0; position: absolute; top: 100%; left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(16px);
    min-width: 220px; box-shadow: 0 15px 35px rgba(10, 17, 40, 0.1);
    border-radius: 12px; border: 1px solid rgba(0,0,0,0.05);
    padding: 0.5rem 0; z-index: 1000; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex; flex-direction: column;
}
.dropdown:hover .dropdown-content { visibility: visible; opacity: 1; transform: translateX(-50%) translateY(0); }
.dropdown-content a { color: var(--navy) !important; padding: 0.7rem 1.5rem !important; font-size: 0.95rem !important; text-align: left; display: block; border-radius: 0 !important; }
.dropdown-content a:hover { background: rgba(217, 4, 41, 0.05) !important; color: var(--primary) !important; }
.dropdown-content a::after { display: none !important; }


/* =========================================
   RESTORED INDEX.HTML CSS
   ========================================= */
.services-grid, .glass-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; margin-top: 3rem;
}
.glass-card {
    background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(20px);
    border-radius: 24px; padding: 3rem 2rem; border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: all 0.4s ease; text-align: center;
}
.glass-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(217, 4, 41, 0.1); }
.glass-card .icon-wrapper { font-size: 3rem; margin-bottom: 1.5rem; display: inline-block; }
.glass-card h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--navy); }
.glass-card p { color: #64748b; line-height: 1.6; }

.impact-grid, .stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin: 4rem 0;
}
.stat {
    text-align: center; padding: 2rem; background: #fff; border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.05);
}
.stat-num { font-size: 3.5rem; font-weight: 900; color: var(--primary); display: block; line-height: 1; margin-bottom: 0.5rem; }
.stat-label { font-size: 1.1rem; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; margin-top: 3rem; }
.testi-card {
    background: #fff; border-radius: 24px; padding: 2.5rem; box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05); position: relative;
}
.testi-card::before { content: '"'; position: absolute; top: 1rem; left: 1.5rem; font-size: 6rem; color: rgba(217, 4, 41, 0.1); font-family: serif; line-height: 1; }
.testi-card p { font-size: 1.1rem; font-style: italic; color: #334155; margin-bottom: 2rem; position: relative; z-index: 2; line-height: 1.7; }
.testi-author { display: flex; align-items: center; gap: 1rem; }
.testi-author img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.testi-author h4 { margin: 0; font-size: 1.1rem; color: var(--navy); }
.testi-author span { font-size: 0.9rem; color: #64748b; }

.pill-list { display: flex; flex-wrap: wrap; gap: 0.8rem; list-style: none; padding: 0; margin-top: 2rem; }
.pill-list li { background: rgba(10, 17, 40, 0.05); color: var(--navy); padding: 0.5rem 1.2rem; border-radius: 50px; font-weight: 600; font-size: 0.9rem; border: 1px solid rgba(0,0,0,0.05); transition: all 0.3s ease; }
.pill-list li:hover { background: var(--primary); color: #fff; border-color: var(--primary); }


/* =========================================
   RESTORED ABOUT.HTML CSS
   ========================================= */
.lm-hero { padding: 8rem 1rem 4rem; text-align: center; }
.lm-hero h1 { font-size: clamp(3rem, 8vw, 4.5rem); font-weight: 900; background: linear-gradient(135deg, #0a1128, #d90429); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 1rem; }
.lm-hero p { font-size: 1.25rem; color: #64748b; max-width: 800px; margin: 0 auto; line-height: 1.8; }
.lm-section { padding: 4rem 1rem; margin-bottom: 2rem; }

.director-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: center; max-width: 1100px; margin: 0 auto; }
.director-img-wrapper { position: relative; padding: 1rem; }
.director-outline-frame { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 3px solid #d90429; border-radius: 24px; transform: translate(15px, 15px); z-index: 1; transition: transform 0.4s ease; }
.director-img-front { position: relative; z-index: 2; border-radius: 24px; overflow: hidden; box-shadow: 0 15px 40px rgba(0,0,0,0.15); }
.director-img-front img { width: 100%; height: auto; display: block; transition: transform 0.5s ease; }
.director-img-wrapper:hover .director-outline-frame { transform: translate(25px, 25px); }
.director-img-wrapper:hover .director-img-front img { transform: scale(1.05); }

.director-text h2 { font-size: 2.2rem; line-height: 1.3; margin-bottom: 1.5rem; color: #0a1128; font-weight: 800; }
.director-text p { font-size: 1.1rem; color: #475569; margin-bottom: 1.5rem; line-height: 1.8; }

.mv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; max-width: 1000px; margin: 0 auto; }
.mv-complex-wrapper { position: relative; height: 350px; perspective: 1000px; }
.mv-outline-frame { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 2px dashed rgba(217, 4, 41, 0.4); border-radius: 24px; z-index: 1; transform: translate(10px, 10px); }
.mv-flip-card { position: relative; width: 100%; height: 100%; z-index: 2; transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); transform-style: preserve-3d; border-radius: 24px; }
.mv-complex-wrapper:hover .mv-flip-card { transform: rotateY(180deg); }
.mv-flip-inner { position: absolute; width: 100%; height: 100%; }
.mv-flip-front, .mv-flip-back { position: absolute; width: 100%; height: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; border-radius: 24px; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 2rem; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.05); }
.mv-flip-front { background: #fff; }
.mv-flip-front h3 { font-size: 2rem; color: #0a1128; margin-top: 1rem; }
.mv-flip-back { background: linear-gradient(135deg, #0a1128, #1b2a4a); color: #fff; transform: rotateY(180deg); }
.mv-flip-back h3 { color: #d90429; margin-bottom: 1rem; }
.mv-flip-back p { font-size: 1.1rem; line-height: 1.6; }

@media (max-width: 900px) {
    .director-grid { grid-template-columns: 1fr; }
    .mv-grid { grid-template-columns: 1fr; }
    .impact-grid, .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
    .impact-grid, .stats-grid { grid-template-columns: 1fr !important; }
}



/* =========================================
   COMPREHENSIVE DESIGN & ANIMATION RECOVERY
   ========================================= */

/* ===== BUTTONS ===== */
.btn-advanced {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d90429, #9e031e);
    color: #fff !important;
    font-weight: 700;
    padding: 1rem 2.2rem;
    border-radius: 50px;
    border: none;
    text-decoration: none;
    letter-spacing: 0.5px;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(217, 4, 41, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-advanced:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(217, 4, 41, 0.45);
}

.btn-advanced::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-25deg);
    animation: sweep-btn 3s infinite;
}

@keyframes sweep-btn {
    0% { left: -100%; }
    50% { left: 200%; }
    100% { left: 200%; }
}

/* ===== ADVANCED FOOTER & MAP ===== */
.footer-map-container {
    background: rgba(255,255,255,0.03);
    border-radius: 30px;
    padding: 2.5rem;
    border: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 3.5rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.footer-map {
    border-radius: 20px;
    overflow: hidden;
    height: 350px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}
.footer-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: invert(90%) hue-rotate(180deg) contrast(1.2) brightness(0.9); /* Premium Dark Mode Map */
}

.newsletter input {
    width: 100%;
    padding: 1.1rem 1.5rem;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 1.05rem;
    outline: none;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}
.newsletter input:focus {
    border-color: #d90429;
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 0 4px rgba(217, 4, 41, 0.2);
}

/* ===== ABOUT PAGE & HERO ANIMATIONS ===== */
.lm-hero {
    padding: 12rem 1rem 6rem;
    position: relative;
    z-index: 10;
}
.lm-hero h1 {
    font-size: clamp(3.5rem, 8vw, 5.5rem) !important;
    background: linear-gradient(135deg, #0a1128, #d90429, #0a1128);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-shine 6s linear infinite;
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.lm-section {
    padding: 6rem 1rem;
}

/* Director Frame Deep Animations */
.director-grid {
    background: rgba(255,255,255,0.85) !important;
    backdrop-filter: blur(25px);
    border-radius: 40px !important;
    padding: 4.5rem !important;
    box-shadow: 0 25px 70px rgba(10, 17, 40, 0.08) !important;
    border: 1px solid rgba(0,0,0,0.05);
}

.director-outline-frame {
    border: 4px solid #d90429 !important;
    border-radius: 30px !important;
    transform: translate(20px, 20px) !important;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.director-img-wrapper:hover .director-outline-frame {
    transform: translate(35px, 35px) !important;
    border-color: #0a1128 !important;
}
.director-img-front {
    border-radius: 30px !important;
}

/* 3D Mission/Vision Card Deep Expansion */
.mv-complex-wrapper {
    height: 450px !important;
}
.mv-outline-frame {
    border: 2px dashed rgba(217, 4, 41, 0.6) !important;
    border-radius: 30px !important;
    transform: translate(15px, 15px) !important;
}
.mv-complex-wrapper:hover .mv-outline-frame {
    transform: translate(30px, 30px) !important;
    border-color: #0a1128 !important;
}
.mv-flip-front, .mv-flip-back {
    border-radius: 30px !important;
    padding: 3.5rem !important;
}
.mv-flip-front {
    background: rgba(255,255,255,0.95) !important;
    box-shadow: 0 15px 50px rgba(0,0,0,0.08) !important;
}
.mv-flip-front h3 {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
}



/* =========================================
   ULTRA-RESPONSIVE COMPACT SCALING (HOME PAGE)
   ========================================= */

@media (max-width: 900px) {
    /* Hero & Top Level */
    .hero { padding: 5rem 1rem 2rem !important; }
    .hero-grid { gap: 1.5rem !important; }
    .hero-copy h1 { font-size: clamp(2.2rem, 6vw, 2.8rem) !important; margin-bottom: 0.5rem; letter-spacing: -1px; }
    .hero-copy .lead { font-size: 1rem !important; margin-bottom: 1.5rem !important; line-height: 1.6; }
    
    /* Elegant Buttons */
    .btn, .btn-advanced { 
        padding: 0.75rem 1.4rem !important; 
        font-size: 0.9rem !important; 
        border-radius: 40px !important; 
    }
    .cta-row { gap: 0.8rem !important; display: flex !important; flex-wrap: wrap !important; }
    .cta-row a { flex: 1; text-align: center; } 

    .pill-list { gap: 0.5rem !important; margin-top: 1.5rem !important; }
    .pill-list li { padding: 0.4rem 1rem !important; font-size: 0.85rem !important; }

    /* Compact Glass Cards */
    .services-grid, .glass-grid { gap: 1.2rem !important; margin-top: 2rem !important; }
    .glass-card { padding: 1.8rem 1.2rem !important; border-radius: 16px !important; }
    .glass-card .icon-wrapper { font-size: 2.2rem !important; margin-bottom: 1rem !important; }
    .glass-card h3 { font-size: 1.2rem !important; margin-bottom: 0.5rem !important; }
    .glass-card p { font-size: 0.9rem !important; line-height: 1.5 !important; }
    
    /* Compact Impact Stats (2-Column) */
    .impact-grid, .stats-grid { gap: 1rem !important; margin: 2rem 0 !important; grid-template-columns: repeat(2, 1fr) !important; }
    .stat { padding: 1.2rem 1rem !important; border-radius: 12px !important; }
    .stat-num { font-size: 2.2rem !important; margin-bottom: 0.2rem !important; }
    .stat-label { font-size: 0.8rem !important; letter-spacing: 0.5px !important; }
    
    /* Testimonials */
    .testimonial-grid { gap: 1.2rem !important; margin-top: 2rem !important; }
    .testi-card { padding: 1.8rem 1.2rem !important; border-radius: 16px !important; }
    .testi-card::before { font-size: 4rem !important; top: 0.5rem !important; left: 1rem !important; }
    .testi-card p { font-size: 0.95rem !important; margin-bottom: 1.5rem !important; line-height: 1.6 !important; }
    .testi-author img { width: 40px !important; height: 40px !important; }
    .testi-author h4 { font-size: 1rem !important; }
    .testi-author span { font-size: 0.85rem !important; }
    
    /* Marquee Logos */
    .marquee-wrapper { padding: 1.5rem 0 !important; }
    .marquee-content img { height: 26px !important; margin: 0 1.5rem !important; }
    
    /* Footer Clean-up */
    .footer-grid { gap: 1.5rem !important; padding: 2rem 0 1rem !important; }
    .footer-title { font-size: 1.1rem !important; margin-bottom: 1rem !important; }
    .footer-links a { font-size: 0.9rem !important; }
    .newsletter input { padding: 0.9rem 1.2rem !important; font-size: 0.9rem !important; }
}

@media (max-width: 450px) {
    /* Ultra-small phones */
    .hero-copy h1 { font-size: 2rem !important; }
    .cta-row { flex-direction: column !important; }
    .cta-row a { width: 100% !important; }
    
    .pill-list li { font-size: 0.75rem !important; }
    
    .stat-num { font-size: 1.8rem !important; }
    .impact-grid, .stats-grid { gap: 0.8rem !important; }
    .stat { padding: 1rem 0.5rem !important; }
}


/* =========================================
   STICKY NAVBAR & OFFICIAL SMALL FOOTER OVERRIDES
   ========================================= */

/* Force Fixed Navbar */
.site-header {
    position: fixed !important;
    width: 100% !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 9999 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: saturate(180%) blur(20px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
}

/* Push body down so fixed header doesn't cover top of page */
body {
    padding-top: 60px;
}
/* Ensure heroes don't double up too much padding */
.hero, .lm-hero, .page-hero, .contact-hero, .library-hero, .gallery-hero {
    margin-top: -60px; /* Counteract body padding for full-bleed heroes */
    padding-top: 8rem !important; /* Standardize hero top padding */
}

/* =========================================
   OFFICIAL, COMPACT, PREMIUM FOOTER
   ========================================= */
.site-footer {
    padding-top: 2rem !important;
}

/* Grid & Spacing */
.footer-grid {
    gap: 1.5rem !important;
    padding: 1rem 0 2rem !important;
}

/* Typography Scale Down */
.footer-title {
    font-size: 0.95rem !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    margin-bottom: 1rem !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding-bottom: 0.5rem !important;
}
.footer-title::after {
    height: 1px !important; /* Thinner accent line */
    width: 30px !important;
}

.footer-col p {
    font-size: 0.85rem !important;
    line-height: 1.6 !important;
    color: #94a3b8 !important;
}

.footer-links li {
    margin-bottom: 0.5rem !important;
}
.footer-links a {
    font-size: 0.85rem !important;
    color: #94a3b8 !important;
}
.footer-links a:hover {
    color: #ffffff !important;
    padding-left: 4px !important; /* Subtle indent on hover */
}

/* Compact Newsletter Form */
.newsletter {
    gap: 0.4rem !important;
}
.newsletter input {
    padding: 0.7rem 1rem !important;
    font-size: 0.85rem !important;
    border-radius: 8px !important;
    margin-bottom: 0 !important;
}
.newsletter .btn-advanced {
    padding: 0.7rem 1rem !important;
    font-size: 0.85rem !important;
    border-radius: 8px !important;
}

/* Bottom Copyright Bar */
.footer-bottom {
    padding: 1rem 0 !important;
    border-top: 1px solid rgba(255,255,255,0.05) !important;
    background: rgba(0,0,0,0.3) !important;
}
.footer-bottom p {
    font-size: 0.75rem !important;
    color: #64748b !important;
    margin: 0 !important;
}
.footer-bottom .container {
    padding: 0 1rem;
}

/* Compact Map Container in Footer (if used) */
.footer-map-container {
    padding: 1.5rem !important;
    margin-bottom: 2rem !important;
    border-radius: 20px !important;
}
.footer-map {
    height: 250px !important;
    border-radius: 12px !important;
}
.footer-map-container h3 {
    font-size: 1.5rem !important;
}
.footer-map-container p {
    font-size: 0.9rem !important;
}

/* Mobile specific tweaks for the compact footer */
@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 2rem !important;
    }
    .footer-title::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    .footer-links a:hover {
        padding-left: 0 !important; /* No indent on centered mobile */
    }
    .footer-bottom .container {
        flex-direction: column !important;
        gap: 0.5rem !important;
        text-align: center !important;
    }
}

/* =========================================
   MODERN NAVBAR PILL HOVER & GLOBAL SPACING
   ========================================= */

/* Remove old underline */
.menu a::after {
    display: none !important;
}

/* Modern Pill Hover */
.menu a {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border-radius: 50px !important; /* Fully rounded pill */
}
.menu a:hover {
    background: #0f172a !important; /* Deep Slate Pill */
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15) !important;
}
.menu a.active {
    background: #d90429 !important; /* Premium Red Pill */
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(217, 4, 41, 0.2) !important;
}

/* Ensure Dropdown items don't look like pills */
.dropdown-content a {
    border-radius: 8px !important;
}
.dropdown-content a:hover {
    background: rgba(15, 23, 42, 0.05) !important;
    color: #d90429 !important;
    transform: none !important;
    box-shadow: none !important;
}

/* =========================================
   OFFICIAL SPACIOUS ALIGNMENTS
   ========================================= */

/* Global text breathability */
p, .lead, .note {
    line-height: 1.85 !important;
    letter-spacing: 0.2px;
}
body {
    background: #fafcff; /* Ultra-soft premium background */
}
.glass-card, .testi-card, .form-card, .glass-info-card {
    background: #ffffff !important; /* Pure white over soft background for depth */
}

/* =========================================
   IMPACT STATS: SINGLE LINE ON LAPTOP
   ========================================= */

/* Desktop / Laptop tight sizing */
.impact-grid, .stats-grid {
    gap: 1.5rem !important; 
    margin: 3rem 0 !important;
    grid-template-columns: repeat(4, 1fr) !important; /* Force 1 line on laptop */
}
.stat {
    padding: 1.5rem 1rem !important; /* Reduced massive padding */
}
.stat-num {
    font-size: 2.5rem !important; /* Reduced from massive 3.5rem */
}
.stat-label {
    font-size: 0.9rem !important;
}

/* Only wrap to 2 columns on TABLET/MOBILE (under 800px) */
@media (max-width: 800px) {
    .impact-grid, .stats-grid { 
        grid-template-columns: repeat(2, 1fr) !important; 
    }
}
@media (max-width: 500px) {
    .impact-grid, .stats-grid { 
        grid-template-columns: repeat(2, 1fr) !important; 
    }
    .stat-num {
        font-size: 1.8rem !important;
    }
}

/* =========================================
   FIXED IMPACT STATS GRID (4-COLUMN LAPTOP)
   ========================================= */

/* The actual class used in index.html is .stats */
.stats {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
    max-width: 1200px;
    margin: 0 auto;
}

/* Dark Mode Stat Card Styling (when inside .bg-space) */
.bg-space .stat {
    background: rgba(10, 17, 40, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(15px) !important;
    padding: 2.5rem 1.5rem !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3) !important;
    transition: all 0.4s ease !important;
}
.bg-space .stat:hover {
    transform: translateY(-10px) !important;
    border-color: rgba(217, 4, 41, 0.3) !important;
    box-shadow: 0 20px 45px rgba(217, 4, 41, 0.15) !important;
}

/* Red text for numbers */
.bg-space .stat-num {
    color: #d90429 !important;
    font-size: 3rem !important;
}
.bg-space .stat-label {
    color: #94a3b8 !important;
}

@media (max-width: 1024px) {
    .stats {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 600px) {
    .stats {
        grid-template-columns: 1fr !important;
    }
    .bg-space .stat {
        padding: 1.5rem 1rem !important;
    }
}


/* =========================================
   EXECUTIVE TEAM GRID (ABOUT PAGE)
   ========================================= */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-complex-wrapper {
    position: relative;
    height: 400px;
    perspective: 1200px;
}

.team-outline-frame {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border: 3px solid rgba(217, 4, 41, 0.4);
    border-radius: 20px;
    z-index: 1;
    transform: translate(15px, 15px);
    transition: all 0.5s ease;
}

.team-complex-wrapper:hover .team-outline-frame {
    transform: translate(25px, 25px);
    border-color: #0a1128;
}

.team-flip-card {
    position: relative;
    width: 100%; height: 100%;
    z-index: 2;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    border-radius: 20px;
}

.team-complex-wrapper:hover .team-flip-card {
    transform: rotateY(180deg);
}

.team-flip-inner {
    position: absolute; width: 100%; height: 100%;
    transform-style: preserve-3d;
}

.team-flip-front, .team-flip-back {
    position: absolute; width: 100%; height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.team-flip-front {
    background: #fff;
}
.team-flip-front img {
    width: 100%; height: 100%; object-fit: cover;
}
.team-front-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(10,17,40,0.9), transparent);
    color: #fff;
    text-align: center;
}
.team-front-overlay h4 {
    margin: 0; font-size: 1.5rem; color: #fff; font-weight: 800;
}

.team-flip-back {
    background: linear-gradient(135deg, #0a1128, #1b2a4a);
    color: #fff;
    transform: rotateY(180deg);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 2.5rem; text-align: center;
}
.team-flip-back h4 {
    color: #d90429; font-size: 1.6rem; margin-bottom: 0.5rem; font-weight: 800;
}
.team-flip-back span {
    font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #94a3b8; margin-bottom: 1.5rem;
}
.team-flip-back p {
    font-size: 0.95rem; line-height: 1.6; color: #cbd5e1;
}

/* Mobile scaling */
@media (max-width: 900px) {
    .team-complex-wrapper { height: 350px; }
    .team-grid { gap: 4rem; } /* more space between cards on mobile stack */
}


/* =========================================
   1. GLOBAL CANVAS BACKGROUND FIX
   ========================================= */
/* Make the canvas sit completely in the background, spanning the whole site, and NOT push content down */
#tech-canvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: -100 !important;
    pointer-events: none !important;
    background: #fafcff !important; /* Soft white base */
}

/* Make sure main content is transparent so canvas shows through */
body, main {
    background: transparent !important;
}

/* =========================================
   2. BULLETPROOF 3D FLIP CARDS (MISSION/VISION)
   ========================================= */
.mv-complex-wrapper {
    position: relative !important;
    height: 400px !important;
    perspective: 2000px !important;
    z-index: 10 !important;
}
.mv-flip-card {
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important;
    z-index: 2 !important;
    /* Move the rotation to the inner wrapper for better 3D support */
}
.mv-flip-inner {
    position: relative !important;
    width: 100% !important; height: 100% !important;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    transform-style: preserve-3d !important;
}
.mv-complex-wrapper:hover .mv-flip-inner {
    transform: rotateY(180deg) !important;
}
.mv-flip-front, .mv-flip-back {
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important;
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
    border-radius: 30px !important;
    padding: 3rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06) !important;
}
.mv-flip-front {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    transform: rotateY(0deg) !important;
}
.mv-flip-back {
    background: linear-gradient(135deg, #0a1128, #1b2a4a) !important;
    color: #fff !important;
    transform: rotateY(180deg) !important;
}
.mv-flip-back p {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    color: #cbd5e1 !important;
    margin-bottom: 0.8rem !important;
}
.mv-flip-back strong {
    color: #d90429 !important;
}

/* Fix massive icon sizes on the front face */
.mv-icon-box img {
    width: 70px !important;
    height: 70px !important;
    object-fit: contain !important;
    margin: 0 auto 1.5rem !important;
    filter: drop-shadow(0 10px 15px rgba(217, 4, 41, 0.2)) !important;
}

/* Ensure the outline frame doesn't interfere */
.mv-outline-frame {
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important;
    pointer-events: none !important;
}

/* =========================================
   3. HIGHLY ANIMATIVE NAVBAR HOVER (BLOOM EFFECT)
   ========================================= */
/* Remove previous pill background */
.menu a {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 50px !important;
    overflow: hidden !important;
    z-index: 1 !important;
}

/* Create the blooming background element */
.menu a::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important;
    background: linear-gradient(135deg, #d90429, #9e031e) !important;
    z-index: -1 !important;
    border-radius: 50px !important;
    transform: scale(0) !important;
    opacity: 0 !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.menu a:hover::before, .menu a.active::before {
    transform: scale(1) !important;
    opacity: 1 !important;
}
.menu a:hover, .menu a.active {
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(217, 4, 41, 0.3) !important;
}

/* Reset dropdown items so they don't bloom */
.dropdown-content a::before {
    display: none !important;
}
.dropdown-content a:hover {
    background: rgba(217, 4, 41, 0.08) !important;
    color: #d90429 !important;
    transform: none !important;
    box-shadow: none !important;
}

/* =========================================
   4. RESPONSIVE SIZING FOR ALL DEVICES
   ========================================= */
@media (max-width: 900px) {
    .mv-complex-wrapper {
        height: 450px !important; /* Allow more room for text on mobile */
    }
    .mv-flip-front, .mv-flip-back {
        padding: 2rem !important;
    }
    .mv-icon-box img {
        width: 60px !important; height: 60px !important;
    }
}
@media (max-width: 500px) {
    .mv-complex-wrapper {
        height: 500px !important; /* Stacked text needs space */
    }
    .mv-flip-back p {
        font-size: 0.85rem !important;
        margin-bottom: 0.5rem !important;
    }
}

/* =========================================
   CANVAS BACKGROUND VISIBILITY FIX
   ========================================= */
html { background: #fafcff !important; }
body { background: transparent !important; }
main { background: transparent !important; }
#tech-canvas {
    z-index: -1 !important;
    opacity: 0.8 !important;
}

/* =========================================
   FOUNDER'S TALK (ADVANCED GLASSMORPHISM)
   ========================================= */
.founders-advanced-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.founders-image-glass {
    position: relative;
    border-radius: 30px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 50px rgba(10, 17, 40, 0.1);
}
.glass-glow {
    position: absolute;
    top: -20px; left: -20px; right: -20px; bottom: -20px;
    background: radial-gradient(circle at center, rgba(217, 4, 41, 0.15) 0%, transparent 70%);
    z-index: -1;
    border-radius: 50%;
    animation: pulse-glow 4s infinite alternate;
}
@keyframes pulse-glow {
    0% { transform: scale(0.9); opacity: 0.5; }
    100% { transform: scale(1.1); opacity: 1; }
}

.founders-image-glass img {
    border-radius: 20px;
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.founders-badge {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background: linear-gradient(135deg, #0a1128, #1b2a4a);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(10, 17, 40, 0.3);
    border: 2px solid #fff;
}

.founders-text-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(25px);
    border-radius: 30px;
    padding: 3.5rem;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}
.founders-text-glass:hover {
    box-shadow: 0 25px 60px rgba(217, 4, 41, 0.1);
    transform: translateY(-5px);
}

.quote-text {
    font-size: 1.8rem;
    color: #d90429;
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    font-weight: 800;
}
.founder-signature {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(10, 17, 40, 0.05);
}
.founder-signature h4 {
    color: #0a1128;
    font-size: 1.2rem;
    font-weight: 900;
}


/* =========================================
   CORPORATE PURPOSE (NO 3D FLIP, NATIVE GLASS)
   ========================================= */
.mv-glass-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.mv-glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(30px);
    border-radius: 30px;
    padding: 3.5rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 15px 50px rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.mv-glass-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(10, 17, 40, 0.1);
    border-color: rgba(217, 4, 41, 0.3);
}

/* Sweeping light animation on hover */
.glass-sweep {
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    transform: skewX(-25deg);
    transition: all 0.7s ease;
    z-index: 0;
}
.mv-glass-card:hover .glass-sweep {
    left: 200%;
}

.mv-glass-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}
.mv-glass-header img {
    width: 65px; height: 65px;
    object-fit: contain;
    filter: drop-shadow(0 10px 10px rgba(217, 4, 41, 0.15));
}
.mv-glass-header h3 {
    font-size: 2.2rem;
    color: #0a1128;
    margin: 0;
    font-weight: 900;
}

.mv-glass-content {
    position: relative;
    z-index: 1;
}
.glass-point {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    line-height: 1.6;
    color: #334155;
    transition: all 0.3s ease;
}
.glass-point:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transform: translateX(5px);
}
.glass-point strong {
    color: #d90429;
    font-weight: 800;
    display: block;
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .founders-advanced-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .founders-text-glass {
        padding: 2.5rem;
    }
    .quote-text {
        font-size: 1.4rem;
    }
    .mv-glass-grid {
        grid-template-columns: 1fr;
    }
    .mv-glass-card {
        padding: 2.5rem;
    }
    .mv-glass-header h3 {
        font-size: 1.8rem;
    }
}
@media (max-width: 500px) {
    .mv-glass-grid { grid-template-columns: 1fr !important; }
    .mv-glass-card { padding: 1.5rem !important; }
}




/* =========================================
   UNIQUE NAVBAR ANIMATION (BOUNCING DOT & LINE)
   ========================================= */
/* Reset previous bloom */
.menu a {
    background: transparent !important;
    color: #0a1128 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
}
.menu a:hover {
    color: #d90429 !important;
    transform: translateY(-2px) !important;
}

/* The expanding line */
.menu a::after {
    content: '' !important;
    position: absolute !important;
    bottom: -3px !important; left: 0 !important;
    width: 100% !important; height: 2px !important;
    background: linear-gradient(90deg, transparent, #d90429, transparent) !important;
    transform: scaleX(0) !important;
    transition: transform 0.4s ease !important;
}
.menu a:hover::after {
    transform: scaleX(1) !important;
}

/* The bouncing glowing dot */
.menu a::before {
    content: '' !important;
    position: absolute !important;
    bottom: -6px !important; /* Drops precisely onto the line */
    left: 50% !important;
    width: 6px !important; height: 6px !important;
    background: #d90429 !important;
    border-radius: 50% !important;
    opacity: 0 !important;
    transform: translate(-50%, -15px) scale(0) !important; /* Starts high and small */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    z-index: 2 !important;
}
.menu a:hover::before {
    opacity: 1 !important;
    transform: translate(-50%, 0) scale(1) !important;
    box-shadow: 0 0 8px rgba(217, 4, 41, 0.8) !important;
}

/* Fix colors in Founder section back to light mode glass */
.founders-text-glass {
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    color: #0a1128 !important;
}
.founders-text-glass p { color: #555 !important; }
.quote-text { color: #d90429 !important; text-shadow: none !important; }
.founder-signature h4 { color: #0a1128 !important; }

/* =========================================
   JOURNEY / ROUTE DESIGN (MISSION & VISION)
   ========================================= */
.journey-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* The vertical route track */
.journey-line {
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 4px;
    background: rgba(10, 17, 40, 0.05);
    transform: translateX(-50%);
    border-radius: 4px;
}
.journey-line::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, #d90429, transparent);
    animation: flowLine 3s infinite linear;
    border-radius: 4px;
}
@keyframes flowLine {
    0% { height: 0%; opacity: 1; }
    100% { height: 100%; opacity: 0; }
}

.journey-node {
    position: relative;
    width: 100%;
    margin-bottom: 4rem;
    display: flex;
    justify-content: flex-end;
}
.journey-node:nth-child(even) {
    justify-content: flex-start;
}

/* The route stop marker */
.journey-dot {
    position: absolute;
    top: 2rem;
    left: 50%;
    width: 20px; height: 20px;
    background: #d90429;
    border-radius: 50%;
    transform: translateX(-50%);
    border: 4px solid #fff;
    box-shadow: 0 0 0 4px rgba(217, 4, 41, 0.2);
    z-index: 2;
    transition: all 0.3s ease;
}
.journey-node:hover .journey-dot {
    transform: translateX(-50%) scale(1.3);
    box-shadow: 0 0 15px rgba(217, 4, 41, 0.5);
}

/* Content Box */
.journey-content {
    width: 45%;
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(15px) !important;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    border: 1px solid rgba(255, 255, 255, 0.9);
    transition: all 0.4s ease;
    position: relative;
}
.journey-node:hover .journey-content {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(217, 4, 41, 0.1);
    border-color: rgba(217, 4, 41, 0.2);
}

/* Connecting pointer arrow */
.journey-content::before {
    content: '';
    position: absolute;
    top: 2rem;
    width: 20px; height: 2px;
    background: rgba(217, 4, 41, 0.3);
}
.left-side::before { right: -20px; }
.right-side::before { left: -20px; }

.journey-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.journey-header img {
    width: 50px; height: 50px;
    filter: drop-shadow(0 5px 10px rgba(217, 4, 41, 0.15));
}
.journey-header h3 {
    font-size: 1.8rem;
    color: #0a1128;
    margin: 0;
}

.journey-list {
    list-style: none;
    padding: 0; margin: 0;
}
.journey-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
    color: #555;
}
.journey-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 8px;
    width: 6px; height: 6px;
    background: #d90429;
    border-radius: 50%;
}
.journey-list li strong {
    color: #0a1128;
}

/* Mobile Route Layout */
@media (max-width: 800px) {
    .journey-line { left: 30px; }
    .journey-dot { left: 30px; }
    .journey-node { justify-content: flex-end; }
    .journey-node:nth-child(even) { justify-content: flex-end; }
    .journey-content { width: calc(100% - 70px); }
    .left-side::before, .right-side::before { left: -20px; right: auto; }
}


/* =========================================
   GLOBAL TEXT FORMATTING (JUSTIFIED & COMPACT)
   ========================================= */
p, .lead, li, .glass-point, .journey-list li, .quote-text, .service p, .testi-card p {
    text-align: left !important; /* Replaced justify to fix spacious gaps */
    font-size: 0.95rem !important; /* Small sized */
    line-height: 1.8 !important;
    letter-spacing: 0.2px !important;
}
.quote-text {
    font-size: 1.25rem !important; /* Keep quote slightly larger for hierarchy, but smaller than before */
}
/* Ensure the grid cards don't break with justified text */
.service p, .testi-card p {
    hyphens: auto !important; /* helps with justified rivers in narrow columns */
}

/* =========================================
   CLEAN UNDERLINE NAVBAR HOVER (REMOVING ALL BORDERS)
   ========================================= */
.menu a::before { display: none !important; } /* Kill the bloom/dot completely */
.menu a {
    position: relative !important;
    background: transparent !important;
    color: #0a1128 !important;
    border-radius: 0 !important;
    padding-bottom: 0.4rem !important; /* Make room for underline */
    box-shadow: none !important;
    transform: none !important;
}
.menu a::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 2px !important;
    background: #d90429 !important;
    transform: scaleX(0) !important;
    transform-origin: right !important;
    transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1) !important;
    border-radius: 2px !important;
}
.menu a:hover::after, .menu a.active::after {
    transform: scaleX(1) !important;
    transform-origin: left !important;
}
.menu a:hover, .menu a.active {
    color: #d90429 !important;
    transform: none !important;
    box-shadow: none !important;
}
/* Ensure dropdown items don't have underline */
.dropdown-content a::after { display: none !important; }
.dropdown-content a { padding-bottom: 0.6rem !important; }

/* =========================================
   FOUNDER 3D ANIMATED IMAGE
   ========================================= */
.founders-image-glass {
    transform-style: preserve-3d !important;
    animation: float-founder 5s ease-in-out infinite alternate !important;
    perspective: 1200px !important;
    transform-origin: center center !important;
}
@keyframes float-founder {
    0% { transform: rotateY(15deg) rotateX(5deg) translateY(0px); box-shadow: -15px 20px 40px rgba(10,17,40,0.15); }
    100% { transform: rotateY(5deg) rotateX(2deg) translateY(-15px); box-shadow: -5px 30px 50px rgba(10,17,40,0.25); }
}

/* Advanced scanning laser effect over the image */
.founders-image-glass::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important;
    background: linear-gradient(to bottom, transparent, rgba(217, 4, 41, 0.25), transparent) !important;
    background-size: 100% 200% !important;
    animation: scan-laser 3s linear infinite !important;
    border-radius: 20px !important;
    pointer-events: none !important;
    z-index: 5 !important;
    mix-blend-mode: overlay !important;
}
@keyframes scan-laser {
    0% { background-position: 0 -100%; }
    100% { background-position: 0 200%; }
}

/* Extra styling to make the photo pop in 3D */
.founders-image-glass img {
    border: 3px solid rgba(255,255,255,1) !important;
    transition: transform 0.3s ease !important;
}
.founders-badge {
    transform: translateZ(30px) !important; /* Make badge pop out in 3D space */
}

/* =========================================
   ULTIMATE NAVBAR FIX (NO RECTANGLES)
   ========================================= */
.menu a, .menu a:hover, .menu a.active {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}


/* =========================================
   PERFECT ACCORDION RESTORATION (PREVENTING CUT-OFFS)
   ========================================= */
.showcase-container, .flex-container {
    display: flex !important; /* Restore the beautiful flex accordion */
    gap: 15px !important;
}
.showcase-panel, .flex-panel {
    flex: 1.5 !important; /* INCREASE base width so text fits */
    transition: flex 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.3s ease !important;
    border-radius: 30px !important;
    height: 550px !important;
}
.showcase-panel:hover, .flex-panel:hover {
    flex: 4 !important; /* Expand massively on hover */
}

/* Ensure content box spans full width with less padding to maximize text space */
.showcase-panel .panel-content, .flex-panel > div:not(.panel-bg) {
    position: absolute !important;
    bottom: 0 !important; left: 0 !important; right: 0 !important;
    width: 100% !important;
    padding: 25px 20px !important; /* Reduced side padding */
    background: linear-gradient(to top, rgba(10, 17, 40, 0.95) 0%, rgba(10, 17, 40, 0.6) 70%, transparent 100%) !important;
    color: #fff !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
}

/* The Title - Fully visible, responsive wrapping */
.showcase-panel .panel-title, .flex-panel .panel-title, .flex-panel h3 {
    font-size: 1.25rem !important; /* Sized perfectly for unhovered state */
    white-space: normal !important; /* Allow wrapping */
    word-break: normal !important;
    overflow-wrap: break-word !important; /* Prevent words from bleeding out */
    line-height: 1.3 !important;
    margin: 0 !important;
    opacity: 1 !important;
    transform: none !important;
    color: #fff !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5) !important;
    transition: font-size 0.4s ease !important;
}
.showcase-panel:hover .panel-title, .flex-panel:hover .panel-title, .flex-panel:hover h3 {
    font-size: 1.8rem !important; /* Enlarge on hover */
}

/* Hide descriptions until hover */
.showcase-panel .panel-desc, .showcase-panel .btn-view, .flex-panel .panel-details {
    opacity: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    margin-top: 0 !important;
    transition: all 0.4s ease !important;
}
.showcase-panel:hover .panel-desc, .showcase-panel:hover .btn-view, .flex-panel:hover .panel-details {
    opacity: 1 !important;
    max-height: 300px !important;
    margin-top: 15px !important;
}

/* Mobile Fallback */
@media (max-width: 900px) {
    .showcase-container, .flex-container {
        flex-direction: column !important;
        height: auto !important;
    }
    .showcase-panel, .flex-panel {
        height: 350px !important;
        width: 100% !important;
    }
}

/* =========================================
   CLICK-TO-OPEN DROPDOWN (MOBILE & DESKTOP)
   ========================================= */
/* Disable hover opening */
.dropdown:hover .dropdown-content {
    visibility: hidden !important; 
    opacity: 0 !important;
}

/* Enable active class opening */
.dropdown.active .dropdown-content {
    visibility: visible !important; 
    opacity: 1 !important; 
    transform: translateX(-50%) translateY(0) !important;
}

/* Fix mobile forced-open issue */
@media (max-width: 900px) {
    .dropdown-content {
        display: none !important; /* Hide physically on mobile to save space */
        visibility: hidden !important;
        opacity: 0 !important;
        margin-top: 0 !important;
        transition: none !important;
    }
    .dropdown.active .dropdown-content {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin-top: 10px !important;
        transform: none !important; /* Keep it centered naturally */
        position: relative !important;
    }
}

/* =========================================
   CRITICAL FIX: MOBILE ACCORDION VISIBILITY
   ========================================= */
@media (max-width: 900px) {
    .showcase-container, .flex-container, .flex-bento-container {
        flex-direction: column !important;
        height: auto !important;
        display: flex !important;
    }
    
    /* Disable flex-basis 0 on column mode, which caused 0 height */
    .showcase-panel, .flex-panel {
        flex: none !important; 
        height: 300px !important; /* Fixed height so they render vertically */
        width: 100% !important;
        margin-bottom: 1rem !important;
    }
    
    .showcase-panel:hover, .flex-panel:hover {
        flex: none !important;
        height: 400px !important; /* Expand vertically instead of horizontally */
    }
    
    .showcase-panel .panel-content, .flex-panel > div:not(.panel-bg) {
        padding: 1.5rem !important; /* Give more breathing room on mobile */
    }
}

/* =========================================
   CRITICAL FIX: RESTORE DROPDOWN CLICKS
   ========================================= */
.dropdown .dropbtn {
    pointer-events: auto !important; /* OVERRIDE ANY POINTER-EVENTS: NONE */
}


/* =========================================
   CRITICAL FIX: GLOBAL MOBILE RESPONSIVENESS (ENTERPRISE, SERVICES, TRAINING)
   ========================================= */
@media (max-width: 900px) {
    /* 1. Fix Inline Grids (Enterprise.html) */
    div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    .dm-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* 2. Fix Hover-to-Expand Cards (Training.html) */
    .expand-card {
        height: auto !important;
        transform: none !important;
    }
    .expand-card .card-body {
        max-height: 2500px !important;
        opacity: 1 !important;
        padding: 0 1.5rem 2rem 1.5rem !important;
        visibility: visible !important;
    }
    .expand-card .card-header {
        flex-direction: column !important;
        text-align: center !important;
        padding: 2rem 1.5rem !important;
        gap: 1.5rem !important;
    }
    .curriculum-list {
        grid-template-columns: 1fr !important;
    }
    .curriculum-list li {
        opacity: 1 !important;
        transform: none !important;
    }
    .career-impact {
        opacity: 1 !important;
        transform: none !important;
        flex-direction: column !important;
        text-align: center !important;
    }
    p[style*="Hover to Expand"] {
        display: none !important;
    }
    
    /* 3. Restore Floating Marquee but small sized proper flow (Services.html) */
    .marquee-wrapper {
        overflow: hidden !important;
    }
    .marquee-track {
        display: flex !important;
        flex-direction: row !important;
        width: max-content !important;
        animation: marquee 25s linear infinite !important;
        gap: 1rem !important;
    }
    .course-glass-card {
        width: 320px !important;
        padding: 1.5rem !important;
        margin: 0 !important;
        white-space: normal !important;
    }
    .course-glass-card h3 {
        font-size: 1.5rem !important;
    }
    .course-glass-card p {
        font-size: 0.95rem !important;
    }
}

/* =========================================
   OFFICIAL SOCIAL SVG ICONS & FOUNDER DUAL PHOTOS
   ========================================= */
.social-icons a {
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none !important;
}
.social-icons a svg {
    width: 18px !important;
    height: 18px !important;
    transition: all 0.3s ease !important;
}
.social-icons a:hover {
    color: #ffffff !important;
    background: #d90429 !important;
    border-color: #d90429 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(217, 4, 41, 0.35) !important;
}
.social-icons a:hover svg {
    transform: scale(1.1) !important;
}

.founders-advanced-grid {
    grid-template-columns: 1fr 1.1fr;
}
.founder-dual-photos {
    display: flex;
    gap: 0.85rem;
    align-items: stretch;
}
.founder-dual-photos img {
    width: calc(50% - 0.425rem) !important;
    height: 360px !important;
    object-fit: cover !important;
    object-position: top center !important;
    border-radius: 18px !important;
}
@media (max-width: 900px) {
    .founders-advanced-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .founder-dual-photos img {
        height: 250px !important;
    }
}
