/* --- Design Tokens --- */
:root {
    --bg: #030305;
    --surface-1: rgba(20, 20, 24, 0.4);
    --surface-2: rgba(30, 30, 35, 0.6);
    --border: rgba(255, 255, 255, 0.05);
    --text-pure: #ffffff;
    --text-dim: #888891;
    --accent: #00f0ff;
    --accent-glow: rgba(0, 240, 255, 0.15);
    
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base & Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Custom cursor */
}

/* Film Grain overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Hide scrollbar for cleaner look but retain functionality via Lenis */
::-webkit-scrollbar {
    display: none;
}
html {
    scrollbar-width: none;
}

body {
    background-color: var(--bg);
    color: var(--text-pure);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Container Formatting --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4vw;
    position: relative;
    z-index: 5;
}

/* Specific container for the Hero to ensure absolute left alignment on massive monitors */
.hero-container {
    width: 100%;
    padding: 0 5vw;
    position: relative;
    z-index: 5;
}

.section-padding {
    padding-top: 15vh;
    padding-bottom: 10vh;
}

/* --- Custom Cursor --- */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--text-pure);
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), background 0.3s;
}

/* --- Global Enhancements --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--accent);
    width: 0%;
    z-index: 9999;
    box-shadow: 0 0 10px var(--accent);
    transform-origin: left;
}

/* --- Kinetic Morphing Reticle HUD --- */
.hud-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px; /* Invisible Trigger Zone */
    z-index: 1000;
}

.laser-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(0, 240, 255, 0.2);
    z-index: 1;
}

.laser-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    transition: width 0.1s linear;
}

/* --- Luminous Slow-Unroll (The Blue Dot) --- */
/* The Resting Blue Node */
.kinetic-reticle {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 12px; /* Small Blue Dot */
    height: 12px;
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent);
    border-radius: 50%;
    
    /* Cinematic Slow Morphing Transition */
    transition: all 2s cubic-bezier(0.16, 1, 0.3, 1);
    
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1001;
    cursor: pointer;
}

.reticle-core {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.reticle-expanded {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 0 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    white-space: nowrap;
}

/* Expansion Trigger (Manual & Automatic) */
.hud-container:hover .kinetic-reticle, 
.kinetic-reticle:hover,
.kinetic-reticle.auto-reveal {
    width: 500px;
    height: 50px;
    background: rgba(10, 10, 14, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-radius: 50px;
}

.hud-container:hover .reticle-core, 
.kinetic-reticle:hover .reticle-core,
.kinetic-reticle.auto-reveal .reticle-core {
    opacity: 0;
}

.hud-container:hover .reticle-expanded, 
.kinetic-reticle:hover .reticle-expanded,
.kinetic-reticle.auto-reveal .reticle-expanded {
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0.8s; /* Longer delay matching the slow unroll */
}

/* Unified Interior Design */
.hud-nav-track {
    display: flex;
    position: relative;
    gap: 1rem;
    padding: 0 1rem;
}

.hud-link {
    color: var(--text-dim);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.5rem 0.8rem;
    transition: color 0.4s ease;
    z-index: 2;
}

.hud-link:hover, .pill-link.active {
    color: var(--text-pure);
}

/* Removed brand-link */

/* The Luminous Underline Glow */
.laser-underline {
    position: absolute;
    bottom: 0.2rem;
    left: 0;
    height: 1.8px;
    background: var(--accent);
    box-shadow: 0 0 14px var(--accent), 0 0 6px var(--accent);
    border-radius: 10px;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Glass-morphic Init Node */
.init-link {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-pure);
    padding: 0.5rem 1.4rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.75rem !important;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.init-link:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.status-dot-pulse {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 10px var(--accent);
    animation: initPulse 1.5s infinite;
}

@keyframes initPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}

/* --- Typography Utilities --- */
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 10vw, 9rem);
    line-height: 0.9;
    font-weight: 600;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.text-dim {
    color: var(--text-dim);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 6rem);
    line-height: 1;
    font-weight: 600;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}
.section-header {
    margin-bottom: 5vh;
}

/* --- Hero Section --- */
.text-left {
    text-align: left;
}
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden; /* Ensure the image mask doesn't spill over */
}
.hero-content {
    /* No max-width so the text never wraps unnecessarily to 4 lines */
    width: 100%;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(5rem, 11vw, 11rem);
    line-height: 0.85;
    font-weight: 700;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    
    /* 3D Depth Setup via Custom Properties mapped in JS */
    --x-shadow: 0px;
    --y-shadow: 0px;
}

.hero-title .reveal-text {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    transition: text-shadow 0.1s ease-out, color 0.3s ease;
    /* Magnetic 3D Depth Shadow generated dynamically */
    text-shadow: 
        calc(var(--x-shadow) * 1) calc(var(--y-shadow) * 1) 0 rgba(0, 240, 255, 0.4),
        calc(var(--x-shadow) * 2) calc(var(--y-shadow) * 2) 0 rgba(88, 28, 255, 0.2),
        calc(var(--x-shadow) * 3) calc(var(--y-shadow) * 3) 0 rgba(0, 0, 0, 0.5);
}

.hero-title .reveal-text:hover {
    color: transparent;
    -webkit-text-stroke: 1px var(--text-pure);
}

/* --- Hero Status (Rotating Text) --- */
.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dim);
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(0, 240, 255, 0.15);
    background: rgba(0, 240, 255, 0.03);
    border-radius: 30px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
}

.rotating-text {
    display: inline-block;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    opacity: 1;
    transform: translateY(0);
}

.rotating-text.fade-out {
    opacity: 0;
    transform: translateY(-5px);
}

.rotating-text.fade-in {
    opacity: 0;
    transform: translateY(5px);
}
.hero-bg-image {
    position: absolute;
    top: 5vh; 
    right: 0;
    width: 50vw;
    height: 95vh;
    background-image: url('profile.png');
    background-size: cover; /* Cover is better to fill the space */
    background-position: center left;
    background-repeat: no-repeat;
    
    /* Making it "white and dull" and ensuring high contrast so his face stands out */
    filter: grayscale(100%) contrast(150%) brightness(80%);
    opacity: 0.35; /* Increased opacity so it's clearly visible */
    mix-blend-mode: screen; /* 'Screen' drops the black background of the photo, leaving only the white/gray highlights! */
    
    /* Radial gradient to fade out the left/bottom edges into the black void */
    -webkit-mask-image: radial-gradient(ellipse at center right, black 50%, transparent 90%);
    mask-image: radial-gradient(ellipse at center right, black 50%, transparent 90%);
    
    z-index: 1; /* Place it safely above the background grid, but behind .container (z-index 5) */
    pointer-events: none;
}

.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    margin-bottom: 4vh;
    color: var(--accent);
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
}

.hero-subtitle {
    max-width: 650px;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-dim);
    margin-bottom: 4vh;
    font-weight: 300;
}

/* Background Grid for techy feel */
.bg-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black, transparent 60%);
}

/* Text Masking for GSAP Animations */
.line-wrap {
    overflow: hidden;
}
.reveal-text {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 500;
    border: 1px solid var(--border);
    color: var(--text-pure);
    background: var(--surface-1);
    backdrop-filter: blur(10px);
}

/* --- Performant Project Layout --- */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 15vh; /* Breathable spacing, no overlapping */
    padding-bottom: 5vh;
}

.card-wrapper {
    position: relative;
    border-radius: 18px;
    will-change: transform, opacity;
}

.project-card {
    background: var(--surface-1); /* lighter background to avoid expensive strong blur overhead */
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 18px; 
    padding: 5rem 4rem;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); /* Optimized shadow */
    z-index: 1; 
}

/* Even item alternates grid flow */
.project-card:nth-child(even) {
    grid-template-columns: 1.5fr 1fr;
}

.project-card:nth-child(even) .project-content-left {
    order: 2; /* Move text to right */
}

.project-card:nth-child(even) .project-visual-right {
    order: 1; /* Move visual to left */
}

/* Watermark Number */
.card-number-watermark {
    position: absolute;
    top: -5%;
    right: -2%;
    font-size: 25rem;
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1;
    color: rgba(255, 255, 255, 0.02);
    pointer-events: none;
    z-index: 0;
    user-select: none;
    letter-spacing: -0.05em;
}

.project-card:nth-child(even) .card-number-watermark {
    left: -2%;
    right: auto;
}

@media (max-width: 1024px) {
    .project-card, .project-card:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 4rem 2rem;
    }
    .project-card:nth-child(even) .project-content-left {
        order: 1;
    }
    .project-card:nth-child(even) .project-visual-right {
        order: 2;
    }
}

.project-content-left {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.project-content-left h3 {
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    color: var(--text-pure);
}

.badge {
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--accent);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 1.5rem;
}
.badge-alt {
    color: #fff;
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
}

.project-summary {
    margin-bottom: 2rem;
}

.compact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.compact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    color: var(--text-dim);
}

.compact-list li i {
    color: var(--accent);
    font-size: 1.2rem;
}

.tech-pill-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.tech-pill {
    font-family: "JetBrains Mono", "Space Mono", monospace;
    font-size: 0.85rem;
    color: var(--text-pure);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

/* --- Project Right Visualizers --- */
.project-visual-right {
    position: relative;
    z-index: 2;
    height: 100%;
    min-height: 400px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
}

.visual-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    mix-blend-mode: color-dodge;
    opacity: 0.3;
}
.glow-blue { background: radial-gradient(circle at top right, rgba(0, 100, 255, 0.4), transparent 60%); }
.glow-purple { background: radial-gradient(circle at center, rgba(150, 0, 255, 0.3), transparent 70%); }
.glow-cyan { background: radial-gradient(circle at bottom left, rgba(0, 255, 200, 0.3), transparent 60%); }

/* 1. Node Graph Visualizer */
#canvas-nodes {
    width: 100%;
    height: 100%;
    display: block;
}

/* 2. Fake Terminal Visualizer */
.terminal-window {
    width: 85%;
    max-width: 500px;
    background: #0f0f13;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    font-family: "JetBrains Mono", monospace;
}
.terminal-header {
    background: #1a1a20;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mac-dots {
    display: flex;
    gap: 8px;
}
.mac-dots .dot {
    width: 12px; height: 12px; border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.terminal-title {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    color: #666;
}
.terminal-body {
    padding: 20px;
    height: 250px;
    color: #00f0ff;
    font-size: 0.9rem;
    line-height: 1.5;
    overflow: hidden;
    white-space: pre-wrap;
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.4);
}
.cursor-blink::after {
    content: '_';
    animation: blink 1s step-start infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* 3. Pipeline Visualizer */
.pipeline-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 2rem;
}
.pipe-node {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 1.5rem 1rem;
    border-radius: 16px;
    text-align: center;
    font-size: 0.9rem;
    font-family: var(--font-display);
    color: var(--text-pure);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
}
.pipe-node i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 10px;
    display: block;
}
.pipe-line {
    height: 2px;
    flex: 1;
    background: rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}
.flow-particle {
    position: absolute;
    top: -3px;
    left: -10px;
    width: 20px;
    height: 8px;
    background: var(--accent);
    border-radius: 10px;
    box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
    animation: flow 2s infinite linear;
}
.flow-particle.delay { animation-delay: 1s; }
@keyframes flow {
    0% { left: -10%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 110%; opacity: 0; }
}

/* Primary Button (Replaces Arrow Link) */
.primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 2rem;
    border-radius: 50px;
    background: var(--text-pure);
    color: var(--bg);
    font-family: var(--font-display);
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.primary-btn i {
    font-size: 1.2rem;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.15);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.05rem;
    text-decoration: none;
    transition: color 0.3s, gap 0.3s;
}

.text-link i {
    transition: transform 0.3s;
}

.text-link:hover {
    color: var(--text-pure);
    gap: 12px;
}

/* --- Tech Stack (Revamped) --- */
.skills-section {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: linear-gradient(to bottom, transparent, rgba(20, 20, 24, 0.2), transparent);
}

.tech-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6rem;
    position: relative;
    z-index: 10;
}

/* --- Orbiting Core --- */
.orbit-container {
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

/* --- Orbiting Core --- */
.orbit-container {
    position: relative;
    width: 800px;
    height: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.orbit-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.4), transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.orbit-core {
    position: relative;
    z-index: 10;
    width: 120px;
    height: 120px;
    background: rgba(20, 20, 24, 0.9);
    border: 1px solid rgba(0, 240, 255, 0.5);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.25);
    backdrop-filter: blur(10px);
}
.orbit-core i { font-size: 3rem; color: var(--accent); }
.orbit-core span {
    font-size: 0.8rem;
    font-family: var(--font-display);
    margin-top: 5px;
    text-transform: uppercase;
    color: var(--text-pure);
}

.orbit-ring {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    z-index: 1;
}

/* 4 Concentric Rings */
.orbit-ring-1 { width: 260px; height: 260px; }
.orbit-ring-2 { width: 420px; height: 420px; }
.orbit-ring-3 { width: 580px; height: 580px; }
.orbit-ring-4 { width: 740px; height: 740px; }

.orbit-satellite {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform-origin: center;
}

/* Custom Keyframes for independent radius and opposing spin directions */
@keyframes spinClockwise260 {
    0% { transform: rotate(0deg) translateX(130px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(130px) rotate(-360deg); }
}
@keyframes spinCounter420 {
    0% { transform: rotate(0deg) translateX(210px) rotate(0deg); }
    100% { transform: rotate(-360deg) translateX(210px) rotate(360deg); }
}
@keyframes spinClockwise580 {
    0% { transform: rotate(0deg) translateX(290px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(290px) rotate(-360deg); }
}
@keyframes spinCounter740 {
    0% { transform: rotate(0deg) translateX(370px) rotate(0deg); }
    100% { transform: rotate(-360deg) translateX(370px) rotate(360deg); }
}

.orbit-ring-1 .orbit-satellite {
    animation: spinClockwise260 20s linear infinite;
    animation-delay: var(--delay, 0s);
}
.orbit-ring-2 .orbit-satellite {
    animation: spinCounter420 25s linear infinite;
    animation-delay: var(--delay, 0s);
}
.orbit-ring-3 .orbit-satellite {
    animation: spinClockwise580 35s linear infinite;
    animation-delay: var(--delay, 0s);
}
.orbit-ring-4 .orbit-satellite {
    animation: spinCounter740 45s linear infinite;
    animation-delay: var(--delay, 0s);
}

.orbit-icon {
    width: 46px;
    height: 46px;
    background: #111;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}
.orbit-satellite:hover .orbit-icon {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
    transform: scale(1.1);
}
.orbit-icon i { font-size: 1.5rem; color: #fff; }
.orbit-satellite span { font-size: 0.8rem; color: var(--text-pure); white-space: nowrap; }


@media (max-width: 768px) {
    .orbit-container { transform: scale(0.45); margin: -150px 0; }
    .tech-showcase { gap: 2rem; }
}

/* --- Timeline Experience --- */
.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 4rem;
}

.timeline-marker {
    position: absolute;
    left: 20px;
    top: 30px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent);
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.log-date {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--text-dim);
}

.log-company {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.log-list {
    color: var(--text-dim);
    list-style: none;
}
.log-list li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}
.log-list li::before {
    content: '-';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* --- Footer --- */
.footer-section {
    background: radial-gradient(circle at center top, rgba(20, 20, 24, 0.5) 0%, transparent 60%);
}

.footer-cta h2 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 6rem);
    line-height: 0.9;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.contact-subtext {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
    max-width: 600px;
}

.mt-4 {
    margin-top: 2rem;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2rem;
    border-radius: 50px;
    background: var(--text-pure);
    color: var(--bg);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s var(--ease-out);
}
.contact-btn i {
    font-size: 1.4rem;
}
.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.ghost-variant {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-pure);
}
.ghost-variant:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-pure);
}

.footer-bottom {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 10vh;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--text-dim);
}

/* Media Queries */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .timeline-item { padding-left: 50px; }
    .timeline-line { left: 14px; }
    .timeline-marker { left: 10px; }
    .log-header { flex-direction: column; gap: 0.5rem; }
}
