/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0e27;
    --bg-secondary: #0f1629;
    --bg-tertiary: #151b2e;
    --accent-primary: #00ff41;
    --accent-secondary: #00d4ff;
    --accent-tertiary: #ff00ff;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --text-muted: #6b7280;
    --border-color: #1e293b;
    --shadow-glow: 0 0 20px rgba(0, 255, 65, 0.3);
    --shadow-glow-strong: 0 0 40px rgba(0, 255, 65, 0.5);
    --font-mono: 'JetBrains Mono', 'Space Mono', 'Courier New', monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-mono);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    width: 100%;
    max-width: 100vw;
}

/* ============================================
   TERMINAL CURSOR ANIMATION
   ============================================ */
.terminal-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
    display: none;
}

body:hover .terminal-cursor {
    display: block;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 14, 39, 0.95);
    box-shadow: var(--shadow-glow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terminal-prompt {
    color: var(--accent-primary);
    margin-right: 0.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: lowercase;
    font-size: 0.9rem;
    position: relative;
    transition: color 0.3s ease;
}

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

.nav-link:hover {
    color: var(--accent-primary);
}

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

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

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--accent-primary);
    transition: all 0.3s ease;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.code-matrix {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 65, 0.03) 2px,
            rgba(0, 255, 65, 0.03) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 65, 0.03) 2px,
            rgba(0, 255, 65, 0.03) 4px
        );
    animation: matrixMove 20s linear infinite;
}

@keyframes matrixMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 65, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridPulse 3s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    width: 100%;
    padding: 2rem;
}

@media (max-width: 640px) {
    .hero-content {
        padding: 1rem 0.5rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Prevent horizontal scroll on mobile */
    html, body {
        max-width: 100vw;
        overflow-x: hidden;
    }

    /* Allow code blocks to scroll horizontally */
    .code-block,
    .code-block pre,
    .terminal-window,
    .terminal-body,
    .terminal-line {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
}

.terminal-window {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-glow-strong);
    overflow: hidden;
    animation: terminalGlow 3s ease-in-out infinite;
    width: 100%;
    max-width: 100%;
}

@keyframes terminalGlow {
    0%, 100% { box-shadow: var(--shadow-glow-strong); }
    50% { box-shadow: 0 0 60px rgba(0, 255, 65, 0.7); }
}

.terminal-header {
    background: var(--bg-tertiary);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
}

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

.btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.btn-close { background: #ff5f56; }
.btn-minimize { background: #ffbd2e; }
.btn-maximize { background: #27c93f; }

.terminal-title {
    color: var(--text-secondary);
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.terminal-body {
    padding: 2.5rem 2rem;
    min-height: 400px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.terminal-line {
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.terminal-line .command {
    word-break: break-all;
    flex: 1;
    min-width: 0;
}

.prompt {
    color: var(--accent-primary);
    font-weight: 700;
}

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

.blinking {
    animation: blink 1s infinite;
}

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

.terminal-output {
    margin-left: 1.75rem;
    margin-top: 1.25rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
    .terminal-output {
        margin-left: 0;
        padding-left: 0.5rem;
    }
}

.hero-name {
    font-size: clamp(2rem, 8vw, 4.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 640px) {
    .hero-name {
        font-size: 1.75rem;
        gap: 0.25rem;
    }
}

.glitch {
    position: relative;
    color: var(--accent-primary);
    animation: glitch 2s infinite;
}

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

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

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--accent-secondary);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 1s infinite linear alternate-reverse;
}

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

@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    20% { clip: rect(54px, 9999px, 77px, 0); }
    40% { clip: rect(28px, 9999px, 87px, 0); }
    60% { clip: rect(42px, 9999px, 69px, 0); }
    80% { clip: rect(15px, 9999px, 99px, 0); }
    100% { clip: rect(38px, 9999px, 84px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    20% { clip: rect(41px, 9999px, 74px, 0); }
    40% { clip: rect(66px, 9999px, 93px, 0); }
    60% { clip: rect(10px, 9999px, 98px, 0); }
    80% { clip: rect(78px, 9999px, 61px, 0); }
    100% { clip: rect(54px, 9999px, 88px, 0); }
}

.hero-title {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    margin-top: 1.5rem;
    line-height: 1.6;
}

.typewriter {
    display: inline-block;
    overflow: hidden;
    border-right: 2px solid var(--accent-primary);
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@media (max-width: 640px) {
    .typewriter {
        white-space: normal;
        border-right: none;
        animation: none;
    }

    .hero-title {
        font-size: 0.95rem;
    }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--accent-primary); }
}

.resume-snapshot {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.snapshot-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 6px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    min-height: 60px;
}

.snapshot-item:nth-child(1) { animation-delay: 0.1s; }
.snapshot-item:nth-child(2) { animation-delay: 0.2s; }
.snapshot-item:nth-child(3) { animation-delay: 0.3s; }
.snapshot-item:nth-child(4) { animation-delay: 0.4s; }
.snapshot-item:nth-child(5) { animation-delay: 0.5s; }
.snapshot-item:nth-child(6) { animation-delay: 0.6s; }

.snapshot-item:hover {
    background: rgba(0, 255, 65, 0.1);
    border-color: var(--accent-primary);
    transform: translateX(5px);
}

.snapshot-item i {
    color: var(--accent-primary);
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px rgba(0, 255, 65, 0.4));
}

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

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

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--accent-primary);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { top: 8px; opacity: 1; }
    100% { top: 24px; opacity: 0; }
}

/* ============================================
   SECTIONS
   ============================================ */
section {
    padding: 6rem 0;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    overflow-x: hidden;
}

@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
        overflow-x: visible;
    }
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 4rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid rgba(0, 255, 65, 0.2);
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.section-number {
    font-size: 1.5rem;
    color: var(--accent-primary);
    font-weight: 700;
    font-family: var(--font-mono);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.4);
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    width: 100%;
    max-width: 100%;
}

@media (max-width: 968px) {
    .about-content {
        gap: 2.5rem;
    }
}

@media (max-width: 640px) {
    .about-content {
        gap: 2rem;
        overflow-x: hidden;
    }
}

.code-block {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-glow);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
}

.code-block:hover {
    box-shadow: var(--shadow-glow-strong);
    border-color: rgba(0, 255, 65, 0.3);
}

.code-header {
    background: var(--bg-primary);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.code-header::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f56;
    box-shadow: 20px 0 0 #ffbd2e, 40px 0 0 #27c93f;
}

.code-lang {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-left: 60px;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .code-lang {
        margin-left: 50px;
        font-size: 0.8rem;
    }
}

.code-block pre {
    padding: 1.75rem;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.9;
    background: var(--bg-primary);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) var(--bg-tertiary);
}

.code-block pre::-webkit-scrollbar {
    height: 8px;
}

.code-block pre::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

.code-block pre::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

.code-block pre::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

.code-block pre code {
    display: block;
    white-space: pre;
    word-wrap: normal;
    overflow-wrap: normal;
}

.keyword { color: #c792ea; }
.variable { color: #82aaff; }
.string { color: #c3e88d; }
.property { color: #ffcb6b; }
.comment { color: var(--text-muted); font-style: italic; }

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.stat-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 180px;
}

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

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

.stat-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.75rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 8px rgba(0, 255, 65, 0.4));
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 12px rgba(0, 255, 65, 0.6));
}

.stat-number {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.75rem;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

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

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects-grid {
    display: grid;
    gap: 3rem;
    grid-template-columns: 1fr;
}

@media (min-width: 1200px) {
    .projects-grid {
        gap: 4rem;
    }
}

@media (max-width: 968px) {
    .projects-grid {
        gap: 2.5rem;
    }
}

.project-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    width: 100%;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow-strong);
    transform: translateY(-8px);
}

.project-card:hover .project-number {
    color: rgba(0, 255, 65, 0.25);
    text-shadow: 0 0 30px rgba(0, 255, 65, 0.5);
}

.project-media {
    position: relative;
    overflow: hidden;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-video-container {
    width: 100%;
    height: 100%;
    min-height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.08) 0%, rgba(0, 212, 255, 0.08) 50%, rgba(255, 0, 255, 0.08) 100%);
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite, pulse 2s ease-in-out infinite;
    color: var(--accent-primary);
    font-size: 3.5rem;
    gap: 1.25rem;
    padding: 2rem;
    border: 2px dashed rgba(0, 255, 65, 0.2);
    margin: 1rem;
    border-radius: 8px;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

.video-placeholder p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.video-placeholder i {
    filter: drop-shadow(0 0 10px rgba(0, 255, 65, 0.5));
    animation: playPulse 2s ease-in-out infinite;
}

@keyframes playPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 39, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-links {
    display: flex;
    gap: 1.5rem;
}

.project-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-primary);
    color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    animation: scaleIn 0.3s ease forwards;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.project-link:hover {
    transform: scale(1.1) rotate(360deg);
    box-shadow: var(--shadow-glow);
}

.project-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
    width: 100%;
}

.project-number {
    font-size: 6rem;
    font-weight: 700;
    color: rgba(0, 255, 65, 0.12);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    line-height: 1;
    z-index: 1;
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
    pointer-events: none;
    font-family: var(--font-mono);
}

.project-title {
    font-size: 1.9rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    font-weight: 700;
    position: relative;
    z-index: 2;
    padding-right: 4rem;
}

.project-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 2;
}

.project-description {
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    position: relative;
    z-index: 2;
}

.project-metrics {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-bottom: 1.75rem;
    padding: 1rem;
    background: rgba(0, 255, 65, 0.03);
    border-left: 3px solid var(--accent-primary);
    border-radius: 4px;
}

.metric {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.metric i {
    color: var(--accent-primary);
    width: 22px;
    font-size: 1rem;
    flex-shrink: 0;
}

.project-impact {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    padding: 1.25rem;
    background: rgba(0, 255, 65, 0.03);
    border-left: 3px solid var(--accent-primary);
    border-radius: 4px;
}

.project-impact h4 {
    color: var(--accent-primary);
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-impact ul {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.project-impact li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding-left: 1.75rem;
    position: relative;
    line-height: 1.7;
}

.project-impact li::before {
    content: '→';
    position: absolute;
    left: 0.5rem;
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
    position: relative;
    z-index: 2;
}

.tech-tag {
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 6px;
    color: var(--accent-primary);
    font-size: 0.85rem;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.tech-tag:hover {
    background: rgba(0, 255, 65, 0.2);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills {
    background: var(--bg-secondary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.25rem;
    transition: all 0.3s ease;
}

.skill-category:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-5px);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.skill-header i {
    font-size: 2.25rem;
    color: var(--accent-primary);
    filter: drop-shadow(0 0 8px rgba(0, 255, 65, 0.4));
}

.skill-header h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skill-name {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-primary);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 4px;
    width: 0;
    transition: width 1s ease;
    position: relative;
    overflow: hidden;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: start;
    width: 100%;
    max-width: 100%;
}

@media (max-width: 640px) {
    .contact-content {
        overflow-x: hidden;
    }
}

.contact-form-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: var(--shadow-glow);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--accent-primary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group input,
.form-group textarea {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.875rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: 100%;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.submit-btn {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: 4px;
    padding: 1rem 2rem;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    justify-content: center;
}

.submit-btn:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
    transform: translateY(-5px) rotate(360deg);
    box-shadow: var(--shadow-glow);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0;
    text-align: center;
    margin-top: 2rem;
}

.footer-content p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.footer-content p:first-child {
    color: var(--accent-primary);
    font-weight: 500;
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-secondary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

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

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

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

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-card {
        width: 100%;
    }

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

    /* Terminal & Code Blocks Tablet */
    .terminal-body {
        padding: 2rem 1.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .terminal-title {
        font-size: 0.8rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .terminal-line {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .code-block {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .code-block pre {
        padding: 1.5rem;
        font-size: 0.85rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .code-lang {
        margin-left: 55px;
    }

    .code-header {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }

    section {
        padding: 4rem 0;
    }

    .hero-name {
        font-size: 2rem;
    }

    /* Terminal Window Mobile */
    .terminal-window {
        margin: 0 -0.5rem;
        border-radius: 4px;
        width: calc(100% + 1rem);
        max-width: calc(100% + 1rem);
    }

    .terminal-header {
        padding: 0.5rem 0.75rem;
        flex-wrap: wrap;
        gap: 0.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .terminal-title {
        font-size: 0.7rem;
        order: 2;
        width: 100%;
        margin-top: 0.25rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .terminal-buttons {
        order: 1;
        flex-shrink: 0;
    }

    .terminal-body {
        padding: 1.5rem 1rem;
        min-height: auto;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .terminal-line {
        margin-bottom: 1rem;
        gap: 0.5rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        min-width: 0;
    }

    .prompt {
        flex-shrink: 0;
    }

    .command {
        min-width: 0;
        word-break: break-all;
    }

    /* Code Blocks Mobile */
    .code-block {
        margin: 0 -0.5rem;
        border-radius: 4px;
        width: calc(100% + 1rem);
        max-width: calc(100% + 1rem);
    }

    .code-header {
        padding: 0.5rem 0.75rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .code-header::before {
        width: 10px;
        height: 10px;
        box-shadow: 16px 0 0 #ffbd2e, 32px 0 0 #27c93f;
        flex-shrink: 0;
    }

    .code-block pre {
        padding: 1rem 0.75rem;
        font-size: 0.7rem;
        line-height: 1.6;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        min-width: 0;
    }

    .code-block pre code {
        font-size: 0.7rem;
        display: block;
        min-width: max-content;
    }

    /* Ensure code can scroll horizontally */
    .code-block pre::-webkit-scrollbar {
        height: 6px;
    }

    /* About Section Mobile */
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .about-content {
        gap: 2rem;
    }

    /* Project Cards Mobile */
    .project-content {
        padding: 2rem 1.5rem;
        gap: 1.25rem;
    }

    .project-number {
        font-size: 4.5rem;
        top: 0.75rem;
        right: 1rem;
    }

    .project-title {
        font-size: 1.5rem;
        line-height: 1.2;
        padding-right: 3rem;
    }

    .project-subtitle {
        font-size: 0.9rem;
    }

    .project-description {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .project-impact {
        padding: 1rem;
    }

    .project-impact h4 {
        font-size: 0.9rem;
    }

    .project-impact li {
        font-size: 0.9rem;
    }

    .video-placeholder {
        font-size: 2.5rem;
        padding: 1.5rem;
        margin: 0.75rem;
        min-height: 250px;
    }

    .video-placeholder p {
        font-size: 0.95rem;
    }

    .stat-card {
        padding: 1.75rem 1.25rem;
        min-height: 160px;
    }

    .stat-icon {
        font-size: 2.25rem;
    }

    .stat-number {
        font-size: 2.25rem;
    }

    /* Contact Form Mobile */
    .contact-form-container {
        padding: 1.5rem;
    }

    .contact-content {
        gap: 2rem;
    }
}

/* ============================================
   TYPING ANIMATION
   ============================================ */
.typing-animation {
    display: inline-block;
    overflow: hidden;
    border-right: 2px solid var(--accent-primary);
    white-space: nowrap;
    animation: typing 1.5s steps(20, end), blink-caret 0.75s step-end infinite;
}

.delay-1 {
    animation-delay: 1.5s;
    animation-fill-mode: both;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in {
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.8s ease forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
