/* ==========================================================================
   PREMIUM LIQUID GLASS PORTFOLIO - DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES & CORE DEFINITIONS
   -------------------------------------------------------------------------- */
:root {
    /* Colors - Dark Theme (Midnight Space) */
    --bg-dark: #070913;
    --panel-dark: rgba(13, 17, 34, 0.7);
    --panel-dark-border: rgba(99, 102, 241, 0.15);
    --text-dark: #f8fafc;
    --text-dark-muted: #94a3b8;
    
    /* Colors - Light Theme (Zen Alabaster) */
    --bg-light: #f6f8fd;
    --panel-light: rgba(255, 255, 255, 0.75);
    --panel-light-border: rgba(37, 99, 235, 0.08);
    --text-light: #0f172a;
    --text-light-muted: #64748b;

    /* Accents & Gradients */
    --accent-indigo: #6366f1;
    --accent-purple: #a855f7;
    --accent-cyan: #06b6d4;
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-amber: #f59e0b;

    --gradient-purple: linear-gradient(135deg, #a855f7, #6366f1);
    --gradient-cyan: linear-gradient(135deg, #06b6d4, #3b82f6);
    --gradient-indigo: linear-gradient(135deg, #6366f1, #4f46e5);
    --gradient-rainbow: linear-gradient(90deg, #6366f1, #a855f7, #ec4899, #06b6d4, #6366f1);

    /* Liquid Glass tokens */
    --glass-blur: 16px;
    --glass-shadow-dark: 0 30px 60px -15px rgba(0, 0, 0, 0.5), 
                          0 0 50px -10px rgba(99, 102, 241, 0.15);
    --glass-shadow-light: 0 30px 60px -15px rgba(37, 99, 235, 0.06), 
                           0 0 40px -10px rgba(37, 99, 235, 0.04);
    
    --radius-lg: 32px;
    --radius-md: 24px;
    --radius-sm: 16px;
    
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-snappy: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --------------------------------------------------------------------------
   2. INITIAL SETUPS & GLOBAL RESET
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-light);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-light);
    background-color: var(--bg-light);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

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

ul {
    list-style: none;
}

/* --------------------------------------------------------------------------
   3. BACKGROUND AMBIENCE & SPACE EFFECTS
   -------------------------------------------------------------------------- */
.space-background {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, var(--bg-light) 0%, #e2e8f0 100%);
    overflow: hidden;
}

.stars, .twinkle {
    display: none;
}

.stars {
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #fff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 150px 80px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 300px 250px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 450px 120px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 600px 350px, #fff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 750px 220px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 900px 480px, #fff, rgba(0,0,0,0));
    background-size: 550px 550px;
    opacity: 0.25;
}

.twinkle {
    background-image: 
        radial-gradient(1.5px 1.5px at 70px 200px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 280px 140px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 520px 400px, #fff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 810px 290px, #fff, rgba(0,0,0,0));
    background-size: 400px 400px;
    animation: twinkle-pulse 8s infinite ease-in-out;
    opacity: 0.15;
}

.ambient-glow {
    position: fixed;
    width: 45vw;
    height: 45vw;
    border-radius: 50%;
    pointer-events: none;
    z-index: -2;
    filter: blur(120px);
    opacity: 0.25;
}

.glow-1 {
    top: -10vw;
    right: -10vw;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.45), transparent 70%);
    animation: floating-glow 25s infinite alternate ease-in-out;
}

.glow-2 {
    bottom: -15vw;
    left: -10vw;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.35), transparent 70%);
    animation: floating-glow 30s infinite alternate-reverse ease-in-out;
    animation-delay: -5s;
}

.glow-3 {
    top: 30vh;
    left: 40vw;
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2), transparent 70%);
    animation: floating-glow 20s infinite alternate ease-in-out;
    animation-delay: -10s;
}

/* --------------------------------------------------------------------------
   4. NAVIGATION - DESKTOP SIDEBAR
   -------------------------------------------------------------------------- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 110px;
    background: rgba(255, 255, 255, 0.7);
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(24px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 0;
    transition: var(--transition-smooth);
}

.sidebar:hover {
    width: 140px;
}

.sidebar-logo a {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.05em;
    font-family: 'Syne', sans-serif;
}

.sidebar-logo span {
    color: var(--accent-indigo);
    animation: logo-glow 3s infinite alternate;
}

.sidebar-menu ul {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.sidebar-menu li {
    position: relative;
}

.sidebar-menu a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    color: #475569;
}

.sidebar-menu .num {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    font-family: monospace;
    opacity: 0.8;
}

.sidebar-menu .label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0;
    transform: translateY(5px);
    transition: var(--transition-snappy);
    position: absolute;
    bottom: -15px;
    white-space: nowrap;
}

.sidebar:hover .sidebar-menu .label {
    opacity: 1;
    transform: translateY(0);
}

.sidebar-menu li.active a,
.sidebar-menu li:hover a {
    color: #0f172a;
}

.sidebar-menu li.active::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 12px;
    background: var(--gradient-purple);
    border-radius: 0 4px 4px 0;
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.social-icon {
    color: #475569;
}

.social-icon:hover {
    color: #0f172a;
    transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   5. NAVIGATION - MOBILE TOP NAV
   -------------------------------------------------------------------------- */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(16px);
    z-index: 100;
    padding: 0 1.5rem;
    align-items: center;
    justify-content: space-between;
}

.mobile-logo {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-light);
}

.mobile-logo span {
    color: var(--accent-indigo);
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
}

.mobile-menu-overlay {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    z-index: 99;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.mobile-menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
}

.mobile-menu-links a {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light-muted);
}

.mobile-menu-links a:hover {
    color: var(--text-light);
}

/* --------------------------------------------------------------------------
   6. BENTO GRID CONTAINER & PANEL SYSTEM
   -------------------------------------------------------------------------- */
.main-content {
    margin-left: 110px;
    padding: 2.5rem;
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.home .main-content {
    margin-left: 0;
    padding: 0;
    display: block;
    min-height: auto;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 2rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Base Bento Panel */
.bento-panel {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    transition: var(--transition-smooth);
}

.panel-inner {
    padding: 3rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Light Theme Panels */
.light-theme {
    background: var(--panel-light);
    border: 1px solid var(--panel-light-border);
    color: var(--text-light);
    box-shadow: var(--glass-shadow-light);
    backdrop-filter: blur(var(--glass-blur));
}

.light-theme::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.7), rgba(37,99,235,0.05));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Dark Theme Panels */
.dark-theme {
    background: var(--panel-dark);
    border: 1px solid var(--panel-dark-border);
    color: var(--text-dark);
    box-shadow: var(--glass-shadow-dark);
    backdrop-filter: blur(var(--glass-blur));
}

.dark-theme::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(99,102,241,0.03));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Bento Hover Card Tilting effect triggers */
.bento-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.15), 
                0 0 60px -5px rgba(99, 102, 241, 0.15);
}

.dark-theme:hover {
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.25), 
                0 0 60px -5px rgba(99, 102, 241, 0.25);
}

.light-theme:hover {
    box-shadow: 0 40px 80px -20px rgba(37, 99, 235, 0.1), 
                0 0 50px -5px rgba(37, 99, 235, 0.08);
}

/* Bento Sizing / Layout mapping */
.hero-panel {
    grid-column: span 7;
    min-height: 520px;
}

.journey-panel {
    grid-column: span 5;
    min-height: 520px;
}

.projects-panel {
    grid-column: span 7;
    min-height: 480px;
}

.philosophy-panel {
    grid-column: span 5;
    min-height: 480px;
}

.skills-panel {
    grid-column: span 5;
    min-height: 380px;
}

.exploring-panel {
    grid-column: span 3;
    min-height: 380px;
}

.connect-panel {
    grid-column: span 4;
    min-height: 380px;
}

/* --------------------------------------------------------------------------
   7. FULLSCREEN HERO SECTION (Light/Space theme overlay, matching mockup image)
   -------------------------------------------------------------------------- */
.hero-fullscreen {
    min-height: 100vh;
    width: 100%;
    position: relative;
    background-color: #dae4f5;
    background-image: url('/static/hero_landscape_portal.png');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: auto 100%;
    display: flex;
    align-items: center;
    padding-left: 140px; /* offset sidebar */
    padding-right: 4rem;
    overflow: hidden;
}

/* Covers baked-in elements from mockup on the left and creates soft transition to portal */
.hero-fog-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, 
        #dae4f5 0%, 
        #dae4f5 160px, 
        rgba(218, 228, 245, 0.98) 25%, 
        rgba(218, 228, 245, 0.88) 48%, 
        rgba(218, 228, 245, 0) 82%
    );
    z-index: 1;
    pointer-events: none;
}

/* Animated moving fog clouds */
.hero-moving-fog {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1000 1000" xmlns="http://www.w3.org/2000/svg"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.012" numOctaves="3" result="noise"/><feColorMatrix type="matrix" values="1 0 0 0 1  0 1 0 0 1  0 0 1 0 1  0 0 0 0.12 0" in="noise" result="colored"/><feGaussianBlur stdDeviation="12" in="colored"/></filter><rect width="1000" height="1000" filter="url(%23noise)" fill="white"/></svg>') repeat-x;
    opacity: 0.35;
    z-index: 2;
    pointer-events: none;
    animation: drift-fog 75s linear infinite;
    mix-blend-mode: overlay;
}

@keyframes drift-fog {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

.hero-fullscreen-inner {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-left-content {
    max-width: 620px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.15);
    color: #4f46e5;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.05);
}

.badge-sparkle {
    font-size: 0.9rem;
    animation: sparkle-pulse-purple 2s infinite alternate;
}

.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.8rem, 5vw, 4.45rem);
    font-weight: 700;
    color: #0f172a;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.gradient-text-purple {
    background: linear-gradient(135deg, #4f46e5 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 2.2rem;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 3rem;
}

.btn-pill-dark {
    background: #0f172a;
    color: #fff;
    padding: 0.95rem 2rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
    transition: var(--transition-snappy);
}

.btn-pill-dark:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.28);
}

.btn-arrow {
    transition: var(--transition-snappy);
}

.btn-pill-dark:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-pill-white-glass {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: #0f172a;
    padding: 0.95rem 2rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.08);
    transition: var(--transition-snappy);
}

.btn-pill-white-glass:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.2);
}

.play-btn-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-dot {
    width: 5px;
    height: 5px;
    background: #4f46e5;
    border-radius: 50%;
}

/* Glassmorphic Metrics Capsule (Single horizontal capsule layout) */
.metrics-capsule-glass {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 28px;
    padding: 1.2rem 2.5rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
    gap: 2rem;
}

.metric-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.metric-val {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.metric-lbl {
    font-size: 0.68rem;
    font-weight: 800;
    color: #5d6b82;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.metric-divider {
    width: 1px;
    height: 32px;
    background: rgba(0, 0, 0, 0.08);
}

/* Scroll indicator at the bottom */
.hero-scroll-prompt {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    opacity: 0.6;
    z-index: 5;
    color: #0f172a;
}

.scroll-mouse-icon {
    width: 20px;
    height: 30px;
    border: 2px solid #0f172a;
    border-radius: 20px;
    position: relative;
}

.scroll-mouse-wheel {
    width: 4px;
    height: 6px;
    background-color: #0f172a;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: mouse-scroll 1.6s infinite ease-in-out;
}

.scroll-prompt-text {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* Wrapper for bento grid below the fold */
.bento-grid-wrapper {
    padding: 5rem 3rem 5rem 140px; /* offset sidebar */
    background-color: var(--bg-light);
}

@keyframes sparkle-pulse-purple {
    0% { transform: scale(0.9); opacity: 0.7; filter: drop-shadow(0 0 2px rgba(168, 85, 247, 0.5)); }
    100% { transform: scale(1.15); opacity: 1; filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.9)); }
}

/* --------------------------------------------------------------------------
   8. VISUALS - COSMIC PORTAL GRAPHIC (DEPRECATED ON MAIN HERO)
   -------------------------------------------------------------------------- */
.hero-visual {
    display: none;
}

.steps-path {
    animation: glow-pulse 3s infinite alternate;
}

/* --------------------------------------------------------------------------
   9. SECTION 2: JOURNEY PANEL STYLING (Dark)
   -------------------------------------------------------------------------- */
.panel-eyebrow {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-indigo);
    display: block;
    margin-bottom: 0.8rem;
}

.panel-title {
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.highlight-purple {
    background: linear-gradient(135deg, var(--accent-purple) 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.timeline-container {
    position: relative;
    padding-left: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.timeline-line {
    position: absolute;
    left: 4px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: rgba(255, 255, 255, 0.05);
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%; /* Will animate in JS */
    background: linear-gradient(to bottom, var(--accent-purple), var(--accent-indigo));
    border-radius: 2px;
    box-shadow: 0 0 10px var(--accent-indigo);
}

.timeline-item-bento {
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -28px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--accent-indigo);
    border: 2px solid var(--bg-dark);
    box-shadow: 0 0 8px var(--accent-indigo);
    z-index: 2;
    transition: var(--transition-snappy);
}

.timeline-item-bento:hover .timeline-dot {
    background-color: var(--accent-purple);
    box-shadow: 0 0 12px var(--accent-purple);
    transform: scale(1.2);
}

.timeline-year {
    font-family: monospace;
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--accent-purple);
    display: block;
    margin-bottom: 0.2rem;
}

.timeline-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.15rem;
}

.timeline-desc {
    font-size: 0.85rem;
    color: var(--text-dark-muted);
}

/* --------------------------------------------------------------------------
   10. VISUALS - 3D CRYSTAL & PEDESTAL
   -------------------------------------------------------------------------- */
.journey-panel .panel-inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    grid-gap: 2rem;
    align-items: center;
}

.crystal-stage {
    position: relative;
    width: 100%;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pedestal-glowing {
    position: absolute;
    bottom: 25px;
    width: 130px;
    height: 35px;
    transform: rotateX(65deg);
    transform-style: preserve-3d;
}

.pedestal-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid rgba(168, 85, 247, 0.4);
    box-shadow: 
        0 0 20px rgba(168, 85, 247, 0.4),
        inset 0 0 20px rgba(168, 85, 247, 0.3);
}

.pedestal-ring.ring-1 {
    animation: ring-pulse-up 3s infinite ease-out;
}

.pedestal-ring.ring-2 {
    transform: translateZ(-10px);
    border-color: rgba(99, 102, 241, 0.3);
    border-width: 1.5px;
}

.pedestal-core {
    position: absolute;
    inset: 15px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.8) 0%, transparent 70%);
    filter: blur(5px);
}

.crystal-light-beam {
    position: absolute;
    bottom: 40px;
    width: 60px;
    height: 180px;
    background: linear-gradient(to top, rgba(168, 85, 247, 0.25), transparent);
    clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
    pointer-events: none;
}

/* CSS 3D Octahedron */
.octahedron-wrapper {
    perspective: 800px;
    position: absolute;
    bottom: 80px;
    width: 100px;
    height: 160px;
}

.octahedron {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate-octahedron 14s infinite linear;
}

.side {
    position: absolute;
    left: 10px;
    width: 0;
    height: 0;
    border-style: solid;
    opacity: 0.65;
    transform-origin: 50% 100%;
    backdrop-filter: blur(2px);
}

/* Top Pyramid */
.side-1, .side-2, .side-3, .side-4 {
    top: 0;
    border-width: 0 40px 80px 40px;
    border-color: transparent transparent rgba(168, 85, 247, 0.3) transparent;
}

.side-1 { transform: rotateY(0deg) translateZ(0.2px) rotateX(30deg); border-bottom-color: rgba(168, 85, 247, 0.35); }
.side-2 { transform: rotateY(90deg) translateZ(0.2px) rotateX(30deg); border-bottom-color: rgba(139, 92, 246, 0.3); }
.side-3 { transform: rotateY(180deg) translateZ(0.2px) rotateX(30deg); border-bottom-color: rgba(99, 102, 241, 0.35); }
.side-4 { transform: rotateY(270deg) translateZ(0.2px) rotateX(30deg); border-bottom-color: rgba(192, 132, 252, 0.3); }

/* Bottom Pyramid */
.side-5, .side-6, .side-7, .side-8 {
    top: 80px;
    border-width: 80px 40px 0 40px;
    border-color: rgba(168, 85, 247, 0.3) transparent transparent transparent;
}

.side-5 { transform: rotateY(0deg) translateZ(0.2px) rotateX(-30deg); border-top-color: rgba(168, 85, 247, 0.35); }
.side-6 { transform: rotateY(90deg) translateZ(0.2px) rotateX(-30deg); border-top-color: rgba(139, 92, 246, 0.3); }
.side-7 { transform: rotateY(180deg) translateZ(0.2px) rotateX(-30deg); border-top-color: rgba(99, 102, 241, 0.35); }
.side-8 { transform: rotateY(270deg) translateZ(0.2px) rotateX(-30deg); border-top-color: rgba(192, 132, 252, 0.3); }

/* Shiny specular highlighting on sides */
.side::after {
    content: '';
    position: absolute;
    top: 0; left: -40px; width: 80px; height: 80px;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, transparent 60%);
    pointer-events: none;
}

.sparkles-container .sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 0 10px #fff, 0 0 20px var(--accent-purple);
    animation: sparkle-float 5s infinite ease-in-out;
}

.sp-1 { top: 20%; left: 20%; animation-delay: 0s; }
.sp-2 { top: 45%; right: 15%; animation-delay: 1.5s; }
.sp-3 { bottom: 30%; left: 30%; animation-delay: 3s; }
.sp-4 { top: 60%; left: 10%; animation-delay: 0.5s; }

/* --------------------------------------------------------------------------
   11. SECTION 3: FEATURED PROJECTS PANEL STYLING (Dark)
   -------------------------------------------------------------------------- */
.projects-panel .panel-inner {
    justify-content: flex-start;
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    width: 100%;
}

.highlight-cyan {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 3px;
    border-bottom: 1.5px solid transparent;
}

.view-all-link:hover {
    border-bottom-color: var(--accent-cyan);
}

.view-all-link svg {
    transition: var(--transition-snappy);
}

.view-all-link:hover svg {
    transform: translateX(3px);
}

.projects-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 0.5rem 0;
}

.projects-collage {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.projects-collage .project-card-bento {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.projects-slider-controls {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.slider-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-dark-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    outline: none;
    padding: 0;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.15);
}

.slider-arrow:active {
    transform: translateY(0);
}

.slider-arrow svg {
    transition: transform 0.2s ease;
}

.slider-arrow.btn-prev:hover svg {
    transform: translateX(-2px);
}

.slider-arrow.btn-next:hover svg {
    transform: translateX(2px);
}

/* Glassmorphic Project Card */
.project-card-bento {
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.project-card-bento:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-8px);
}

.card-visual {
    width: 100%;
    height: 140px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.card-svg {
    width: 100%;
    height: 100%;
}

.card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-tag {
    align-self: flex-start;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    margin-bottom: 0.8rem;
}

.tag-purple {
    background: rgba(168, 85, 247, 0.1);
    color: var(--accent-purple);
    border: 0.5px solid rgba(168, 85, 247, 0.2);
}

.tag-green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
    border: 0.5px solid rgba(16, 185, 129, 0.2);
}

.tag-blue {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
    border: 0.5px solid rgba(59, 130, 246, 0.2);
}

.project-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.project-desc {
    font-size: 0.82rem;
    color: var(--text-dark-muted);
    line-height: 1.5;
    margin-bottom: 1.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.8rem;
    margin-top: auto;
}

.footer-stat {
    font-family: monospace;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-dark-muted);
}

.action-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-snappy);
    color: var(--text-dark);
}

.project-card-bento:hover .action-arrow {
    background: var(--gradient-purple);
    transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   12. SECTION 4: PHILOSOPHY PANEL STYLING (Light)
   -------------------------------------------------------------------------- */
.philosophy-panel .panel-inner.thoughts-layout {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    grid-gap: 0;
    align-items: stretch;
    padding: 0;
    height: 100%;
}

.thoughts-left {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.thoughts-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0;
}

.thoughts-quote-text {
    font-family: 'Caveat', cursive;
    font-size: 2.1rem;
    line-height: 1.3;
    color: #1e293b;
    margin: 0.5rem 0;
    font-weight: 500;
}

.signature-line {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 0.5rem;
}

.handwritten-signature-img {
    height: 55px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    opacity: 0.95;
    transform: rotate(-1deg);
    transition: transform 0.3s ease;
}

.handwritten-signature-img:hover {
    transform: rotate(-3deg) scale(1.05);
}

.thoughts-action {
    margin-top: 1rem;
}

.btn-read-thoughts {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 3px;
    border-bottom: 1.5px solid transparent;
    transition: all 0.3s ease;
}

.btn-read-thoughts:hover {
    border-bottom-color: var(--accent-blue);
}

.btn-read-thoughts .btn-arrow-thin {
    transition: transform 0.2s ease;
}

.btn-read-thoughts:hover .btn-arrow-thin {
    transform: translateX(3px);
}

.thoughts-right-visual {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-left: 1px solid var(--panel-light-border);
}

.thoughts-bg-image {
    width: 100%;
    height: 100%;
    background-image: url('/static/latest_thought_bg.png');
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
}

.philosophy-panel:hover .thoughts-bg-image {
    transform: scale(1.03);
}

.dark-theme.philosophy-panel .thoughts-title {
    color: var(--text-dark);
}

.dark-theme.philosophy-panel .thoughts-quote-text {
    color: #e2e8f0;
}

.dark-theme.philosophy-panel .handwritten-signature-img {
    filter: invert(1) brightness(1.2);
}

.dark-theme.philosophy-panel .thoughts-right-visual {
    border-left: 1px solid var(--panel-dark-border);
}

/* Zen Enso circle visual */
.enso-container {
    position: relative;
    width: 100%;
    height: 260px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.enso-svg {
    width: 90%;
    height: 90%;
}

.enso-path {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: draw-enso 4s forwards cubic-bezier(0.4, 0, 0.2, 1);
    animation-delay: 0.5s;
}

.vertical-philosophy-text {
    position: absolute;
    right: 5px;
    top: 15px;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.char-seal {
    writing-mode: vertical-rl;
    font-family: serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-light-muted);
    border: 1px solid rgba(0,0,0,0.06);
    padding: 0.4rem 0.2rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

/* --------------------------------------------------------------------------
   13. SECTION 5: SKILLS & EXPERTISE PANEL STYLING (Dark)
   -------------------------------------------------------------------------- */
.skills-panel .panel-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 2rem;
    align-items: center;
}

.highlight-blue {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-indigo) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.skills-desc {
    font-size: 0.86rem;
    color: var(--text-dark-muted);
    margin-bottom: 1.5rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.skill-tag-glow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.76rem;
    font-weight: 700;
    transition: var(--transition-snappy);
}

.skill-tag-glow:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.glow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.glow-dot.cv { background-color: var(--accent-purple); box-shadow: 0 0 8px var(--accent-purple); }
.glow-dot.dl { background-color: var(--accent-blue); box-shadow: 0 0 8px var(--accent-blue); }
.glow-dot.genai { background-color: var(--accent-green); box-shadow: 0 0 8px var(--accent-green); }
.glow-dot.nlp { background-color: var(--accent-amber); box-shadow: 0 0 8px var(--accent-amber); }
.glow-dot.mlops { background-color: #ec4899; box-shadow: 0 0 8px #ec4899; }
.glow-dot.ds { background-color: var(--accent-cyan); box-shadow: 0 0 8px var(--accent-cyan); }

/* Skills Interactive Network SVG Graphic */
.network-container {
    width: 100%;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.network-svg {
    width: 95%;
    height: 95%;
}

.core-orbit {
    animation: ring-spin-cw 20s linear infinite;
    transform-origin: 0 0;
}

.skill-node {
    cursor: pointer;
    transition: var(--transition-snappy);
}

.skill-node:hover {
    transform: scale(1.2);
}

/* --------------------------------------------------------------------------
   14. SECTION 6: CURRENTLY EXPLORING PANEL STYLING (Dark)
   -------------------------------------------------------------------------- */
.exploring-panel .panel-inner {
    justify-content: space-between;
    height: 100%;
}

.exploring-title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.explore-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent-indigo);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: auto;
}

.explore-link:hover {
    color: var(--accent-purple);
}

.explore-link svg {
    transition: var(--transition-snappy);
}

.explore-link:hover svg {
    transform: translateX(3px);
}

/* Saturn planet animation */
.saturn-stage {
    position: relative;
    width: 100%;
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.saturn-glow {
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
    filter: blur(5px);
}

.saturn-body {
    width: 50px;
    height: 50px;
    background: radial-gradient(circle at 30% 30%, #818cf8 0%, #312e81 75%, #0d0b25 100%);
    border-radius: 50%;
    z-index: 2;
    box-shadow: inset -5px -5px 15px rgba(0,0,0,0.8), 0 0 20px rgba(129, 140, 248, 0.2);
}

.saturn-rings {
    position: absolute;
    width: 100px;
    height: 24px;
    border-radius: 50%;
    border: 6px solid rgba(168, 85, 247, 0.3);
    border-top: 6px solid transparent; /* creates the depth cut */
    transform: rotate(-15deg);
    z-index: 3;
}

.saturn-rings::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.saturn-moons .moon {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 6px #fff;
}

.saturn-moons .m-1 {
    top: 20%;
    left: 20%;
    animation: moon-orbit-1 10s infinite linear;
}

.saturn-moons .m-2 {
    bottom: 25%;
    right: 25%;
    animation: moon-orbit-2 15s infinite linear;
}

/* --------------------------------------------------------------------------
   15. SECTION 7: LET'S CONNECT PANEL STYLING (Dark)
   -------------------------------------------------------------------------- */
.highlight-indigo {
    background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 1.2rem 0;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.85rem;
    color: var(--text-dark-muted);
}

.detail-icon {
    color: var(--accent-indigo);
}

.contact-card-form {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.4rem;
    border-radius: 999px;
    width: 100%;
    max-width: 320px;
    margin-top: 1.2rem;
    transition: var(--transition-snappy);
}

.contact-card-form:focus-within {
    border-color: var(--accent-indigo);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.connect-input {
    background: none;
    border: none;
    padding: 0.6rem 1rem;
    color: var(--text-dark);
    font-size: 0.85rem;
    flex-grow: 1;
    font-family: inherit;
}

.connect-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.connect-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-indigo);
    border: none;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-snappy);
}

.connect-btn:hover {
    transform: scale(1.05);
}

/* Chrome metal sphere visual */
.chrome-sphere-container {
    width: 100%;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chrome-sphere-svg {
    width: 90%;
    height: 90%;
}

.ribbon-path {
    transform-origin: 100px 100px;
}

.ribbon-1 {
    animation: ribbon-spin-cw 12s infinite linear;
}

.ribbon-2 {
    animation: ribbon-spin-ccw 18s infinite linear;
}

.ribbon-3 {
    animation: ribbon-spin-cw 25s infinite linear;
}

/* --------------------------------------------------------------------------
   16. GENERAL STANDALONE PAGES COMPATIBILITY
   -------------------------------------------------------------------------- */
.container {
    width: min(1200px, calc(100% - 3rem));
    margin: 0 auto;
    padding: 4rem 0;
}

.eyebrow {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-indigo);
    margin-bottom: 0.5rem;
}

.section-desc {
    color: var(--text-dark-muted);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
}

/* Shared components (Tags / Loading) */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags span {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-dark-muted);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    grid-gap: 1.5rem;
}

.project-card {
    border-radius: var(--radius-md);
    background: var(--panel-dark);
    border: 1px solid var(--panel-dark-border);
    backdrop-filter: blur(var(--glass-blur));
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.project-card p {
    font-size: 0.88rem;
    color: var(--text-dark-muted);
    margin-bottom: 1.5rem;
}

.project-links {
    margin-top: 1.5rem;
}

.project-links a {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-cyan);
}

.loading {
    color: var(--text-dark-muted);
    grid-column: 1/-1;
    text-align: center;
    padding: 3rem 0;
}

/* Standalone timeline page */
.timeline {
    position: relative;
    padding-left: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: rgba(0, 0, 0, 0.08);
}

.timeline-item {
    position: relative;
}

.timeline-date {
    font-family: monospace;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent-purple);
    margin-bottom: 0.4rem;
}

.timeline-content {
    background: var(--panel-dark);
    border: 1px solid var(--panel-dark-border);
    backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--radius-md);
    padding: 2rem;
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
    color: var(--text-dark);
}

.timeline-content h4 {
    font-size: 0.9rem;
    color: var(--accent-indigo);
    font-weight: 700;
    margin-bottom: 1rem;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-dark-muted);
    margin-bottom: 1.2rem;
}

/* Standalone contact page */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 2rem;
}

.contact-card {
    background: var(--panel-dark);
    border: 1px solid var(--panel-dark-border);
    backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--radius-md);
    padding: 2.5rem;
    text-align: center;
}

.contact-card .card-index {
    display: inline-block;
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--accent-purple);
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.contact-card p {
    font-size: 0.88rem;
    color: var(--text-dark-muted);
    margin-bottom: 2rem;
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dark);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.3);
}

/* --------------------------------------------------------------------------
   17. PORTFOLIO FOOTER
   -------------------------------------------------------------------------- */
.portfolio-footer {
    margin-left: 110px;
    padding: 3rem 2.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.4);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light-muted);
    font-size: 0.85rem;
}

.footer-content p {
    font-weight: 700;
}

.footer-content .copyright {
    font-weight: 400;
    opacity: 0.7;
}

/* --------------------------------------------------------------------------
   18. ANIMATION KEYFRAMES
   -------------------------------------------------------------------------- */
@keyframes badge-pulse {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(2.2); opacity: 0; }
}

@keyframes mouse-scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    50% { transform: translate(-50%, 6px); opacity: 0.3; }
    100% { transform: translate(-50%, 0); opacity: 1; }
}

@keyframes twinkle-pulse {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.35; }
}

@keyframes floating-glow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(4vw, -4vw) scale(1.1); }
}

@keyframes floating-crystal {
    0% { transform: translateY(0); }
    100% { transform: translateY(-12px); }
}

@keyframes fog-pulse {
    0% { opacity: 0.2; }
    100% { opacity: 0.5; }
}

@keyframes ring-spin-cw {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes ring-spin-ccw {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

@keyframes glow-pulse {
    0% { opacity: 0.4; stroke: rgba(99, 102, 241, 0.4); }
    100% { opacity: 0.8; stroke: rgba(168, 85, 247, 0.8); }
}

@keyframes ring-pulse-up {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}

@keyframes rotate-octahedron {
    0% { transform: rotateY(0deg) rotateX(15deg); }
    50% { transform: rotateY(180deg) rotateX(-15deg); }
    100% { transform: rotateY(360deg) rotateX(15deg); }
}

@keyframes sparkle-float {
    0%, 100% { transform: translateY(0) scale(0.8); opacity: 0.3; }
    50% { transform: translateY(-10px) scale(1.2); opacity: 0.8; }
}

@keyframes draw-enso {
    to { stroke-dashoffset: 0; }
}

@keyframes ribbon-spin-cw {
    0% { transform: rotate(0deg) rotateX(0deg); }
    100% { transform: rotate(360deg) rotateX(360deg); }
}

@keyframes ribbon-spin-ccw {
    0% { transform: rotate(360deg) rotateY(0deg); }
    100% { transform: rotate(0deg) rotateY(360deg); }
}

@keyframes logo-glow {
    0% { text-shadow: 0 0 10px rgba(99, 102, 241, 0.5); }
    100% { text-shadow: 0 0 25px rgba(168, 85, 247, 0.9), 0 0 5px #fff; }
}

@keyframes moon-orbit-1 {
    0% { transform: rotate(0deg) translateX(40px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(40px) rotate(-360deg); }
}

@keyframes moon-orbit-2 {
    0% { transform: rotate(360deg) translateX(60px) rotate(-360deg); }
    100% { transform: rotate(0deg) translateX(60px) rotate(0deg); }
}

/* --------------------------------------------------------------------------
   19. RESPONSIVE MEDIA QUERIES (COLLAPSES TO MULTI-ROW ON TABLET/MOBILE)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
    .bento-grid {
        grid-gap: 1.5rem;
    }
    
    .hero-panel { grid-column: span 12; min-height: auto; }
    .journey-panel { grid-column: span 12; min-height: auto; }
    .projects-panel { grid-column: span 12; min-height: auto; }
    .philosophy-panel { grid-column: span 12; min-height: auto; }
    .skills-panel { grid-column: span 6; min-height: auto; }
    .exploring-panel { grid-column: span 6; min-height: auto; }
    .connect-panel { grid-column: span 12; min-height: auto; }
    

}

@media (max-width: 991px) {
    .sidebar {
        display: none;
    }
    
    .mobile-nav {
        display: flex;
    }
    
    .main-content {
        margin-left: 0;
        padding: 6rem 1.5rem 2rem 1.5rem;
    }
    
    .portfolio-footer {
        margin-left: 0;
        padding: 2rem 1.5rem;
    }
    
    .hero-panel .panel-inner,
    .journey-panel .panel-inner,
    .philosophy-panel .panel-inner,
    .skills-panel .panel-inner {
        grid-template-columns: 1fr;
        grid-gap: 3rem;
    }
    
    .hero-visual, .journey-visual, .philosophy-visual, .skills-visual {
        order: -1; /* visually displays graphics above content */
        margin-bottom: 1.5rem;
    }
    
    .philosophy-panel .panel-inner.thoughts-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }
    .thoughts-right-visual {
        min-height: 280px;
        order: -1;
        border-left: none;
        border-bottom: 1px solid var(--panel-light-border);
    }
    .thoughts-left {
        padding: 2rem;
    }
    
    .skills-panel { grid-column: span 12; }
    .exploring-panel { grid-column: span 12; }
    
    .vertical-philosophy-text {
        position: relative;
        flex-direction: row;
        right: auto;
        top: auto;
        justify-content: center;
        margin-top: 1.5rem;
    }
    
    .char-seal {
        writing-mode: horizontal-tb;
        padding: 0.4rem 0.8rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Fullscreen Hero Mobile Adjustments */
    .hero-fullscreen {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        padding-top: 7rem;
        padding-bottom: 4rem;
        min-height: auto;
        background-position: center center;
    }
    .hero-fullscreen::after {
        background: linear-gradient(to bottom, rgba(246, 248, 253, 0.9) 0%, rgba(246, 248, 253, 0.75) 60%, rgba(246, 248, 253, 0.5) 100%);
    }
    .bento-grid-wrapper {
        padding: 3rem 1.5rem;
    }
    .metrics-capsule-glass {
        flex-wrap: wrap;
        gap: 1.2rem;
        justify-content: center;
        padding: 1.2rem 1.8rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }
    
    .panel-inner {
        padding: 2rem 1.5rem;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .btn-premium {
        width: 100%;
    }
    
    .enso-container {
        height: 200px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* metrics capsule stacking on mobile */
    .metrics-capsule-glass {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        border-radius: 20px;
        padding: 1.2rem 1rem;
        width: 100%;
    }
    .metrics-capsule-glass .metric-divider {
        display: none;
    }
    .metrics-capsule-glass .metric-item {
        align-items: center;
        text-align: center;
    }
}
