:root {
    --cyber-black: #020510;
    --cyber-dark: #05091a;
    --cyber-blue: #00f3ff;
    --cyber-green: #00ff41;
    --cyber-purple: #bc13fe;
    --cyber-red: #ff003c;
    --glass-bg: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.13);
    --font-primary: 'Outfit', sans-serif;
    --font-tech: 'Rajdhani', sans-serif;
}

/* ============================================================
   GLOBAL CYBER BACKGROUND SYSTEM
   ============================================================ */
html,
body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--cyber-black);
    background-image:
        radial-gradient(ellipse 70% 50% at 10% 15%, rgba(0, 80, 200, 0.14) 0%, transparent 65%),
        radial-gradient(ellipse 55% 50% at 88% 82%, rgba(120, 0, 220, 0.10) 0%, transparent 65%),
        linear-gradient(rgba(0, 243, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.028) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
    color: #d2d2d2;
    font-family: var(--font-primary);
    overflow-x: hidden;
    position: relative;
}

/* Scanline overlay — subtle CRT feel */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 3px,
            rgba(0, 243, 255, 0.010) 3px,
            rgba(0, 243, 255, 0.010) 4px);
    animation: scanlines 10s linear infinite;
}

@keyframes scanlines {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 0 200px;
    }
}

/* Drifting glow orb — top-right corner */
body::after {
    content: '';
    position: fixed;
    top: -180px;
    right: -180px;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(0, 100, 255, 0.09) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: orb-drift 14s ease-in-out infinite alternate;
}

@keyframes orb-drift {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }

    100% {
        transform: translate(-70px, 70px) scale(1.2);
        opacity: 1;
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-tech);
    text-transform: uppercase;
    letter-spacing: 1px;
}

h2 {
    font-size: 3.5rem !important;
}


.lb {
    display: inline-block !important;
}

.text-primary {
    color: var(--cyber-blue) !important;
}

.text-success {
    color: var(--cyber-green) !important;
}

/* Neon Utilities */
.neon-text-blue {
    color: var(--cyber-blue);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.7);
}

.neon-text-green {
    color: var(--cyber-green);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.7);
}

.neon-text-purple {
    color: var(--cyber-purple);
    text-shadow: 0 0 10px rgba(188, 19, 254, 0.7);
}

.neon-text-red {
    color: var(--cyber-red);
    text-shadow: 0 0 10px rgba(255, 0, 60, 0.7);
}

/* Section Divider */
.section-divider {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyber-blue), transparent);
    box-shadow: 0 0 30px var(--cyber-blue);
    z-index: 100;
}

section {
    position: relative;
}

/* Loader */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--cyber-black);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 2.5s ease;
}

.cyber-loader {
    font-family: var(--font-tech);
    font-size: 2rem;
    color: var(--cyber-blue);
    letter-spacing: 5px;
}

/* Navigation */

@media (min-width: 992px) {
    .nav-items {
        /* background-color: transparent; */
        border: 2px solid rgb(255, 255, 255);
        border-radius: 10px;
        padding: 6px 14px !important;
        color: white !important;
        margin: 0 3px;
    }

    .nav-items:hover,
    .nav-items.active {
        background: transparent;
        color: var(--cyber-blue) !important;
        border-color: var(--cyber-blue) !important;
        box-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
    }

    .nav-items::after {
        display: none !important;
    }
}

.glass-nav {
    /* background: rgba(5, 5, 5, 0.8); */
    background-color: #012a4b;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

/* Remove the white border & focus ring from the hamburger button */
.navbar-toggler {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 6px 8px;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

/* Play Store Badge */
.play-store-badge {
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(0, 243, 255, 0.2));
}

.play-store-badge:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.5));
}

/* Hacker Animation Slider */
.hacker-slider {
    position: relative;
    width: 100%;
    height: 400px;
    /* Adjust as needed */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateX(50px);
}

.hacker-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    filter: drop-shadow(0 0 15px rgba(0, 243, 255, 0.3));
    animation: float 6s ease-in-out infinite;
}

.hacker-img.active {
    opacity: 1;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

/* Gallery Marquee Styles */
.gallery-marquee {
    overflow: hidden;
    padding: 50px 0;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

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

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

.gallery-marquee-item {
    width: 450px;
    height: 300px;
    flex-shrink: 0;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s ease, box-shadow 0.4s ease;
}

.gallery-marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-marquee-desc {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 20px;
    background: rgba(0, 10, 20, 0.85);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--cyber-blue);
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

.gallery-marquee-item:hover {
    transform: scale(1.08) translateY(-10px);
    border-color: var(--cyber-blue);
    box-shadow: 0 20px 40px rgba(0, 243, 255, 0.4);
    z-index: 10;
}

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

.gallery-marquee-item:hover .gallery-marquee-desc {
    bottom: 0;
}

@keyframes scroll-gallery {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 20px));
    }
}

/* Gallery Lightbox */
.gallery-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 5, 10, 0.95);
    backdrop-filter: blur(15px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.gallery-lightbox.active {
    display: flex;
}

.lightbox-content-wrapper {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    animation: zoom-in-lightbox 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox-content-wrapper img {
    max-width: 100%;
    max-height: 80vh;
    border: 2px solid var(--cyber-blue);
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--cyber-blue);
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
    text-shadow: 0 0 10px var(--cyber-blue);
}

.lightbox-close:hover {
    color: #fff;
    transform: rotate(90deg);
}

@keyframes zoom-in-lightbox {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Terminal Badge */
.terminal-badge {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #333;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.1);
}

.typing-effect {
    border-right: 2px solid var(--cyber-green);
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* Elite Experts 3D Overlay */
#expert-canvas-container {
    background: radial-gradient(circle at center, #111 0%, #000 100%);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.webgl-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#expert-overlays {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    /* Let clicks pass through to canvas if needed, but nodes need pointer-events auto */
}

/* Speaker Node (HTML Overlay) */
.speaker-node {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 80px;
    /* Increased size */
    height: 80px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--cyber-blue);
    box-shadow: 0 0 15px var(--cyber-blue);
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.speaker-node img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    opacity: 0.8;
}

.speaker-node:hover {
    transform: translate(-50%, -50%) scale(1.5);
    /* Stronger zoom */
    border-color: #fff;
    box-shadow: 0 0 30px var(--cyber-blue), 0 0 10px #fff;
    z-index: 10;
}

.speaker-node:hover img {
    opacity: 1;
}

/* Speaker Tooltip */
.speaker-tooltip {
    position: absolute;
    top: 55px;
    /* Position below the node */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid var(--cyber-blue);
    padding: 1rem;
    border-radius: 8px;
    min-width: 200px;
    text-align: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 20;
}

.speaker-node:hover .speaker-tooltip {
    opacity: 1;
    visibility: visible;
    top: 65px;
    /* Slide down effect */
}

.speaker-tooltip::after {
    top: -6px;
    /* Arrow pointing up to the node */
    bottom: auto;
}

.speaker-tooltip h5 {
    color: #fff;
    font-size: 1rem;
    margin: 0;
}

.speaker-tooltip p {
    color: var(--cyber-blue);
    font-size: 0.8rem;
    margin: 0;
    font-family: 'Courier New', monospace;
}

.speaker-tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: var(--cyber-blue);
}

.nav-link {
    /* color: rgba(255, 255, 255, 0.7) !important; */
    /* color: #000 !important; */
    transition: all 0.3s ease;
    font-family: var(--font-tech);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    /* padding-bottom: 4px !important; */
}

/* Underline indicator bar */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--cyber-blue);
    box-shadow: 0 0 8px var(--cyber-blue);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--cyber-blue) !important;
    text-shadow: 0 0 5px rgba(0, 243, 255, 0.6);
}

.nav-link:hover::after {
    width: 80%;
}

/* Active section highlight */
.nav-link.active {
    /* color: var(--cyber-blue) !important;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.8);
    font-weight: 600; */
    color: var(--cyber-blue) !important;
    text-shadow: 0 0 5px rgba(0, 243, 255, 0.6);
}

.nav-link.active::after {
    width: 80%;
}

.hero-content h1,
.hero-content p,
.hero-content .btn {
    opacity: 0;
}

.hero-section {
    min-height: 100vh;
    padding-top: 80px;
    padding-bottom: 60px;
}

.hero-content {
    z-index: 2;
}

/* --------------------------------------------------------------------------------------- */
/* Buttons */
.btn-cyber {
    background: transparent;
    border: 1px solid var(--cyber-blue);
    color: var(--cyber-blue);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    font-family: var(--font-tech);
    font-weight: 600;
    text-transform: uppercase;
}

.btn-cyber:hover {
    background: var(--cyber-blue);
    color: var(--cyber-black);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
}

.btn-cyber-primary {
    background: var(--cyber-blue);
    color: var(--cyber-black);
    border: 1px solid var(--cyber-blue);
    font-family: var(--font-tech);
    font-weight: 700;
    text-transform: uppercase;
}

.btn-cyber-primary:hover {
    background: transparent;
    color: var(--cyber-blue);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
}

.btn-cyber-outline {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-family: var(--font-tech);
    text-transform: uppercase;
}

.btn-cyber-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.065);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    /* Give cards a very subtle inner border glow to separate from bg */
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 20px rgba(0, 0, 0, 0.4);
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 12px 36px rgba(0, 243, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 243, 255, 0.4);
}

/* Sections */
.section-padding {
    padding: 60px 0;
}

/* bg-darker: richer navy with a faint dot mesh for depth */
.bg-darker {
    background-color: var(--cyber-dark);
    background-image:
        radial-gradient(rgba(0, 243, 255, 0.04) 1px, transparent 1px);
    background-size: 30px 30px;
    position: relative;
}

/* About Section */
.cyber-hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    border-radius: 20px;
    filter: drop-shadow(0 0 40px rgba(0, 243, 255, 0.3));
    z-index: 2;
}

/* Floating animation applied to the wrapper instead for better sync */
.about-image-wrapper {
    position: relative;
    z-index: 1;
    border-radius: 20px;
    animation: floatImage 6s ease-in-out infinite;
    aspect-ratio: 6/5;
    /* Ensure consistent container size */
}

.cyber-hero-img:first-of-type {
    position: absolute;
}

.cyber-hero-img.active {
    opacity: 1;
}

@keyframes floatImage {

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

    25% {
        transform: translateY(-20px) rotate(1deg);
    }

    50% {
        transform: translateY(0) rotate(0deg);
    }

    75% {
        transform: translateY(-15px) rotate(-1deg);
    }
}

.pulse-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 25px;
    border: 2px solid var(--cyber-blue);
    animation: pulse 2s ease-out infinite;
    z-index: 0;
    /* Behind images */
    pointer-events: none;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.05);
        opacity: 0;
    }
}

.about-content {
    padding: 2rem;
}

.about-stats {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.stat-badge {
    flex: 1 1 120px;
    /* grow, shrink, min-width */
    text-align: center;
    padding: 1.5rem 1.2rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 100px;
}

.stat-badge:hover {
    transform: translateY(-5px);
    border-color: var(--cyber-blue);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-tech);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.82rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
}

/* What We Teach Cards */
.what-we-teach-section h2 {
    font-family: var(--font-tech);
    letter-spacing: 3px;
    font-size: 3.5rem;
}

.teach-card {
    position: relative;
    background: rgba(10, 10, 10, 0.8);
    border: 2px solid rgba(0, 243, 255, 0.2);
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.teach-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 243, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.teach-card:hover::before {
    transform: translateX(100%);
}

.teach-card:hover {
    transform: translateY(-15px) scale(1.05);
    border-color: var(--cyber-blue);
    box-shadow: 0 20px 50px rgba(0, 243, 255, 0.3),
        inset 0 0 20px rgba(0, 243, 255, 0.1);
}

.card-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 243, 255, 0.1);
    border: 2px solid var(--cyber-blue);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.card-icon-wrapper i {
    font-size: 2.5rem;
    color: var(--cyber-blue);
    transition: all 0.4s ease;
}

.teach-card:hover .card-icon-wrapper {
    transform: rotateY(360deg) scale(1.1);
    background: rgba(0, 243, 255, 0.2);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.5);
}

.teach-card:hover .card-icon-wrapper i {
    color: #fff;
    text-shadow: 0 0 20px var(--cyber-blue);
}

.teach-card h4 {
    font-family: var(--font-tech);
    font-size: 1.3rem;
    letter-spacing: 2px;
    color: #fff;
    margin: 0;
    line-height: 1.5;
    font-weight: 700;
}

.card-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, transparent, var(--cyber-blue), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.teach-card:hover .card-glow {
    opacity: 1;
    animation: glowMove 2s ease-in-out infinite;
}

@keyframes glowMove {

    0%,
    100% {
        transform: translateX(-100%);
    }

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

/* Specific color variations for cards */
.teach-card:nth-child(1):hover {
    border-color: var(--cyber-blue);
}

.teach-card:nth-child(2):hover {
    border-color: var(--cyber-purple);
}

.teach-card:nth-child(2):hover .card-icon-wrapper {
    border-color: var(--cyber-purple);
}

.teach-card:nth-child(2):hover .card-icon-wrapper i {
    color: var(--cyber-purple);
}

.teach-card:nth-child(3):hover {
    border-color: var(--cyber-red);
}

.teach-card:nth-child(3):hover .card-icon-wrapper {
    border-color: var(--cyber-red);
}

.teach-card:nth-child(3):hover .card-icon-wrapper i {
    color: var(--cyber-red);
}

.teach-card:nth-child(4):hover {
    border-color: var(--cyber-green);
}

.teach-card:nth-child(4):hover .card-icon-wrapper {
    border-color: var(--cyber-green);
}

.teach-card:nth-child(4):hover .card-icon-wrapper i {
    color: var(--cyber-green);
}

/* Feature Cards (Why Choose Us) */
.feature-card {
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100%;
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--cyber-blue);
    box-shadow: 0 10px 40px rgba(0, 243, 255, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    background: rgba(0, 243, 255, 0.1);
}

.feature-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--cyber-blue), transparent);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.feature-card:hover .feature-glow {
    opacity: 1;
    animation: glowMove 2s ease-in-out infinite;
}

.cyber-grid-box {
    position: relative;
    padding: 2rem;
    border: 1px solid var(--glass-border);
}

.about-item {
    text-align: center;
    width: 130px;
    padding: 1rem;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    transition: 0.3s;
}

.about-item:hover {
    border-color: var(--cyber-green);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.2);
}

/* Course Filter Buttons */
.course-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid rgba(0, 243, 255, 0.3);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-family: var(--font-tech);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn i {
    margin-right: 0.5rem;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.2), transparent);
    transition: left 0.5s;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover {
    border-color: var(--cyber-blue);
    color: var(--cyber-blue);
    box-shadow: 0 5px 20px rgba(0, 243, 255, 0.3);
    transform: translateY(-3px);
}

.filter-btn.active {
    background: var(--cyber-blue);
    color: var(--cyber-black);
    border-color: var(--cyber-blue);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.5);
}

.filter-btn.active:hover {
    color: var(--cyber-black);
}

/* Level Filter Buttons */
.level-filters {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.level-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ccc;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-family: var(--font-tech);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.level-btn:hover {
    border-color: var(--cyber-blue);
    color: var(--cyber-blue);
    transform: translateY(-2px);
}

.level-btn.active {
    background: rgba(0, 243, 255, 0.1);
    border-color: var(--cyber-blue);
    color: var(--cyber-blue);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

/* Course Cards */
.course-card.glass-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 450px;
    border-radius: 20px;
    /* Smooth corners */
    overflow: hidden;
    /* Fix image spilling out of corners */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.course-card.glass-card:hover {
    transform: translateY(-15px) scale(1.03);
    /* Pop up and scale */
    box-shadow: 0 20px 40px rgba(0, 243, 255, 0.2);
    border-color: var(--cyber-blue);
}

.course-card .card-img-top {
    height: 200px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

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

.course-card.glass-card:hover .card-img-top img {
    transform: scale(1.1);
}

.course-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-card .card-body h4 {
    min-height: 60px;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.course-card .card-body .btn {
    margin-top: auto;
}

.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--cyber-purple);
    color: #fff;
    padding: 4px 10px;
    font-size: 0.7rem;
    border-radius: 4px;
    z-index: 2;
    font-weight: bold;
}


/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--cyber-green);
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--cyber-green);
}

.timeline-item {
    margin-bottom: 50px;
    width: 50%;
    position: relative;
}

.timeline-item.left {
    left: 0;
    padding-right: 40px;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    padding-left: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background: var(--cyber-black);
    border: 2px solid var(--cyber-green);
    border-radius: 50%;
    z-index: 2;
}

.timeline-item.left::before {
    right: -10px;
}

.timeline-item.right::before {
    left: -10px;
}

/* Pricing */
.pricing-card.border-neon-purple {
    border-color: var(--cyber-purple);
    box-shadow: 0 0 20px rgba(188, 19, 254, 0.2);
}

/* Contact Form */
.form-control:focus {
    box-shadow: none;
    border-color: var(--cyber-blue);
    background: rgba(0, 243, 255, 0.05);
}

.form-select option {
    background: var(--cyber-black);
    color: #fff;
}

/* Glitch Effect */
.glitch-text {
    position: relative;
}

/* Scroll Bar */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--cyber-dark);
    border: 1px solid var(--glass-border);
}

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

/* Mobile Responsive */
@media (max-width: 768px) {

    /* ── Timeline: single-column left-rail layout ── */
    .timeline {
        max-width: 100%;
        padding: 0 8px;
    }

    .timeline-line {
        left: 18px;
        transform: none;
    }

    .timeline-item {
        width: 100% !important;
        left: 0 !important;
        padding-left: 52px !important;
        padding-right: 8px !important;
        text-align: left !important;
        margin-bottom: 32px;
        box-sizing: border-box;
    }

    .timeline-item.left,
    .timeline-item.right {
        padding-right: 8px !important;
        text-align: left !important;
    }

    /* Dot marker — pinned on the left rail */
    .timeline-item.left::before,
    .timeline-item.right::before {
        left: 8px !important;
        right: auto !important;
        top: 18px;
    }

    /* Cards must never overflow */
    .timeline-item .content.glass-card {
        width: 100%;
        box-sizing: border-box;
        word-break: break-word;
    }

    .display-1 {
        font-size: 3rem;
    }

    /* ── WhatsApp popup: full width on tablet ── */
    #wa-form-popup {
        width: calc(100vw - 40px);
        right: 8px;
        left: 8px;
        bottom: 96px;
    }

    #wa-float-btn {
        right: 18px;
        bottom: 24px;
    }
}

/* Testimonials Section - Marquee Style */
.testimonials-marquee {
    overflow: hidden;
    padding: 20px 0;
    position: relative;
    white-space: nowrap;
}

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

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

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

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

.student-card {
    flex: 0 0 350px;
    margin: 0 15px;
    padding: 25px;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    white-space: normal;
    transition: all 0.3s ease;
}

.student-card:hover {
    border-color: var(--cyber-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.1);
}

.student-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.student-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--cyber-blue);
    background: var(--cyber-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--cyber-blue);
}

.student-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student-details h5 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
}

.student-details .working-as {
    font-size: 0.85rem;
    color: var(--cyber-blue);
    opacity: 0.8;
}

.student-feedback {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ccc;
    margin: 0;
}

@keyframes avatarFloat {

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

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

.avatar-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.3), transparent);
    animation: glowPulse 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes glowPulse {

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

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.5;
    }
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e0e0e0;
    margin: 1.5rem 0;
    position: relative;
    z-index: 1;
}

.stars i {
    font-size: 1.2rem;
    margin: 0 3px;
    animation: starTwinkle 1.5s ease-in-out infinite;
}

.stars i:nth-child(1) {
    animation-delay: 0s;
}

.stars i:nth-child(2) {
    animation-delay: 0.2s;
}

.stars i:nth-child(3) {
    animation-delay: 0.4s;
}

.stars i:nth-child(4) {
    animation-delay: 0.6s;
}

.stars i:nth-child(5) {
    animation-delay: 0.8s;
}

@keyframes starTwinkle {

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

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

/* Carousel Indicators Custom Style */
#testimonialCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 243, 255, 0.3);
    border: 2px solid var(--cyber-blue);
    margin: 0 8px;
    transition: all 0.3s ease;
}

#testimonialCarousel .carousel-indicators button.active {
    background: var(--cyber-blue);
    box-shadow: 0 0 15px var(--cyber-blue);
    transform: scale(1.3);
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 243, 255, 0.1);
    border-radius: 50%;
    border: 2px solid rgba(0, 243, 255, 0.3);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(0, 243, 255, 0.2);
    border-color: var(--cyber-blue);
    opacity: 1;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
}

.carousel-control-prev {
    left: -80px;
}

.carousel-control-next {
    right: -80px;
}

@media (max-width: 768px) {
    .carousel-control-prev {
        left: 10px;
    }

    .carousel-control-next {
        right: 10px;
    }

    .testimonial-avatar img {
        width: 100px;
        height: 100px;
    }

    .avatar-glow {
        width: 120px;
        height: 120px;
    }

    .testimonial-text {
        font-size: 1rem;
    }
}

/* Students Placed Section */
.placed-marquee {
    overflow: hidden;
    padding: 40px 0;
    position: relative;
    white-space: nowrap;
    background: rgba(10, 10, 10, 0.4);
}

.placed-track {
    display: flex;
    width: max-content;
    animation: placed-scroll 50s linear infinite;
}

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

@keyframes placed-scroll {
    0% {
        transform: translateX(0);
    }

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

.placed-card {
    flex: 0 0 280px;
    margin: 0 30px;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 20px;
}

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

.placed-photo-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
}

.photo-bg-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    border-radius: 50%;
    z-index: 1;
}

.placed-card:nth-child(odd) .photo-bg-circle {
    background: rgba(0, 243, 255, 0.2);
}

.placed-card:nth-child(even) .photo-bg-circle {
    background: rgba(255, 0, 60, 0.2);
}

.placed-card img.student-photo {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
}

.company-logo-badge {
    position: absolute;
    bottom: -5px;
    right: 10px;
    background: #fff;
    padding: 5px 12px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: 35px;
    border: 1px solid #ddd;
}

.company-logo-badge img {
    max-width: 100%;
    max-height: 25px;
    object-fit: contain;
}

.placed-info h5 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 5px;
    font-family: var(--font-tech);
}

.placed-info .role {
    font-size: 0.85rem;
    color: var(--cyber-blue);
    margin-bottom: 2px;
    text-transform: uppercase;
    font-weight: 500;
}

.placed-info .ctc {
    font-size: 1rem;
    font-weight: bold;
    color: var(--cyber-green);
}

/* Success Gallery Section */
.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(0, 243, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    aspect-ratio: 16/9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--cyber-blue);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.3);
}

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

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    transition: bottom 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

/* Footer Section */
.footer-section {
    background: #012a4b;
    border-top: 1px solid rgba(0, 243, 255, 0.15);
    position: relative;
    z-index: 10;
}

/* .footer-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyber-blue), transparent);
    box-shadow: 0 0 30px var(--cyber-blue);
} */

.footer-brand .brand-line {
    width: 60px;
    height: 3px;
    background: var(--cyber-blue);
    margin-top: 5px;
    box-shadow: 0 0 10px var(--cyber-blue);
}

.footer-title {
    font-family: var(--font-tech);
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--cyber-blue);
}

.social-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: var(--cyber-blue);
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 243, 255, 0.4);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--cyber-blue);
    padding-left: 8px;
}

.contact-icon {
    width: 35px;
    height: 35px;
    background: rgba(0, 243, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyber-blue);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    align-self: flex-start;
    /* Prevents vertical stretching into an oval */
    margin-top: 5px;
    /* Aligns circle with the first line of address/text */
}

.contact-item:hover .contact-icon {
    background: var(--cyber-blue);
    color: #000;
    transform: scale(1.1);
}

.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 12px 15px;
    font-size: 0.9rem;
}

.newsletter-form .form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--cyber-blue);
    box-shadow: none;
    color: #fff;
}

.newsletter-form .btn-cyber {
    padding: 0 20px;
}

/* Comprehensive Responsive Design */
@media (max-width: 1200px) {
    h2 {
        font-size: 3rem !important;
    }

    .display-1 {
        font-size: 4rem;
    }

    .carousel-control-prev {
        left: -40px;
    }

    .carousel-control-next {
        right: -40px;
    }
}

.navbar-nav {
    gap: 12px;
}

@media (max-width: 991px) {
    .glass-nav .navbar-nav {
        background: rgba(1, 42, 75, 0.98);
        backdrop-filter: blur(20px);
        padding: 1.5rem 1rem;
        border-radius: 20px;
        gap: 2px;
        margin-top: 20px;
        border: 1px solid var(--glass-border);
        text-align: center;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    }

    /* Underline indicator bar */
    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background: var(--cyber-blue);
        box-shadow: 0 0 8px var(--cyber-blue);
        border-radius: 2px;
        transition: width 0.3s ease;
    }

    .nav-link:hover {
        color: var(--cyber-blue) !important;
        text-shadow: 0 0 5px rgba(0, 243, 255, 0.6);
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        width: 80%;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 11px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    /* --------------------------------------------------------------------------------------- */
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding: 140px 0 80px;
        text-align: center;
    }

    .display-1 {
        font-size: 3.2rem;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .about-image-wrapper {
        margin-top: 60px;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-section {
        text-align: center;
    }

    .social-links {
        justify-content: center;
        margin-bottom: 2.5rem;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-item {
        justify-content: center;
        flex-direction: column;
        gap: 15px !important;
        margin-bottom: 20px;
        align-items: center;
    }

    .contact-icon {
        align-self: center;
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 2.4rem !important;
    }

    .display-1 {
        font-size: 2.6rem;
    }

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

    /* ── About stat cards: compact row on tablet ── */
    .about-stats {
        gap: 0.75rem;
        justify-content: center;
    }

    .stat-badge {
        flex: 1 1 100px;
        padding: 1rem 0.8rem;
        margin-bottom: 0;
        min-width: 90px;
    }

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

    .stat-label {
        font-size: 0.72rem;
        letter-spacing: 0.5px;
    }

    .stat-icon i {
        font-size: 1.4rem !important;
    }

    .course-filters {
        gap: 0.8rem;
        justify-content: center;
    }

    .filter-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
        width: 45%;
    }

    .gallery-marquee-item {
        width: 320px;
        height: 220px;
    }

    .student-card {
        flex: 0 0 300px;
        padding: 20px;
    }

    /* ── Timeline: tighten further on small screens ── */
    .timeline {
        max-width: 100%;
        padding: 0 4px;
    }

    .timeline-line {
        left: 16px;
        transform: none;
    }

    .timeline-item,
    .timeline-item.left,
    .timeline-item.right {
        width: 100% !important;
        left: 0 !important;
        padding-left: 48px !important;
        padding-right: 6px !important;
        text-align: left !important;
        margin-bottom: 28px;
        box-sizing: border-box;
    }

    .timeline-item.left::before,
    .timeline-item.right::before {
        left: 6px !important;
        right: auto !important;
        top: 16px;
        width: 16px;
        height: 16px;
    }

    .timeline-item .content.glass-card {
        width: 100%;
        box-sizing: border-box;
        word-break: break-word;
        font-size: 0.9rem;
    }

    /* ── WhatsApp: full width minus gutters ── */
    #wa-form-popup {
        width: calc(100vw - 24px);
        right: 8px;
        left: 8px;
        bottom: 90px;
        border-radius: 14px;
    }

    #wa-float-btn {
        right: 14px;
        bottom: 18px;
        width: 54px;
        height: 54px;
    }

    #wa-float-btn i {
        font-size: 26px;
    }

    .wa-tooltip {
        display: none;
    }

    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
}

@media (max-width: 576px) {
    .display-1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .navbar-brand img {
        width: 55px;
    }

    .btn-cyber {
        width: 100%;
        padding: 15px;
        margin-bottom: 12px;
    }

    .filter-btn {
        width: 100%;
    }

    .gallery-marquee-item {
        width: 280px;
        height: 200px;
    }

    .contact-form-card {
        padding: 25px;
    }

    .map-container {
        /* height: 350px; */
        max-width: 100%;
        overflow: hidden;
        /* margin-bottom: 10px; */
    }

    /* ── About stat cards: single column on phones ── */
    .about-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.6rem;
        justify-content: center;
    }

    .stat-badge {
        flex: 0 0 calc(50% - 0.3rem);
        /* 2-per-row on phones */
        min-width: unset;
        padding: 0.9rem 0.6rem;
    }

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

    .stat-label {
        font-size: 0.68rem;
        letter-spacing: 0.3px;
    }

    .stat-icon i {
        font-size: 1.2rem !important;
    }

    /* About image wrapper: proper height on mobile */
    .about-image-wrapper {
        aspect-ratio: 4 / 3;
        margin-bottom: 2rem;
        animation: none;
        /* stop float anim on small screens to save repaints */
    }

    /* About content: remove excess padding on mobile */
    .about-content {
        padding: 0.5rem 0;
    }

    .lightbox-content-wrapper img {
        max-height: 60vh;
    }
}

/* ============================================================
   CONTENT VISIBILITY & READABILITY ENHANCEMENTS
   ============================================================ */

/* Headings — always pure white on dark bg */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #ffffff;
}

/* Body paragraphs — elevated from default grey */
p {
    color: #c8c8c8;
    line-height: 1.8;
}

/* Small text */
small,
.small {
    color: #b0b0b0 !important;
}

/* Lead paragraphs — prominent */
.lead {
    color: #dcdcdc !important;
    font-size: 1.1rem;
    line-height: 1.85;
}

/* Stronger neon text shadows for better pop on dark navy */
.neon-text-blue {
    color: var(--cyber-blue);
    text-shadow:
        0 0 8px rgba(0, 243, 255, 0.9),
        0 0 20px rgba(0, 243, 255, 0.5),
        0 0 40px rgba(0, 243, 255, 0.2);
}

.neon-text-green {
    color: var(--cyber-green);
    text-shadow:
        0 0 8px rgba(0, 255, 65, 0.9),
        0 0 20px rgba(0, 255, 65, 0.5),
        0 0 40px rgba(0, 255, 65, 0.2);
}

.neon-text-purple {
    color: var(--cyber-purple);
    text-shadow:
        0 0 8px rgba(188, 19, 254, 0.9),
        0 0 20px rgba(188, 19, 254, 0.5),
        0 0 40px rgba(188, 19, 254, 0.2);
}

.neon-text-red {
    color: var(--cyber-red);
    text-shadow:
        0 0 8px rgba(255, 0, 60, 0.9),
        0 0 20px rgba(255, 0, 60, 0.5),
        0 0 40px rgba(255, 0, 60, 0.2);
}

/* Section title contrast boost */
.section-title {
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

/* Letter spacing utility (already used in markup) */
.letter-spacing-2 {
    letter-spacing: 3px;
    color: #9a9ab0 !important;
}

/* text-secondary override: more readable on dark navy */
.text-secondary {
    color: #9090aa !important;
}

/* Bottom-left purple glow orb for depth */
.body-orb-bl {
    display: none;
    /* injected via JS below */
}

/* Inject bottom-left orb via a fixed pseudo approach on a dedicated element */
#cyber-bg-orb-bl {
    position: fixed;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(140, 0, 255, 0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: orb-bl-drift 18s ease-in-out infinite alternate;
}

@keyframes orb-bl-drift {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }

    100% {
        transform: translate(60px, -60px) scale(1.15);
        opacity: 0.9;
    }
}

/* Ensure all sections' content is above the body pseudo overlays */
section>* {
    position: relative;
    z-index: 1;
}

footer>* {
    position: relative;
    z-index: 1;
}

/* ============================================================
   TWINKLE GLOW EFFECTS
   ============================================================ */

/* 1. Logo Glow */
.navbar-brand img {
    animation: twinkle-logo 4s ease-in-out infinite;
    filter: drop-shadow(0 0 5px rgba(0, 243, 255, 0.3));
}

@keyframes twinkle-logo {

    0%,
    100% {
        filter: drop-shadow(0 0 5px rgba(0, 243, 255, 0.3));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 15px rgba(0, 243, 255, 0.8));
        transform: scale(1.02);
    }
}

/* 2. Hero Text Twinkle */
.hero-content h1 {
    animation: twinkle-text 5s ease-in-out infinite;
}

.hero-content h1 span {
    display: inline-block;
}

@keyframes twinkle-text {

    0%,
    100% {
        text-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
    }

    50% {
        text-shadow:
            0 0 15px rgba(255, 255, 255, 0.4),
            0 0 30px rgba(0, 243, 255, 0.6),
            0 0 50px rgba(0, 243, 255, 0.3);
    }
}

/* Special twinkle for the accent colors in hero */
.hero-content h1 span[style*="rgb(255, 117, 4)"] {
    animation: twinkle-orange 6s ease-in-out infinite;
}

@keyframes twinkle-orange {

    0%,
    100% {
        text-shadow: 0 0 10px rgba(255, 117, 4, 0.3);
    }

    50% {
        text-shadow:
            0 0 20px rgba(255, 117, 4, 0.8),
            0 0 40px rgba(255, 117, 4, 0.4);
    }
}

.hero-content h1 span[style*="#2bdb2b"] {
    animation: twinkle-green 7s ease-in-out infinite;
}

@keyframes twinkle-green {

    0%,
    100% {
        text-shadow: 0 0 10px rgba(43, 219, 43, 0.3);
    }

    50% {
        text-shadow:
            0 0 20px rgba(43, 219, 43, 0.8),
            0 0 40px rgba(43, 219, 43, 0.4);
    }
}

/* Team Section Styles */
.teamSwiper {
    padding: 20px 50px 60px !important;
    /* Extra padding for navigation arrows */
}

.team-member-card {
    text-align: center;
    position: relative;
    margin-bottom: 2rem;
    padding: 10px;
}

.member-image-wrap {
    width: 280px;
    /* Increased size */
    height: 280px;
    /* Increased size */
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 4px solid rgba(0, 243, 255, 0.2);
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.member-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 42, 75, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(4px);
}

.member-image-wrap:hover {
    border-color: var(--cyber-blue);
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.4);
    transform: translateY(-5px);
}

.member-image-wrap:hover img {
    transform: scale(1.1);
}

.member-image-wrap:hover .member-overlay {
    opacity: 1;
    visibility: visible;
}

.member-name {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-family: var(--font-tech);
    text-transform: uppercase;
}

.member-role {
    color: var(--cyber-blue);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .member-image-wrap {
        width: 160px;
        height: 160px;
    }

    .member-name {
        font-size: 0.95rem;
    }

    .member-role {
        font-size: 0.75rem;
    }
}

/* India Map Styling */
.india-map-img {
    max-width: 60%;
    /* Decreased width */
    height: auto;
    border-radius: 8px;
    filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.2));
    transition: transform 0.3s ease;
}

.india-map-img:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 0 20px rgba(0, 243, 255, 0.4));
}

@media (max-width: 991px) {
    .india-map-img {
        max-width: 90%;
    }
}

/* Blog Section Styles */
.blog-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(15, 15, 25, 0.8);
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 400px;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-10px);
    border-color: var(--cyber-blue);
    box-shadow: 0 15px 35px rgba(0, 243, 255, 0.2);
}

.blog-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.blog-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.blog-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.blog-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: var(--font-tech);
    transition: all 0.3s ease;
}

.blog-card:hover .blog-title {
    transform: translateY(-20px);
    color: var(--cyber-blue);
}

.blog-description {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

.blog-card:hover .blog-description {
    opacity: 1;
    transform: translateY(-10px);
}

.blog-read-more {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s;
}

.blog-card:hover .blog-read-more {
    opacity: 1;
    transform: translateY(-5px);
}

.blog-meta {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    display: flex;
    gap: 10px;
}

.blog-category {
    background: var(--cyber-blue);
    color: #000;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.blog-date {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* Stats Counter Responsive Fixes */
@media (max-width: 768px) {
    .stats-counter {
        flex-direction: column !important;
        gap: 2rem !important;
        padding: 2rem 1rem !important;
    }

    .stats-counter .display-4 {
        font-size: 2.2rem !important;
        margin-bottom: 0.5rem !important;
    }

    .stats-counter .counter span {
        font-size: 1rem !important;
    }

    .stats-counter p {
        font-size: 0.8rem !important;
    }

    /* Improving map on mobile */
    .india-map-img {
        max-width: 100% !important;
        margin-top: 5px;
    }

    .map-container {
        margin-bottom: -20px;
    }
}

@media (max-width: 480px) {
    .stats-counter .display-4 {
        font-size: 1.8rem !important;
    }

    .hacker-img {
        position: absolute;
        top: -55px;
        left: 0;
        width: 100%;
        height: auto;
        height: 500px;
    }
}






@media (min-width: 480px) {
    .hacker-img {
        /* position: absolute; */
        top: -100px;
        height: 550px;
    }
}

@media (min-width: 576px) {
    .hacker-img {
        /* position: absolute; */
        top: 0;
        height: auto;
    }
}