/* ==========================================
   OSCAR OCHOA - RETRO PORTFOLIO v2
   Interactive Terminal + TV Navigation
   ========================================== */

/* CSS Variables */
:root {
    /* Vaporwave Color Palette */
    --neon-pink: #ff6ec7;
    --neon-cyan: #00fff9;
    --neon-purple: #b967ff;
    --deep-purple: #7b2cbf;
    --hot-magenta: #ff00ff;
    --electric-blue: #00d4ff;
    --sunset-orange: #ff6b35;
    --mint-green: #00ff88;

    /* Background Colors */
    --bg-dark: #0a0a0f;
    --bg-gradient-1: #1a0a2e;
    --bg-gradient-2: #16213e;
    --bg-gradient-3: #0f0f23;
    --card-bg: #12121a;
    --card-border: #2a2a3a;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b8b8d1;
    --text-muted: #6b6b8d;

    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    cursor: none;
}

body {
    font-family: 'Space Mono', monospace;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    cursor: none;
}

/* Custom Cursor */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--neon-pink);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10001;
    transition: transform 0.1s ease;
    box-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-pink);
}

.cursor-ring {
    width: 40px;
    height: 40px;
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: all 0.15s ease;
    opacity: 0.5;
}

.cursor-ring.hover {
    transform: scale(1.5);
    border-color: var(--neon-pink);
    opacity: 1;
}

.cursor-ring.code {
    border-radius: 5px;
    border-color: var(--mint-green);
}

/* Background Effects */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(185, 103, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(185, 103, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -3;
}

.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.08;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 10%;
    left: -5%;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--electric-blue));
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    top: 60%;
    right: -3%;
    animation-delay: -5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--hot-magenta), var(--neon-pink));
    border-radius: 50%;
    top: 30%;
    right: 20%;
    animation-delay: -10s;
}

.shape-4 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, var(--deep-purple), var(--neon-purple));
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    bottom: 10%;
    left: 10%;
    animation-delay: -15s;
}

.shape-5 {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, var(--electric-blue), var(--neon-cyan));
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    top: 70%;
    left: 50%;
    animation-delay: -7s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(30px, -30px) rotate(5deg) scale(1.05); }
    50% { transform: translate(-20px, 20px) rotate(-5deg) scale(0.95); }
    75% { transform: translate(20px, 10px) rotate(3deg) scale(1.02); }
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1) 0px,
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1000;
    opacity: 0.3;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   TV CHANNEL NAVIGATION
   ========================================== */
.tv-nav {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.tv-frame {
    background: linear-gradient(145deg, #3a3a4a, #1a1a2a);
    border-radius: 15px;
    padding: 15px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.1),
        0 0 0 3px #2a2a3a;
}

.tv-screen {
    background: #0a0a12;
    border-radius: 8px;
    padding: 8px 15px;
    margin-bottom: 12px;
    border: 2px solid #1a1a2a;
    text-align: center;
}

.channel-display {
    font-family: 'VT323', monospace;
    font-size: 1.4rem;
    color: var(--mint-green);
    text-shadow: 0 0 10px var(--mint-green);
    letter-spacing: 2px;
}

#channel-num {
    color: var(--neon-cyan);
}

.tv-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 200px;
}

.channel-btn {
    flex: 1 1 calc(33.333% - 6px);
    min-width: 55px;
    background: linear-gradient(145deg, #2a2a3a, #1a1a2a);
    border: 2px solid #3a3a4a;
    border-radius: 8px;
    padding: 8px 5px;
    cursor: none;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.channel-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
}

.channel-btn:hover::before {
    left: 100%;
}

.channel-btn:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 249, 0.3);
}

.channel-btn.active {
    border-color: var(--neon-pink);
    box-shadow: 0 0 15px rgba(255, 110, 199, 0.3);
}

.btn-label {
    font-family: 'VT323', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: block;
    letter-spacing: 1px;
}

.channel-btn:hover .btn-label,
.channel-btn.active .btn-label {
    color: var(--text-primary);
}

.tv-mobile-toggle {
    display: none;
    background: linear-gradient(145deg, #3a3a4a, #1a1a2a);
    border: 2px solid var(--neon-cyan);
    border-radius: 10px;
    padding: 10px 15px;
    cursor: none;
}

.toggle-icon {
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    color: var(--neon-cyan);
}

/* ==========================================
   GLITCH EFFECT
   ========================================== */
.glitch-large {
    position: relative;
}

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

.glitch-large::before {
    color: var(--neon-cyan);
    animation: glitch-1 2s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    -webkit-text-fill-color: var(--neon-cyan);
}

.glitch-large::after {
    color: var(--neon-pink);
    animation: glitch-2 3s infinite linear alternate-reverse;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    -webkit-text-fill-color: var(--neon-pink);
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(-3px, -3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(3px, -3px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(3px, -3px); }
    40% { transform: translate(3px, 3px); }
    60% { transform: translate(-3px, -3px); }
    80% { transform: translate(-3px, 3px); }
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 40px 40px;
    position: relative;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(185, 103, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 255, 249, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 110, 199, 0.1) 0%, transparent 70%),
        linear-gradient(180deg, var(--bg-gradient-1) 0%, var(--bg-dark) 100%);
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    max-width: var(--container-width);
    width: 100%;
}

.hero-text {
    flex: 1;
}

.hero-greeting {
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    color: var(--mint-green);
    margin-bottom: 10px;
}

.hero-name {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.4;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}

.hero-title {
    font-family: 'VT323', monospace;
    font-size: 2rem;
    color: var(--text-primary);
}

.cursor {
    font-family: 'VT323', monospace;
    font-size: 2rem;
    color: var(--neon-cyan);
    animation: blink-cursor 0.8s infinite;
}

@keyframes blink-cursor {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* ==========================================
   INTERACTIVE TERMINAL
   ========================================== */
.hero-visual {
    flex: 0 0 480px;
}

.terminal-window {
    background: #1a1a24;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.terminal-header {
    background: linear-gradient(180deg, #2d2d3a, #252532);
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #3a3a4a;
}

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

.term-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.term-btn.red { background: #ff5f56; }
.term-btn.yellow { background: #ffbd2e; }
.term-btn.green { background: #27ca40; }

.terminal-title {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 20px;
    min-height: 300px;
    max-height: 350px;
    overflow-y: auto;
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
}

.terminal-output {
    margin-bottom: 10px;
}

.term-line {
    margin-bottom: 5px;
    line-height: 1.5;
}

.term-prompt {
    color: var(--mint-green);
}

.term-cmd {
    color: var(--text-primary);
}

.term-response {
    color: var(--text-secondary);
    padding-left: 0;
}

.term-highlight {
    color: var(--neon-cyan);
    font-weight: bold;
}

.term-error {
    color: #ff5f56;
}

.term-success {
    color: var(--mint-green);
}

.term-link {
    color: var(--neon-pink);
    text-decoration: underline;
    cursor: none;
}

.term-link:hover {
    color: var(--neon-cyan);
}

.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    caret-color: var(--neon-cyan);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.8rem;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--neon-cyan);
    border-bottom: 2px solid var(--neon-cyan);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(10px); }
    60% { transform: translateX(-50%) translateY(5px); }
}

/* ==========================================
   SECTIONS & HEADERS
   ========================================== */
.section {
    padding: var(--section-padding);
    position: relative;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 60px;
}

.section-number {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    color: var(--neon-cyan);
    opacity: 0.5;
}

.section-title {
    font-family: 'Space Mono', monospace;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--text-primary);
    font-weight: 700;
}

.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--neon-purple), transparent);
}

/* ==========================================
   RETRO CARD STYLE (No Glass Morphism)
   ========================================== */
.retro-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    padding: 30px;
    position: relative;
    transition: var(--transition-normal);
}

.retro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 4px;
    padding: 1px;
    background: linear-gradient(135deg, transparent, rgba(255, 110, 199, 0.1), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.retro-card:hover {
    border-color: var(--neon-purple);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--neon-pink), var(--neon-purple));
    border-radius: 4px 0 0 4px;
}

.card-accent.cyan {
    background: linear-gradient(180deg, var(--neon-cyan), var(--electric-blue));
}

.card-accent.purple {
    background: linear-gradient(180deg, var(--neon-purple), var(--deep-purple));
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about {
    background:
        radial-gradient(ellipse at 80% 50%, rgba(0, 255, 249, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-gradient-2) 50%, var(--bg-dark) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-card {
    padding-left: 35px;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.highlight {
    color: var(--neon-pink);
    font-weight: 700;
}

.about-stats {
    display: flex;
    gap: 50px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--card-border);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Press Start 2P', cursive;
    font-size: 1.3rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 15px var(--neon-cyan);
    margin-bottom: 8px;
}

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

.about-image {
    display: flex;
    justify-content: center;
}

.image-frame {
    position: relative;
}

.image-placeholder {
    width: 200px;
    height: 200px;
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    display: flex;
    justify-content: center;
    align-items: center;
}

.ascii-art {
    font-family: 'VT323', monospace;
    color: var(--neon-purple);
    text-shadow: 0 0 10px var(--neon-purple);
    font-size: 0.9rem;
    line-height: 1.2;
}

.ascii-art pre {
    margin: 0;
}

/* ==========================================
   EXPERIENCE SECTION
   ========================================== */
.experience {
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255, 110, 199, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-gradient-3) 50%, var(--bg-dark) 100%);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--neon-cyan), var(--neon-purple), var(--neon-pink), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-marker {
    position: absolute;
    left: -43px;
    top: 30px;
    width: 14px;
    height: 14px;
    background: var(--neon-pink);
    border: 3px solid var(--bg-dark);
    box-shadow: 0 0 15px var(--neon-pink);
}

.education-marker {
    background: var(--neon-cyan);
    box-shadow: 0 0 15px var(--neon-cyan);
}

.timeline-content {
    padding-left: 20px;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.job-title {
    font-size: 1.2rem;
    color: var(--text-primary);
}

.job-type {
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
    padding: 4px 12px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.job-company {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.company-name {
    color: var(--neon-cyan);
    font-weight: 700;
}

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

.job-date {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.job-highlights {
    list-style: none;
    margin-bottom: 15px;
}

.job-highlights li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.job-highlights li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--mint-green);
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
}

.tech-highlight {
    color: var(--neon-pink);
    font-weight: 600;
}

.job-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: rgba(185, 103, 255, 0.15);
    color: var(--neon-purple);
    padding: 4px 10px;
    font-size: 0.75rem;
    border: 1px solid rgba(185, 103, 255, 0.3);
    font-family: 'VT323', monospace;
    letter-spacing: 1px;
}

.education-card {
    background: rgba(0, 255, 249, 0.03);
}

/* ==========================================
   PROJECTS SECTION
   ========================================== */
.projects {
    background:
        radial-gradient(ellipse at 50% 20%, rgba(185, 103, 255, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-gradient-1) 50%, var(--bg-dark) 100%);
}

.projects-showcase {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.project-card {
    display: flex;
    position: relative;
    padding: 0;
    overflow: hidden;
}

.project-card .card-accent {
    position: relative;
    width: 6px;
    min-height: 100%;
    flex-shrink: 0;
}

.project-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: 'Press Start 2P', cursive;
    font-size: 2rem;
    color: var(--card-border);
    opacity: 0.5;
}

.project-content {
    padding: 35px;
    padding-left: 30px;
    flex: 1;
}

.project-info {
    margin-bottom: 25px;
}

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

.project-subtitle {
    color: var(--neon-cyan);
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-family: 'VT323', monospace;
    letter-spacing: 1px;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.7;
}

.project-features {
    list-style: none;
}

.project-features li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.project-features li::before {
    content: '+';
    position: absolute;
    left: 0;
    color: var(--neon-pink);
    font-weight: 700;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 15px;
    background: var(--bg-dark);
    border: 1px solid var(--card-border);
    transition: var(--transition-normal);
    font-size: 0.85rem;
}

.project-link:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

.link-icon svg {
    width: 16px;
    height: 16px;
}

/* ==========================================
   SKILLS SECTION - JSON TERMINAL STYLE
   ========================================== */
.skills {
    background:
        radial-gradient(ellipse at 30% 70%, rgba(0, 255, 249, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-gradient-2) 50%, var(--bg-dark) 100%);
}

.skills-terminal {
    max-width: 700px;
    margin: 0 auto;
}

.skills-window {
    background: #1a1a24;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.window-header {
    background: linear-gradient(180deg, #2d2d3a, #252532);
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #3a3a4a;
}

.window-buttons {
    display: flex;
    gap: 8px;
}

.win-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3a3a4a;
}

.win-btn:nth-child(1) { background: #ff5f56; }
.win-btn:nth-child(2) { background: #ffbd2e; }
.win-btn:nth-child(3) { background: #27ca40; }

.window-title {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.skills-content {
    padding: 25px;
    overflow-x: auto;
}

.skills-code {
    margin: 0;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.json-key {
    color: var(--neon-cyan);
}

.json-string {
    color: var(--neon-pink);
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact {
    background:
        radial-gradient(ellipse at 50% 50%, rgba(185, 103, 255, 0.05) 0%, transparent 60%),
        linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-gradient-1) 100%);
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
}

.contact-card {
    padding-left: 35px;
}

.contact-message {
    margin-bottom: 30px;
}

.contact-intro {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.contact-cta {
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.blink {
    color: var(--neon-cyan);
    animation: blink-cursor 0.8s infinite;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 12px 15px;
    background: var(--bg-dark);
    border: 1px solid var(--card-border);
    transition: var(--transition-normal);
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
}

.contact-link:hover {
    border-color: var(--neon-cyan);
    transform: translateX(8px);
}

.link-prefix {
    color: var(--neon-purple);
}

.link-value {
    color: var(--text-primary);
}

.contact-link:hover .link-value {
    color: var(--neon-cyan);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--card-border);
    background: rgba(0, 0, 0, 0.3);
}

.footer-text {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.footer-name {
    color: var(--neon-pink);
}

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

.footer-year {
    color: var(--neon-cyan);
}

.footer-credits {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.footer-hint {
    font-family: 'VT323', monospace;
    font-size: 0.9rem;
    color: var(--text-muted);
    opacity: 0.5;
}

.hint-text {
    color: var(--mint-green);
}

/* ==========================================
   SNAKE GAME
   ========================================== */
.snake-game-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.snake-game-overlay.hidden {
    display: none;
}

.snake-game-window {
    background: #1a1a24;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 255, 249, 0.3);
}

.snake-header {
    background: linear-gradient(180deg, #2d2d3a, #252532);
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #3a3a4a;
}

.snake-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    color: var(--mint-green);
}

.snake-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    cursor: none;
    transition: var(--transition-fast);
}

.snake-close:hover {
    color: #ff5f56;
}

#snake-canvas {
    display: block;
    background: #0a0a12;
}

.snake-score {
    padding: 15px;
    text-align: center;
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
    color: var(--neon-cyan);
    border-bottom: 1px solid #3a3a4a;
}

.snake-controls {
    padding: 15px;
    text-align: center;
}

.snake-controls p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.snake-btn {
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
    border: none;
    padding: 10px 25px;
    color: white;
    font-family: 'VT323', monospace;
    font-size: 1rem;
    cursor: none;
    transition: var(--transition-normal);
}

.snake-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 110, 199, 0.4);
}

/* ==========================================
   ANIMATIONS
   ========================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-visual {
        flex: none;
        width: 100%;
        max-width: 480px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    html, body {
        cursor: auto;
    }

    .cursor-dot, .cursor-ring {
        display: none;
    }

    .tv-frame {
        display: none;
    }

    .tv-mobile-toggle {
        display: block;
    }

    .tv-nav.open .tv-frame {
        display: block;
        position: absolute;
        top: 50px;
        right: 0;
    }

    .hero {
        padding: 80px 20px 40px;
    }

    .hero-visual {
        max-width: 100%;
    }

    .terminal-window {
        margin: 0 -20px;
        border-radius: 0;
    }

    .project-card {
        flex-direction: column;
    }

    .project-card .card-accent {
        width: 100%;
        height: 4px;
        min-height: 4px;
    }

    .project-number {
        position: static;
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .project-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline {
        padding-left: 25px;
    }

    .timeline::before {
        left: 5px;
    }

    .timeline-marker {
        left: -28px;
    }

    .section {
        padding: 60px 0;
    }

    .about-stats {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .section-header {
        flex-wrap: wrap;
    }

    .section-line {
        flex-basis: 100%;
        order: 3;
        margin-top: 10px;
    }

    .skills-code {
        font-size: 0.75rem;
    }

    #snake-canvas {
        width: 300px;
        height: 300px;
    }
}
