/* ==========================================================================
   SCHOOL PORTFOLIO DESIGN SYSTEM & CSS ENGINE
   Author: Antigravity AI
   Theme: Monochrome Black & White | Parallax Edition
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. COLOR PALETTE & CSS VARIABLES
   -------------------------------------------------------------------------- */
:root {
    /* Base Colors — Pure Black Mode */
    --bg-primary: #000000;
    --bg-secondary: #0c0c0c;
    --bg-tertiary: #161616;
    --bg-glass: rgba(255, 255, 255, 0.04);
    --bg-glass-hover: rgba(255, 255, 255, 0.09);
    --border-glass: rgba(255, 255, 255, 0.10);
    --border-glow: rgba(255, 255, 255, 0.35);

    /* Text Colors */
    --text-main: #f0f0f0;
    --text-muted: #909090;
    --text-dim: #505050;

    /* Monochrome Accents — all white/grey */
    --accent-blue: #3b82f6;
    --accent-sky: #38bdf8;
    --accent-indigo: #6366f1;
    --accent-violet: #8b5cf6;
    --accent-purple: #a855f7;
    --accent-cyan: #38bdf8;
    --accent-emerald: #38bdf8;
    --accent-amber: #f59e0b;
    --accent-gold: #fbbf24;
    --accent-rose: #f43f5e;

    /* Gradients — White to grey */
    --gradient-primary: linear-gradient(135deg, #ffffff 0%, #888888 50%, #ffffff 100%);
    --gradient-alt: linear-gradient(135deg, #e0e0e0 0%, #505050 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(255, 255, 255, 0.07) 0%, transparent 70%);

    /* Shadows — Deep black with subtle white glow */
    --shadow-sm: 0 4px 8px -1px rgba(0, 0, 0, 0.9);
    --shadow-lg: 0 12px 40px -5px rgba(0, 0, 0, 0.95);
    --shadow-glow: 0 0 30px rgba(255, 255, 255, 0.10);

    /* Fonts & Spacing */
    --font-heading: 'Space Grotesk', 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-code: 'Fira Code', monospace;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode — Inverted Pure White */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-tertiary: #e8e8e8;
    --bg-glass: rgba(0, 0, 0, 0.04);
    --bg-glass-hover: rgba(0, 0, 0, 0.08);
    --border-glass: rgba(0, 0, 0, 0.12);
    --border-glow: rgba(0, 0, 0, 0.30);

    --text-main: #050505;
    --text-muted: #404040;
    --text-dim: #808080;

    --accent-violet: #1a1a1a;
    --accent-cyan: #000000;
    --accent-purple: #333333;
    --accent-emerald: #000000;

    --gradient-primary: linear-gradient(135deg, #000000 0%, #555555 50%, #000000 100%);
    --gradient-alt: linear-gradient(135deg, #222222 0%, #888888 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(0,0,0,0.05) 0%, transparent 70%);

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 25px rgba(0, 0, 0, 0.10);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE STYLES
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    cursor: crosshair !important;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    position: relative;
    cursor: crosshair !important;
}

/* Interactive elements use standard pointer */
a, button, input, select, textarea, 
.btn, .subject-tab, .filter-btn, .view-btn, 
.slider-arrow, .slider-dot, [role="button"], 
.course-card, .activity-slide-card, .activity-grid-card, 
.about-card, .pillar-stat-card, .tool-card, .theme-toggle-btn {
    cursor: pointer !important;
}

.cube-3d-scene {
    cursor: grab !important;
}
.cube-3d-scene:active {
    cursor: grabbing !important;
}

/* Background Canvas */
#bg-canvas {
    display: none !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-violet);
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-alt {
    background: var(--gradient-alt);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism Card Style */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
    position: relative;
    overflow: hidden;
}

/* Shine sweep on hover */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.06), transparent);
    transition: left 0.55s ease;
    pointer-events: none;
    z-index: 1;
}

.glass-card:hover::before {
    left: 140%;
}

.glass-card:hover {
    border-color: rgba(255,255,255,0.25);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08), var(--shadow-glow);
    transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   3. BUTTONS & INTERACTIVE ELEMENTS
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Button shimmer sweep */
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: -1;
}
.btn:hover::after {
    transform: translateX(100%);
}

.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-glass {
    background: rgba(255,255,255,0.03);
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
}
.btn-glass:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.25);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.06);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

/* --------------------------------------------------------------------------
   4. NAVIGATION BAR
   -------------------------------------------------------------------------- */
/* ==========================================================================
   EXECUTIVE FLOATING ISLAND DOCK NAVBAR
   ========================================================================== */

.navbar,
.header {
    position: fixed;
    top: 1.25rem;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    pointer-events: none;
    padding: 0 1rem;
    background: transparent !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition: transform var(--transition-normal);
}

.nav-container,
.header-container {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    background: rgba(10, 15, 30, 0.85);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 9999px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.75), 0 0 25px rgba(56, 189, 248, 0.15);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-container:hover,
.header-container:hover {
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.85), 0 0 35px rgba(56, 189, 248, 0.25);
}

[data-theme="light"] .nav-container,
[data-theme="light"] .header-container {
    background: rgba(255, 255, 255, 0.90);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1), 0 0 20px rgba(59, 130, 246, 0.12);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 1.05rem;
    border-radius: 9999px;
    font-size: 0.86rem;
    font-weight: 500;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
}

.nav-link i {
    font-size: 0.82rem;
    opacity: 0.8;
    transition: transform 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.nav-link:hover i {
    color: #38bdf8;
    transform: scale(1.15);
}

.nav-link.active {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.14);
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.22);
    font-weight: 600;
}

[data-theme="light"] .nav-link {
    color: #475569;
}
[data-theme="light"] .nav-link:hover {
    color: #0f172a;
    background: rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .nav-link.active {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.3);
}

/* Elegant Vertical Divider */
.nav-divider {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.14);
    margin: 0 0.25rem;
}

[data-theme="light"] .nav-divider {
    background: rgba(0, 0, 0, 0.14);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Sleek Circular Glass Theme Toggle */
.theme-toggle-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-toggle-btn:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.45);
    color: #7dd3fc;
    transform: rotate(20deg) scale(1.08);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
}

[data-theme="light"] .theme-toggle-btn {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    color: #f59e0b;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.15rem;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    transition: color 0.2s ease;
}

.mobile-toggle:hover {
    color: #38bdf8;
}

/* --------------------------------------------------------------------------
   5. HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
    min-height: 100vh;
    padding-top: 7rem;
    padding-bottom: 4rem;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    letter-spacing: 0.03em;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-emerald);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(56, 189, 248, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.hero-title {
    font-size: clamp(2.8rem, 5.5vw, 5.5rem);
    letter-spacing: -0.04em;
    margin-bottom: 0.5rem;
    line-height: 1.0;
    font-weight: 900;
}

.hero-sub-line {
    font-family: var(--font-code);
    font-size: 0.9rem;
    color: var(--text-dim);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    margin-top: 0.75rem;
}

/* Blinking cursor for typewriter */
.typing-cursor {
    display: inline-block;
    font-weight: 100;
    color: var(--text-muted);
    animation: blink-cursor 0.8s step-end infinite;
    margin-left: 2px;
    font-size: 0.85em;
    vertical-align: middle;
}

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin-bottom: 2.5rem;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--border-glass);
}

.stat-card {
    background: var(--bg-glass);
    padding: 1.2rem 0.8rem;
    text-align: center;
    transition: background var(--transition-fast);
}
.stat-card:hover {
    background: var(--bg-glass-hover);
}
.stat-number, .pillar-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
}
.stat-plus {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-muted);
}
.stat-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-top: 0.4rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.avatar-card {
    position: relative;
    width: 300px;
    height: 380px;
    border-radius: 4px;
    background: #000;
    border: none;
    padding: 4px;
    box-shadow: var(--shadow-lg), 0 0 80px rgba(255,255,255,0.04);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Moving Live White Laser Border */
.avatar-card::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent 20%, rgba(255,255,255,0.1) 40%, #ffffff 50%, transparent 50%, transparent 70%, rgba(255,255,255,0.1) 90%, #ffffff 100%);
    animation: rotateBorder 4s linear infinite;
    z-index: 0;
}

@keyframes rotateBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.avatar-halo {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    z-index: 1;
    opacity: 1;
    filter: blur(30px);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
    filter: grayscale(0.3) contrast(1.05);
    transition: filter 0.4s ease;
    position: relative;
    z-index: 2;
}
.avatar-card:hover .avatar-img {
    filter: grayscale(0) contrast(1.1);
}

.floating-badge {
    position: absolute;
    padding: 0.45rem 0.9rem;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-main);
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
    animation: float 4s ease-in-out infinite;
    letter-spacing: 0.05em;
    font-family: var(--font-code);
}
[data-theme="light"] .floating-badge {
    background: rgba(255, 255, 255, 0.92);
    color: #111;
}

.badge-1 { top: 20px; left: -30px; animation-delay: 0s; }
.badge-2 { bottom: 60px; right: -30px; animation-delay: 1.5s; }
.badge-3 { bottom: -15px; left: 20px; animation-delay: 3s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.scroll-down-indicator {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    color: var(--text-muted);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

/* --------------------------------------------------------------------------
   MARQUEE SKILLS TICKER BAND
   -------------------------------------------------------------------------- */
.marquee-band {
    width: 100%;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.07);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.02);
    padding: 0.85rem 0;
    position: relative;
    z-index: 10;
}

[data-theme="light"] .marquee-band {
    border-top-color: rgba(0,0,0,0.07);
    border-bottom-color: rgba(0,0,0,0.07);
    background: rgba(0,0,0,0.02);
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    animation: marquee-scroll 28s linear infinite;
    width: max-content;
}

.marquee-track span {
    font-family: var(--font-code);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-dim);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0 1.2rem;
    transition: color 0.3s;
}
.marquee-track span:hover {
    color: var(--text-main);
}
.marquee-track .dot {
    color: rgba(255,255,255,0.18);
    padding: 0;
    font-size: 1rem;
}
[data-theme="light"] .marquee-track .dot {
    color: rgba(0,0,0,0.18);
}

/* Fade edges */
.marquee-band::before,
.marquee-band::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}
.marquee-band::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-primary), transparent);
}
.marquee-band::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-primary), transparent);
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   6. SECTION HEADERS
   -------------------------------------------------------------------------- */
.section {
    padding: 4.5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2.2rem;
    position: relative;
}

.section-header .subtitle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-code);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-violet);
    margin-bottom: 1.2rem;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
}

.section-header .title {
    font-size: 2.8rem;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.title-bar {
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 1.2rem auto 0;
    border-radius: var(--radius-full);
    transition: width 0.4s ease;
}
.section-header:hover .title-bar {
    width: 120px;
}

.section-lead-text {
    text-align: center;
    color: var(--text-muted);
    max-width: 650px;
    margin: -2rem auto 3rem;
    font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   7. ABOUT SECTION
   -------------------------------------------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.about-card {
    padding: 2.2rem;
}

.about-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--accent-cyan);
}

.about-card p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.98rem;
}

.aspirations-list {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.aspiration-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.92rem;
}
.aspiration-item i {
    color: var(--accent-emerald);
}

.pillars-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.pillar-box {
    background: var(--bg-tertiary);
    padding: 1.2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
}
.pillar-icon {
    font-size: 1.5rem;
    color: var(--accent-violet);
    margin-bottom: 0.5rem;
}
.pillar-box h4 {
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
}
.pillar-box p {
    font-size: 0.82rem;
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   8. ACADEMICS & SKILLS SECTION
   -------------------------------------------------------------------------- */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.course-card {
    padding: 1.8rem 1.4rem;
    position: relative;
}

.course-badge {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}
.course-badge.ap {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-violet);
    border: 1px solid var(--accent-violet);
}
.course-badge.honors {
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
}

.course-icon {
    width: 44px;
    height: 44px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent-violet);
    margin-bottom: 1rem;
}

.course-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}

.course-score {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-emerald);
    margin-bottom: 0.8rem;
}

.course-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.skills-wrapper {
    margin-top: 2rem;
}

.skills-heading {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.skill-category {
    padding: 1.8rem;
}

.skill-category h4 {
    font-size: 1.15rem;
    margin-bottom: 1.4rem;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-item {
    margin-bottom: 1.2rem;
}
.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}
.skill-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}
.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 1s ease-in-out;
}

/* --------------------------------------------------------------------------
   9. PROJECTS SECTION
   -------------------------------------------------------------------------- */
.projects-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-glass);
    padding: 0.4rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-glass);
}

.filter-btn {
    padding: 0.5rem 1.2rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.filter-btn.active, .filter-btn:hover {
    background: var(--accent-violet);
    color: #ffffff;
}

.search-box {
    position: relative;
    min-width: 280px;
}
.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
}
.search-box input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
}
.search-box input:focus {
    border-color: var(--accent-violet);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    min-height: 400px; /* Prevent section collapse when filtering hides all projects */
}

.project-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-img-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.project-placeholder-img {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ffffff;
}

.project-card:hover .project-img {
    transform: scale(1.06);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 25, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-bottom: 0.6rem;
    font-weight: 600;
}
.project-category {
    color: var(--accent-cyan);
}

.project-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.project-summary {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag {
    padding: 0.2rem 0.6rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-family: var(--font-code);
    color: var(--accent-violet);
}

/* --------------------------------------------------------------------------
   10. ACHIEVEMENTS & LEADERSHIP SECTION
   -------------------------------------------------------------------------- */
.achievements-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.timeline-column, .leadership-column {
    padding: 2.2rem;
}

.timeline-column h3, .leadership-column h3 {
    font-size: 1.35rem;
    margin-bottom: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--accent-cyan);
}

.timeline {
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid var(--bg-tertiary);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}
.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -1.95rem;
    top: 0.2rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-violet);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 10px var(--accent-violet);
}

.timeline-date {
    font-family: var(--font-code);
    font-size: 0.78rem;
    color: var(--accent-cyan);
    font-weight: 600;
}

.timeline-content h4 {
    font-size: 1.05rem;
    margin-top: 0.2rem;
    margin-bottom: 0.4rem;
}
.timeline-content p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.leadership-card {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    background: var(--bg-tertiary);
    padding: 1.2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
}
.leadership-card:last-child {
    margin-bottom: 0;
}

.leadership-icon {
    width: 46px;
    height: 46px;
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-violet);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.leadership-details h4 {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}
.leadership-period {
    font-size: 0.78rem;
    font-family: var(--font-code);
    color: var(--accent-amber);
    display: block;
    margin-bottom: 0.4rem;
}
.leadership-details p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   11. PLAYGROUND & UTILITIES SECTION
   -------------------------------------------------------------------------- */
.playground-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.tool-card {
    padding: 2.2rem;
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}
.tool-header h3 {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-violet);
}
.tool-badge {
    font-family: var(--font-code);
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent-cyan);
    border-radius: var(--radius-full);
}

.tool-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* GPA Table Styles */
.gpa-inputs-table {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.gpa-row {
    display: grid;
    grid-template-columns: 2.5fr 1.5fr 1.5fr 1fr 0.5fr;
    gap: 0.5rem;
    align-items: center;
}
.gpa-row.header-row {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    padding-bottom: 0.3rem;
}

.gpa-row input, .gpa-row select {
    padding: 0.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.82rem;
    outline: none;
}
.gpa-row input:focus, .gpa-row select:focus {
    border-color: var(--accent-violet);
}

.btn-remove-row {
    background: transparent;
    border: none;
    color: var(--accent-rose);
    cursor: pointer;
    font-size: 0.9rem;
    text-align: center;
}

.gpa-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.gpa-result-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.result-card {
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border-glass);
}
.result-card.highlight {
    border-color: var(--accent-violet);
    background: rgba(99, 102, 241, 0.1);
}
.result-title {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.result-score {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-cyan);
}
.result-card.highlight .result-score {
    color: var(--accent-violet);
}

/* Pomodoro Timer Styles */
.pomodoro-display {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.timer-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid var(--accent-violet);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.05);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.2);
}

.timer-time {
    font-family: var(--font-code);
    font-size: 2.5rem;
    font-weight: 700;
}
.timer-mode {
    font-size: 0.78rem;
    color: var(--accent-cyan);
    font-weight: 600;
}

.pomodoro-controls {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.pomodoro-presets {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.preset-btn {
    padding: 0.4rem 0.8rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.preset-btn.active, .preset-btn:hover {
    border-color: var(--accent-violet);
    color: var(--accent-violet);
}

.sessions-counter {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}
.sessions-counter i {
    color: var(--accent-amber);
}

/* --------------------------------------------------------------------------
   12. CONTACT SECTION
   -------------------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
}

.contact-form-card, .contact-info-card {
    padding: 2.2rem;
}

.contact-form-card h3, .contact-info-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--accent-violet);
}

.contact-form-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-main);
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--accent-violet);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-icon {
    width: 42px;
    height: 42px;
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent-cyan);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.info-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-dim);
}
.info-val {
    font-size: 0.9rem;
    font-weight: 600;
}

.divider {
    border: 0;
    height: 1px;
    background: var(--border-glass);
    margin: 1.8rem 0;
}

.testimonial-card {
    background: var(--bg-tertiary);
    padding: 1.2rem;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--accent-violet);
}
.quote-text {
    font-size: 0.88rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}
.author-info strong {
    display: block;
    font-size: 0.85rem;
}
.author-info span {
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   13. FOOTER
   -------------------------------------------------------------------------- */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-glass);
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 0.8rem;
    max-width: 320px;
}

.footer-links h4, .footer-socials h4 {
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.footer-links a {
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}
.footer-links a:hover {
    color: var(--accent-violet);
}

.social-icons {
    display: flex;
    gap: 0.8rem;
}
.social-icons a {
    width: 38px;
    height: 38px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-main);
    transition: all var(--transition-fast);
}
.social-icons a:hover {
    background: var(--gradient-primary);
    color: #ffffff;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-glass);
    font-size: 0.82rem;
    color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   14. MODAL & TOASTS
   -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    position: relative;
    width: 95vw;
    max-width: 1380px;
    max-height: 94vh;
    overflow-y: auto;
    padding: 2.4rem 3rem;
    background: rgba(9, 14, 28, 0.95);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 1px solid rgba(56, 189, 248, 0.32);
    border-radius: 20px;
    box-shadow: 0 30px 85px rgba(0, 0, 0, 0.95), 0 0 50px rgba(56, 189, 248, 0.2);
}

.modal-close {
    position: absolute;
    top: 1.4rem;
    right: 1.4rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    z-index: 50;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.85);
    border-color: #ef4444;
    color: #ffffff;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
}

/* Modal Inner Structure */
.modal-header h2 {
    font-size: 1.9rem;
    font-weight: 800;
    margin: 0.5rem 0 1rem;
    color: #ffffff;
    line-height: 1.25;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1.4rem;
}

/* Gallery Container & High-Fidelity Main Display */
.modal-gallery-container {
    margin: 1.4rem 0 2rem;
    position: relative;
}

.modal-main-display {
    position: relative;
    width: 100%;
    min-height: 520px;
    height: 620px;
    max-height: 68vh;
    background: #020408;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.85), 0 15px 35px rgba(0, 0, 0, 0.6);
}

.modal-main-display img,
#modal-main-img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.modal-main-display.is-zoomed img,
.modal-main-display.is-zoomed #modal-main-img {
    transform: scale(1.6);
    cursor: zoom-out;
}

.modal-main-display.is-fullscreen {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    min-height: 100vh !important;
    z-index: 99999 !important;
    border-radius: 0 !important;
    background: rgba(2, 4, 8, 0.98) !important;
    padding: 2.5rem !important;
}

.modal-main-display.is-fullscreen img,
.modal-main-display.is-fullscreen #modal-main-img {
    max-width: 95vw !important;
    max-height: 90vh !important;
    object-fit: contain !important;
}

/* Image Toolbar */
.modal-display-toolbar {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 25;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-display-tool {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.95rem;
    background: rgba(10, 15, 28, 0.88);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 9999px;
    color: #e2e8f0;
    font-size: 0.8rem;
    font-family: var(--font-code);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-display-tool:hover {
    background: rgba(56, 189, 248, 0.25);
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.4);
    transform: scale(1.05);
}

/* Caption bar */
.modal-display-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1.4rem;
    background: linear-gradient(to top, rgba(3, 5, 12, 0.96) 0%, rgba(3, 5, 12, 0.85) 75%, transparent 100%);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    color: #e2e8f0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 10;
}

.modal-display-caption .caption-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
}

.modal-display-caption .caption-title i {
    color: #38bdf8;
}

/* Filmstrip Thumbnails Row */
.modal-filmstrip-row {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    padding: 0.85rem 0.2rem;
    margin-top: 0.85rem;
    -webkit-overflow-scrolling: touch;
}

.filmstrip-item {
    position: relative;
    width: 130px;
    height: 82px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    opacity: 0.65;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    background: #020408;
}

.filmstrip-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.filmstrip-item:hover {
    opacity: 0.95;
    border-color: rgba(56, 189, 248, 0.55);
    transform: translateY(-3px);
}

.filmstrip-item.active {
    opacity: 1;
    border-color: #38bdf8;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.55);
    transform: translateY(-2px);
}

.filmstrip-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(15, 23, 42, 0.85);
    color: #38bdf8;
    font-family: var(--font-code);
    font-size: 0.65rem;
    padding: 1px 5px;
    border-radius: 4px;
    font-weight: 700;
}

/* Modal Details Multi-Column Grid */
.modal-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem;
    margin-top: 1.8rem;
}

.modal-section {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.3rem 1.6rem;
}

.modal-section h4 {
    color: #38bdf8;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.modal-section p,
.modal-section li {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #cbd5e1;
}

.modal-deliverables-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.modal-deliverables-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.5rem;
}

.modal-deliverables-list li i {
    color: #38bdf8;
    margin-top: 0.25rem;
}

/* Mobile Modal Breakpoints */
@media (max-width: 900px) {
    .modal-card {
        padding: 1.5rem 1.2rem !important;
        width: 96vw !important;
    }
    .modal-main-display {
        height: 380px;
        min-height: 300px;
    }
    .modal-details-grid {
        grid-template-columns: 1fr;
    }
    .modal-header h2 {
        font-size: 1.4rem;
    }
}

.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.toast {
    padding: 0.8rem 1.4rem;
    background: var(--bg-secondary);
    border: 1px solid var(--accent-emerald);
    border-radius: var(--radius-md);
    color: var(--text-main);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* --------------------------------------------------------------------------
   15. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .hero-grid, .about-grid, .skills-grid, .achievements-grid, .playground-grid, .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
        justify-content: center;
    }
    .courses-grid > .course-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: 520px;
        margin: 0 auto;
        width: 100%;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar,
    .header {
        top: 0.75rem;
        padding: 0 0.8rem;
    }

    .nav-container,
    .header-container {
        width: 100%;
        max-width: 440px;
        justify-content: space-between;
        padding: 0.45rem 1rem;
    }

    .nav-menu {
        position: fixed;
        top: 4.8rem;
        left: 50%;
        transform: translateX(-50%) translateY(-20px);
        width: calc(100% - 1.6rem);
        max-width: 440px;
        background: rgba(10, 15, 30, 0.96);
        backdrop-filter: blur(32px);
        -webkit-backdrop-filter: blur(32px);
        border: 1px solid rgba(56, 189, 248, 0.28);
        border-radius: 1.25rem;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 35px rgba(56, 189, 248, 0.2);
        padding: 1.2rem;
        flex-direction: column;
        gap: 0.5rem;
        opacity: 0;
        pointer-events: none;
        transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
        z-index: 1001;
    }

    .nav-menu.mobile-active {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }

    .nav-menu .nav-link {
        width: 100%;
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
        justify-content: flex-start;
    }

    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .courses-grid, .projects-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   CUSTOM MOUSE CURSOR FOLLOWER ENGINE
   ========================================================================== */




/* Hover active state for interactive elements */
body.cursor-hover 

body.cursor-hover 

/* Hide default cursor on desktop for interactive custom cursor */


/* ==========================================================================
   PARALLAX DEPTH SYSTEM
   ========================================================================== */

/* Noise grain overlay for cinematic film texture */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9997;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 180px 180px;
    animation: grain 0.5s steps(1) infinite;
}

@keyframes grain {
    0%, 100% { background-position: 0 0; }
    10% { background-position: -5% -10%; }
    20% { background-position: -15% 5%; }
    30% { background-position: 7% -25%; }
    40% { background-position: -5% 25%; }
    50% { background-position: -15% 10%; }
    60% { background-position: 15% 0%; }
    70% { background-position: 0% 15%; }
    80% { background-position: 3% 35%; }
    90% { background-position: -10% 10%; }
}

/* Parallax scene containers */
.parallax-layer {
    will-change: transform;
    transition: transform 0.05s linear;
}

/* Hero parallax depth elements */
.parallax-bg-1 {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

/* Section divider slash lines — B&W editorial */
.section::before {
    content: '';
    display: block;
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.15), transparent);
    margin: 0 auto -30px;
    position: relative;
    z-index: 1;
}

[data-theme="light"] .section::before {
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.15), transparent);
}

/* Parallax vignette edges for cinematic depth */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.65) 100%);
    z-index: 1;
}

/* Section parallax separator lines */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.12), transparent);
    margin: 2rem 0;
}
[data-theme="light"] .section-divider {
    background: linear-gradient(to right, transparent, rgba(0,0,0,0.12), transparent);
}

/* Canvas particle B&W filter */
#bg-canvas {
    filter: grayscale(1) brightness(0.5);
    opacity: 0.8;
}


/* ==========================================================================
   16. SUBJECT ACTIVITIES & COURSEWORK SLIDER ENGINE
   ========================================================================== */

.activities-section {
    position: relative;
    padding: 6rem 0;
}

.activities-lead-text {
    max-width: 720px;
    margin: 1.2rem auto 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Toolbar & Subject Filter Tabs */
.activities-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.2rem;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.subject-tabs {
    display: inline-flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    align-items: center;
    background: rgba(9, 14, 28, 0.88);
    padding: 0.5rem 0.65rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(56, 189, 248, 0.32);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.75), 0 0 25px rgba(56, 189, 248, 0.15);
}

.subject-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 1.3rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.07);
    color: #f1f5f9;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.94rem;
    letter-spacing: 0.015em;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}

.subject-tab i {
    font-size: 0.98rem;
    color: #38bdf8;
    transition: color 0.2s ease, transform 0.2s ease;
}

.subject-tab:hover {
    color: #ffffff;
    background: rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
    transform: translateY(-1px);
}

.subject-tab:hover i {
    color: #ffffff;
    transform: scale(1.12);
}

.subject-tab.active {
    color: #000000 !important;
    background: #ffffff !important;
    border-color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.7), 0 0 45px rgba(56, 189, 248, 0.45) !important;
    transform: translateY(-1px);
}

.subject-tab.active i {
    color: #000000 !important;
}

.subject-code-pill {
    font-size: 0.72rem;
    font-family: var(--font-code);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.subject-tab.active .subject-code-pill {
    background: rgba(0, 0, 0, 0.12);
    color: #000000;
}

.subject-count-badge {
    font-size: 0.72rem;
    padding: 0.12rem 0.45rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.subject-tab.active .subject-count-badge {
    background: rgba(0, 0, 0, 0.2);
    color: #000000;
}

/* View Mode Switcher (Slide vs Grid) */
.activities-view-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.view-mode-toggle {
    display: inline-flex;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    padding: 0.3rem;
    gap: 0.3rem;
    backdrop-filter: blur(10px);
}

.view-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding: 0.45rem 0.95rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all var(--transition-fast);
}

.view-btn:hover {
    color: #ffffff;
}

.view-btn.active {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

/* --------------------------------------------------------------------------
   SLIDER CAROUSEL PRESENTATION ENGINE
   -------------------------------------------------------------------------- */
.activities-slider-container {
    width: 100%;
    position: relative;
}

.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.8rem;
}

.slider-viewport {
    flex: 1;
    overflow: hidden;
    border-radius: var(--radius-lg);
    position: relative;
    min-height: 520px;
}

.slider-track {
    display: flex;
    width: 100%;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.activity-slide-item {
    flex: 0 0 100%;
    min-width: 100%;
    box-sizing: border-box;
    padding: 0.25rem;
}

/* Nav Arrows */
.slider-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: #ffffff;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    backdrop-filter: blur(12px);
    z-index: 5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.slider-arrow:hover:not(:disabled) {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
    transform: scale(1.08);
}

.slider-arrow:disabled {
    opacity: 0.2;
    cursor: not-allowed;
    pointer-events: none;
}

/* Slide Card Architecture */
.activity-slide-card {
    padding: 2.4rem;
    border-radius: var(--radius-lg);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.activity-slide-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.slide-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1.8rem;
}

.slide-card-header .header-left,
.slide-card-header .header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.subject-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-code);
    font-size: 0.88rem;
    color: #ffffff;
    font-weight: 600;
}

.term-badge {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.activity-type-pill {
    font-size: 0.8rem;
    font-family: var(--font-code);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.activity-grade-pill {
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Card Body (2 Columns) */
.slide-card-body {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 2.4rem;
    align-items: stretch;
}

/* Visual Column */
.slide-visual-col {
    display: flex;
    flex-direction: column;
}

.activity-preview-box {
    background: #090909;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
    min-height: 280px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.preview-terminal-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.65rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-terminal-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.preview-terminal-header .dot.red { background: #ff5f56; }
.preview-terminal-header .dot.yellow { background: #ffbd2e; }
.preview-terminal-header .dot.green { background: #27c93f; }

.preview-terminal-header .terminal-title {
    font-family: var(--font-code);
    font-size: 0.78rem;
    color: #888888;
    margin-left: 8px;
}

.preview-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.04) 0%, transparent 80%);
}

.preview-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}

.preview-icon-wrapper i {
    font-size: 3.8rem;
    color: #ffffff;
    opacity: 0.9;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.35));
}

.preview-subtitle {
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: #b0b0b0;
    letter-spacing: 0.5px;
}

.preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
    transition: transform 0.4s ease;
}

.activity-preview-box:hover .preview-img {
    transform: scale(1.05);
}

.preview-overlay {
    position: absolute;
    inset: 0;
    background: rgba(4, 6, 14, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.2rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer !important;
    z-index: 25 !important;
    pointer-events: auto !important;
}

.activity-preview-box:hover .preview-overlay,
.activity-preview-box:focus-within .preview-overlay {
    opacity: 1 !important;
}

.preview-overlay .view-activity-modal-btn {
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 26 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
    padding: 0.75rem 1.6rem !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    border-radius: var(--radius-full) !important;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.6), 0 0 20px rgba(56, 189, 248, 0.5) !important;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease !important;
}

.preview-overlay .view-activity-modal-btn:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.85), 0 0 30px rgba(56, 189, 248, 0.7) !important;
}

.preview-overlay .view-activity-modal-btn:active {
    transform: scale(0.97) !important;
}

/* Info Column */
.slide-info-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.activity-meta-line {
    display: flex;
    gap: 1.4rem;
    font-family: var(--font-code);
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.activity-meta-line span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.activity-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.85rem;
    line-height: 1.3;
}

.activity-summary {
    color: #b5b5b5;
    font-size: 0.96rem;
    line-height: 1.65;
    margin-bottom: 1.3rem;
}

.activity-deliverables {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.3rem;
    margin-bottom: 1.3rem;
}

.activity-deliverables h4 {
    font-size: 0.82rem;
    font-family: var(--font-code);
    color: #ffffff;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.activity-deliverables ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.activity-deliverables li {
    font-size: 0.88rem;
    color: #cccccc;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.activity-deliverables li i {
    color: #ffffff;
    font-size: 0.8rem;
}

.activity-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.6rem;
}

.activity-action-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
}

/* Slider Status Bar & Pagination Controls */
.slider-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.2rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    padding: 0.65rem 1.6rem;
    backdrop-filter: blur(12px);
}

.slide-counter-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-code);
    font-size: 0.86rem;
    color: #ffffff;
    font-weight: 600;
}

.slider-pagination {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    padding: 0;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.slider-dot.active {
    width: 30px;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.7);
}

.slider-extra-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.slider-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.4rem 0.95rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #d0d0d0;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.slider-action-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.slider-action-btn.guide-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.slider-action-btn.guide-btn:hover {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

/* --------------------------------------------------------------------------
   GRID VIEW MODE (Alternate View for Activities)
   -------------------------------------------------------------------------- */
.activities-grid-container {
    width: 100%;
}

.activities-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.activity-grid-card {
    border-radius: var(--radius-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(12px);
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.activity-grid-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
}

.activity-grid-card .grid-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.activity-grid-card .grid-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.6rem;
}

.activity-grid-card .grid-card-desc {
    color: #a8a8a8;
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.activity-grid-card .grid-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* Empty State */
.activities-empty-state {
    width: 100%;
    padding: 3rem 0;
}

.empty-glass-box {
    text-align: center;
    padding: 3.5rem 2rem;
    max-width: 600px;
    margin: 0 auto;
    border: 1px dashed rgba(255, 255, 255, 0.15);
}

.empty-glass-box .empty-icon {
    font-size: 3rem;
    color: #ffffff;
    opacity: 0.5;
    margin-bottom: 1.2rem;
}

.empty-glass-box h3 {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.empty-glass-box p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN FOR ACTIVITIES SECTION
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .slide-card-body {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }

    .activities-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .activities-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .subject-tabs {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.6rem;
        -webkit-overflow-scrolling: touch;
    }

    .subject-tab {
        white-space: nowrap;
    }

    .slider-arrow {
        display: none;
    }

    .slider-status-bar {
        flex-direction: column;
        gap: 0.85rem;
        border-radius: var(--radius-lg);
        padding: 1rem;
    }

    .activity-slide-card {
        padding: 1.5rem;
    }

    .slide-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .activities-cards-grid {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   17. 3D SPATIAL MOVEMENTS & REAL-TIME INTERACTIVE ENGINE
   ========================================================================== */

/* Fullscreen WebGL 3D Canvas Layer */
#three-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0 !important;
    opacity: 1 !important;
}

/* Global 3D Perspective Foundations (Removed from html to preserve fixed canvas positioning) */
.tilt-card-wrapper, .perspective-container {
    perspective: 1200px;
}

.section, .container, .hero-grid, .about-grid, .courses-grid, 
.projects-grid, .achievements-grid, .playground-grid, .contact-grid {
    transform-style: preserve-3d;
}

body {
    transform-style: flat !important;
}

/* --------------------------------------------------------------------------
   UNIVERSAL 3D CARD TILT & SPECULAR GLARE SYSTEM
   -------------------------------------------------------------------------- */
.glass-card, 
.avatar-card, 
.terminal-card, 
.course-card, 
.project-card, 
.activity-slide-card, 
.activity-grid-card, 
.achievement-card, 
.stat-card, 
.tool-card, 
.about-card,
.modal-card {
    transform-style: preserve-3d;
    will-change: transform;
    position: relative;
    backface-visibility: hidden;
}

/* Dynamic 3D Specular Light Glare Sheen */
.card-3d-glare {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    mix-blend-mode: screen;
    will-change: background, opacity;
}

/* 3D Pop-Out Depth for Internal Card Elements */
.course-icon, 
.project-meta, 
.subject-badge, 
.activity-type-pill, 
.activity-grade-pill, 
.tag, 
.preview-content, 
.terminal-header, 
.activity-deliverables,
.glass-card h3, 
.glass-card h4, 
.project-title, 
.activity-title {
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform;
}


.hero {
    min-height: 100vh;
    padding-top: 7rem;
    padding-bottom: 4rem;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2 !important;
    background: transparent !important;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10 !important;
}

.hero-content {
    position: relative;
    z-index: 10 !important;
}

/* ==========================================================================
   HOLOGRAPHIC 3D AVATAR CYBER CARD WITH SCANLINE & NEON GLOW
   ========================================================================== */
.avatar-card {
    position: relative;
    width: 310px;
    height: 390px;
    border-radius: 28px !important;
    background: #000000 !important;
    border: 2px solid rgba(59, 130, 246, 0.55) !important;
    padding: 6px;
    box-shadow: 
        0 25px 65px rgba(0, 0, 0, 0.95),
        0 0 45px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
    overflow: hidden !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10 !important;
    transform-style: preserve-3d;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

.avatar-card:hover {
    transform: perspective(1000px) translateY(-8px) scale(1.03);
    border-color: #38bdf8 !important;
    box-shadow: 
        0 35px 80px rgba(0, 0, 0, 0.98),
        0 0 60px rgba(56, 189, 248, 0.45), 0 0 120px rgba(99, 102, 241, 0.25),
        inset 0 1px 0 #ffffff !important;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px !important;
    position: relative;
    z-index: 2;
    transition: filter 0.4s ease, transform 0.4s ease;
}

/* Holographic Laser Scanline Over Avatar */
.avatar-card::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(56, 189, 248, 0.12) 60%, 
        rgba(56, 189, 248, 0.4) 100%);
    border-bottom: 2px solid #38bdf8;
    box-shadow: 0 4px 18px rgba(56, 189, 248, 0.6);
    z-index: 4;
    pointer-events: none;
    animation: holoScan 4.5s ease-in-out infinite;
}

@keyframes holoScan {
    0% { top: -35%; opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { top: 120%; opacity: 0; }
}

/* ==========================================================================
   ENHANCED 3D GYROSCOPIC NEON RINGS SYSTEM
   ========================================================================== */
.avatar-3d-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    perspective: 1200px;
    z-index: 10;
}

.gyro-ring-system {
    position: absolute;
    inset: -65px;
    pointer-events: none;
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.gyro-ring {
    position: absolute;
    border-radius: 50%;
    transform-style: preserve-3d;
    will-change: transform;
}

.ring-outer {
    width: 420px;
    height: 420px;
    border: 2px solid rgba(59, 130, 246, 0.55);
    box-shadow: 0 0 35px rgba(59, 130, 246, 0.3), inset 0 0 20px rgba(59, 130, 246, 0.15);
    animation: gyroSpinX 20s linear infinite;
}

.ring-middle {
    width: 355px;
    height: 355px;
    border: 2px dashed rgba(168, 85, 247, 0.55);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.25);
    animation: gyroSpinY 14s linear infinite reverse;
}

.ring-inner {
    width: 295px;
    height: 295px;
    border: 1.5px dotted rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
    animation: gyroSpinZ 9s linear infinite;
}

.gyro-node {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 14px #38bdf8, 0 0 28px #3b82f6, 0 0 45px rgba(59, 130, 246, 0.7);
    animation: nodePulse 1.8s ease-in-out infinite alternate;
}

.node-1 { top: 0; left: 50%; transform: translateX(-50%); }
.node-2 { bottom: 15%; left: 8%; }
.node-3 { top: 35%; right: 4%; }

/* ==========================================================================
   ENHANCED 3D TECH CUBE STYLING
   ========================================================================== */
.cube-3d-interactive-container {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 12;
}

.cube-3d-scene {
    width: 150px;
    height: 150px;
    perspective: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab !important;
    user-select: none;
    transform-style: preserve-3d;
}

.cube-3d-scene:active {
    cursor: grabbing !important;
}

.cube-3d {
    width: 104px;
    height: 104px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.05s linear;
    will-change: transform;
}

.cube-face {
    position: absolute;
    width: 104px;
    height: 104px;
    background: rgba(8, 14, 26, 0.92) !important;
    border: 1.5px solid #3b82f6 !important;
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.35), inset 0 0 16px rgba(59, 130, 246, 0.15) !important;
    color: #ffffff;
    border-radius: 10px;
    backface-visibility: visible;
}

.cube-face i {
    font-size: 1.7rem;
    color: #38bdf8;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.8));
}

.cube-face span {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #ffffff;
}

.cube-face small {
    font-size: 0.65rem;
    color: #38bdf8;
    font-family: var(--font-code);
}

.cube-front  { transform: translateZ(52px); }
.cube-back   { transform: rotateY(180deg) translateZ(52px); }
.cube-right  { transform: rotateY(90deg) translateZ(52px); }
.cube-left   { transform: rotateY(-90deg) translateZ(52px); }
.cube-top    { transform: rotateX(90deg) translateZ(52px); }
.cube-bottom { transform: rotateX(-90deg) translateZ(52px); }

.cube-hint-badge {
    margin-top: 1.2rem;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    background: rgba(12, 12, 12, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.35);
    font-size: 0.72rem;
    font-family: var(--font-code);
    color: #c0c0c0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.8), 0 0 15px rgba(59, 130, 246, 0.2);
    pointer-events: none;
}


/* ==========================================================================
   WHOLE-WEBSITE 3D PARALLAX & SECTION ENHANCEMENT SYSTEM
   ========================================================================== */

/* 3D Cyber Section Divider */
.cyber-section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2.2rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.cyber-section-divider .divider-line {
    flex: 1;
    height: 1px;
    position: relative;
}

.cyber-section-divider .divider-left {
    background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.25) 60%, rgba(255, 255, 255, 0.5) 100%);
}

.cyber-section-divider .divider-right {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.5) 0%, rgba(59, 130, 246, 0.25) 40%, transparent 100%);
}

.cyber-section-divider .divider-center-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.45rem 1.4rem;
    border-radius: var(--radius-full);
    background: rgba(14, 14, 14, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 0 16px rgba(59, 130, 246, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    font-family: var(--font-code);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    color: #e0e0e0;
    text-transform: uppercase;
    transform-style: preserve-3d;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.cyber-section-divider:hover .divider-center-badge {
    border-color: #38bdf8;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.9), 0 0 24px rgba(56, 189, 248, 0.35);
}

.cyber-section-divider .divider-glow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8, 0 0 14px rgba(56, 189, 248, 0.8);
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.4); opacity: 1; }
}

/* Floating Parallax Geometry Chips */
.parallax-floating-chip {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    will-change: transform;
    opacity: 0.75;
}

/* Ambient Radial Glow Fields */
.ambient-glow-backdrop {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(130px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.09;
    will-change: transform;
}

.glow-about {
    top: 10%;
    left: -180px;
    background: radial-gradient(circle, #6366f1 0%, transparent 70%);
}

.glow-academics {
    top: 15%;
    right: -180px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
}

.glow-activities {
    bottom: 5%;
    left: 15%;
    background: radial-gradient(circle, #a855f7 0%, transparent 70%);
}

/* Terminal Card Scanline & CRT Texture */
.terminal-card {
    position: relative;
    overflow: hidden;
}

.terminal-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(18, 18, 18, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    opacity: 0.4;
    border-radius: inherit;
}



/* ==========================================================================
   HIGH-TIER ENHANCED ABOUT ME SHOWCASE STYLES
   ========================================================================== */
.about-lead-intro {
    text-align: center;
    max-width: 680px;
    margin: 0.8rem auto 0;
    color: #a3a3a3;
    font-size: 1.05rem;
    line-height: 1.6;
}

.about-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.2rem;
    align-items: stretch;
    margin-bottom: 2.2rem;
}

@media (max-width: 968px) {
    .about-main-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }
}

/* Left Card: Intro Bio Card */
.intro-bio-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.4rem;
}

.intro-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.95rem;
    border-radius: var(--radius-full);
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #38bdf8;
    font-size: 0.8rem;
    font-family: var(--font-code);
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    width: fit-content;
}

.intro-heading {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 1.2rem;
    letter-spacing: -0.01em;
}

.intro-lead-text {
    font-size: 1.02rem;
    line-height: 1.7;
    color: #e0e0e0;
    margin-bottom: 1rem;
}

.intro-body-text {
    font-size: 0.94rem;
    line-height: 1.65;
    color: #9e9e9e;
    margin-bottom: 1.6rem;
}

/* 4 Quick Facts Matrix */
.intro-facts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.fact-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.fact-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(56, 189, 248, 0.35);
}

.fact-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.fact-content {
    display: flex;
    flex-direction: column;
}

.fact-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888888;
    font-family: var(--font-code);
}

.fact-val {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.25;
}

/* Live Academic Status Banner */
.academic-status-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.2rem;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    font-size: 0.82rem;
    font-weight: 500;
}

.status-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 10px #38bdf8, 0 0 18px rgba(56, 189, 248, 0.6);
    animation: pulseDot 1.8s ease-in-out infinite;
    flex-shrink: 0;
}

/* Right Card: Terminal Styles */
.terminal-card {
    padding: 0 !important;
    display: flex;
    flex-direction: column;
}

.terminal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.4rem;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dots {
    display: flex;
    align-items: center;
    gap: 7px;
}

.dot-btn {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-title {
    font-family: var(--font-code);
    font-size: 0.78rem;
    color: #a0a0a0;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terminal-badge {
    font-family: var(--font-code);
    font-size: 0.7rem;
    color: #666;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

.terminal-screen {
    padding: 1.6rem;
    font-family: 'Fira Code', var(--font-code), monospace;
    font-size: 0.84rem;
    line-height: 1.65;
    background: #070707;
    flex: 1;
    overflow-x: auto;
}

.term-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.term-user {
    color: #38bdf8;
    font-weight: 600;
}

.term-path {
    color: #8b5cf6;
}

.term-cmd {
    color: #ffffff;
    font-weight: 500;
}

.term-json-output {
    margin: 0.4rem 0 0.8rem 1.2rem;
    color: #b0b0b0;
    font-size: 0.81rem;
    white-space: pre;
}

.json-key { color: #8b5cf6; }
.json-str { color: #a5f3fc; }
.json-highlight { color: #38bdf8; font-weight: 600; }

.term-milestones {
    margin: 0.4rem 0 0.8rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.81rem;
}

.milestone-done { color: #e0e0e0; }
.milestone-active { color: #38bdf8; font-weight: 500; }
.milestone-wait { color: #777777; }

.tag-done {
    color: #38bdf8;
    font-weight: 700;
    margin-right: 6px;
}

.tag-active {
    color: #8b5cf6;
    font-weight: 700;
    margin-right: 6px;
}

.tag-wait {
    color: #666666;
    margin-right: 6px;
}

.term-cursor {
    color: #38bdf8;
    animation: blink 1s step-end infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Bottom Row: 3 Floating 3D Metric Stat Pillars */
.about-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
}

@media (max-width: 850px) {
    .about-pillars-grid {
        grid-template-columns: 1fr;
    }
}

.pillar-stat-card {
    padding: 1.8rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-number-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    margin-bottom: 0.6rem;
}

.stat-number, .pillar-num {
    font-size: 2.4rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.stat-symbol, .pillar-symbol {
    font-size: 1.4rem;
    font-weight: 700;
    color: #38bdf8;
}

.stat-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-title i {
    color: #38bdf8;
}

.stat-desc {
    font-size: 0.85rem;
    color: #888888;
    line-height: 1.5;
    max-width: 300px;
    margin: 0 auto;
}


/* ==========================================================================
   TECHNICAL COMPETENCY MATRIX & ACADEMIC ROADMAP CARD
   ========================================================================== */
.competency-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.4rem;
}

.skills-progress-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.2rem 0 1.5rem;
}

.skill-meter-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.skill-meter-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #e2e8f0;
}

.skill-meter-name {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-meter-pct {
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: #38bdf8;
    font-weight: 700;
}

.skill-meter-track {
    width: 100%;
    height: 7px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.skill-meter-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fill-cyan {
    background: linear-gradient(90deg, #3b82f6, #38bdf8);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.55);
}

.fill-purple {
    background: linear-gradient(90deg, #a855f7, #8b5cf6);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.fill-amber {
    background: linear-gradient(90deg, #facc15, #eab308);
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
}

.fill-blue {
    background: linear-gradient(90deg, #38bdf8, #2563eb);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.fill-rose {
    background: linear-gradient(90deg, #ec4899, #f43f5e);
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
}

/* Academic Milestones Box & Timeline */
.academic-milestones-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    margin-top: 0.5rem;
}

.milestones-box-title {
    font-size: 0.82rem;
    font-family: var(--font-code);
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.milestone-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.timeline-step {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    position: relative;
}

.step-marker {
    font-size: 0.95rem;
    margin-top: 2px;
}

.step-done .step-marker {
    color: #38bdf8;
}

.step-active .step-marker {
    color: #c084fc;
}

.step-content {
    flex: 1;
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.2rem;
}

.step-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
}

.step-badge {
    font-size: 0.72rem;
    font-family: var(--font-code);
    padding: 1px 7px;
    border-radius: 4px;
    font-weight: 600;
}

.badge-prelim {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.badge-midterm {
    background: rgba(250, 204, 21, 0.12);
    color: #facc15;
    border: 1px solid rgba(250, 204, 21, 0.35);
}

.badge-finals {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

.step-desc {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.45;
    margin: 0;
}


/* ==========================================================================
   MULTI-IMAGE GALLERY & MODAL FILMSTRIP SYSTEM
   ========================================================================== */
.slide-image-gallery {
    position: relative;
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #080b12;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-main-img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    transition: opacity 0.25s ease, transform 0.3s ease;
}

.gallery-caption-bar {
    padding: 0.5rem 0.85rem;
    background: rgba(8, 11, 18, 0.92);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-code);
    font-size: 0.72rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gallery-caption-bar i {
    color: var(--accent-sky);
}

.gallery-dots-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.45rem 0;
    background: rgba(5, 7, 12, 0.85);
}

.gallery-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transition: all 0.2s ease;
    cursor: pointer;
}

.gallery-dot.active {
    width: 18px;
    border-radius: 4px;
    background: var(--accent-sky);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

/* Modal Filmstrip Thumbnails Row */
.modal-filmstrip-row {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.6rem 0.2rem;
    margin-top: 0.85rem;
    -webkit-overflow-scrolling: touch;
}

.modal-filmstrip-thumb {
    width: 90px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.modal-filmstrip-thumb:hover {
    opacity: 0.9;
    border-color: rgba(56, 189, 248, 0.5);
    transform: translateY(-2px);
}

.modal-filmstrip-thumb.active {
    opacity: 1;
    border-color: var(--accent-sky);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}

/* Global Mobile Viewport Hardening */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

.section, section {
    overflow-x: clip;
}

.ambient-glow-backdrop {
    max-width: 100vw;
    overflow: hidden;
    pointer-events: none;
}


/* ==========================================================================
   FULL-WEBSITE 3D CYBER CONSTELLATION & TRANSLUCENT GLASS SYSTEM
   ========================================================================== */
body {
    background-color: #04060a;
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
}

/* Whole-website translucent section foundations */
.section, section, #hero, #about, #academics, #activities, .marquee-wrapper {
    background: transparent !important;
    position: relative;
    z-index: 2;
}

/* Frosted glass cards with crystal translucency so 3D constellations glow through */
.about-card, .competency-card, .coursework-card, .activity-slide-card, .activity-grid-card {
    background: rgba(9, 13, 24, 0.68) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.about-card:hover, .competency-card:hover, .coursework-card:hover, .activity-slide-card:hover, .activity-grid-card:hover {
    border-color: rgba(56, 189, 248, 0.4) !important;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.8), 0 0 30px rgba(59, 130, 246, 0.25) !important;
}

.footer {
    background: rgba(5, 7, 14, 0.82) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 2;
}


/* ==========================================================================
   32. WHOLE-WEBSITE INTERACTIVE SIDE-PAN & SCROLL PARALLAX ENGINE
   ========================================================================== */

/* GPU-Accelerated Kinetic Side-Pan Transitions */
.hero-content, .hero-visual,
.intro-bio-card, .competency-card,
.about-section .section-header,
.about-pillars-grid .pillar-stat-card,
.pillar-stat-card, .course-card,
.slider-shell, .subject-tabs-wrapper {
    will-change: transform;
    transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.about-card.intro-bio-card:hover,
.about-card.competency-card:hover {
    border-color: rgba(56, 189, 248, 0.55) !important;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.85), 0 0 35px rgba(56, 189, 248, 0.25) !important;
}

/* Kinetic Global Scroll Inertia Container */
.kinetic-pan-active {
    will-change: transform;
    transition: transform 0.12s cubic-bezier(0.1, 0.9, 0.2, 1);
}

/* Interactive Floating Side-Pan Navigation Radar */
.side-pan-radar {
    position: fixed;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 95;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 0.55rem;
    background: rgba(8, 12, 22, 0.76);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 9999px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.65), 0 0 25px rgba(59, 130, 246, 0.22);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}

.side-pan-radar:hover {
    border-color: rgba(56, 189, 248, 0.55);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.8), 0 0 35px rgba(56, 189, 248, 0.35);
}

.radar-rail {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.radar-track-line {
    position: absolute;
    top: 16px;
    bottom: 16px;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
    pointer-events: none;
    border-radius: 9999px;
    overflow: hidden;
}

.radar-beam-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    max-height: 100%;
    background: linear-gradient(180deg, #38bdf8, #3b82f6, #a855f7);
    box-shadow: 0 0 10px #38bdf8;
    border-radius: 9999px;
    transition: height 0.18s ease-out;
}

.radar-node {
    position: relative;
    z-index: 3;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.72rem;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.radar-node:hover {
    color: #ffffff;
    border-color: #38bdf8;
    background: rgba(37, 99, 235, 0.35);
    transform: scale(1.18) translateX(-3px);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.65);
}

.radar-node.active {
    color: #ffffff;
    border-color: #38bdf8;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.85);
    transform: scale(1.15);
}

.radar-node-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    transition: transform 0.2s ease;
}

.radar-node.active .radar-node-dot {
    box-shadow: 0 0 8px #ffffff;
}

/* Radar Tooltip Pill that slides out horizontally (Side Pan HUD) */
.radar-tooltip {
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    background: rgba(7, 10, 19, 0.94);
    border: 1px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75), 0 0 15px rgba(59, 130, 246, 0.3);
    padding: 0.42rem 0.85rem;
    border-radius: 8px;
    font-family: var(--font-code);
    font-size: 0.72rem;
    color: #e2e8f0;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}

.radar-tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background: rgba(7, 10, 19, 0.94);
    border-right: 1px solid rgba(56, 189, 248, 0.4);
    border-top: 1px solid rgba(56, 189, 248, 0.4);
}

.radar-node:hover .radar-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.radar-arrow-btn {
    position: relative;
    z-index: 3;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    cursor: pointer !important;
    transition: all 0.2s ease;
    outline: none;
}

.radar-arrow-btn:hover {
    color: #38bdf8;
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
}

/* Drag to Pan Slider Track Interaction */
.slider-viewport.is-dragging {
    cursor: grabbing !important;
    user-select: none !important;
}
.slider-viewport.is-dragging * {
    user-select: none !important;
    pointer-events: none !important;
}

/* Responsive Radar Docking */
@media (max-width: 900px) {
    .side-pan-radar {
        right: 0.6rem;
        padding: 0.65rem 0.35rem;
        gap: 0.55rem;
        transform: translateY(-50%) scale(0.9);
    }
    .radar-rail {
        gap: 0.55rem;
    }
    .radar-tooltip {
        display: none !important;
    }
}

@media (max-width: 540px) {
    .side-pan-radar {
        display: none !important; /* Hide floating side rail on narrow phones to preserve full screen width */
    }
}


/* ==========================================================================
   33. INTERACTIVE CUSTOM ACTIVITY IMAGE UPLOADER & MANAGER
   ========================================================================== */

.preview-upload-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    position: relative;
    z-index: 30;
}

.btn-preview-upload {
    background: rgba(37, 99, 235, 0.25);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #38bdf8;
    font-family: var(--font-code);
    font-size: 0.68rem;
    font-weight: 500;
    padding: 0.22rem 0.6rem;
    border-radius: 6px;
    cursor: pointer !important;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    letter-spacing: 0.02em;
}

.btn-preview-upload:hover {
    background: rgba(37, 99, 235, 0.55);
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.65);
    transform: translateY(-1px);
}

.btn-preview-upload.has-custom {
    background: rgba(34, 197, 94, 0.22);
    border-color: rgba(34, 197, 94, 0.55);
    color: #4ade80;
}

.btn-preview-upload.has-custom:hover {
    background: rgba(34, 197, 94, 0.4);
    border-color: #4ade80;
    color: #ffffff;
    box-shadow: 0 0 14px rgba(74, 222, 128, 0.65);
}

.btn-preview-reset {
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.38);
    color: #f87171;
    font-size: 0.65rem;
    padding: 0.22rem 0.45rem;
    border-radius: 6px;
    cursor: pointer !important;
    transition: all 0.2s ease;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-preview-reset:hover {
    background: rgba(239, 68, 68, 0.45);
    color: #ffffff;
    border-color: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.activity-preview-box.drag-active {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 35px rgba(56, 189, 248, 0.55) !important;
    transform: scale(1.015);
}

.modal-custom-upload-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.85rem;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-top: 0.6rem;
}

.btn-outline-cyan {
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    font-family: var(--font-code);
    font-size: 0.72rem;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    cursor: pointer !important;
    transition: all 0.2s ease;
}

.btn-outline-cyan:hover {
    background: rgba(37, 99, 235, 0.45);
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.5);
}


/* ==========================================================================
   34. DEDICATED ACTIVITIES ARCHIVE PAGE & ALL-CARDS STREAM VIEW
   ========================================================================== */

/* Activities Page Header & Hero */
.activities-page-header {
    padding: 8rem 0 3rem;
    position: relative;
    z-index: 2;
    text-align: center;
}

.activities-breadcrumb-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.1rem;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    font-family: var(--font-code);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.btn-back-home:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border-color: #38bdf8;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.6);
    transform: translateX(-3px);
}

.activities-stats-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 2.2rem 0 1.5rem;
}

.stat-pill {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1.2rem;
    background: rgba(9, 13, 24, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    backdrop-filter: blur(12px);
    font-size: 0.85rem;
    color: #cbd5e1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.stat-pill strong {
    color: #38bdf8;
    font-family: var(--font-code);
    font-weight: 700;
}

.stat-pill i {
    color: #38bdf8;
}

/* Search Bar in Activities Filter Bar */
.activities-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.activities-search-icon {
    position: absolute;
    left: 1rem;
    color: #94a3b8;
    font-size: 0.82rem;
    pointer-events: none;
    transition: color 0.2s;
}

.activities-search-input {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    padding: 0.55rem 1rem 0.55rem 2.4rem;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.82rem;
    width: 240px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.activities-search-input:focus {
    width: 310px;
    border-color: #38bdf8;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.4);
    background: rgba(15, 23, 42, 0.95);
}

.activities-search-input:focus + .activities-search-icon {
    color: #38bdf8;
}

/* Stream / All-Cards Container */
.activities-stream-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 1.8rem;
    position: relative;
    z-index: 2;
}

.activities-stream-container .activity-slide-card {
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.activities-stream-container .activity-slide-card:hover {
    border-color: rgba(56, 189, 248, 0.45) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 35px rgba(56, 189, 248, 0.3) !important;
    transform: translateY(-4px);
}

/* Stream Section Header Bar */
.stream-category-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0 1rem;
    color: #94a3b8;
    font-family: var(--font-code);
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.stream-category-divider::before,
.stream-category-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.stream-category-divider span {
    color: #38bdf8;
    font-weight: 700;
}

/* Floating Action Return Dock for Activities Page */
.page-floating-return {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 90;
}

@media (max-width: 768px) {
    .activities-search-input {
        width: 100%;
    }
    .activities-search-input:focus {
        width: 100%;
    }
    .activities-search-wrapper {
        width: 100%;
    }
    .stat-pill {
        font-size: 0.78rem;
        padding: 0.45rem 0.9rem;
    }
    .page-floating-return {
        bottom: 1.2rem;
        left: 1.2rem;
    }
}


/* ==========================================================================
   ACADEMIC TERM FILTER PILLS (Prelims / Midterms / Finals)
   ========================================================================== */

.term-filter-bar {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.75rem;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

.term-filter-label,
.term-label {
    font-size: 0.78rem;
    font-weight: 700;
    font-family: var(--font-code);
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-left: 0.2rem;
    padding-right: 0.25rem;
    user-select: none;
}

.term-filter-label i,
.term-label i {
    color: #38bdf8;
    font-size: 0.78rem;
}

.term-pill-btn {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.38rem 0.9rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    user-select: none;
    white-space: nowrap;
    text-shadow: none;
}

.term-pill-btn i {
    font-size: 0.8rem;
    opacity: 0.9;
    transition: transform 0.2s ease, color 0.2s ease;
}

.term-count-badge,
.term-badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.25rem;
    padding: 0 0.4rem;
    border-radius: 9999px;
    font-family: var(--font-code);
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    line-height: 1;
    transition: all 0.2s ease;
}

/* Hover State */
.term-pill-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(56, 189, 248, 0.45);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.term-pill-btn:hover i {
    color: #38bdf8;
    transform: scale(1.15);
}

.term-pill-btn:hover .term-count-badge,
.term-pill-btn:hover .term-badge-count {
    background: rgba(56, 189, 248, 0.22);
    color: #38bdf8;
}

/* Active State (Sapphire & Cyan Glow) */
.term-pill-btn.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.45) 0%, rgba(56, 189, 248, 0.32) 100%) !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.4), inset 0 0 10px rgba(56, 189, 248, 0.2) !important;
}

.term-pill-btn.active i {
    color: #38bdf8;
}

.term-pill-btn.active .term-count-badge,
.term-pill-btn.active .term-badge-count {
    background: #38bdf8 !important;
    color: #020617 !important;
    font-weight: 800;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

/* Prelims */
.term-pill-btn.pill-prelim:hover i,
.term-pill-btn.pill-prelim.active i {
    color: #38bdf8;
}

/* Midterms */
.term-pill-btn.pill-midterm.active,
.term-pill-btn.pill-midterms.active {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.45) 0%, rgba(168, 85, 247, 0.32) 100%) !important;
    border-color: #c084fc !important;
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.4), inset 0 0 10px rgba(168, 85, 247, 0.2) !important;
}

.term-pill-btn.pill-midterm.active i,
.term-pill-btn.pill-midterms.active i {
    color: #c084fc;
}

.term-pill-btn.pill-midterm.active .term-count-badge,
.term-pill-btn.pill-midterms.active .term-badge-count {
    background: #c084fc !important;
    color: #020617 !important;
}

/* Finals (Champagne Gold Trophy Glow) */
.term-pill-btn.pill-finals.active {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.5) 0%, rgba(245, 158, 11, 0.35) 100%) !important;
    border-color: #fbbf24 !important;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.45), inset 0 0 10px rgba(245, 158, 11, 0.25) !important;
}

.term-pill-btn.pill-finals.active i {
    color: #fbbf24;
}

.term-pill-btn.pill-finals.active .term-count-badge,
.term-pill-btn.pill-finals.active .term-badge-count {
    background: #fbbf24 !important;
    color: #020617 !important;
}

/* Light Theme Support */
[data-theme="light"] .term-filter-bar {
    background: rgba(241, 245, 249, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .term-filter-label,
[data-theme="light"] .term-label {
    color: #475569;
}

[data-theme="light"] .term-pill-btn {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
    color: #334155;
}

[data-theme="light"] .term-pill-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: #2563eb;
    color: #0f172a;
}

[data-theme="light"] .term-pill-btn.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18) 0%, rgba(59, 130, 246, 0.12) 100%) !important;
    border-color: #2563eb !important;
    color: #1e40af !important;
}

[data-theme="light"] .term-count-badge,
[data-theme="light"] .term-badge-count {
    background: rgba(0, 0, 0, 0.08);
    color: #475569;
}

[data-theme="light"] .term-pill-btn.active .term-count-badge,
[data-theme="light"] .term-pill-btn.active .term-badge-count {
    background: #2563eb !important;
    color: #ffffff !important;
}

/* ==========================================================================
   35. ACTIVITIES SHOWCASE ATMOSPHERE & AMBIENT COSMIC NEBULA
   ========================================================================== */

/* Body Cosmic Atmosphere for Activities Archive */
body.activities-page {
    background-color: #04060a;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 10% 30%, rgba(168, 85, 247, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 60%, rgba(56, 189, 248, 0.09) 0%, transparent 45%),
        radial-gradient(circle at 50% 90%, rgba(37, 99, 235, 0.10) 0%, transparent 40%) !important;
    background-attachment: fixed !important;
}

[data-theme="light"] body.activities-page {
    background-color: #f8fafc !important;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 85% 50%, rgba(147, 51, 234, 0.05) 0%, transparent 40%) !important;
}

/* Ambient Radial Glow Fields for Activities Showcase */
.glow-showcase-header {
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.20) 0%, rgba(37, 99, 235, 0.10) 45%, transparent 70%);
    opacity: 0.9 !important;
}

.glow-showcase-1 {
    top: 15%;
    right: -140px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, rgba(37, 99, 235, 0.08) 50%, transparent 70%);
    opacity: 0.85 !important;
}

.glow-showcase-2 {
    top: 48%;
    left: -160px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.20) 0%, rgba(14, 165, 233, 0.06) 50%, transparent 70%);
    opacity: 0.85 !important;
}

.glow-showcase-3 {
    top: 78%;
    right: -140px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.22) 0%, rgba(126, 34, 206, 0.08) 50%, transparent 70%);
    opacity: 0.85 !important;
}

/* Enhanced Showcase Glass Stream Cards */
.activities-stream-container .activity-slide-card {
    background: rgba(9, 14, 28, 0.74) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.75), 0 0 25px rgba(56, 189, 248, 0.08) !important;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.activities-stream-container .activity-slide-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.6), rgba(168, 85, 247, 0.5), transparent);
    pointer-events: none;
    z-index: 5;
}

.activities-stream-container .activity-slide-card:hover {
    border-color: rgba(56, 189, 248, 0.55) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(56, 189, 248, 0.3) !important;
}

/* Code Terminal Box inside Activity Showcase */
.activities-stream-container .activity-preview-box {
    background: rgba(5, 8, 18, 0.82) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.4);
}

.activities-stream-container .activity-preview-box:hover {
    border-color: rgba(56, 189, 248, 0.4) !important;
}

/* --------------------------------------------------------------------------
   STABLE ACTIVITY CARDS ON HOVER (NO 3D TILT, NO JITTER, NO SKEWING)
   -------------------------------------------------------------------------- */
.activity-slide-card,
.activities-stream-container .activity-slide-card,
.activity-grid-card {
    transform: none !important;
    perspective: none !important;
    transform-style: flat !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.activity-slide-card:hover,
.activities-stream-container .activity-slide-card:hover,
.activity-grid-card:hover {
    transform: none !important;
    border-color: rgba(56, 189, 248, 0.55) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 35px rgba(56, 189, 248, 0.25) !important;
}


/* ==========================================================================
   COMPREHENSIVE LIGHT THEME & DARK THEME ENGINE
   ========================================================================== */

[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-tertiary: #e2e8f0;
    --bg-glass: rgba(255, 255, 255, 0.90);
    --bg-glass-hover: rgba(255, 255, 255, 0.98);
    --border-glass: rgba(0, 0, 0, 0.10);
    --border-glow: rgba(37, 99, 235, 0.35);

    --text-main: #0f172a;
    --text-muted: #475569;
    --text-dim: #94a3b8;

    --accent-violet: #4338ca;
    --accent-cyan: #0284c7;
    --accent-purple: #7c3aed;
    --accent-emerald: #059669;

    --gradient-primary: linear-gradient(135deg, #0f172a 0%, #2563eb 50%, #4338ca 100%);
    --gradient-alt: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(37, 99, 235, 0.08) 0%, transparent 70%);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 30px rgba(37, 99, 235, 0.12);
}

[data-theme="light"] body,
body.light-theme {
    background-color: #f8fafc !important;
    color: #0f172a !important;
}

/* Light Theme Navigation Island Dock */
[data-theme="light"] .nav-container,
[data-theme="light"] .header-container {
    background: rgba(255, 255, 255, 0.88) !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .nav-link {
    color: #475569 !important;
}

[data-theme="light"] .nav-link:hover {
    color: #0f172a !important;
    background: rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .nav-link.active {
    color: #1d4ed8 !important;
    background: rgba(37, 99, 235, 0.10) !important;
}

[data-theme="light"] .nav-divider {
    background: rgba(0, 0, 0, 0.12) !important;
}

/* Light Theme Switcher Sun Button */
[data-theme="light"] .theme-toggle-btn {
    background: rgba(245, 158, 11, 0.15) !important;
    border: 1px solid rgba(245, 158, 11, 0.45) !important;
    color: #d97706 !important;
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.28) !important;
}

[data-theme="light"] .theme-toggle-btn:hover {
    background: rgba(245, 158, 11, 0.25) !important;
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.45) !important;
    transform: scale(1.08) !important;
}

/* Light Theme 3D Three.js Starfield Canvas */
[data-theme="light"] #three-canvas {
    opacity: 0.35 !important;
    filter: contrast(1.5) brightness(0.65) !important;
}

/* Light Theme Ambient Glow Orbs */
[data-theme="light"] .ambient-glow-backdrop {
    opacity: 0.35 !important;
    filter: blur(80px) !important;
}

/* Light Theme Hero Badges & Typography */
[data-theme="light"] .hero-badge,
[data-theme="light"] .badge-cyber,
[data-theme="light"] .section-header .subtitle {
    background: rgba(37, 99, 235, 0.08) !important;
    border: 1px solid rgba(37, 99, 235, 0.25) !important;
    color: #1d4ed8 !important;
}

[data-theme="light"] .hero-title,
[data-theme="light"] .section-header .title,
[data-theme="light"] h1, 
[data-theme="light"] h2, 
[data-theme="light"] h3, 
[data-theme="light"] h4 {
    color: #0f172a !important;
}

[data-theme="light"] .hero-lead-text,
[data-theme="light"] .section-lead-text,
[data-theme="light"] p {
    color: #334155 !important;
}

/* Primary CTA Button in Light Mode */
[data-theme="light"] .btn-explore-activities,
[data-theme="light"] .hero-cta-btn,
[data-theme="light"] .btn-primary {
    background: linear-gradient(135deg, #1e293b, #0f172a) !important;
    color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.2) !important;
}

[data-theme="light"] .btn-explore-activities:hover,
[data-theme="light"] .hero-cta-btn:hover,
[data-theme="light"] .btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35) !important;
}

/* Light Theme 3D Tech Cube */
[data-theme="light"] .cube-face {
    background: rgba(255, 255, 255, 0.94) !important;
    border: 1px solid rgba(37, 99, 235, 0.35) !important;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15) !important;
}

[data-theme="light"] .cube-face i {
    color: #2563eb !important;
}

[data-theme="light"] .cube-face span {
    color: #0f172a !important;
}

[data-theme="light"] .cube-face small {
    color: #2563eb !important;
}

[data-theme="light"] .cube-hint-badge {
    background: rgba(255, 255, 255, 0.90) !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    color: #475569 !important;
}

/* Light Theme Floating Side-Pan Radar Dock */
[data-theme="light"] .radar-capsule {
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12) !important;
}

[data-theme="light"] .radar-node {
    background: rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .radar-node-dot {
    background: #64748b !important;
}

[data-theme="light"] .radar-node.active {
    background: #2563eb !important;
    box-shadow: 0 0 16px rgba(37, 99, 235, 0.5) !important;
}

[data-theme="light"] .radar-node.active .radar-node-dot {
    background: #ffffff !important;
}

[data-theme="light"] .radar-rail {
    background: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .radar-arrow {
    color: #64748b !important;
}

/* Light Theme Cards Universal Overhaul */
[data-theme="light"] .about-card,
[data-theme="light"] .competency-card,
[data-theme="light"] .course-card,
[data-theme="light"] .coursework-card,
[data-theme="light"] .activity-slide-card,
[data-theme="light"] .activity-grid-card,
[data-theme="light"] .pillar-stat-card,
[data-theme="light"] .skill-category,
[data-theme="light"] .glass-card {
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(0, 0, 0, 0.09) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03) !important;
    color: #0f172a !important;
}

[data-theme="light"] .about-card:hover,
[data-theme="light"] .competency-card:hover,
[data-theme="light"] .course-card:hover,
[data-theme="light"] .activity-slide-card:hover,
[data-theme="light"] .activity-grid-card:hover,
[data-theme="light"] .pillar-stat-card:hover,
[data-theme="light"] .skill-category:hover {
    border-color: rgba(37, 99, 235, 0.35) !important;
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

/* Light Theme About Section Elements */
[data-theme="light"] .bio-metric-item,
[data-theme="light"] .identity-badge,
[data-theme="light"] .progression-step {
    background: rgba(241, 245, 249, 0.85) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .bio-metric-label {
    color: #64748b !important;
}

[data-theme="light"] .bio-metric-val {
    color: #0f172a !important;
}

[data-theme="light"] .pillar-stat-card .pillar-num,
[data-theme="light"] .pillar-stat-card .pillar-symbol {
    color: #0f172a !important;
}

[data-theme="light"] .pillar-stat-card .stat-title {
    color: #0f172a !important;
}

[data-theme="light"] .pillar-stat-card .stat-title i {
    color: #2563eb !important;
}

[data-theme="light"] .pillar-stat-card .stat-desc {
    color: #475569 !important;
}

/* Light Theme Academics Section Elements */
[data-theme="light"] .course-card h3 {
    color: #0f172a !important;
}

[data-theme="light"] .course-card .course-desc {
    color: #475569 !important;
}

[data-theme="light"] .course-card .course-score {
    color: #059669 !important;
}

[data-theme="light"] .course-card .course-icon {
    background: rgba(37, 99, 235, 0.08) !important;
    color: #2563eb !important;
}

[data-theme="light"] .course-badge.ap {
    background: rgba(37, 99, 235, 0.1) !important;
    color: #2563eb !important;
    border-color: rgba(37, 99, 235, 0.25) !important;
}

[data-theme="light"] .skill-category h4 {
    color: #0f172a !important;
}

[data-theme="light"] .skill-info span {
    color: #334155 !important;
}

[data-theme="light"] .skill-bar {
    background: rgba(0, 0, 0, 0.08) !important;
}

/* Light Theme Subject Filter Tabs */
[data-theme="light"] .subject-tab {
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    color: #334155 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .subject-tab i {
    color: #2563eb !important;
}

[data-theme="light"] .subject-tab.active {
    background: #0f172a !important;
    border-color: #0f172a !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25) !important;
}

[data-theme="light"] .subject-tab.active i {
    color: #ffffff !important;
}

/* Light Theme View Controls & Search */
[data-theme="light"] .view-btn {
    background: rgba(255, 255, 255, 0.90) !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    color: #475569 !important;
}

[data-theme="light"] .view-btn.active {
    background: #0f172a !important;
    border-color: #0f172a !important;
    color: #ffffff !important;
}

[data-theme="light"] .activity-search-input {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    color: #0f172a !important;
}

[data-theme="light"] .activity-search-box i {
    color: #64748b !important;
}

/* Light Theme Activity Card Content */
[data-theme="light"] .activity-title,
[data-theme="light"] .activity-slide-title,
[data-theme="light"] .activity-grid-title {
    color: #0f172a !important;
}

[data-theme="light"] .activity-meta-line,
[data-theme="light"] .activity-meta-line span {
    color: #64748b !important;
}

[data-theme="light"] .activity-req-box {
    background: rgba(241, 245, 249, 0.90) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #1e293b !important;
}

[data-theme="light"] .activity-req-item {
    color: #334155 !important;
}

[data-theme="light"] .activity-tech-badge,
[data-theme="light"] .activity-tag,
[data-theme="light"] .meta-pill {
    background: rgba(241, 245, 249, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #334155 !important;
}

[data-theme="light"] .activity-view-btn,
[data-theme="light"] .activity-card-action-btn {
    background: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
}

[data-theme="light"] .slider-arrow {
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    color: #0f172a !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .slider-dot {
    background: rgba(0, 0, 0, 0.18) !important;
}

[data-theme="light"] .slider-dot.active {
    background: #2563eb !important;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.4) !important;
}

/* Light Theme Modal & Toasts */
[data-theme="light"] .modal-overlay {
    background: rgba(15, 23, 42, 0.55) !important;
}

[data-theme="light"] .modal-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.20) !important;
    color: #0f172a !important;
}

[data-theme="light"] .modal-close {
    background: rgba(0, 0, 0, 0.06) !important;
    color: #0f172a !important;
}

[data-theme="light"] .toast {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    color: #0f172a !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
}

/* Light Theme Footer */
[data-theme="light"] .footer {
    background: #f1f5f9 !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #64748b !important;
}

/* Light Theme Section Dividers */
[data-theme="light"] .cyber-section-divider .divider-line {
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.15), transparent) !important;
}

[data-theme="light"] .divider-center-badge {
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    color: #334155 !important;
}

[data-theme="light"] .divider-center-badge i {
    color: #2563eb !important;
}

/* Light Theme Activities Page Specific */
[data-theme="light"] .stat-pill {
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(0, 0, 0, 0.10) !important;
    color: #1e293b !important;
}

[data-theme="light"] .activities-hero-title {
    color: #0f172a !important;
}

[data-theme="light"] .activities-hero-sub {
    color: #475569 !important;
}


/* ==========================================================================
   KINETIC SCROLL ANIMATIONS ENGINE
   ========================================================================== */
.hero-content, .hero-visual,
.intro-bio-card, .competency-card,
.section-header, .section-header .title-bar,
.about-pillars-grid .pillar-stat-card,
.course-card, .skill-category,
.subject-tabs, .activities-slider-container, .slider-wrapper,
.cyber-section-divider, .divider-center-badge, .divider-line,
.activities-stats-strip .stat-pill, .activities-toolbar {
    will-change: transform;
    transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.skill-progress {
    will-change: width, box-shadow;
    transition: width 1.1s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease !important;
}

.skill-progress.anim-active {
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.65) !important;
}

.section-header .title-bar {
    width: 50px;
    transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}

.section-header.scrolled-active .title-bar {
    width: 100px;
}

.cyber-section-divider .divider-center-badge {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.cyber-section-divider.divider-active .divider-center-badge {
    border-color: #38bdf8 !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.9), 0 0 24px rgba(56, 189, 248, 0.45) !important;
    transform: scale(1.06);
}

.cyber-section-divider .divider-line {
    transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease;
}

.cyber-section-divider.divider-active .divider-line {
    opacity: 0.95;
    filter: brightness(1.3);
}
