:root {
    /* "Deep Void & Neon Data" Palette */
    --bg-void: #050505;
    --bg-deep: #0a0a12;
    --bg-surface: #111116;

    /* Accents */
    --accent-cyan: #00f0ff;
    /* The Architect: Precision */
    --accent-violet: #7000ff;
    /* The Alchemist: Transformation */
    --accent-gradient: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));

    /* Text */
    --text-primary: #ededed;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;

    /* Typography */
    --font-display: 'Syne', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing & Layout */
    --container-width: 1440px;
    --section-padding: 8rem 2rem;
    --grid-gap: 2rem;

    /* Effects */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --neon-glow-cyan: 0 0 10px rgba(0, 240, 255, 0.5);
    --neon-glow-violet: 0 0 10px rgba(112, 0, 255, 0.5);

    /* Animation */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    background-color: var(--bg-void);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    /* Custom cursor will be added */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 1px solid var(--accent-cyan);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
    mix-blend-mode: difference;
}

.cursor.hovered {
    width: 50px;
    height: 50px;
    background: rgba(0, 240, 255, 0.1);
    border-color: transparent;
}

/* Noise Texture Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.03;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAAGFBMVEUAAAA5OTkAAAAAAAAAAABMTExERERmZmZnOtVoAAAACHRSTlMAMwAqzMzMzMzM3WYVAAAAJklEQVQ4y2NgQAX8DIoMjiDSwYGsFkQ6OIDVgkgHB7BaEOnFABwAAL1QAvYN0C6OAAAAAElFTkSuQmCC');
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--section-padding);
    position: relative;
    z-index: 2;
}

.text-accent-cyan {
    color: var(--accent-cyan);
}

.text-accent-violet {
    color: var(--accent-violet);
}

.font-mono {
    font-family: var(--font-mono);
}

/* Experience Horizontal Scroll */
.horizontal-scroll-section {
    padding: 8rem 0;
    overflow: hidden;
    width: 100vw;
}

.timeline-track-wrapper {
    width: 100%;
    overflow: hidden;
}

.timeline-track {
    display: flex;
    gap: 4rem;
    padding: 0 5vw;
    width: fit-content;
    /* Important for horizontal calculation */
}

.timeline-card {
    min-width: 400px;
    width: 30vw;
    max-width: 600px;
    flex-shrink: 0;
}

.card-glass {
    background: rgba(15, 15, 20, 0.8);
    /* Darker base for better text contrast */
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Stronger border */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    position: relative;
    transition: transform 0.3s;
}

.card-glass:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.card-glass .date {
    display: inline-block;
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 240, 255, 0.3);
    padding: 0.2rem 0.8rem;
    border-radius: 100px;
}

.card-glass h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.metric {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.metric .val {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    color: var(--accent-violet);
    font-weight: 700;
}

.metric .label {
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

/* Skills Charts */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.chart-container {
    padding: 2rem;
    height: 400px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chart-container h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.chart-container canvas {
    max-height: 320px;
}

/* Data Stream */
.data-stream {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    opacity: 0.3;
}


/* Premium Glassmorphism Utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-highlight);
    /* Subtle highlight */
    box-shadow: var(--glass-shadow);
    border-radius: var(--card-radius);
}

.section-title {
    font-size: var(--fs-h2);
    margin-bottom: var(--spacing-xxl);
    /* More space */
    text-align: center;
    position: relative;
    z-index: 10;
    letter-spacing: -0.03em;
    background: linear-gradient(180deg, #FFFFFF 0%, #E0E0E0 100%);
    background-clip: text;
    /* Standard property */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.95;
}

.section-title::after {
    display: none;
    /* Remove the old underline style */
}

/* Buttons */
/* Buttons */

/* Button System Refactor */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 1rem;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--btn-radius);
    cursor: pointer;
    transition: all var(--transition-smooth);
    gap: 0.6rem;
    text-transform: none;
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    /* Reset base styles */
    background: transparent;
    border: none;
    color: inherit;
}

/* Primary Button: Neon Cyan Filled */
.btn-primary {
    background: var(--accent-cyan);
    color: #000;
    /* Black text for contrast on cyan */
    border: 1px solid var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
    font-weight: 600;
}

.btn-primary:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5), 0 0 60px rgba(0, 240, 255, 0.3);
    transform: translateY(-2px);
}

/* Outline/Glass Button */
.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(112, 0, 255, 0.2);
    /* Violet tint */
    border-color: var(--accent-violet);
    color: #fff;
    box-shadow: 0 5px 20px rgba(112, 0, 255, 0.2);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1.2rem !important;
    font-size: 0.85rem;
    border-radius: 6px;
}

/* Cursor is defined in global body styles */

/* WebGL Canvas */
#webgl-canvas {
    pointer-events: none;
}

/* Liquid Background Orbs - REMOVED */
/* ... */

/* ... existing code ... */

.project-type {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    /* White text */
    background: rgba(255, 255, 255, 0.1);
    /* Neutral Glass */
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Subtle Border */
    backdrop-filter: blur(5px);
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(60px, 40px) scale(1.1);
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 450px;
    padding: 1rem 2rem;
    z-index: 1000;
    transition: all 0.4s var(--ease-out-expo);
    border-radius: 100px;

    background: rgba(10, 10, 18, 0.6);
    /* --bg-deep with alpha */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* --glass-border */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.navbar.scrolled {
    top: 1rem;
    background: rgba(10, 10, 10, 0.85);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    background: linear-gradient(180deg, #fff, #bbb);
    background-clip: text;
    /* Standard property */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 6px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-primary);
    border-radius: 2px;
}

/* Hero Section */
/* Hero Section Redesigned */
.hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    padding-top: var(--spacing-xl);
}

/* Remove old parallax-bg */
.parallax-bg {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    /* Wider for impact */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge-wrapper {
    margin-bottom: var(--spacing-md);
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.1s;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-title {
    font-size: clamp(3rem, 5vw + 1rem, 6rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.04em;
    margin-bottom: var(--spacing-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.reveal-text {
    display: block;
    background: linear-gradient(135deg, #fff 40%, #777 100%);
    background-clip: text;
    /* Standard property */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.accent-text {
    background: var(--accent-gradient);
    background-clip: text;
    /* Standard property */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

/* Glitch Effect Logic (Pseudo-elements for now, easier to implement in CSS) */
.accent-text::before,
.accent-text::after {
    content: '& L&D Professional';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-void);
    /* Matches bg */
    opacity: 0.5;
    display: none;
    /* Active via JS class if needed later, but clean for now */
}

.hero-subtitle {
    font-size: var(--fs-body-lg);
    color: var(--text-secondary);
    max-width: 65ch;
    margin: 0 auto var(--spacing-lg);
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
}

.reveal-text-delayed {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.5s;
}

.reveal-text-delayed-2 {
    /* CTA */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.7s;
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    /* 128px gap for breathing room */
    align-items: center;
}

.about-text p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
    font-size: var(--fs-body);
    line-height: 1.7;
    /* Accessible line height */
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Add a glow behind the profile */
.about-image::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, #ffffff, transparent 70%);
    filter: blur(60px);
    opacity: 0.15;
    z-index: -1;
    border-radius: 50%;
}

.profile-placeholder {
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    padding: 10px;
    /* Gap for border */
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(100%) contrast(1.1);
}

/* Experience Timeline */
/* Experience Timeline Refined */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-md) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(255, 255, 255, 0.3) 15%,
            rgba(255, 255, 255, 0.3) 85%,
            transparent 100%);
}

.timeline-item {
    position: relative;
    padding-left: var(--spacing-xxl);
    /* More space from line */
    margin-bottom: var(--spacing-xl);
}

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

/* Glowing Dot */
.timeline-item::after {
    content: '';
    position: absolute;
    left: -4px;
    /* Center on 1px line */
    top: 30px;
    /* Align with content */
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    border: 2px solid var(--bg-color);
    /* Cutout effect */
    z-index: 2;
}

.timeline-content {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    padding: var(--spacing-lg);
    border-radius: var(--card-radius);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.timeline-content:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.timeline-content .date {
    display: inline-block;
    font-size: var(--fs-sm);
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.company-logo-inline {
    height: 24px;
    width: auto;
    vertical-align: middle;
    margin-right: 10px;
    border-radius: 4px;
    filter: grayscale(100%) brightness(1.2);
    /* Unified Look */
    transition: filter 0.3s ease;
}

.timeline-content:hover .company-logo-inline {
    filter: grayscale(0%) brightness(1);
    /* Reveal color on hover */
}

.timeline-content h3 {
    font-size: var(--fs-h3);
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.experience-list {
    list-style: none;
    margin-left: 0;
    color: var(--text-secondary);
}

.experience-list li {
    margin-bottom: var(--spacing-xs);
    position: relative;
    padding-left: var(--spacing-md);
    font-size: var(--fs-body);
    line-height: 1.6;
}

.experience-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--text-tertiary);
    /* Subtle arrow */
    font-weight: 300;
}

/* Core Competencies */
.competencies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Slightly wider */
    gap: var(--spacing-lg);
}

.competency-card {
    /* Utilizing Glassmorphism */
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    padding: var(--spacing-lg);
    /* 40px */
    border-radius: var(--card-radius);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
    /* Apple style is often left aligned */
    position: relative;
    overflow: hidden;
}

.competency-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background: rgba(40, 40, 40, 0.6);
}

/* Shine effect on hover */
.competency-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.5s;
}

.competency-card:hover::before {
    left: 100%;
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.competency-card h3 {
    margin-bottom: var(--spacing-md);
    font-size: var(--fs-h3);
    font-weight: 600;
}

.skill-list {
    text-align: left;
    color: var(--text-secondary);
    display: block;
}

.skill-list li {
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    font-size: var(--fs-body);
}

.skill-list li::before {
    content: '';
    /* Remove default dot */
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    margin-right: 0.8rem;
    box-shadow: 0 0 5px var(--accent-color);
}

/* Tools Section */
/* Tools Section - Infinite Marquee */
.tools-section {
    position: relative;
    overflow: hidden;
    padding: var(--section-padding) 0;
}

.marquee-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    position: relative;
    width: 100%;
    /* Gradient Masks for smooth fade out */
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-track {
    display: flex;
    gap: var(--spacing-lg);
    width: max-content;
    will-change: transform;
}

.marquee-track.left {
    animation: scrollLeft 60s linear infinite;
}

.marquee-track.right {
    animation: scrollRight 60s linear infinite;
}

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

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - (var(--spacing-lg) / 2)));
    }
}

@keyframes scrollRight {
    0% {
        transform: translateX(calc(-50% - (var(--spacing-lg) / 2)));
    }

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

/* Tool Chip Styling - Titanium Glass */
.tool-chip {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 0.8rem 1.8rem;
    font-size: var(--fs-body);
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tool-chip img {
    height: 28px;
    width: auto;
    filter: grayscale(100%) brightness(1.5);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.tool-chip:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.tool-chip:hover img {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

.tool-chip:hover img {
    filter: grayscale(0%);
    /* Reveal color */
    opacity: 1;
    transform: scale(1.1);
}

.tool-chip img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.tool-chip:hover {
    background: rgba(20, 20, 30, 0.9);
    /* Opaque dark for readability */
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.15);
}

.tool-chip:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Projects List */
.project-list {
    display: flex;
    flex-direction: column;
}

.project-item {
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: baseline;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.project-item:hover {
    padding-left: 2rem;
    border-color: var(--accent-cyan);
}

.project-item:hover .project-name {
    color: var(--accent-cyan);
}

.project-idx {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    margin-right: 2rem;
    font-size: 0.9rem;
}

.project-name {
    font-size: clamp(2rem, 3vw, 3.5rem);
    font-weight: 700;
    margin: 0;
    flex-grow: 1;
    transition: color 0.3s;
}

.project-cat {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Video Preview Loop */
.video-preview {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 400px;
    height: 250px;
    z-index: 50;
    pointer-events: none;
    border-radius: 10px;
    overflow: hidden;
    opacity: 0;
    transition: none;
    /* Handled by GSAP */
}

.video-wrapper-inner {
    width: 100%;
    height: 100%;
    background: #000;
}

.video-wrapper-inner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}

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

.modal-content {
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    background: #09090b;
    /* --bg-deep */
    border: 1px solid var(--glass-border);
    padding: 3rem;
    position: relative;
    transform: translateY(50px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Better for mobile */
    gap: var(--spacing-lg);
}

.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    position: relative;
    box-shadow: var(--glass-shadow);
}

.card-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.1;
    filter: grayscale(100%) blur(5px);
    transition: all 0.6s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

/* Projects Section Redesign */
.projects-featured-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xxl);
}

.project-featured {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    /* Visual gets more space */
    gap: var(--spacing-xl);
    padding: var(--spacing-md);
    /* Inner padding */
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-smooth);
}

/* Alternate layout */
.project-featured.reversed {
    grid-template-columns: 1fr 1.2fr;
}

/* Visual placement for reversed: Content First, Img Second in DOM logic?
   Actually, grid-template-areas or ordering is safer than direction rtl
*/
.project-featured.reversed .project-visual {
    order: 2;
}

.project-featured.reversed .project-info {
    order: 1;
    padding-right: var(--spacing-lg);
    padding-left: 0;
}

.project-visual {
    position: relative;
    border-radius: calc(var(--card-radius) - 8px);
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.project-featured:hover .card-video {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    /* Slight darken */
    transition: opacity 0.3s ease;
}

.project-info {
    padding-left: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: left;
}

.project-overline {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-silver);
    font-weight: 600;
}

.project-header-small {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xs);
}

.project-status {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.project-featured h3 {
    font-size: var(--fs-h3);
    margin-bottom: var(--spacing-xs);
    font-weight: 700;
}

.project-desc {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    font-size: var(--fs-body);
}

.project-stats {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.project-tags span {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    /* very subtle */
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Tablet / Mobile */
@media (max-width: 960px) {

    .project-featured,
    .project-featured.reversed {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .project-featured.reversed .project-visual {
        order: 0;
        /* Reset order */
    }

    .project-featured.reversed .project-info {
        order: 1;
        padding-right: 0;
    }

    .project-info {
        padding-left: 0;
    }
}

/* Contact Section */
.contact-section {
    text-align: center;
    background: transparent;
    /* Remove gradient, let liquid show */
    position: relative;
    border-top: 1px solid var(--glass-border);
    padding-top: var(--spacing-xxl);
    padding-bottom: var(--spacing-xl);
}

.contact-text {
    font-size: var(--fs-h3);
    margin-bottom: var(--spacing-xl);
    color: var(--text-primary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
    font-weight: 600;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* Footer */
.footer {
    padding: var(--spacing-xl) 0;
    text-align: center;
    background-color: transparent;
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    border-top: 1px solid var(--glass-border);
}

/* Animations Class */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, visibility;
}

.fade-in-section.visible {
    opacity: 1;
    transform: none;
}

/* Responsive & Mobile Menu */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-xl);
    }

    .about-image {
        order: -1;
        margin-bottom: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .nav-content {
        justify-content: space-between;
    }

    .hamburger {
        display: block;
    }

    .hamburger.toggle .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.toggle .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.toggle .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        display: flex;
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        background: rgba(10, 10, 10, 0.95);
        /* Better mobile backdrop */
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        /* Full width */
        max-width: none;
        transition: right var(--transition-speed) ease-in-out;
        z-index: 1000;
        padding-top: 60px;
    }

    .nav-active {
        right: 0;
    }

    .nav-links a {
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
        font-size: 1.5rem;
        margin: var(--spacing-md) 0;
    }

    .nav-active a {
        opacity: 1;
        transform: translateX(0);
    }

    /* Section adjustments */
    .hero-title {
        font-size: 3rem;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        padding-left: var(--spacing-lg);
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* Reduce section padding on mobile */
    :root {
        --section-padding: 4rem 1rem;
    }
}

/* Mobile Parallax Fix */
@media (hover: none) and (pointer: coarse),
(max-width: 768px) {

    #experience,
    #tools,
    #projects,
    #contact {
        background-attachment: scroll !important;
    }
}

/* Cinematic Parallax Backgrounds */
/* Applies to major sections */
#experience,
#tools,
#projects,
#contact {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    /* Ensure overlay works */
}

/* Noir Overlay for Readability */
#experience::before,
#tools::before,
#projects::before,
#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.92);
    /* Heavy dark overlay */
    z-index: 1;
    backdrop-filter: grayscale(100%) contrast(1.1);
    /* Ensure image is monochrome */
}

/* Ensure content sits on top of overlay */
#experience .container,
#tools .container,
#projects .container,
#contact .container {
    position: relative;
    z-index: 2;
}

/* Specific Section Backgrounds (Mapping Images) */
#experience {
    background-image: url('../assets/inspiration-macs.jpg');
}

#tools {
    background-image: url('../assets/inspiration-typewriter.jpg');
    position: relative;
    z-index: 5;
    overflow: hidden;
    width: 100%;
}

.tools-section .container {
    max-width: 100vw !important;
    /* Force full width for marquee */
    padding: 0;
    overflow: visible;
}

#projects {
    background-image: url('../assets/inspiration-terminal.jpg');
}

#contact {
    background-image: url('../assets/inspiration-apple-ii.jpg');
    border-top: none;
    /* Remove border as image separates it */
}

/* Dynamic Text Highlights: Titanium Shimmer */
.highlight-text {
    background: linear-gradient(120deg,
            rgba(255, 255, 255, 0.6) 0%,
            /* Dimmed base */
            rgba(255, 255, 255, 1) 50%,
            /* Bright shimmer */
            rgba(255, 255, 255, 0.6) 100%
            /* Dimmed base */
        );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* Hide actual text to show bg */
    animation: titaniumShimmer 3s infinite linear;
    display: inline-block;
    /* Ensure gradient applies correctly */
}

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

    100% {
        background-position: -100% 0;
    }
}