/* ==========================================================================
   Mehmet Taha Toy - Modern & Premium Coder / Computer Engineer Theme
   ========================================================================== */

/* 1. Global Variables & Engineering Design Tokens */
:root {
    --bg-base: #090d16;
    --bg-surface: #0f1626;
    --bg-card: #131c2e;
    --bg-card-hover: #17233a;
    --bg-code: #0b101c;
    
    --border-subtle: #1e293b;
    --border-card: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(56, 189, 248, 0.4);
    --border-glow: rgba(56, 189, 248, 0.25);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Engineer Syntax Accents */
    --accent-cyan: #38bdf8;
    --accent-blue: #0284c7;
    --accent-green: #10b981;
    --accent-emerald: #059669;
    --accent-purple: #818cf8;
    --accent-amber: #f59e0b;
    --accent-red: #ef4444;
    
    --gradient-primary: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #10b981 100%);
    --gradient-card: linear-gradient(180deg, rgba(19, 28, 46, 0.8) 0%, rgba(13, 20, 33, 0.95) 100%);
    --gradient-glow: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.15), transparent 70%);
    
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, Monaco, monospace;
    
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

/* 2. Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Subtle Engineering Grid Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

/* Blueprint Grid Layer */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
    pointer-events: none;
}

/* Ambient Radial Glows */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -3;
    pointer-events: none;
}

.glow-top {
    top: -100px;
    left: 20%;
    width: 500px;
    height: 500px;
    background: rgba(56, 189, 248, 0.12);
}

.glow-bottom {
    bottom: -150px;
    right: 15%;
    width: 600px;
    height: 600px;
    background: rgba(129, 140, 248, 0.1);
}

/* 3. Navigation Bar (IDE Command Header) */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 0;
    z-index: 1000;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled,
.navbar.menu-open {
    padding: 0.85rem 0;
    background: rgba(9, 13, 22, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

/* Brand Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo-terminal-icon {
    color: var(--accent-cyan);
    font-size: 1.1rem;
}

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

.logo-tag {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-green);
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    margin-left: 0.25rem;
}

/* Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav-link {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-link-prefix {
    color: var(--accent-cyan);
    opacity: 0.6;
    font-size: 0.8rem;
}

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

.nav-link:hover .nav-link-prefix {
    opacity: 1;
    color: var(--accent-green);
}

/* Coder Buttons */
.btn-code {
    font-family: var(--font-mono);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-code-primary {
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
    color: #040812;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.3);
    font-weight: 700;
}

.btn-code-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.45);
    background: linear-gradient(135deg, #38bdf8 0%, #22d3ee 100%);
}

.btn-code-outline {
    background: rgba(15, 22, 38, 0.8);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
}

.btn-code-outline:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: translateY(-2px);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.mobile-menu-btn:hover,
.mobile-menu-btn.active {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(56, 189, 248, 0.1);
}

/* 4. Section Common Structure */
.section {
    padding: 6.5rem 0;
    position: relative;
    z-index: 10;
    scroll-margin-top: 80px;
}

.section-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    margin-bottom: 3.5rem;
    position: relative;
}

.section-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.75px;
    color: var(--text-primary);
}

.section-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-top: 0.5rem;
    max-width: 650px;
}

/* 5. Hero Section (Dual Column Coder Station) */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 4rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

/* Hero Left Content */
.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-profile-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
}

.hero-avatar-frame {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    padding: 3px;
    background: var(--gradient-primary);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.35);
    position: relative;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.hero-avatar-frame:hover {
    transform: scale(1.05);
    box-shadow: 0 0 35px rgba(56, 189, 248, 0.55);
}

.hero-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2.5px solid var(--bg-base);
}

.avatar-status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--accent-green);
    border: 2.5px solid var(--bg-base);
    box-shadow: 0 0 10px var(--accent-green);
}

.hero-badges-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.hero-location-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding-left: 0.25rem;
}

.hero-location-badge i {
    color: var(--accent-cyan);
}

.dev-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(15, 22, 38, 0.9);
    border: 1px solid var(--border-subtle);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    width: fit-content;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

.hero-name {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
}

.hero-name .gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-role-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 1.35rem;
    color: var(--accent-cyan);
    font-weight: 600;
}

.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1.3em;
    background-color: var(--accent-cyan);
    vertical-align: middle;
    animation: blinkCursor 0.8s infinite;
}

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

.hero-bio {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-top: 0.5rem;
}

.hero-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.social-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.social-link-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent-cyan);
    background: rgba(56, 189, 248, 0.1);
    transform: translateY(-2px);
}

/* Hero Right: Interactive IDE & Terminal Window */
.ide-window {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    position: relative;
}

.ide-header {
    background: #0b101c;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-subtle);
}

.window-dots {
    display: flex;
    gap: 0.4rem;
}

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

.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #f59e0b; }
.dot-green { background-color: #10b981; }

.ide-tabs {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-shrink: 1;
    max-width: 100%;
}

.ide-tabs::-webkit-scrollbar {
    display: none;
}

.ide-tab {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: var(--transition-smooth);
    white-space: nowrap;
    flex-shrink: 0;
    user-select: none;
}

.ide-tab.active {
    background: var(--bg-card);
    border-color: var(--border-subtle);
    color: var(--accent-cyan);
    font-weight: 600;
}

.ide-tab:hover:not(.active) {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
}

.ide-body {
    padding: 1.25rem;
    min-height: 380px;
    background: #090d16;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-content {
    display: none;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.65;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Syntax Highlighting */
.code-line {
    display: flex;
    gap: 1rem;
}

.line-num {
    color: var(--text-muted);
    user-select: none;
    width: 20px;
    text-align: right;
    opacity: 0.5;
}

.syn-keyword { color: #c084fc; font-weight: 600; }
.syn-type { color: #38bdf8; }
.syn-string { color: #34d399; }
.syn-property { color: #f8fafc; }
.syn-comment { color: #64748b; font-style: italic; }
.syn-method { color: #67e8f9; }
.syn-num { color: #fbbf24; }

/* Interactive Terminal Simulator */
.terminal-container {
    display: flex;
    flex-direction: column;
    height: 360px;
}

.terminal-logs {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    font-size: 0.85rem;
}

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

.term-line.system {
    color: var(--accent-cyan);
}

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

.term-line.accent {
    color: #c084fc;
}

.terminal-input-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-subtle);
}

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

.term-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.term-quick-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.6rem;
}

.term-quick-btn {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: var(--accent-cyan);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.term-quick-btn:hover {
    background: var(--accent-cyan);
    color: #040812;
}

/* 6. Coder Cards & Grid Styles */
.card-dev {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card-dev::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
    opacity: 0;
    transition: var(--transition-smooth);
}

.card-dev:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6), 0 0 20px -5px var(--border-glow);
}

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

/* 7. About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2rem;
}

.about-main-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-quote {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
    position: relative;
    padding-left: 1.25rem;
    border-left: 3px solid var(--accent-cyan);
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.spec-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.spec-item-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-cyan);
}

.spec-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* About ID Badge */
.about-id-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.15rem;
    margin-bottom: 1.5rem;
    background: rgba(11, 16, 28, 0.7);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.about-id-card:hover {
    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(15, 22, 38, 0.85);
    transform: translateY(-2px);
}

.about-id-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15), transparent 70%);
    pointer-events: none;
}

.about-id-avatar-wrap {
    width: 68px;
    height: 68px;
    border-radius: var(--radius-md);
    position: relative;
    flex-shrink: 0;
}

.about-id-avatar {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 2px solid rgba(56, 189, 248, 0.4);
    display: block;
}

.about-id-verified {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-cyan);
    color: #040812;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
}

.about-id-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.about-id-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.about-id-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-cyan);
}

.about-id-org {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.info-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
}

.info-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-list li i {
    color: var(--accent-cyan);
    width: 20px;
    text-align: center;
}

.info-list li strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* 8. Experience & Education (Git Commit Branch Pipeline) */
.timeline-dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.timeline-column-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    font-size: 1.35rem;
    font-weight: 700;
}

.timeline-column-header i {
    color: var(--accent-cyan);
}

.git-pipeline {
    position: relative;
    padding-left: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.git-pipeline::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-cyan) 0%, var(--accent-purple) 50%, var(--accent-green) 100%);
    opacity: 0.4;
}

.git-commit-node {
    position: relative;
}

.git-commit-node::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 1.25rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-cyan);
    border: 3px solid var(--bg-base);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.commit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.commit-hash {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-green);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.commit-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.commit-role {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.commit-company {
    font-size: 0.95rem;
    color: var(--accent-cyan);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

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

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1rem;
}

.tag-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--accent-cyan);
    transition: var(--transition-smooth);
}

.tag-badge:hover {
    border-color: var(--accent-cyan);
    background: rgba(56, 189, 248, 0.1);
}

/* 9. Projects Section (Engineering Showcase) */
.project-filter-bar {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn.active,
.filter-btn:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: var(--accent-cyan);
    color: var(--text-primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.75rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.project-icon-box {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.project-category-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-purple);
    background: rgba(129, 140, 248, 0.1);
    border: 1px solid rgba(129, 140, 248, 0.25);
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

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

/* 10. Academic Paper Card */
.papers-container {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.paper-card {
    background: var(--bg-card);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.paper-card:hover {
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 12px 32px -10px rgba(56, 189, 248, 0.15);
    transform: translateY(-2px);
}

.paper-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15), transparent 70%);
    pointer-events: none;
}

.paper-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.paper-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-cyan);
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.paper-badges .paper-badge {
    margin-bottom: 0;
}

.paper-badge-green {
    color: var(--accent-green);
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.paper-badge-purple {
    color: var(--accent-purple);
    background: rgba(129, 140, 248, 0.1);
    border-color: rgba(129, 140, 248, 0.3);
}

.paper-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.paper-abstract {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

/* 11. Skills Arsenal & Tech Matrix */
.skills-arsenal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.skill-category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: var(--transition-smooth);
}

.skill-category-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
}

.skill-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
}

.skill-card-header i {
    color: var(--accent-cyan);
}

.skill-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-chip {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-smooth);
}

.skill-chip i {
    font-size: 0.85rem;
    color: var(--accent-cyan);
}

.skill-chip:hover {
    border-color: var(--accent-cyan);
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-cyan);
    transform: translateY(-2px);
}

/* 12. Contact Section (API & CLI Console) */
.contact-console-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.contact-console-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
}

.contact-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.contact-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 550px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.cli-copy-box {
    background: #090d16;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 480px;
    margin: 0 auto 2rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.cli-code {
    color: var(--accent-green);
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition-smooth);
    padding: 0.2rem 0.5rem;
}

.copy-btn:hover {
    color: var(--accent-cyan);
}

.contact-btn-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* 13. Footer */
footer {
    border-top: 1px solid var(--border-subtle);
    padding: 2.5rem 0;
    margin-top: 4rem;
    background: #060910;
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.footer-status-pill {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-green);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

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

/* 14. Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

/* 15. Responsive Breakpoints & Flawless Mobile Drawer */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-dual-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .paper-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(9, 13, 22, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-bottom: 1px solid var(--border-subtle);
        padding: 1.5rem 2rem 2rem;
        gap: 0.75rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px);
        transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
        pointer-events: none;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-link {
        font-size: 1.05rem;
        padding: 0.85rem 1rem;
        border-radius: var(--radius-md);
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid transparent;
    }

    .nav-link:hover {
        background: rgba(56, 189, 248, 0.08);
        border-color: rgba(56, 189, 248, 0.2);
        color: var(--accent-cyan);
    }

    .nav-links .btn-code {
        margin-top: 0.5rem;
        text-align: center;
        justify-content: center;
        padding: 0.85rem;
    }

    .hero-profile-row {
        gap: 1rem;
    }
    
    .hero-avatar-frame {
        width: 76px;
        height: 76px;
    }
    
    .avatar-status-indicator {
        width: 12px;
        height: 12px;
    }
    
    .dev-status-badge {
        font-size: 0.78rem;
        padding: 0.35rem 0.75rem;
    }
    
    .hero-location-badge {
        font-size: 0.74rem;
    }

    .about-id-card {
        padding: 1rem;
        gap: 1rem;
    }

    .about-id-avatar-wrap {
        width: 60px;
        height: 60px;
    }

    .about-id-name {
        font-size: 1.05rem;
    }

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

    .hero-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

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

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

    /* IDE Mobile Tab Scrolling & Responsiveness */
    .ide-header {
        padding: 0.5rem 0.65rem;
        gap: 0.4rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .window-dots {
        display: none;
    }

    .ide-tabs {
        width: 100%;
        display: flex;
        gap: 0.35rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
    }

    .ide-tab {
        font-size: 0.75rem;
        padding: 0.35rem 0.65rem;
        flex-shrink: 0;
    }

    .ide-body {
        padding: 0.85rem;
        min-height: 340px;
        overflow-x: auto;
    }

    .code-line {
        font-size: 0.78rem;
        white-space: pre;
    }

    .term-quick-btns {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .term-quick-btn {
        flex-shrink: 0;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}
