/* ==========================================================================
   CSS Variables & Reset (Agency-Level Obsidian Theme)
   ========================================================================== */
   :root {
    /* Obsidian & Silver Palette */
    --bg-color: #020202;
    --surface-color: #0a0a0a;
    --surface-raised: #121212;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.2);
    
    /* Text Colors */
    --text-primary: #ededed;
    --text-secondary: #8a8a8a;
    --text-muted: #555555;
    
    /* Iridescent/Metallic Accents */
    --accent-silver: #ffffff;
    --gradient-iridescent: linear-gradient(110deg, #444, #fff, #444);
    
    /* Typography Pairs */
    --font-sans: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Newsreader', serif;
    --font-mono: 'Space Mono', monospace;
    
    /* Spacing & Layout */
    --max-width: 1280px;
    --section-spacing: 200px;
    
    /* Premium Easing Curves */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

html {
    font-size: 16px;
    background-color: var(--bg-color);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.loading {
    overflow: hidden;
}

/* ==========================================================================
   Preloader
   ========================================================================== */
.preloader {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: var(--bg-color);
    z-index: 100000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 1s var(--ease-in-out-circ);
}

.preloader.complete {
    opacity: 0;
    pointer-events: none;
}

.preloader-content {
    display: flex;
    justify-content: space-between;
    width: 300px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.preloader-bar {
    width: 300px;
    height: 1px;
    background-color: var(--border-color);
    position: relative;
    overflow: hidden;
}

.preloader-progress {
    position: absolute;
    top: 0; left: 0; height: 100%; width: 0%;
    background-color: #00ff66;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px #00ff66;
}

.preloader-logs {
    width: 300px;
    margin-top: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.6;
    height: 60px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* ==========================================================================
   Custom Cursor
   ========================================================================== */
.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0; left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 99999;
    pointer-events: none;
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 4px; height: 4px;
    background-color: #fff;
}

.cursor-outline {
    width: 40px; height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo), background-color 0.3s;
}

.cursor-outline.hovering {
    width: 70px; height: 70px;
    background-color: rgba(255, 255, 255, 1);
    border-color: transparent;
    mix-blend-mode: difference;
}

@media (max-width: 768px) {
    * { cursor: auto !important; }
    .cursor-dot, .cursor-outline { display: none; }
}

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

.ambient-ui {
    position: fixed;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    z-index: 90;
    pointer-events: none !important;
    mix-blend-mode: difference;
}

.ambient-ui.top-left { top: 2rem; left: 2rem; }
.ambient-ui.top-right { top: 2rem; right: 2rem; }
.ambient-ui.bottom-left { bottom: 2rem; left: 2rem; }
.ambient-ui.bottom-right { bottom: 2rem; right: 2rem; }

@media (max-width: 1024px) {
    .ambient-ui { display: none; }
}

@media (max-width: 768px) {
    .ambient-ui { display: none; }
}

/* ==========================================================================
   Background Orbs (Hero Section)
   ========================================================================== */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
    animation: drift 20s infinite alternate ease-in-out;
}

.top-orb {
    top: -10%; left: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, #00ff66 0%, transparent 70%);
}

.bottom-orb {
    bottom: -10%; right: -10%;
    width: 800px; height: 800px;
    background: radial-gradient(circle, #7b61ff 0%, transparent 70%);
    animation-delay: -10s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 100px) scale(1.2); }
}

/* Vertical glowing line for richness */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 4rem;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 255, 102, 0.3), transparent);
    z-index: 1;
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% { transform: translateY(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(100%); opacity: 0; }
}

/* ==========================================================================
   Typography Rules
   ========================================================================== */
h1, h2, h3, .logo {
    font-family: var(--font-sans);
    font-weight: 500;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    word-break: break-word;
}

.serif-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0;
}

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

.text-glow {
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 4rem;
    position: relative;
    z-index: 1;
}

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

/* Section Headers */
.section-header {
    margin-bottom: 5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.section-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 2px; height: 100%;
    background: linear-gradient(to bottom, #00ff66, transparent);
    opacity: 0.5;
}

.section-meta {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.section-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    line-height: 1;
    text-transform: capitalize;
}

/* ==========================================================================
   Text Reveal Animations
   ========================================================================== */
.line-mask {
    overflow: hidden;
    display: block;
    line-height: 1.1;
    padding-bottom: 0.2em;
    margin-bottom: -0.2em;
}

.line-text {
    display: block;
    transform: translateY(110%);
    transition: transform 1.2s var(--ease-out-expo);
    will-change: transform;
}

.reveal-element.active .line-text {
    transform: translateY(0);
}

.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}

.reveal-element.active .reveal-text {
    opacity: 1;
    transform: translateY(0);
}

.reveal-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s var(--ease-out-expo), transform 1.2s var(--ease-out-expo);
}

.reveal-element.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 2rem 0;
    z-index: 100;
    transition: padding 0.4s var(--ease-out-expo), background-color 0.4s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 1.25rem 0;
    background-color: rgba(2, 2, 2, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem; /* Add gap between logo and links */
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.glitch:hover {
    animation: glitch-skew 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}

.glitch:hover::before,
.glitch:hover::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

.glitch:hover::before {
    left: 2px; text-shadow: -2px 0 #00ff66;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch:hover::after {
    left: -2px; text-shadow: -2px 0 #7b61ff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim { 0% { clip: rect(10px, 9999px, 81px, 0); } 100% { clip: rect(81px, 9999px, 59px, 0); } }
@keyframes glitch-anim2 { 0% { clip: rect(65px, 9999px, 100px, 0); } 100% { clip: rect(38px, 9999px, 49px, 0); } }
@keyframes glitch-skew { 0% { transform: skew(0deg); } 100% { transform: skew(0deg); } }

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin-right: 4rem; /* Push away from the edge/coordinates */
}

.nav-links a {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 0%; height: 1px;
    background: var(--text-primary);
    transition: width 0.3s var(--ease-out-expo);
}

.nav-links a:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .nav-container { padding: 0 2rem; }
    .nav-links { display: none; }
}

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

.hero-title {
    font-size: clamp(3.5rem, 10vw, 8rem);
    line-height: 0.9;
    margin-bottom: 2rem;
}

.hero-tagline {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: var(--text-secondary);
    max-width: 800px;
    margin-bottom: 4rem;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(10px);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    margin-bottom: 3rem;
    transition: all 0.3s var(--ease-out-expo);
    cursor: none;
}

.badge:hover {
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.06);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255,255,255,0.05);
}

.pulse-dot {
    width: 6px; height: 6px;
    background-color: #00ff66;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 0 0 rgba(0, 255, 102, 0.4); }
    70% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 10px rgba(0, 255, 102, 0); }
    100% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 0 0 rgba(0, 255, 102, 0); }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2.5rem;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

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

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-color);
}

.btn-primary:hover {
    background: var(--accent-silver);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255,255,255,0.15);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    background: rgba(255,255,255,0.03);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-content {
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about-content p {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    color: var(--text-secondary);
    line-height: 1.4;
    font-weight: 300;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   Projects Section (Obsidian Bento)
   ========================================================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(400px, auto);
    gap: 1.5rem;
}

/* Base definitions for mobile */
.project-card.wide, .project-card.square, .project-card.full-wide {
    grid-column: span 12;
}

.project-card {
    position: relative;
    border-radius: 24px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08), 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s var(--ease-out-expo), border-color 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 40%, rgba(0, 255, 102, 0.03) 100%);
    z-index: 1;
    pointer-events: none;
    opacity: 0.5;
    transition: opacity 0.5s var(--ease-out-expo);
}

.project-card:hover {
    border-color: rgba(0, 255, 102, 0.3);
    transform: translateY(-8px);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 50px rgba(0, 255, 102, 0.08);
}

.project-card:hover::before {
    opacity: 1;
}

/* Desktop Layout */
@media (min-width: 1024px) {
    .project-card.wide { grid-column: span 8; }
    .project-card.square { grid-column: span 4; }
    .project-card.full-wide { grid-column: span 12; }
    
    /* Strict placement to prevent CSS auto-placement bugs */
    .project-card:nth-child(1) { grid-column: 1 / span 8; }
    .project-card:nth-child(2) { grid-column: 9 / span 4; }
    .project-card:nth-child(3) { grid-column: 1 / span 4; }
    .project-card:nth-child(4) { grid-column: 5 / span 8; }
    .project-card:nth-child(5) { grid-column: 1 / span 4; }
    .project-card:nth-child(6) { grid-column: 5 / span 8; }
}

.card-inner {
    padding: 3rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%);
}

@media (min-width: 1024px) {
    .project-card.wide .card-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 3rem;
    }
}

.project-card.wide .project-content {
    flex: 1;
    min-width: 0;
}

.project-card.wide .project-visual {
    flex: 1;
    min-width: 0;
    height: 100%;
    min-height: 300px;
    border-radius: 16px;
    background: rgba(0, 255, 102, 0.02);
    border: 1px solid rgba(0, 255, 102, 0.05);
    position: relative;
    overflow: hidden;
    transition: background 0.5s;
}

.project-card.wide:hover .project-visual {
    background: rgba(0, 255, 102, 0.05);
}

.data-grid-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.5;
}

.abstract-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.4;
    transition: transform 1.5s var(--ease-out-expo), opacity 1s;
}

.shape-1 {
    width: 250px; height: 250px;
    background: conic-gradient(from 90deg, #00ff66, #0066ff, #00ff66);
    top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(0deg);
    animation: slowRotate 20s linear infinite;
}

.project-card:hover .shape-1 {
    opacity: 0.8;
    filter: blur(40px);
    transform: translate(-50%, -50%) scale(1.2) rotate(45deg);
}

@keyframes slowRotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.shape-2 {
    width: 250px; height: 250px;
    background: conic-gradient(from 180deg at 50% 50%, #222 0deg, #fff 180deg, #222 360deg);
    top: 50%; left: 50%; transform: translate(-50%, -50%);
}

.project-card:hover .abstract-shape {
    transform: translate(-50%, -50%) scale(1.15);
}

.pulse-dot.inline {
    display: inline-block;
    width: 4px; height: 4px;
    margin-right: 6px;
    vertical-align: middle;
}

.project-meta {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.project-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.tech-stack span {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-secondary);
    background: rgba(0,0,0,0.3);
}

.project-card:hover .tech-stack span {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.project-link {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #00ff66;
    margin-top: 1rem;
    transition: color 0.3s var(--ease-out-expo), transform 0.3s var(--ease-out-expo);
}

.project-link:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.card-glow {
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover .card-glow {
    opacity: 1;
}

.project-metrics {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.metric {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.metric-value {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: #00ff66;
    letter-spacing: -0.05em;
}

.metric-label {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.code-snippet-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.25rem;
    border-radius: 8px;
    font-family: 'Space Mono', monospace; 
    font-size: 0.7rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.5s, transform 0.5s;
    opacity: 0.7;
}

.project-card:hover .code-snippet-overlay {
    opacity: 1;
    transform: translateY(-5px);
    border-color: rgba(0, 255, 102, 0.2);
}

.code-snippet-overlay .keyword { color: #ff7b72; }
.code-snippet-overlay .func { color: #d2a8ff; }

/* ==========================================================================
   Skills Section
   ========================================================================== */
.skills-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
}

.skills-text p {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    color: var(--text-secondary);
    line-height: 1.5;
}

.skills-lists {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

/* ==========================================================================
   Skill Group Boxes & Sweeps
   ========================================================================== */
.skill-group {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 16px;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.skill-group::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, #00ff66, transparent);
    transform: translateX(-100%);
    transition: transform 0.6s var(--ease-out-expo);
}

.skill-group:hover {
    border-color: rgba(0, 255, 102, 0.3);
    background: rgba(0, 255, 102, 0.02);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 102, 0.05);
}

.skill-group:hover::before {
    transform: translateX(100%);
}

.skill-group h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.skill-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-group li {
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.skill-group li:hover {
    color: var(--text-primary);
}

.learning-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.learning-list li {
    font-size: 1.15rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}

.learning-list strong {
    color: var(--text-primary);
    font-weight: 500;
}

.highlight-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #00ff66;
    border-radius: 50%;
    margin-top: 0.5rem;
    margin-right: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.4);
}

/* ==========================================================================
   Marquee Banner (Rich UI Element)
   ========================================================================== */
.marquee-wrapper {
    width: 100vw;
    overflow: hidden;
    padding: 3rem 0;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin: 6rem 0 2rem 0;
    position: relative;
    z-index: 1;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 200px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-color) 0%, transparent 100%);
}

.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-color) 0%, transparent 100%);
}

.marquee {
    display: flex;
    white-space: nowrap;
    animation: scroll-marquee 40s linear infinite;
}

.marquee span {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.15);
    padding: 0 2rem;
    letter-spacing: 0.05em;
    transition: color 0.3s, -webkit-text-stroke 0.3s;
}

.marquee-wrapper:hover .marquee span {
    color: rgba(0, 255, 102, 0.05);
    -webkit-text-stroke: 1px rgba(0, 255, 102, 0.4);
}

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
   Trajectory Section
   ========================================================================== */
.trajectory-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 900px;
}

.trajectory-block {
    position: relative;
    padding-left: 3rem;
    border-left: 1px solid var(--border-color);
    padding-bottom: 3rem;
    transition: border-color 0.4s;
}

.trajectory-block:hover {
    border-left-color: #00ff66;
}

.trajectory-block:last-child {
    padding-bottom: 0;
}

.trajectory-block::before {
    content: '';
    position: absolute;
    top: 0; left: -4.5px;
    width: 8px; height: 8px;
    background-color: var(--border-color);
    border-radius: 50%;
    transition: background-color 0.4s, box-shadow 0.4s, transform 0.4s;
    z-index: 2;
}

.trajectory-block:hover::before {
    background-color: #00ff66;
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.6), 0 0 30px rgba(0, 255, 102, 0.2);
    transform: scale(1.8);
}

.trajectory-block::after {
    content: '';
    position: absolute;
    top: 8px; left: -1px;
    width: 2px; height: 0;
    background: linear-gradient(to bottom, #00ff66, transparent);
    transition: height 0.6s var(--ease-out-expo);
    z-index: 1;
}

.trajectory-block:hover::after {
    height: 100%;
}

.trajectory-meta {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.trajectory-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.trajectory-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.trajectory-list {
    list-style: none;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.trajectory-list li {
    font-size: 1.1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}

.trajectory-list li::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background-color: var(--text-primary);
    border-radius: 50%;
    margin-top: 0.6rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.trajectory-list strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-card {
    border-radius: 32px;
    position: relative;
    padding: 1px;
    background: linear-gradient(180deg, var(--border-color) 0%, transparent 100%);
    pointer-events: auto;
}

.contact-inner {
    background: var(--surface-color);
    border-radius: 31px;
    padding: 8rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 10;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.05);
}

.contact-title {
    font-size: clamp(3rem, 8vw, 7rem);
    margin-bottom: 2rem;
}

.contact-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 4rem;
}

.social-links {
    margin-top: 5rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-links a {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    transition: color 0.3s;
}

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

.social-links .divider {
    color: var(--text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-copyright {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.massive-footer-name {
    width: 100%;
    margin-top: 4rem;
    overflow: hidden;
    position: relative;
    z-index: 0;
}

.footer-name-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateY(100%);
    transition: transform 1.5s var(--ease-out-expo);
    padding-bottom: 2rem;
}

.footer-inline-avatar {
    width: clamp(80px, 12vw, 180px);
    height: clamp(80px, 12vw, 180px);
    border-radius: 50%;
    object-fit: cover;
    filter: grayscale(100%) opacity(0.6);
    transition: filter 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.massive-footer-name.active .footer-name-wrapper {
    transform: translateY(0);
}

.massive-footer-name:hover .footer-inline-avatar {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05) rotate(-5deg);
    border-color: rgba(0, 255, 102, 0.4);
    box-shadow: 0 0 30px rgba(0, 255, 102, 0.2);
}

.massive-footer-name span {
    font-family: var(--font-sans);
    font-size: clamp(4rem, 20vw, 25rem);
    font-weight: 900;
    line-height: 0.8;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    -webkit-background-clip: text;
    transition: all 0.5s var(--ease-out-expo);
}

.massive-footer-name.active span {
    transform: translateY(0);
}

.massive-footer-name:hover span {
    -webkit-text-stroke: 1px rgba(0, 255, 102, 0.3);
    color: rgba(0, 255, 102, 0.02);
    transition: all 0.5s var(--ease-out-expo);
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .skills-layout { grid-template-columns: 1fr; gap: 4rem; }
}

@media (max-width: 768px) {
    .container { padding: 0 2rem; }
    .section { padding: 120px 0; }
    .project-card.wide .card-inner { flex-direction: column; gap: 2rem; }
    .project-card.wide .project-content, .project-card.wide .project-visual { max-width: 100%; width: 100%; }
    .footer-content { flex-direction: column; gap: 2rem; text-align: center; }
    .footer-left { flex-direction: column; gap: 1rem; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .btn { width: 100%; }
    .skills-lists { grid-template-columns: 1fr; gap: 2rem; }
    .footer-name-wrapper { flex-direction: column; gap: 1rem; }
}