﻿/* ==========================================================================
   CSS Variables & Theme
   ========================================================================== */
:root {
    /* Premium Dark Theme Colors */
    --bg-primary: #050505;
    --bg-secondary: #0a0a0a;
    --text-primary: #f5f5f5;
    --text-secondary: #a0a0a0;

    /* Accents (Electric Blue & Neon Violet) - Kept subtle for premium feel */
    --accent-blue: #00f0ff;
    --accent-violet: #8a2be2;
    --accent-blue-dim: rgba(0, 240, 255, 0.1);

    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;

    /* Grid & Layout */
    --container-width: 1400px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Effects */
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --glass-bg: rgba(15, 15, 15, 0.6);
    --glass-border: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    /* Lenis will override this, but a good fallback */
    font-size: 16px;
}

body.dark-theme {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background Grid Pattern Overlay */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
}

/* Optimization: Lenis smooth scroll setup */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

section {
    position: relative;
    padding: var(--spacing-xl) 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
    /* Above WebGL canvas */
    background: radial-gradient(ellipse at top, rgba(10, 10, 12, 0.5) 0%, transparent 70%);
}

/* ==========================================================================
   WebGL Background
   ========================================================================== */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    /* Let clicks pass through to content */
    opacity: 0.6;
    /* Keep it subtle */
}

/* ==========================================================================
   Custom Cursor (Optional, subtle implementation)
   ========================================================================== */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    /* Will be animated via JS */
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-primary);
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
}

.cursor-ring {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
}

/* ==========================================================================
/* Loader removed */


/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(5, 5, 15, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

.site-header.scrolled {
    background: rgba(5, 5, 15, 0.72);
}

.logo {
    display: inline-block;
    font-weight: 700;
    font-size: 2.8rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    color: #00f0ff;
    font-family: 'Dancing Script', cursive;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    z-index: 10;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    line-height: 1;
    padding-top: 5px;
}

.logo:hover {
    color: #fff;
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-md);
}

.main-nav a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    display: inline-block;
    /* Required for magnetic effect via JS */
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--glass-border);
    background: var(--bg-secondary);
    position: relative;
    z-index: 10;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.footer-brand {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
}

.footer-socials {
    display: flex;
    gap: 16px;
    align-items: center;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    text-decoration: none;
    transition: border-color 0.3s, color 0.3s, box-shadow 0.3s, transform 0.2s;
}

.footer-social-link svg {
    width: 18px;
    height: 18px;
}

.footer-social-link:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.3);
    transform: translateY(-2px);
}

.copyright {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.25);
    margin: 0;
}

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

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: -0.04em;
    position: relative;
    display: inline-block;
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.hero-subtitle-wrapper {
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--accent-blue);
    display: inline-block;
    opacity: 0.8;
}

/* Glitch Effect (Subtle) */
.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    clip-path: polygon(0 0, 100% 0, 100% 20%, 0 20%);
    opacity: 0;
}

.glitch-text:hover::before {
    left: 2px;
    text-shadow: -1px 0 var(--accent-blue);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
    opacity: 1;
}

.glitch-text:hover::after {
    left: -2px;
    text-shadow: -1px 0 var(--accent-violet);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
    opacity: 1;
}

@keyframes glitch-anim-1 {
    0% {
        clip-path: inset(20% 0 80% 0);
    }

    20% {
        clip-path: inset(60% 0 10% 0);
    }

    40% {
        clip-path: inset(40% 0 50% 0);
    }

    60% {
        clip-path: inset(80% 0 5% 0);
    }

    80% {
        clip-path: inset(10% 0 70% 0);
    }

    100% {
        clip-path: inset(30% 0 50% 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip-path: inset(10% 0 60% 0);
    }

    20% {
        clip-path: inset(30% 0 20% 0);
    }

    40% {
        clip-path: inset(70% 0 10% 0);
    }

    60% {
        clip-path: inset(20% 0 50% 0);
    }

    80% {
        clip-path: inset(50% 0 30% 0);
    }

    100% {
        clip-path: inset(5% 0 80% 0);
    }
}

/* ==========================================================================
   3D Profile Photo Card â€” About Section
   ========================================================================== */
/* ---- Clean Circle Profile Photo ---- */
.profile-photo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.profile-circle-wrap {
    position: relative;
    width: 290px;
    height: 290px;
    border-radius: 50%;
    /* Gradient ring border */
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-violet));
    padding: 3px;
    transform-style: preserve-3d;
    cursor: default;
    transition: box-shadow 0.4s ease;
    animation: float-photo 4s ease-in-out infinite;
}

@keyframes float-photo {

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

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

.profile-circle-wrap:hover {
    box-shadow: 0 20px 50px rgba(0, 240, 255, 0.25), 0 0 35px rgba(138, 43, 226, 0.15);
}

.profile-circle-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: #0a0a0f;
}

.profile-circle-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.5s ease, filter 0.4s ease;
    filter: brightness(0.97) contrast(1.04) saturate(1.05);
}

.profile-circle-wrap:hover .profile-circle-img img {
    transform: scale(1.04);
    filter: brightness(1) contrast(1.06) saturate(1.1);
}

/* Sci-fi corner brackets */
.corner {
    position: absolute;
    width: 16px;
    height: 16px;
    z-index: 4;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.corner.tl {
    top: -2px;
    left: -2px;
    border-top: 2px solid var(--accent-blue);
    border-left: 2px solid var(--accent-blue);
    border-radius: 4px 0 0 0;
}

.corner.tr {
    top: -2px;
    right: -2px;
    border-top: 2px solid var(--accent-blue);
    border-right: 2px solid var(--accent-blue);
    border-radius: 0 4px 0 0;
}

.corner.bl {
    bottom: -2px;
    left: -2px;
    border-bottom: 2px solid var(--accent-violet);
    border-left: 2px solid var(--accent-violet);
    border-radius: 0 0 0 4px;
}

.corner.br {
    bottom: -2px;
    right: -2px;
    border-bottom: 2px solid var(--accent-violet);
    border-right: 2px solid var(--accent-violet);
    border-radius: 0 0 4px 0;
}

.profile-card-scene:hover .corner {
    opacity: 1;
}

/* Status chip */
.profile-status {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 240, 255, 0.3);
    backdrop-filter: blur(8px);
    padding: 5px 12px;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
}

.profile-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #27c93f;
    box-shadow: 0 0 6px #27c93f;
    animation: pulse-dot 1.6s ease-in-out infinite;
}

/* Stats row below photo */
.profile-stats {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.profile-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.profile-stat-num {
    font-family: var(--font-body);
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.profile-stat-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-secondary);
    text-align: center;
}

/* ==========================================================================
   Resume Button & Modal
   ========================================================================== */
.resume-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: var(--spacing-sm);
    padding: 10px 22px;
    background: transparent;
    border: 1px solid rgba(0, 240, 255, 0.4);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.resume-trigger-btn:hover {
    background: rgba(0, 240, 255, 0.08);
    border-color: var(--accent-blue);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
    transform: translateY(-2px);
}

.resume-trigger-btn svg {
    width: 15px;
    height: 15px;
    color: var(--accent-blue);
}

/* Resume Modal */
.resume-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.resume-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.resume-modal {
    background: linear-gradient(145deg, rgba(10, 10, 15, 0.98), rgba(18, 18, 28, 0.98));
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 16px;
    padding: var(--spacing-xl);
    min-width: 380px;
    max-width: 480px;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 240, 255, 0.08);
    position: relative;
    text-align: center;
}

.resume-modal-overlay.active .resume-modal {
    transform: scale(1) translateY(0);
}

.resume-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
}

.resume-modal-icon svg {
    width: 28px;
    height: 28px;
    color: var(--accent-blue);
}

.resume-modal h3 {
    font-size: 1.3rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.resume-modal p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.resume-modal-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.resume-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
}

.resume-action-btn.download {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-violet));
    color: #000;
}

.resume-action-btn.download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 240, 255, 0.35);
}

.resume-action-btn.view {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.resume-action-btn.view:hover {
    border-color: var(--accent-blue);
    background: rgba(0, 240, 255, 0.08);
    transform: translateY(-2px);
}

.resume-action-btn svg {
    width: 15px;
    height: 15px;
}

.resume-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.resume-modal-close:hover {
    color: var(--text-primary);
}

.resume-modal-meta {
    margin-top: var(--spacing-sm);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   CEO Badge Link â€” Leadership Statement
   ========================================================================== */
.ceo-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 8px 0 14px 0;
    padding: 7px 14px 7px 10px;
    border: 1px solid rgba(0, 240, 255, 0.35);
    border-radius: 30px;
    background: rgba(0, 240, 255, 0.05);
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.88rem;
    letter-spacing: 0.03em;
    transition: background 0.3s ease, border-color 0.3s ease,
        box-shadow 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.ceo-badge:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--accent-blue);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
    transform: translateY(-2px);
}

/* Pulsing live dot */
.ceo-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-blue);
    box-shadow: 0 0 6px var(--accent-blue);
    animation: pulse-dot 1.8s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {

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

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

.ceo-badge-role {
    font-weight: 700;
    color: var(--text-primary);
}

.ceo-badge-divider {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* CodeSpecter â€” cyan gradient text */
.ceo-badge-company {
    font-weight: 700;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Arrow icon: slides in on hover */
.ceo-badge-arrow {
    width: 11px;
    height: 11px;
    color: var(--accent-blue);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.ceo-badge:hover .ceo-badge-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================================
   Buttons (Magnetic Setup)
   ========================================================================== */
.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.magnetic-btn {
    position: relative;
    padding: 1rem 2rem;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    /* Slightly modern, not fully rounded */
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.3s, color 0.3s;
    backdrop-filter: blur(5px);
}

.primary-btn {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

.secondary-btn {
    border-color: transparent;
}

.btn-text {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

/* Subtle glow effect for primary button */
.primary-btn .btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
    pointer-events: none;
}

.primary-btn:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.primary-btn:hover .btn-glow {
    transform: translate(-50%, -50%) scale(1);
}

.secondary-btn:hover {
    color: var(--text-secondary);
}

/* ==========================================================================
   Scroll Indicator
   ========================================================================== */
.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--text-primary) 0%, transparent 100%);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: var(--accent-blue);
    animation: scroll-down 2s infinite cubic-bezier(0.77, 0, 0.175, 1);
}

@keyframes scroll-down {
    0% {
        transform: translateY(-100%);
    }

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

/* ==========================================================================
   Common Section Styles
   ========================================================================== */
.section-header {
    margin-bottom: var(--spacing-lg);
}

.hero-subtitle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: var(--spacing-xl);
}

.hero-subtitle-prefix {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 1.25rem;
    letter-spacing: 0.1em;
}

.hero-subtitle.typewriter-text {
    font-family: var(--font-mono);
    color: var(--accent-blue);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.typewriter-cursor {
    font-family: var(--font-mono);
    color: var(--accent-violet);
    font-size: 1.25rem;
    font-weight: bold;
    animation: blink 1s step-end infinite;
}

.section-subtitle {
    font-family: var(--font-mono);
    color: var(--accent-blue);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: var(--spacing-xs);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--text-primary);
}

/* ==========================================================================
   About & Leadership Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-text .lead {
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

.about-text p {
    margin-bottom: var(--spacing-md);
}

.leadership-statement {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-md);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.philosophy-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-mono);
}

.philosophy-text {
    font-size: 1.4rem !important;
    color: var(--text-primary) !important;
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 0 !important;
}

/* Trust Signals */
.trust-signals {
    margin-top: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.trust-line {
    width: 20px;
    height: 1px;
    background: var(--accent-blue);
    opacity: 0.5;
}

/* Futuristic 3D Skills Display */
.skills-3d-wrapper {
    perspective: 1000px;
}

.about-skills {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    transform-style: preserve-3d;
    transition: transform 0.2s ease-out;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.skill-name {
    color: var(--text-primary);
}

.skill-pct {
    color: var(--accent-blue);
    font-weight: 700;
}

.skill-bar-bg {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 2px;
    position: relative;
}

.skill-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-violet));
    width: 0;
    /* Will be animated by GSAP */
    border-radius: 2px;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.4), 0 0 20px rgba(138, 43, 226, 0.2);
}

/* Glowing Target Point / Laser */
.skill-bar-glow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) translateX(50%);
    width: 6px;
    height: 6px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 0 8px #fff, 0 0 15px var(--accent-blue), 0 0 25px var(--accent-blue);
    opacity: 0;
    /* Fades in with JS line expansion */
    transition: opacity 0.3s ease;
}

/* ==========================================================================
   Skills Icon Grid Section
   ========================================================================== */
.skills-section {
    background-color: transparent;
}

.skills-grid-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.skill-category {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-category-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding-left: 2px;
    writing-mode: horizontal-tb;
    /* Horizontal unlike the screenshot â€” cleaner */
    border-left: 2px solid rgba(0, 240, 255, 0.3);
    padding-left: 10px;
}

.skill-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* The core chip card */
.skill-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.1rem;
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    cursor: default;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s, box-shadow 0.3s;
    min-width: 155px;
}

/* Holographic shimmer pseudo-element */
.skill-chip::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: linear-gradient(120deg,
            transparent 30%,
            rgba(0, 240, 255, 0.06) 50%,
            rgba(138, 43, 226, 0.06) 65%,
            transparent 80%);
    background-size: 200% 200%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Glow line at bottom on hover */
.skill-chip::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    transition: transform 0.4s ease;
}

.skill-chip:hover {
    transform: translateY(-6px) scale(1.04);
    border-color: rgba(0, 240, 255, 0.25);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.08);
}

.skill-chip:hover::before {
    opacity: 1;
    animation: shimmer-sweep 0.8s linear;
}

.skill-chip:hover::after {
    transform: translateX(-50%) scaleX(1);
}

@keyframes shimmer-sweep {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: -200% center;
    }
}

.skill-chip-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    font-family: var(--font-mono);
    transition: transform 0.3s ease;
}

.skill-chip-icon svg {
    width: 26px;
    height: 26px;
}

/* Devicons via font class */
.skill-chip-icon i[class*="devicon"] {
    font-size: 1.7rem;
    line-height: 1;
}

/* Make white-only icons (Next.js, Three.js, Express, GitHub) visible on dark bg */
.devicon-nextjs-plain,
.devicon-threejs-original,
.devicon-express-original,
.devicon-github-original {
    color: rgba(255, 255, 255, 0.85);
}


.skill-chip:hover .skill-chip-icon {
    transform: scale(1.15) rotate(-3deg);
}

.skill-chip-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.chip-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.chip-level {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 2px 7px;
    border-radius: 4px;
    align-self: flex-start;
}

/* Level badge colors */
.chip-level.expert {
    color: #00f0ff;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.chip-level.advanced {
    color: #8a2be2;
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid rgba(138, 43, 226, 0.25);
}

.chip-level.intermediate {
    color: #a0a0a0;
    background: rgba(160, 160, 160, 0.08);
    border: 1px solid rgba(160, 160, 160, 0.2);
}

/* ==========================================================================
   Projects Section
   ========================================================================== */
.projects-section {
    background-color: transparent;
}


.project-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: var(--spacing-xl);
}

.project-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    cursor: pointer;
    transition: transform 0.4s ease;
}

.project-item:hover {
    transform: translateY(-5px);
}

.project-card {
    position: relative;
    background-color: #0c0c14;
    /* Dark neutral base */
    background-size: cover;
    background-position: top center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    height: 230px;
    /* Precise height for clear preview */
    overflow: hidden;
    /* GSAP processes all rotations; CSS transition removed to eliminate input lag */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.project-item:hover .project-card {
    border-color: rgba(0, 240, 255, 0.5);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 240, 255, 0.1);
}

/* ── Hover image swap: smooth transition ── */
.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--img-2, none);
    background-size: cover;
    background-position: top center;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.project-item:hover .project-card::after {
    opacity: 1;
}

/* ── Minimalist tags inside the card ── */
.card-tags {
    position: absolute;
    bottom: var(--spacing-sm);
    left: var(--spacing-sm);
    z-index: 5;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.project-item:hover .card-tags {
    opacity: 1;
}

.card-tags span {
    font-size: 0.7rem;
    padding: 2px 8px;
    background: rgba(10, 10, 30, 0.45);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Steam card — 3-image JS carousel. JS manages all transitions,
   so disable the white-wash ::before and CSS ::after image swap */
/* Steam card — 3-image JS carousel ensures clarity */
.card-carousel {
    border-color: rgba(255, 255, 255, 0.08);
}

.card-carousel::after {
    display: none;
}

/* On hover, Steam card text should be white (dark bg shown) */
.card-carousel .project-title {
    color: #ffffff;
}

.card-carousel .project-desc {
    color: rgba(255, 255, 255, 0.82);
}

.card-carousel .view-case-btn {
    color: #00f0ff;
    border-color: rgba(0, 240, 255, 0.5);
}

.card-carousel .project-tags span {
    color: #00f0ff;
    border-color: rgba(0, 240, 255, 0.4);
}

.project-details {
    padding: var(--spacing-xs) 0;
    text-align: left;
}

.project-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    transition: color 0.3s ease;
}

.project-item:hover .project-title {
    color: #00f0ff;
}

.project-title {
    font-size: 1.8rem;
    font-weight: 800;
    /* Bolder text */
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.1;
    flex-shrink: 0;
}

.project-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.4;
    flex-shrink: 0;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: auto;
    /* Push the link to the bottom if needed, but centering handles it. Actually let's use margin-bottom to separate tags from the button */
    flex-shrink: 0;
}

.project-tags span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-blue);
    background: rgba(0, 240, 255, 0.05);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    /* Slight rounding like screenshot */
    border: 1px solid rgba(0, 240, 255, 0.15);
    letter-spacing: 0.05em;
}

.view-case-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.5rem 0;
    border-bottom: 2px solid var(--accent-blue);
    /* Thicker cyan underline */
    display: inline-block;
    align-self: flex-start;
    /* Left align specifically */
    margin-top: 1.5rem;
    cursor: pointer;
    pointer-events: none;
    flex-shrink: 0;
    /* Let the card handle the click */
}

/* Hide cards using GSAP instead of CSS display:none for smooth transitions */
.project-card.hidden {
    display: none;
}

/* ==========================================================================
   Project Fullscreen Modal
   ========================================================================== */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9000;
    display: none;
    /* Managed by JS/GSAP */
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    opacity: 0;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    height: 85vh;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95) 0%, rgba(5, 5, 5, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.05);
    opacity: 0;
    transform: translateY(30px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.close-modal-btn:hover {
    opacity: 1;
}

.close-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.close-icon {
    width: 24px;
    height: 24px;
    position: relative;
}

.close-icon::before,
.close-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    width: 80%;
    height: 1px;
    background: var(--text-primary);
}

.close-icon::before {
    transform: rotate(45deg);
}

.close-icon::after {
    transform: rotate(-45deg);
}

.modal-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-xl) var(--spacing-lg);
    /* More generous padding */
    /* Custom scrollbar for modal */
}

.modal-scroll-area::-webkit-scrollbar {
    width: 6px;
}

.modal-scroll-area::-webkit-scrollbar-track {
    background: transparent;
}

.modal-scroll-area::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.modal-header {
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.modal-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.modal-meta {
    display: flex;
    gap: var(--spacing-md);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--accent-blue);
}

.case-study-section {
    margin-bottom: var(--spacing-lg);
}

.case-study-section h3 {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    border-left: 3px solid var(--accent-violet);
    padding-left: 12px;
}

.case-study-section p {
    font-size: 1.1rem;
    color: var(--text-primary);
    max-width: 800px;
    line-height: 1.7;
}

.tech-stack-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-stack-grid span {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-blue);
    background: rgba(0, 240, 255, 0.05);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    border: 1px solid rgba(0, 240, 255, 0.15);
    letter-spacing: 0.05em;
}

.modal-actions {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--glass-border);
}

/* ==========================================================================
   API Showcase Section (Terminal)
   ========================================================================== */
.api-section {
    background-color: transparent;
}

.terminal-wrapper {
    background: rgba(10, 10, 12, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    /* Soft vignette inset alongside the outer shadow */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 50px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    transition: transform 0.2s ease-out, box-shadow 0.3s ease-out;
}

/* Subtle scanlines overlay */
.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0) 50%,
            rgba(0, 0, 0, 0.1) 50%,
            rgba(0, 0, 0, 0.1));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 10;
    opacity: 0.5;
}

.terminal-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.terminal-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dots span:nth-child(1) {
    background: #ff5f56;
}

.terminal-dots span:nth-child(2) {
    background: #ffbd2e;
}

.terminal-dots span:nth-child(3) {
    background: #27c93f;
}

.terminal-title {
    flex: 1;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

.terminal-body {
    padding: var(--spacing-md);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--text-primary);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    text-align: left;
    /* Force left alignment */
}

.terminal-input-line {
    display: flex;
    gap: 10px;
    margin-bottom: var(--spacing-sm);
    position: relative;
}

#terminal-hidden-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}

.prompt {
    color: var(--accent-violet);
    font-weight: 700;
}

.command {
    color: var(--accent-blue);
    position: relative;
    display: inline-block;
}

/* Typing cursor for command */
.command::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 20%;
    width: 6px;
    height: 14px;
    background: var(--text-primary);
    animation: blink 1s step-end infinite;
    display: none;
    /* Initially hidden */
}

.command.typing::after {
    display: block;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.terminal-output {
    flex: 1;
    margin-bottom: var(--spacing-md);
    overflow-y: auto;
}

.terminal-output pre {
    margin: 0;
    white-space: pre-wrap;
    text-align: left;
}

/* JSON Syntax Colors */
.json-key {
    color: var(--accent-blue);
}

.json-string {
    color: #27c93f;
}

.json-number {
    color: #ffbd2e;
}

.json-boolean {
    color: var(--accent-violet);
    font-weight: bold;
}

.action-line {
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-sm);
    margin-bottom: 0;
}

.terminal-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.run-cmd-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    padding: 6px 14px;
    cursor: pointer;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: all 0.3s;
}

.run-cmd-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.run-cmd-btn.active {
    background: var(--accent-blue-dim);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.terminal-boot {
    margin-bottom: var(--spacing-sm);
    opacity: 0.8;
}

.terminal-boot p {
    font-size: 0.85rem;
    margin-bottom: 4px;
    color: var(--text-secondary);
}

.terminal-boot p.success-log,
p.success-log {
    color: #27c93f;
}

.success-glow {
    text-shadow: 0 0 10px rgba(39, 201, 63, 0.5);
}

/* Custom terminal caret */
.cursor-blink {
    display: inline-block;
    width: 8px;
    height: 15px;
    background-color: var(--text-primary);
    vertical-align: middle;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}

/* Line Fade-in */
.fade-in-line {
    animation: fadeInText 0.4s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInText {
    0% {
        opacity: 0;
        transform: translateY(5px);
    }

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

/* Loading Dots animation */
.loading-dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {

    0%,
    20% {
        content: '';
    }

    40% {
        content: '.';
    }

    60% {
        content: '..';
    }

    80%,
    100% {
        content: '...';
    }
}

/* Chart Styles */
.terminal-chart {
    height: 120px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding-top: var(--spacing-sm);
    margin-top: var(--spacing-md);
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.chart-bar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.chart-bar {
    width: 32px;
    height: 0px;
    /* Animated via JS */
    background: linear-gradient(to bottom, var(--accent-blue) 90%, transparent 90%);
    background-size: 100% 4px;
    /* Creates segments */
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
    transition: height 0.8s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s;
    position: relative;
}

.chart-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent-blue);
    opacity: 0.15;
    z-index: -1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: var(--spacing-md);
}

.project-tech span {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-blue);
    background: rgba(0, 240, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

/* ==========================================================================
   Experience Timeline Section
   ========================================================================== */
.experience-section {
    background-color: var(--primary-bg);
    position: relative;
    overflow: hidden;
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-lg) 0;
}

.timeline-line {
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-blue) 0%, var(--accent-violet) 100%);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: var(--spacing-xl);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 15px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-bg);
    border: 2px solid var(--accent-blue);
    box-shadow: 0 0 15px var(--accent-blue);
    z-index: 2;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: var(--spacing-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(10px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.timeline-role {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.timeline-date {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-violet);
    margin-bottom: var(--spacing-sm);
}

.timeline-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ==========================================================================
   API Showcase Section
   ========================================================================== */
.api-section {
    text-align: center;
}

/* ==========================================================================
   Community Section
   ========================================================================== */
.community-section {
    background-color: transparent;
}

.social-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
    max-width: 800px;
    margin: var(--spacing-xl) auto 0 auto;
}

.social-icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.social-icon-btn:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
    transform: translateY(-5px);
}

.social-icon-btn svg {
    width: 30px;
    height: 30px;
    color: var(--accent-blue);
    transition: color 0.3s;
}

.social-icon-btn:hover svg {
    color: var(--accent-violet);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    /* Adjusted for better balance */
    gap: var(--spacing-xl);
    max-width: 1100px;
    margin: 4rem auto 0;
    align-items: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 14px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    backdrop-filter: blur(5px);
}

.form-group input:hover,
.form-group textarea:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 240, 255, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Floating Label Magic */
.form-group label {
    position: absolute;
    top: 14px;
    left: 16px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    pointer-events: none;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label {
    top: -20px;
    font-size: 0.75rem;
    color: var(--accent-blue);
}

.focus-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-blue);
    transition: 0.4s ease all;
}

.form-group input:focus~.focus-border,
.form-group textarea:focus~.focus-border {
    width: 100%;
    box-shadow: 0 -1px 10px rgba(0, 240, 255, 0.3);
}

.submit-btn {
    align-self: flex-start;
    margin-top: var(--spacing-sm);
}

.form-status {
    margin-top: 15px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    min-height: 24px;
    transition: opacity 0.4s ease;
    letter-spacing: 0.02em;
}

.form-status.success {
    color: #00f0ff;
    /* Tech cyan for success */
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.form-status.error {
    color: #ff5f56;
    text-shadow: 0 0 10px rgba(255, 95, 86, 0.3);
}

/* Community Links */
.community-links h3 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.social-icons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.social-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    /* Sleeker rounded corners */
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
}

.social-icon:hover {
    color: #00f0ff;
    border-color: rgba(0, 240, 255, 0.4);
    background: rgba(0, 240, 255, 0.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 240, 255, 0.1);
    transform: translateY(-4px);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.social-icon:hover {
    border-color: var(--accent-violet);
    color: var(--accent-violet);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.2);
}

.social-icon:hover svg {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .site-header {
        padding: var(--spacing-sm);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .main-nav {
        display: none;
        /* Implement mobile menu later */
    }

    section {
        padding: var(--spacing-lg) 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

/* ==========================================================================
   Full-Screen Resume Modal
   ========================================================================== */
.resume-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    display: flex;
    align-items: stretch;
    justify-content: center;
    overflow: hidden;
    /* key: stops page scroll bleed */
}

.resume-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.resume-modal-container {
    width: 100%;
    max-width: 820px;
    height: 100%;
    /* must be 100% so it fills the overlay exactly */
    display: flex;
    flex-direction: column;
    background: #f4f4f4;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
    /* clips children */
}

.resume-modal-overlay.active .resume-modal-container {
    transform: translateY(0);
}

/* Top bar */
.resume-modal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #1a1a2e;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.15);
    flex-shrink: 0;
}

.resume-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    padding: 7px 14px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.resume-back-btn:hover {
    border-color: var(--accent-blue);
    background: rgba(0, 240, 255, 0.08);
}

.resume-back-btn svg {
    width: 14px;
    height: 14px;
}

.resume-modal-filename {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    flex: 1;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resume-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-violet));
    border-radius: 6px;
    color: #000;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 7px 16px;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
    white-space: nowrap;
}

.resume-download-btn:hover {
    box-shadow: 0 4px 16px rgba(0, 240, 255, 0.4);
    transform: translateY(-1px);
}

.resume-download-btn svg {
    width: 14px;
    height: 14px;
}

/* Scrollable document area */
.resume-doc-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 32px 24px;
    background: #f0f0f0;
}

/* The white resume document */
.resume-doc {
    background: #ffffff;
    max-width: 760px;
    margin: 0 auto;
    padding: 52px 56px;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.12);
    border-radius: 2px;
    color: #1a1a1a;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 0.93rem;
    line-height: 1.6;
}

.rdoc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #1a1a2e;
    margin-bottom: 28px;
}

.rdoc-name {
    font-size: 1.9rem;
    font-weight: 900;
    font-family: 'Arial', sans-serif;
    color: #0a0a0f;
    letter-spacing: -0.5px;
    margin: 0 0 4px 0;
}

.rdoc-tagline {
    font-size: 0.82rem;
    color: #555;
    font-family: 'Arial', sans-serif;
    margin: 0;
}

.rdoc-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    font-family: 'Arial', sans-serif;
    font-size: 0.8rem;
    color: #444;
    text-align: right;
    flex-shrink: 0;
}

.rdoc-contact a {
    color: #1a3a6b;
    text-decoration: none;
}

.rdoc-contact a:hover {
    text-decoration: underline;
}

.rdoc-section {
    margin-bottom: 28px;
}

.rdoc-section-title {
    font-family: 'Arial', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #1a1a2e;
    border-bottom: 1px solid #ccc;
    padding-bottom: 4px;
    margin-bottom: 14px;
}

.rdoc-job {
    margin-bottom: 18px;
}

.rdoc-job-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-family: 'Arial', sans-serif;
    margin-bottom: 2px;
}

.rdoc-job-header strong {
    font-size: 0.95rem;
    color: #111;
}

.rdoc-date {
    font-size: 0.78rem;
    color: #777;
    white-space: nowrap;
    flex-shrink: 0;
    font-style: italic;
}

.rdoc-company {
    font-family: 'Arial', sans-serif;
    font-size: 0.82rem;
    color: #1a3a6b;
    font-style: italic;
    margin-bottom: 6px;
}

.rdoc-section ul {
    margin: 6px 0 0 16px;
    padding: 0;
}

.rdoc-section ul li {
    margin-bottom: 3px;
    color: #333;
}

.rdoc-skills-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rdoc-skill-row {
    display: flex;
    gap: 10px;
    font-family: 'Arial', sans-serif;
    font-size: 0.88rem;
}

.rdoc-skill-row strong {
    min-width: 120px;
    color: #1a1a2e;
    flex-shrink: 0;
}

.rdoc-skill-row span {
    color: #333;
}

.rdoc-project {
    font-family: 'Arial', sans-serif;
    font-size: 0.88rem;
    color: #333;
    margin-bottom: 8px;
    padding-left: 10px;
    border-left: 2px solid #1a1a2e;
}

.rdoc-project strong {
    color: #111;
}

/* Resume trigger button */
.resume-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: var(--spacing-sm);
    padding: 10px 20px;
    background: transparent;
    border: 1px solid rgba(0, 240, 255, 0.4);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.2s;
}

.resume-trigger-btn svg {
    width: 15px;
    height: 15px;
    color: var(--accent-blue);
}

.resume-trigger-btn:hover {
    background: rgba(0, 240, 255, 0.08);
    border-color: var(--accent-blue);
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.2);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .resume-doc {
        padding: 32px 20px;
    }

    .rdoc-header {
        flex-direction: column;
        gap: 12px;
    }

    .rdoc-contact {
        align-items: flex-start;
        text-align: left;
    }

    .resume-modal-topbar {
        padding: 10px 14px;
    }

    .resume-modal-filename {
        display: none;
    }
}