/* ============================================
   BL1ND Portfolio - Multi-Style Design System
   ============================================ */

/* CSS Custom Properties / Variables */
:root {
    /* Colors */
    --black: #000000;
    --white: #ffffff;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    
    /* Accent Colors */
    --accent-primary: #00ff88;
    --accent-secondary: #ff0080;
    --accent-tertiary: #00d4ff;
    --accent-warm: #ff6b35;
    
    /* Gradients */
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-neon: linear-gradient(135deg, #00ff88 0%, #40e0d0 50%, #ff69b4 100%);
    
    /* Typography */
    --font-primary: 'Space Grotesk', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-2xl: 8rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Z-index layers */
    --z-cursor: 9999;
    --z-nav: 1000;
    --z-modal: 2000;
    --z-overlay: 500;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

::selection {
    background: var(--accent-primary);
    color: var(--black);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: none;
    border: none;
    background: none;
}

/* ============================================
   Custom Cursor
   ============================================ */
.cursor {
    width: 12px;
    height: 12px;
    background: var(--accent-primary);
    border-radius: 50%;
    position: fixed;
    left: 0;
    top: 0;
    pointer-events: none;
    z-index: var(--z-cursor);
    will-change: transform;
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, opacity 0.2s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-primary);
    border-radius: 50%;
    position: fixed;
    left: 0;
    top: 0;
    pointer-events: none;
    z-index: calc(var(--z-cursor) - 1);
    will-change: transform;
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, opacity 0.2s ease;
}

.cursor.hover {
    width: 60px;
    height: 60px;
    background: transparent;
    border: 2px solid var(--accent-primary);
    mix-blend-mode: normal;
}

.cursor-follower.hover {
    width: 80px;
    height: 80px;
    border-color: var(--accent-secondary);
}

@media (max-width: 768px) {
    .cursor, .cursor-follower {
        display: none;
    }
    
    body {
        cursor: auto;
    }
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: var(--z-nav);
    transition: all var(--transition-base);
    background: transparent;
}

.nav.scrolled {
    padding: 1rem 3rem;
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.logo-text {
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    position: relative;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width var(--transition-base);
}

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

.btn-primary {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    color: var(--black);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    border-radius: 100px;
    transition: all var(--transition-base);
}

.btn-primary:hover {
    background: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition-base);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--black);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: calc(var(--z-nav) - 1);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .nav-links, .nav-cta {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-neon);
    z-index: calc(var(--z-nav) + 1);
    width: 0%;
    transition: width 0.1s linear;
}

/* ============================================
   Section Base Styles
   ============================================ */
.section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.section-header {
    margin-bottom: var(--space-xl);
}

.section-number {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: var(--space-md);
    letter-spacing: 0.2em;
}

.section-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-400);
    margin-top: var(--space-md);
    max-width: 500px;
}

/* ============================================
   Section 1: Hero - Nothing.tech Inspired
   Minimalist, Monochrome, Dot Matrix Grid
   ============================================ */
.section-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
    padding: 0 5%;
}

/* 3D Pendant Canvas */
.pendant-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Dimmer overlay for 3D model */
.pendant-dimmer {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2;
    pointer-events: none;
}

/* Green gradient grid on left side */
.hero-green-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(0, 255, 195, 0.378) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 255, 195, 0.378) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 40%, transparent 100%);
    z-index: 3;
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.03) 1px, transparent 0);
    background-size: 40px 40px;
    opacity: 1;
}

.glitch-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        transparent 0%,
        rgba(0, 255, 136, 0.02) 50%,
        transparent 100%
    );
    animation: glitch-scan 8s linear infinite;
    pointer-events: none;
}

@keyframes glitch-scan {
    0%, 100% { transform: translateY(-100%); }
    50% { transform: translateY(100%); }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1000px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    margin-bottom: var(--space-lg);
}

.title-line {
    display: block;
    font-size: clamp(3rem, 12vw, 8rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.03em;
    position: relative;
    opacity: 0;
    transform: translateY(40px);
}

.title-line.animate-in {
    animation: titleReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    pointer-events: none;
}

.title-line.intro-done {
    animation: none;
    opacity: 1;
    transform: translateY(0);
}

.title-line:nth-child(1).animate-in {
    animation-delay: 0.3s;
}

.title-line:nth-child(2).animate-in {
    animation-delay: 0.5s;
}

@keyframes titleReveal {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.title-line.accent {
    color: transparent;
    -webkit-text-stroke: 2px var(--white);
    text-stroke: 2px var(--white);
}

/* Glitch effect only after intro animation completes */
.title-line::before,
.title-line::after {
    animation-play-state: paused;
}

.title-line.intro-done::before {
    content: attr(data-text);
    position: absolute;
    left: 2px;
    top: 2px;
    color: var(--accent-primary);
    opacity: 0;
    animation: glitch-1 3s infinite;
    animation-play-state: running;
}

.title-line.intro-done::after {
    content: attr(data-text);
    position: absolute;
    left: -2px;
    top: -2px;
    color: var(--accent-secondary);
    opacity: 0;
    animation: glitch-2 3s infinite;
    animation-play-state: running;
}

@keyframes glitch-1 {
    0%, 90%, 100% { opacity: 0; }
    92%, 94% { opacity: 0.5; clip-path: inset(30% 0 60% 0); }
}

@keyframes glitch-2 {
    0%, 90%, 100% { opacity: 0; }
    93%, 95% { opacity: 0.5; clip-path: inset(60% 0 20% 0); }
}

.hero-subtitle {
    margin-bottom: var(--space-xl);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.8s;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.typing-container {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 1.25rem;
    color: var(--gray-400);
}

.typing-cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 1s;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-primary);
    font-family: var(--font-mono);
}

.stat-text {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-primary);
    font-family: var(--font-primary);
    letter-spacing: 0.1em;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gray-500);
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 1.2s;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--white);
    color: var(--black);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    border-radius: 0;
    transition: all var(--transition-base);
}

.btn-hero:hover {
    background: var(--accent-primary);
    transform: translateX(5px);
}

.btn-hero svg {
    transition: transform var(--transition-base);
}

.btn-hero:hover svg {
    transform: translateX(5px);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    transition: all var(--transition-base);
}

.btn-ghost:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.scroll-indicator span {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-500);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent-primary), transparent);
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.5; }
}

/* ============================================
   Section 2: About - Brutalist Design
   Raw, Bold Typography, Exposed Grid
   ============================================ */
.section-about {
    background: var(--white);
    color: var(--black);
    padding: 8rem 5%;
    position: relative;
}

.brutalist-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
}

.about-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.brutalist-title {
    color: var(--black);
    font-size: clamp(4rem, 15vw, 12rem);
    line-height: 0.85;
    font-weight: 900;
    letter-spacing: -0.05em;
    -webkit-text-stroke: 3px var(--black);
    text-stroke: 3px var(--black);
    color: transparent;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
}

.about-intro {
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    line-height: 1.5;
    font-weight: 400;
}

.highlight {
    font-weight: 700;
    background: var(--black);
    color: var(--white);
    padding: 0 0.5rem;
}

.highlight-alt {
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.detail-block {
    padding: 1.5rem;
    border: 3px solid var(--black);
    transition: all var(--transition-base);
}

.detail-block:hover {
    background: var(--black);
    color: var(--white);
    transform: translate(-5px, -5px);
    box-shadow: 5px 5px 0 var(--black);
}

.detail-block h3 {
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.detail-block p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--gray-600);
}

.detail-block:hover p {
    color: var(--gray-300);
}

/* Code Window */
.about-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.code-window {
    width: 100%;
    max-width: 500px;
    background: var(--gray-900);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform var(--transition-slow);
}

.code-window:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--gray-800);
    border-bottom: 1px solid var(--gray-700);
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dot.red { background: #ff5f57; }
.code-dot.yellow { background: #febc2e; }
.code-dot.green { background: #28c840; }

.code-filename {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--gray-500);
}

.code-content {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.8;
    color: var(--gray-300);
    overflow-x: auto;
}

.code-keyword { color: #c678dd; }
.code-var { color: #e5c07b; }
.code-prop { color: #e06c75; }
.code-string { color: #98c379; }
.code-method { color: #61afef; }

@media (max-width: 900px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .code-window {
        transform: none;
    }
}

/* ============================================
   Section 3: Skills - Windows 98 Retro Theme
   ============================================ */
.section-skills {
    padding: 8rem 5%;
    padding-bottom: calc(8rem + 32px); /* Extra space for taskbar */
    background: #008080; /* Classic teal desktop */
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Windows 98 cursors for entire skills section */
.section-skills,
.section-skills *,
.section-skills *::before,
.section-skills *::after {
    cursor: url("cursor_default.png") 0 0, default !important;
}

/* Win98 pointer/hand cursor - ONLY actual clickable buttons, not list items or titles */
.section-skills .win98-start-btn,
.section-skills .win98-start-btn *,
.section-skills .win98-start-btn::before,
.section-skills .win98-start-btn::after {
    cursor: url("cursor_pointer.png") 6 0, pointer !important;
}

/* Titlebar buttons (min, max, close) need high specificity to override titlebar default */
.section-skills .win98-titlebar .win98-btn,
.section-skills .win98-titlebar .win98-btn *,
.section-skills .win98-titlebar .win98-btn::before,
.section-skills .win98-titlebar .win98-btn::after,
.section-skills .win98-window .win98-titlebar .win98-btn,
.section-skills .win98-window .win98-titlebar .win98-btn *,
.section-skills .win98-window .win98-titlebar .win98-btn::before,
.section-skills .win98-window .win98-titlebar .win98-btn::after,
.section-skills .win98-window.main-window .win98-titlebar .win98-btn,
.section-skills .win98-window.main-window .win98-titlebar .win98-btn *,
.section-skills .win98-window.main-window .win98-titlebar .win98-btn::before,
.section-skills .win98-window.main-window .win98-titlebar .win98-btn::after {
    cursor: url("cursor_pointer.png") 6 0, pointer !important;
}

/* Popup close buttons */
.section-skills .win98-popup .win98-btn.close,
.section-skills .win98-popup .win98-btn.close *,
.section-skills .win98-popup .win98-btn.close::before,
.section-skills .win98-popup .win98-btn.close::after {
    cursor: url("cursor_pointer.png") 6 0, pointer !important;
}

/* Win98 Taskbar */
.win98-taskbar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 28px;
    background: #c0c0c0;
    border-top: 2px solid #dfdfdf;
    display: flex;
    align-items: center;
    padding: 2px 2px;
    z-index: 50;
    gap: 4px;
}

.win98-start-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
    font-family: 'Trebuchet MS', 'MS Sans Serif', Arial, sans-serif;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    height: 22px;
}

.win98-start-btn:active {
    border-color: #808080 #dfdfdf #dfdfdf #808080;
}

.win98-start-logo {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #ff0000 25%, #00ff00 25%, #00ff00 50%, #0000ff 50%, #0000ff 75%, #ffff00 75%);
    border-radius: 1px;
}

.win98-taskbar-divider {
    width: 2px;
    height: 20px;
    background: linear-gradient(to right, #808080 0%, #808080 50%, #ffffff 50%, #ffffff 100%);
    margin: 0 2px;
}

.win98-taskbar-items {
    display: flex;
    flex: 1;
    gap: 3px;
    overflow: hidden;
}

.win98-taskbar-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #808080 #dfdfdf #dfdfdf #808080;
    font-family: 'Trebuchet MS', 'MS Sans Serif', Arial, sans-serif;
    font-size: 11px;
    height: 20px;
    min-width: 100px;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.win98-taskbar-item.active {
    border-color: #808080 #dfdfdf #dfdfdf #808080;
    background: #adadad;
}

.win98-taskbar-item-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    image-rendering: pixelated;
}

.win98-taskbar-item-icon.icon-warning {
    background-image: url("warning_icon.png");
}

.win98-taskbar-item-icon.icon-error {
    background-image: url("error_icon.png");
}

.win98-taskbar-item-icon.icon-info {
    background-image: url("info_icon.png");
}

.win98-taskbar-item-icon.icon-folder {
    background-image: url("folder_icon.png");
}

.win98-taskbar-item-icon.icon-bulb {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Cellipse cx='8' cy='6' rx='4' ry='5' fill='%23ffff00' stroke='%23000' stroke-width='1'/%3E%3Crect x='6' y='11' width='4' height='3' fill='%23808080' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E");
}

.win98-taskbar-tray {
    display: flex;
    align-items: center;
    padding: 2px 8px;
    border: 2px solid;
    border-color: #808080 #dfdfdf #dfdfdf #808080;
    height: 20px;
    font-family: 'Trebuchet MS', 'MS Sans Serif', Arial, sans-serif;
    font-size: 11px;
}

.win98-tray-time {
    color: #000;
}

.win98-desktop {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.win98-icons-bg {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255,255,255,0.03) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255,255,255,0.03) 0%, transparent 20%);
}

.skills-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    min-height: 600px;
}

.win98-window.main-window {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    max-width: 900px;
    cursor: default;
    z-index: 10;
}

.win98-window.main-window.dragging {
    opacity: 0.95;
    box-shadow: 
        inset 1px 1px 0 #dfdfdf,
        inset -1px -1px 0 #0a0a0a,
        8px 8px 20px rgba(0, 0, 0, 0.4);
}

/* Windows 98 Window */
.win98-window {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    box-shadow: 
        inset 1px 1px 0 #dfdfdf,
        inset -1px -1px 0 #0a0a0a,
        4px 4px 10px rgba(0, 0, 0, 0.3);
}

.win98-titlebar {
    background: linear-gradient(90deg, #000080, #1084d0);
    padding: 3px 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.win98-titlebar-icon {
    width: 16px;
    height: 16px;
    background-image: url("folder_icon.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    image-rendering: pixelated;
}

.win98-titlebar-text {
    color: #ffffff;
    font-family: 'Trebuchet MS', 'MS Sans Serif', Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    flex: 1;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.5);
}

.win98-titlebar-buttons {
    display: flex;
    gap: 2px;
}

.win98-btn {
    width: 16px;
    height: 14px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

.win98-btn:active {
    border-color: #808080 #dfdfdf #dfdfdf #808080;
}

.win98-btn.minimize::before {
    content: '';
    width: 8px;
    height: 2px;
    background: #000;
    margin-top: 6px;
}

.win98-btn.maximize::before {
    content: '';
    width: 8px;
    height: 8px;
    border: 1px solid #000;
    background: transparent;
    border-top-width: 2px;
    box-sizing: border-box;
}

.win98-btn.close::before {
    content: '×';
    font-size: 14px;
    font-weight: normal;
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1;
    color: #000;
}

.win98-btn.minimize,
.win98-btn.maximize,
.win98-btn.close {
    font-size: 0; /* Hide text content */
}

.win98-menubar {
    background: #c0c0c0;
    padding: 2px 4px;
    display: flex;
    gap: 16px;
    border-bottom: 1px solid #808080;
    font-family: 'Trebuchet MS', 'MS Sans Serif', Arial, sans-serif;
    font-size: 12px;
}

.win98-menubar span {
    color: #000000;
    cursor: pointer;
    padding: 2px 6px;
}

.win98-menubar span:hover {
    background: #000080;
    color: #ffffff;
}

.win98-content {
    padding: 20px;
    background: #ffffff;
    margin: 4px;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    min-height: 400px;
}

.win98-section-header {
    margin-bottom: 20px;
    border-bottom: 2px solid #000080;
    padding-bottom: 10px;
}

.win98-section-header .section-number {
    color: #808080;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.win98-title {
    font-family: 'Trebuchet MS', 'MS Sans Serif', Arial, sans-serif;
    font-size: 24px;
    color: #000080;
    font-weight: bold;
    text-shadow: 1px 1px 0 #c0c0c0;
}

.win98-skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.win98-folder {
    background: #ffffff;
    border: 1px solid #808080;
    padding: 15px;
    transition: all 0.2s ease;
}

.win98-folder:hover {
    background: #000080;
}

.win98-folder:hover .win98-folder-title,
.win98-folder:hover .win98-list li {
    color: #ffffff;
}

.win98-folder-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 10px;
    background-image: url("folder_icon.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    image-rendering: pixelated;
}

/* Specific folder icons for each skills section */
.win98-folder-icon.icon-webdev {
    background-image: url("icons/web_dev.png");
}

.win98-folder-icon.icon-adobe {
    background-image: url("icons/adobe_tools.png");
}

.win98-folder-icon.icon-3d {
    background-image: url("icons/3d_design.png");
}

.win98-folder-content {
    text-align: center;
}

.win98-folder-title {
    font-family: 'Trebuchet MS', 'MS Sans Serif', Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 10px;
}

.win98-list {
    list-style: none;
    text-align: left;
}

.win98-list li {
    font-family: 'Trebuchet MS', 'MS Sans Serif', Arial, sans-serif;
    font-size: 12px;
    color: #000000;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px dotted #c0c0c0;
}

.win98-list li:last-child {
    border-bottom: none;
}

/* Win98 File Icons - Using proper SVG icons */
/* Win98 File Icons - Using proper SVG icons */
.win98-file-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.win98-icon-html { background-image: url('icons/html5.png'); }
.win98-icon-css { background-image: url('icons/css3.png'); }
.win98-icon-js { background-image: url('icons/javascript.png'); }
.win98-icon-react { background-image: url('icons/react.png'); }
.win98-icon-node { background-image: url('icons/nodejs.png'); }
.win98-icon-ps { background-image: url('adobe/Adobe_Photoshop_CS5_icon.png'); }
.win98-icon-ae { background-image: url('adobe/Adobe_After_Effects_CS5_icon.png'); }
.win98-icon-pr { background-image: url('adobe/Adobe_Premiere_Pro_CS5_icon.png'); }
.win98-icon-ai { background-image: url('adobe/Adobe_Illustrator_CS5_icon.png'); }
.win98-icon-fusion { background-image: url('icons/autodesk.png'); }
.win98-icon-blender { background-image: url('icons/blender.png'); }

/* Win98 Desktop Icons */
.win98-desktop-icons {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 2;
}

.win98-desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70px;
    cursor: pointer;
    padding: 4px;
}

.win98-desktop-icon:hover {
    background: rgba(0, 0, 128, 0.5);
}

.win98-desktop-icon img {
    width: 32px;
    height: 32px;
    margin-bottom: 4px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.win98-desktop-icon img.icon-invert {
    filter: invert(1);
    image-rendering: pixelated;
}

.win98-desktop-icon span {
    color: #ffffff;
    font-family: 'Trebuchet MS', 'MS Sans Serif', Arial, sans-serif;
    font-size: 11px;
    text-align: center;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
    word-wrap: break-word;
    max-width: 70px;
}

/* Win98 Animated Popup Windows - Dynamic */
.win98-popup {
    position: absolute;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 5;
    min-width: 220px;
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.win98-popup.visible {
    opacity: 1;
    transform: scale(1);
}

.win98-popup.closing {
    opacity: 0;
    transform: scale(0.9);
}

.win98-popup .win98-titlebar {
    padding: 3px 5px;
    font-size: 13px;
}

.win98-popup .win98-titlebar-text {
    font-size: 13px;
}

.popup-content {
    padding: 16px;
    background: #c0c0c0;
    font-family: 'Trebuchet MS', 'MS Sans Serif', Arial, sans-serif;
    font-size: 13px;
    text-align: center;
}

.popup-icon {
    width: 32px;
    height: 32px;
    margin: 0 auto 12px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    image-rendering: pixelated;
}

/* Authentic Windows 98 Style Icons */
.icon-warning {
    background-image: url("warning_icon.png");
}

.icon-bulb {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Cellipse cx='16' cy='12' rx='7' ry='9' fill='%23ffff00' stroke='%23000' stroke-width='1'/%3E%3Crect x='12' y='21' width='8' height='6' fill='%23808080' stroke='%23000' stroke-width='1'/%3E%3Cline x1='12' y1='23' x2='20' y2='23' stroke='%23000' stroke-width='1'/%3E%3Cline x1='12' y1='25' x2='20' y2='25' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E");
}

.icon-error {
    background-image: url("error_icon.png");
}

.icon-info {
    background-image: url("info_icon.png");
}

.icon-question {
    background-image: url("question_icon.png");
}

.icon-folder {
    background-image: url("folder_icon.png");
}

.popup-folder::before,
.popup-file::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
    background-size: contain;
    image-rendering: pixelated;
}

.popup-folder::before {
    background-image: url("folder_icon.png");
}

.popup-file::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' stroke='%23000' stroke-width='1' d='M3 1h7l3 3v11H3z'/%3E%3Cpath fill='%23c0c0c0' d='M10 1v3h3'/%3E%3Crect x='5' y='6' width='6' height='1' fill='%23000'/%3E%3Crect x='5' y='8' width='6' height='1' fill='%23000'/%3E%3Crect x='5' y='10' width='4' height='1' fill='%23000'/%3E%3C/svg%3E");
}

.popup-progress {
    height: 20px;
    background: #ffffff;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    margin-top: 10px;
    overflow: hidden;
}

.popup-progress-bar {
    height: 100%;
    width: 0%;
    background: repeating-linear-gradient(
        90deg,
        #000080,
        #000080 10px,
        #1084d0 10px,
        #1084d0 20px
    );
    animation: win98-progress 2s ease-in-out infinite;
}

.popup-progress-bar.slow {
    animation-duration: 4s;
}

@keyframes win98-progress {
    0% { width: 0%; }
    100% { width: 100%; }
}

.popup-files {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.popup-files span {
    padding: 4px 6px;
    cursor: default;
    font-size: 13px;
}

.popup-files span:hover {
    background: #000080;
    color: #ffffff;
}

/* Dynamic Win98 Cursor - uses Win98 arrow cursor */
.win98-cursor-anim {
    position: absolute;
    width: 17px;
    height: 24px;
    background-image: url("cursor_default.png");
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 8;
    pointer-events: none;
}

/* Pointer cursor mode for when hovering over close button */
.win98-cursor-anim.pointer-mode {
    width: 15px;
    height: 24px;
    background-image: url("cursor_pointer.png");
}

/* Active/pressed state for X button when AI cursor is clicking */
.win98-btn.close.ai-pressing {
    border-color: #808080 #dfdfdf #dfdfdf #808080 !important;
    background: #a0a0a0 !important;
}

/* Allow user to click popups */
.win98-popup {
    pointer-events: auto;
}

.win98-popup .win98-btn.close {
    pointer-events: auto;
    cursor: url("cursor_pointer.png") 6 0, pointer !important;
}

/* Popup container for dynamic popups */
.win98-popup-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 6;
}

.win98-statusbar {
    background: #c0c0c0;
    padding: 4px 8px;
    display: flex;
    justify-content: space-between;
    font-family: 'Trebuchet MS', 'MS Sans Serif', Arial, sans-serif;
    font-size: 11px;
    color: #000000;
    border-top: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
}

.win98-statusbar span {
    padding: 2px 8px;
    border: 1px solid;
    border-color: #808080 #ffffff #ffffff #808080;
}

@media (max-width: 900px) {
    .win98-skills-grid {
        grid-template-columns: 1fr;
    }
    
    .section-skills {
        min-height: auto;
        padding-top: 4rem;
        padding-bottom: calc(4rem + 32px);
    }
    
    .skills-container {
        min-height: 950px;
    }
}

/* ============================================
   Section 4: Work - Pool Rooms / Backrooms
   3D Pool Rooms Background with scroll parallax
   ============================================ */
.section-work {
    padding: 8rem 5%;
    background: #1a3a3a;
    position: relative;
    overflow: hidden;
}

.poolrooms-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.poolrooms-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgb(0, 0, 0) 0%,
        rgba(0, 50, 50, 0.50) 50%,
        rgb(0, 0, 0) 100%
    );
    z-index: 2;
    pointer-events: none;
}

.work-container {
    position: relative;
    max-width: 100%;
    z-index: 10;
}

.poolrooms-header {
    text-align: center;
    margin-bottom: 3rem;
}

.poolrooms-header .section-number {
    color: #40e0d0;
}

.poolrooms-title {
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.poolrooms-sub {
    color: #87ceeb;
    font-style: italic;
}

.projects-showcase {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    padding: 40px 2rem 100px 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.projects-showcase::after {
    content: '';
    flex: 0 0 1px;
}

.projects-showcase::-webkit-scrollbar {
    display: none;
}

.project-tile {
    position: relative;
    flex: 0 0 340px;
    min-height: 480px;
    scroll-snap-align: center;
    perspective: 1000px;
}

.tile-number {
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(100, 180, 180, 0.12);
    letter-spacing: -0.05em;
    z-index: 2;
    pointer-events: none;
    transition: all 0.5s ease;
}

.project-tile:hover .tile-number {
    color: rgba(100, 200, 200, 0.25);
    transform: translateY(-5px);
}

.tile-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(
        180deg,
        rgba(15, 30, 35, 0.92) 0%,
        rgba(10, 22, 28, 0.95) 100%
    );
    border: 1px solid rgba(80, 160, 160, 0.15);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(80, 160, 160, 0.05) inset;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-tile:hover .tile-content {
    transform: translateY(-8px);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(80, 180, 180, 0.1) inset,
        0 0 40px rgba(64, 180, 180, 0.08);
    border-color: rgba(80, 180, 180, 0.3);
}

.tile-visual {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.tile-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        rgba(40, 90, 95, 0.3) 0%,
        rgba(20, 60, 65, 0.5) 50%,
        rgba(40, 90, 95, 0.3) 100%
    );
    transition: all 0.5s ease;
}

/* Subtle tile grid pattern overlay */
.tile-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(80, 160, 160, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(80, 160, 160, 0.06) 1px, transparent 1px);
    background-size: 20px 20px;
}

.project-tile:hover .tile-placeholder {
    background: linear-gradient(
        135deg,
        rgba(40, 100, 105, 0.4) 0%,
        rgba(25, 70, 75, 0.6) 50%,
        rgba(40, 100, 105, 0.4) 100%
    );
}

.placeholder-icon {
    font-size: 3rem;
    color: rgba(80, 180, 180, 0.25);
    transition: all 0.5s ease;
}

.project-tile:hover .placeholder-icon {
    transform: scale(1.2) rotate(45deg);
    color: rgba(80, 200, 200, 0.4);
}

.tile-info {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.tile-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(100, 200, 200, 0.7);
    margin-bottom: 0.75rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(80, 160, 160, 0.15);
}

.tile-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: rgba(210, 230, 230, 0.95);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.tile-desc {
    font-size: 0.875rem;
    color: rgba(160, 190, 195, 0.7);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.tile-stack {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tile-stack span {
    padding: 0.2rem 0.6rem;
    background: rgba(80, 160, 160, 0.08);
    color: rgba(130, 200, 200, 0.7);
    font-size: 0.7rem;
    font-weight: 500;
    border-radius: 2px;
    border: 1px solid rgba(80, 160, 160, 0.15);
}

.tile-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(100, 200, 200, 0.7);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    margin-top: auto;
}

.tile-link:hover {
    color: rgba(130, 220, 220, 0.9);
    gap: 0.75rem;
}

.tile-link svg {
    transition: transform 0.3s ease;
}

.tile-link:hover svg {
    transform: translate(3px, -3px);
}

.tile-reflection {
    position: absolute;
    bottom: -60px;
    left: 10%;
    right: 10%;
    height: 60px;
    background: linear-gradient(
        to bottom,
        rgba(60, 140, 140, 0.1),
        transparent
    );
    border-radius: 0 0 50% 50%;
    filter: blur(8px);
    opacity: 0.4;
    transition: all 0.5s ease;
    pointer-events: none;
}

.project-tile:hover .tile-reflection {
    opacity: 0.6;
    bottom: -70px;
}

.work-cta {
    text-align: center;
    margin-top: 4rem;
}

.btn-luxury {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    background: rgba(20, 40, 45, 0.8);
    color: rgba(160, 210, 210, 0.9);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid rgba(80, 160, 160, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all var(--transition-base);
}

.btn-luxury:hover {
    background: rgba(60, 140, 140, 0.3);
    color: var(--white);
    border-color: rgba(80, 180, 180, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .section-work {
        padding: 4rem 0;
    }
    
    .work-container {
        overflow: visible;
    }
    
    .projects-showcase {
        justify-content: flex-start;
        gap: 1rem;
        padding: 1rem 1rem 60px 1rem;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-padding-left: 1rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .project-tile {
        flex: 0 0 280px;
        min-height: 420px;
    }
    
    .project-tile:first-child {
        margin-left: 0;
    }
    
    .tile-number {
        font-size: 4rem;
    }
}

/* ============================================
   Section 5: Services - Interactive Terminal CLI
   CRT terminal with organized card grid
   ============================================ */
.section-services {
    padding: 6rem 5%;
    background: #0c0c0c;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CRT scanlines */
.terminal-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 1px,
        rgba(0, 0, 0, 0.15) 1px,
        rgba(0, 0, 0, 0.15) 2px
    );
    pointer-events: none;
    z-index: 2;
}

/* Subtle CRT flicker */
.terminal-flicker {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(30, 60, 30, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    animation: crtFlicker 4s ease-in-out infinite;
}

@keyframes crtFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.97; }
    52% { opacity: 1; }
    80% { opacity: 0.98; }
    82% { opacity: 1; }
}

/* Container */
.terminal-container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1100px;
}

/* Terminal window frame */
.terminal-window {
    position: relative;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow:
        0 20px 80px rgba(0, 0, 0, 0.8),
        0 0 60px rgba(40, 200, 80, 0.04);
}

/* Title bar */
.terminal-chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    background: #1a1a1a;
    border-bottom: 1px solid #2a2a2a;
    user-select: none;
    -webkit-user-select: none;
}

.terminal-title-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terminal-icon {
    color: #4ec34e;
    font-size: 0.7rem;
}

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #888;
    letter-spacing: 0.02em;
}

.terminal-buttons {
    display: flex;
    gap: 0.75rem;
}

.term-btn {
    font-size: 0.65rem;
    color: #555;
    cursor: default;
    line-height: 1;
}

.term-close { color: #ff5f57; }
.term-min { color: #febc2e; }
.term-max { color: #28c840; }

/* Terminal body */
.terminal-body {
    background: #0d0d0d;
    font-family: var(--font-mono);
    display: flex;
    flex-direction: column;
}

/* Commands hint bar */
.term-commands-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.5rem;
    border-bottom: 1px solid #1a1a1a;
    background: #111;
    flex-wrap: wrap;
}

.term-commands-label {
    font-size: 0.7rem;
    color: #555;
    letter-spacing: 0.04em;
}

.term-cmd-hint {
    font-size: 0.7rem;
    color: #6a9fb5;
    padding: 0.15rem 0.5rem;
    border: 1px solid #1e1e1e;
    border-radius: 3px;
    background: rgba(106, 159, 181, 0.04);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.term-cmd-hint:hover {
    border-color: #4ec34e;
    color: #4ec34e;
}

/* Service cards 2x2 grid */
.term-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #1a1a1a;
}

.term-card {
    background: #0d0d0d;
    padding: 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: background 0.3s;
}

.term-card:hover {
    background: #111;
}

.term-card-header {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.term-card-index {
    font-size: 0.65rem;
    color: #4ec34e;
    font-weight: 700;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.term-card-title {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: #e0e0e0;
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.term-card-desc {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: #777;
    line-height: 1.65;
    margin: 0;
}

.term-card-list {
    list-style: none;
    padding: 0;
    margin: 0.25rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.term-card-list li {
    font-family: var(--font-mono);
    font-size: 0.73rem;
    color: #6a9fb5;
    padding-left: 1rem;
    position: relative;
    line-height: 1.5;
}

.term-card-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: #333;
}

.term-prompt {
    color: #4ec34e;
    margin-right: 0.5rem;
    font-weight: 700;
}

/* Input line at bottom */
.terminal-input-line {
    display: flex;
    align-items: center;
    padding: 0.65rem 1.5rem;
    border-top: 1px solid #1a1a1a;
    background: #0a0a0a;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    flex-shrink: 0;
}

.term-input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.term-input {
    position: absolute;
    inset: 0;
    background: transparent;
    border: none;
    outline: none;
    color: transparent;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    caret-color: transparent;
    padding: 0;
    line-height: 1.4;
    width: 100%;
    z-index: 2;
}

.term-input-mirror {
    color: #d0d0d0;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    white-space: pre;
    pointer-events: none;
    line-height: 1.4;
}

.term-cursor-input {
    color: #4ec34e;
    animation: termBlink 1s step-end infinite;
    font-size: 0.82rem;
    pointer-events: none;
}

@keyframes termBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Matrix rain canvas */
.matrix-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.matrix-canvas.active {
    opacity: 1;
}

/* Push content above canvas */
.terminal-body {
    position: relative;
    z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .section-services {
        padding: 4rem 3%;
    }

    .term-services-grid {
        grid-template-columns: 1fr;
    }

    .term-card {
        padding: 1.25rem;
    }

    .term-commands-bar {
        padding: 0.5rem 1rem;
    }

    .terminal-input-line {
        padding: 0.6rem 1rem;
    }

    .term-input,
    .term-input-mirror {
        font-size: 0.72rem;
    }

    .term-card-title {
        font-size: 0.85rem;
    }

    .term-card-desc {
        font-size: 0.72rem;
    }
}

/* ============================================
   Section 6: Contact + Footer - Wire Globe
   Dark with 3D wireframe globe background
   ============================================ */
.section-contact {
    padding: 8rem 5% 0;
    background: #000000;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    user-select: none;
    -webkit-user-select: none;
}

/* 3D Globe container */
.globe-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: auto;
}

.globe-container canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Dark overlay between globe and content */
.section-contact::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 0;
    pointer-events: none;
}

/* Fading grid on right side */
.contact-green-grid {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background-image:
        linear-gradient(to right, rgba(0, 255, 195, 0.378) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 255, 195, 0.378) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: linear-gradient(to left, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 40%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.contact-container {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    flex: 1;
    pointer-events: none;
}

.contact-container input,
.contact-container textarea,
.contact-container button,
.contact-container a {
    pointer-events: auto;
    user-select: text;
    -webkit-user-select: text;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-title {
    color: #e0e0e0;
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.contact-title .highlight {
    background: transparent;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    background-image: linear-gradient(135deg, #00ff88, #00cc66);
    padding: 0;
}

.contact-subtitle {
    color: #888;
    font-size: 1rem;
    margin-top: 1rem;
    font-family: var(--font-mono);
    letter-spacing: 0.03em;
}

/* Two-column layout */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.25rem 0 0.75rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid #222;
    color: #e0e0e0;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    outline: none;
    resize: none;
}

.form-group label {
    position: absolute;
    left: 0;
    top: 1rem;
    font-size: 0.875rem;
    color: #777;
    pointer-events: none;
    transition: all 0.3s ease;
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #00ff88;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -0.6rem;
    font-size: 0.65rem;
    color: #00ff88;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #00ff88, #00cc66);
    transition: width 0.4s ease;
}

.form-group input:focus ~ .input-line,
.form-group textarea:focus ~ .input-line {
    width: 100%;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: transparent;
    color: #00ff88;
    font-weight: 600;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid #1a1a2a;
    transition: all 0.3s ease;
    align-self: flex-start;
    cursor: pointer;
}

.btn-submit svg {
    width: 18px;
    height: 18px;
}

.btn-submit:hover {
    background: rgba(0, 255, 136, 0.06);
    border-color: #00ff88;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.1);
}

/* Info column */
.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    padding-left: 2rem;
    border-left: 1px solid #161620;
}

.info-block h4 {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 0.6rem;
}

.info-block a,
.info-block p {
    font-size: 1.1rem;
    color: #bbb;
    transition: color 0.3s ease;
}

.info-block a:hover {
    color: #00ff88;
}

/* Social links */
.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 44px;
    height: 44px;
    border: 1px solid #1e1e30;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    transition: all 0.3s ease;
}

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

.social-link:hover {
    background: rgba(0, 255, 136, 0.06);
    border-color: #00ff88;
    color: #00ff88;
    transform: translateY(-2px);
}

/* Integrated footer */
.contact-footer {
    position: relative;
    z-index: 1;
    margin-top: 6rem;
    padding: 2rem 5%;
    border-top: 1px solid #111118;
    text-align: center;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.footer-logo {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #666;
    font-family: var(--font-mono);
}

.footer-line {
    width: 30px;
    height: 1px;
    background: #222;
}

.footer-copyright {
    font-size: 0.7rem;
    color: #666;
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
}

/* Responsive */
@media (max-width: 768px) {
    .section-contact {
        padding: 4rem 5% 0;
    }

    .contact-title {
        font-size: 2.2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-form {
        width: 100%;
    }

    .btn-submit {
        align-self: center;
        width: 100%;
    }

    .contact-info {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid #161620;
        padding-top: 2rem;
        align-items: center;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .contact-green-grid {
        width: 100%;
        mask-image: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
        -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
    }

    .contact-footer {
        margin-top: 3rem;
    }

    .footer-inner {
        flex-direction: column;
        gap: 0.75rem;
    }

    .footer-line {
        display: none;
    }
}

/* ============================================
   Utility Classes & Animations
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.17, 0.55, 0.55, 1);
}

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

/* Smooth page transitions */
.page-transition {
    position: fixed;
    inset: 0;
    background: var(--black);
    z-index: 9999;
    transform: scaleY(0);
    transform-origin: bottom;
}

/* Loading animation */
@keyframes loading {
    0% { width: 0; }
    100% { width: 100%; }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .section {
        padding: 4rem 1rem;
    }
    
    .nav {
        padding: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-divider {
        width: 50px;
        height: 1px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
}
