/* CHANGELOG: Appended CSS styles for the About page (parallax hero, float animation, glass border gradients, marquee, IntersectionObserver transitions). */
/* =============================================================================
   CECP Club Website — Custom Stylesheet
   =============================================================================
   Supplements Tailwind CSS with custom animations, glassmorphism effects,
   and the CECP design system tokens.
   ============================================================================= */

/* --- Google Fonts Import --------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* --- CSS Custom Properties (Design Tokens) --------------------------------- */
:root {
    /* Primary Palette */
    --cecp-black: #020617;
    --cecp-dark: #0f172a;
    --cecp-slate: #1e293b;
    --cecp-slate-light: #334155;

    /* Accent Colors */
    --cecp-cyan: #06b6d4;
    --cecp-cyan-light: #22d3ee;
    --cecp-cyan-glow: rgba(6, 182, 212, 0.4);
    --cecp-blue: #3b82f6;
    --cecp-indigo: #6366f1;
    --cecp-purple: #8b5cf6;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--cecp-cyan) 0%, var(--cecp-blue) 50%, var(--cecp-indigo) 100%);
    --gradient-text: linear-gradient(135deg, var(--cecp-cyan-light) 0%, var(--cecp-blue) 40%, var(--cecp-purple) 100%);
    --gradient-glow: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);

    /* Glass Effect */
    --glass-bg: rgba(15, 23, 42, 0.65);
    --glass-border: rgba(6, 182, 212, 0.12);
    --glass-border-hover: rgba(6, 182, 212, 0.3);

    /* Typography */
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --section-padding: clamp(4rem, 8vw, 8rem);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Global Reset Enhancements --------------------------------------------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background-color: var(--cecp-black);
    color: #e2e8f0;
    overflow-x: hidden;
    line-height: 1.7;
}

::selection {
    background-color: rgba(6, 182, 212, 0.3);
    color: #f8fafc;
}

/* --- Scrollbar Styling ----------------------------------------------------- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--cecp-black);
}
::-webkit-scrollbar-thumb {
    background: var(--cecp-slate);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--cecp-cyan);
}

/* --- tsParticles Container ------------------------------------------------- */
#tsparticles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: auto;
}

/* --- Glassmorphism Navbar -------------------------------------------------- */
.navbar-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    transition: var(--transition-base);
}

.navbar-glass.scrolled {
    background: rgba(2, 6, 23, 0.9);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* --- CECP Logo Styling ----------------------------------------------------- */
.cecp-logo {
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: 0.15em;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    text-decoration: none;
}

.cecp-logo::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-base);
}

.cecp-logo:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* --- Navigation Links ------------------------------------------------------ */
.nav-link {
    position: relative;
    color: #94a3b8;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    transition: color var(--transition-fast);
    text-decoration: none;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--cecp-cyan-light);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--cecp-cyan);
    transition: all var(--transition-base);
    transform: translateX(-50%);
    border-radius: 1px;
}

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

/* --- Buttons --------------------------------------------------------------- */
.btn-gradient {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    background: var(--gradient-primary);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.925rem;
    border: none;
    border-radius: 0.6rem;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.35), 0 0 60px rgba(6, 182, 212, 0.1);
}

.btn-gradient:hover::before {
    opacity: 1;
}

.btn-gradient:active {
    transform: translateY(0);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    background: transparent;
    color: var(--cecp-cyan-light);
    font-weight: 600;
    font-size: 0.925rem;
    border: 2px solid rgba(6, 182, 212, 0.4);
    border-radius: 0.6rem;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.btn-outline:hover {
    background: rgba(6, 182, 212, 0.08);
    border-color: var(--cecp-cyan);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.15);
}

.btn-outline:active {
    transform: translateY(0);
}

/* Small variant */
.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.8rem;
}

/* --- Gradient Text --------------------------------------------------------- */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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


.hero-tagline {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-subtext {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: #94a3b8;
    max-width: 42rem;
    line-height: 1.8;
}

/* --- Glassmorphism Cards --------------------------------------------------- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 2rem;
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.3), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.glass-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-6px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(6, 182, 212, 0.08),
        inset 0 1px 0 rgba(6, 182, 212, 0.1);
}

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

/* --- Card Icon Container --------------------------------------------------- */
.card-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    background: var(--gradient-glow);
    border: 1px solid rgba(6, 182, 212, 0.15);
    transition: all var(--transition-base);
}

.glass-card:hover .card-icon {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.25) 0%, rgba(99, 102, 241, 0.25) 100%);
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.15);
}

.card-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--cecp-cyan);
    transition: all var(--transition-base);
}

.glass-card:hover .card-icon svg {
    color: var(--cecp-cyan-light);
    filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.5));
}

/* --- Project Cards --------------------------------------------------------- */
.project-card {
    position: relative;
    overflow: hidden;
}

.project-card .project-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.status-active {
    background: rgba(6, 182, 212, 0.12);
    color: var(--cecp-cyan-light);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.status-completed {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.tech-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 0.3rem;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    font-weight: 500;
    background: rgba(99, 102, 241, 0.1);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.15);
    transition: all var(--transition-fast);
}

.glass-card:hover .tech-tag {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

/* --- Section Headers ------------------------------------------------------- */
.section-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cecp-cyan);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: #94a3b8;
    max-width: 36rem;
    line-height: 1.7;
}

/* --- About Section Image Glow ---------------------------------------------- */
.about-image-wrapper {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    border-radius: 1.1rem;
    z-index: -1;
    opacity: 0.4;
    filter: blur(20px);
    transition: opacity var(--transition-slow);
}

.about-image-wrapper:hover::before {
    opacity: 0.7;
}

/* --- Glow Divider ---------------------------------------------------------- */
.glow-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.3), rgba(99, 102, 241, 0.3), transparent);
    margin: 0;
    border: none;
}

/* --- Footer ---------------------------------------------------------------- */
.footer-link {
    color: #64748b;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--cecp-cyan-light);
}

/* --- Ambient Background Orbs ----------------------------------------------- */
.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.08;
    pointer-events: none;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-cyan {
    background: var(--cecp-cyan);
}

.orb-indigo {
    background: var(--cecp-indigo);
}

.orb-purple {
    background: var(--cecp-purple);
}

/* --- Animations ------------------------------------------------------------ */
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.05); }
    50% { transform: translate(-20px, 30px) scale(0.95); }
    75% { transform: translate(10px, 15px) scale(1.02); }
}

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

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(6, 182, 212, 0.1); }
    50% { box-shadow: 0 0 40px rgba(6, 182, 212, 0.2); }
}

@keyframes blob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.animate-blob {
    animation: blob 15s infinite alternate ease-in-out;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

@keyframes lineExpand {
    from { width: 0; }
    to { width: 4rem; }
}

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

.animate-marquee {
    animation: marquee 20s linear infinite;
}

/* --- Scroll-triggered Animation Classes ------------------------------------ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 100ms; }
.animate-on-scroll.delay-2 { transition-delay: 200ms; }
.animate-on-scroll.delay-3 { transition-delay: 300ms; }
.animate-on-scroll.delay-4 { transition-delay: 400ms; }

/* --- Mobile Menu ----------------------------------------------------------- */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.98);
    backdrop-filter: blur(20px);
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform var(--transition-slow);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu .nav-link {
    font-size: 1.25rem;
    letter-spacing: 0.1em;
}

/* --- Hamburger Button ------------------------------------------------------ */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 100;
    padding: 0.5rem;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #e2e8f0;
    transition: all var(--transition-base);
    border-radius: 1px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Responsive Adjustments ------------------------------------------------ */
@media (max-width: 768px) {
    .hero-tagline {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }

    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .glass-card {
        padding: 1.5rem;
    }
}

@media (min-width: 2560px) {
    html {
        font-size: 18px;
    }
}

/* --- Tab Content System ---------------------------------------------------- */
.tab-content {
    display: none;
    opacity: 0;
    animation: tabFadeIn 0.4s ease-out forwards;
}

.tab-content.active-tab {
    display: block;
    opacity: 1;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Active Tab Link (Navbar) ---------------------------------------------- */
.tab-link.active {
    color: var(--cecp-cyan-light) !important;
}

.tab-link.active::after {
    width: 100%;
    background: var(--gradient-primary);
    height: 2px;
}

/* ===== ABOUT PAGE ===== */
.about-parallax-bg {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

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

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.glass-gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(6,182,212,0.5), rgba(99,102,241,0.5), rgba(139,92,246,0.5));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.3;
    transition: opacity 0.5s ease;
}

.glass-gradient-border:hover::before {
    opacity: 1;
    background: linear-gradient(225deg, rgba(6,182,212,1), rgba(99,102,241,1), rgba(139,92,246,1));
    animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
    100% { filter: hue-rotate(360deg); }
}

.marquee-wrapper {
    position: relative;
    display: flex;
    overflow: hidden;
    user-select: none;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 1rem;
    min-width: 100%;
    animation: scroll-x 25s linear infinite;
}

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

@keyframes scroll-x {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 0.5rem)); }
}

.chip-item {
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    border: 1px solid rgba(6, 182, 212, 0.3);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--cecp-cyan-light);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

/* IntersectionObserver auto-animate */
.animate-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .animate-in {
        transition: none;
        transform: none;
    }
}

/* =============================================================================
   IIT-Level Project Showcase Cards
   ============================================================================= */

.project-showcase-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(100, 116, 139, 0.15);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-showcase-card:hover {
    border-color: rgba(6, 182, 212, 0.35);
    transform: translateY(-6px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(6, 182, 212, 0.08);
}

/* Filter Bar Buttons */
.project-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: transparent;
    border: 1px solid rgba(100, 116, 139, 0.25);
    border-radius: 20px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.project-filter-btn:hover {
    border-color: rgba(6, 182, 212, 0.5);
    color: #06b6d4;
    background: rgba(6, 182, 212, 0.08);
}

.project-filter-btn.active {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(59, 130, 246, 0.15));
    border-color: rgba(6, 182, 212, 0.5);
    color: #22d3ee;
    font-weight: 600;
}

/* Scrollbar hide for filter overflow */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Project card fade animation for filtering */
.project-showcase-card.filtered-out {
    opacity: 0;
    transform: scale(0.92);
    pointer-events: none;
    position: absolute;
    visibility: hidden;
}

.project-showcase-card.filtered-in {
    opacity: 1;
    transform: scale(1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================================================
   TECHFEST-LEVEL CYBERPUNK PROJECT SHOWCASE
   ============================================================================= */

/* --- Universe Container --- */
.projects-universe {
    background: linear-gradient(180deg, #020617 0%, #050d1a 30%, #0a1628 50%, #050d1a 70%, #020617 100%);
    position: relative;
    overflow: hidden;
}

/* --- Animated Grid Scan Line --- */
.grid-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(6,182,212,0.3) 30%, rgba(6,182,212,0.6) 50%, rgba(6,182,212,0.3) 70%, transparent 100%);
    animation: scanDown 8s linear infinite;
    box-shadow: 0 0 15px rgba(6,182,212,0.3), 0 0 40px rgba(6,182,212,0.1);
}

@keyframes scanDown {
    0% { top: 0; opacity: 0; }
    5% { opacity: 1; }
    95% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* --- Hero Gradient Text --- */
.hero-gradient-text {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 30%, #8b5cf6 60%, #d946ef 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 6s ease-in-out infinite;
    background-size: 200% 200%;
}

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

/* --- HUD Stats Cards --- */
.hud-stat-card {
    text-align: center;
    padding: 0 8px;
}

.hud-stat-value {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: 'JetBrains Mono', monospace;
    background: linear-gradient(135deg, #22d3ee, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.hud-stat-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #64748b;
    margin-top: 6px;
}

.hud-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    display: inline-block;
}

.hud-stat-divider {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, transparent, rgba(100,116,139,0.3), transparent);
}

/* --- Filter Command Bar --- */
.filter-command-bar {
    background: rgba(5, 13, 26, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(6,182,212,0.08);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    background: transparent;
    border: 1px solid rgba(100, 116, 139, 0.15);
    border-radius: 20px;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    font-family: 'JetBrains Mono', monospace;
}

.filter-chip:hover {
    border-color: rgba(6,182,212,0.4);
    color: #06b6d4;
    background: rgba(6,182,212,0.05);
    box-shadow: 0 0 20px rgba(6,182,212,0.08);
}

.filter-chip.active {
    background: linear-gradient(135deg, rgba(6,182,212,0.12), rgba(99,102,241,0.12));
    border-color: rgba(6,182,212,0.4);
    color: #22d3ee;
    box-shadow: 0 0 25px rgba(6,182,212,0.1), inset 0 0 15px rgba(6,182,212,0.05);
}

.chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.filter-divider {
    width: 1px;
    height: 24px;
    background: rgba(100,116,139,0.15);
    margin: 0 4px;
    flex-shrink: 0;
}

/* --- Section Markers --- */
.section-marker {
    width: 4px;
    height: 40px;
    border-radius: 2px;
    flex-shrink: 0;
}

.section-marker.completed {
    background: linear-gradient(180deg, #10b981, #059669);
    box-shadow: 0 0 12px rgba(16,185,129,0.3);
}

.section-marker.active {
    background: linear-gradient(180deg, #06b6d4, #3b82f6);
    box-shadow: 0 0 12px rgba(6,182,212,0.3);
    animation: markerPulse 2s ease-in-out infinite;
}

@keyframes markerPulse {
    0%, 100% { box-shadow: 0 0 12px rgba(6,182,212,0.3); }
    50% { box-shadow: 0 0 25px rgba(6,182,212,0.5); }
}

/* --- Holographic Project Cards --- */
.holo-card, .featured-holo-card {
    position: relative;
    background: rgba(10, 15, 26, 0.9);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(100, 116, 139, 0.08);
}

.holo-card:hover, .featured-holo-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(6,182,212,0.2);
    box-shadow:
        0 25px 60px rgba(0,0,0,0.5),
        0 0 80px rgba(6,182,212,0.06),
        inset 0 1px 0 rgba(255,255,255,0.03);
}

/* Animated border glow on hover */
.holo-card-border {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, transparent, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.5s;
}

.holo-card:hover .holo-card-border, .featured-holo-card:hover .holo-card-border {
    opacity: 1;
    background: linear-gradient(135deg, rgba(6,182,212,0.4), rgba(99,102,241,0.2), rgba(6,182,212,0.4));
    animation: borderRotate 3s linear infinite;
    background-size: 300% 300%;
}

@keyframes borderRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Card Scan Overlay (on hover) --- */
.card-scan-overlay {
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(6,182,212,0.02) 2px,
        rgba(6,182,212,0.02) 4px
    );
}

/* --- Level Badges (Holographic) --- */
.level-badge-holo {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.15em;
    backdrop-filter: blur(12px);
    z-index: 10;
    transition: all 0.3s ease;
}

.level-beginner {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
    box-shadow: 0 0 15px rgba(16,185,129,0.15);
}

.level-intermediate {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #93c5fd;
    box-shadow: 0 0 15px rgba(59,130,246,0.15);
}

.level-pro {
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #d8b4fe;
    box-shadow: 0 0 20px rgba(168,85,247,0.2);
    animation: proBadgeGlow 2s ease-in-out infinite alternate;
}

@keyframes proBadgeGlow {
    from { box-shadow: 0 0 15px rgba(168,85,247,0.2); }
    to { box-shadow: 0 0 25px rgba(168,85,247,0.35); }
}

/* --- Category Tag (top-right) --- */
.category-tag-holo {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    color: #94a3b8;
    border: 1px solid rgba(100,116,139,0.2);
    z-index: 10;
}

/* --- Tech Chips --- */
.tech-chip {
    display: inline-block;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    border-radius: 20px;
    background: rgba(6,182,212,0.06);
    color: #67e8f9;
    border: 1px solid rgba(6,182,212,0.12);
    transition: all 0.3s ease;
}

.holo-card:hover .tech-chip {
    background: rgba(6,182,212,0.1);
    border-color: rgba(6,182,212,0.25);
}

/* --- Active Development Indicator --- */
.active-indicator {
    background: rgba(6,182,212,0.1);
    border: 1px solid rgba(6,182,212,0.25);
    backdrop-filter: blur(8px);
    z-index: 10;
}

/* --- Filter Animation (replaces project-showcase-card for holo-card) --- */
.holo-card.filtered-out {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    pointer-events: none;
    position: absolute;
    visibility: hidden;
}

.holo-card.filtered-in {
    opacity: 1;
    transform: scale(1) translateY(0);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
