/* =====================================================
   CSS Variables & Reset
   ===================================================== */
:root {
    /* Colors */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #22d3ee;
    --accent: #f472b6;
    
    /* Background Colors */
    --bg-dark: #0f0f1a;
    --bg-darker: #0a0a12;
    --bg-card: #1a1a2e;
    --bg-card-hover: #252542;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-text: linear-gradient(90deg, var(--primary-light) 0%, var(--secondary) 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.3);
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-max: 1200px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

[data-theme="light"] {
    --bg-dark: #f4f4f8;
    --bg-darker: #eaeaef;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f0f5;
    --text-primary: #0f0f1a;
    --text-secondary: #3f3f46;
    --text-muted: #71717a;
    --shadow-sm: 0 2px 4px rgba(15, 15, 26, 0.06);
    --shadow-md: 0 4px 12px rgba(15, 15, 26, 0.1);
    --shadow-lg: 0 10px 30px rgba(15, 15, 26, 0.12);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.15);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    scrollbar-gutter: stable;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =====================================================
   Typography
   ===================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

.highlight {
    color: var(--primary-light);
    font-weight: 600;
}

/* =====================================================
   Layout
   ===================================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 16px auto 0;
    border-radius: var(--radius-full);
}

/* =====================================================
   Navigation
   ===================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background: color-mix(in srgb, var(--bg-darker) 90%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: color-mix(in srgb, var(--bg-darker) 98%, transparent);
    box-shadow: var(--shadow-md);
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(15, 15, 26, 0.08);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 32px);
    height: 70px;
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    gap: 16px;
}

.nav-spacer {
    flex: 1;
    min-width: 8px;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: clamp(12px, 2vw, 24px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 28px;
    min-width: 0;
    flex-shrink: 0;
}

.nav-logo {
    font-size: 1.4rem;
    font-weight: 700;
    font-family: 'Fira Code', monospace;
    flex-shrink: 0;
}

.logo-bracket {
    color: var(--primary);
}

.logo-dot {
    color: var(--secondary);
}

[data-theme="light"] .logo-dot {
    color: color-mix(in srgb, var(--secondary) 55%, #0f0f1a 45%);
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-normal);
}

[data-theme="light"] .theme-toggle {
    border-color: rgba(15, 15, 26, 0.12);
    background: var(--bg-card-hover);
}

.theme-toggle:hover {
    border-color: var(--primary);
    color: var(--primary-light);
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
    white-space: nowrap;
}

.navbar .nav-link:not(.active):not(:hover) {
    color: color-mix(in srgb, var(--text-secondary) 95%, var(--text-primary));
}

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

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

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: transform 0.25s ease;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: translateY(0) rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    transform: translateY(0) rotate(-45deg);
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* =====================================================
   Hero Section
   ===================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-greeting {
    font-size: 1.1rem;
    color: var(--primary-light);
    font-weight: 500;
    margin-bottom: 8px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 12px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.hero-location {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.hero-location i {
    color: var(--secondary);
}

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

.cursor {
    animation: blink 1s infinite;
    color: var(--primary);
}

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

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-social {
    display: flex;
    gap: 16px;
}

.hero-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: var(--transition-normal);
}

.hero-social a:hover {
    background: var(--primary);
    color: var(--text-primary);
    transform: translateY(-4px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    position: relative;
    width: 380px;
    height: 380px;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary);
    position: relative;
    z-index: 2;
}

.image-decoration {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--secondary);
    border-radius: 50%;
    opacity: 0.5;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    animation: bounce 2s infinite;
}

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

/* =====================================================
   About Section
   ===================================================== */
.about {
    padding: var(--section-padding);
    background: var(--bg-darker);
    overflow-x: hidden;
}

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

.about-text {
    max-width: 100%;
    overflow: hidden;
}

/* About Badge */
.about-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-full);
    margin-bottom: 24px;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 0.85rem;
    color: var(--primary-light);
}

.badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    font-size: 0.65rem;
    color: white;
}

.about-headline {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--text-primary);
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

.about-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* About Metrics */
.about-metrics {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 100%;
    flex-wrap: wrap;
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* About Tags */
.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 100%;
    justify-content: flex-start;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-card);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition-normal);
    border: 1px solid transparent;
}

.tag:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.tag i {
    color: var(--primary-light);
    font-size: 1rem;
}

/* About Visual - Terminal */
.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    overflow: hidden;
}

.terminal-window {
    width: 100%;
    max-width: 480px;
    background: #1e1e2e;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.terminal-title {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    margin-left: auto;
}

.terminal-body {
    padding: 20px;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
    overflow-x: auto;
}

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

.prompt {
    color: var(--secondary);
    font-weight: 600;
}

.command {
    color: #cdd6f4;
}

.terminal-output {
    color: var(--primary-light);
    margin-bottom: 16px;
    padding-left: 20px;
}

.terminal-json {
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: 16px;
    padding-left: 20px;
    line-height: 1.6;
    color: #a6adc8;
}

.json-bracket {
    color: #9399b2;
}

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

.json-string {
    color: #c3e88d;
}

[data-theme="light"] .terminal-window {
    box-shadow: 0 20px 40px -12px rgba(15, 15, 26, 0.15);
}

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

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

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.stat:hover {
    background: var(--bg-card-hover);
    transform: translateX(8px);
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

.stat-label {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Code Block Styling */
.code-block {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.file-name {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: 'Fira Code', monospace;
}

.code-block pre {
    padding: 24px;
    overflow-x: auto;
}

.code-block code {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.keyword { color: #c792ea; }
.class-name { color: #ffcb6b; }
.function { color: #82aaff; }
.variable { color: #f07178; }
.string { color: #c3e88d; }
.type { color: #ffcb6b; }

/* =====================================================
   Skills Section
   ===================================================== */
.skills {
    padding: var(--section-padding);
}

.skills-category {
    margin-bottom: 50px;
}

.skills-category:last-child {
    margin-bottom: 0;
}

.category-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .category-title {
    border-bottom-color: rgba(15, 15, 26, 0.08);
}

.category-title i {
    color: var(--primary-light);
    font-size: 1.1rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.skill-card {
    position: relative;
    background: var(--bg-card);
    padding: 22px 20px 18px;
    padding-top: 44px;
    border-radius: 16px;
    text-align: left;
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.skill-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(99, 102, 241, 0.15);
}

[data-theme="light"] .skill-card {
    border: 1px solid rgba(15, 15, 26, 0.08);
    box-shadow: 0 2px 8px rgba(15, 15, 26, 0.06);
}

[data-theme="light"] .skill-card:hover {
    box-shadow: 0 14px 28px rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
}

.skill-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    line-height: 1.2;
}

.skill-card[data-level="advanced"] .skill-badge {
    color: #34d399;
    background: rgba(52, 211, 153, 0.15);
    border: 1px solid rgba(52, 211, 153, 0.35);
}

.skill-card[data-level="intermediate"] .skill-badge {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.35);
}

[data-theme="light"] .skill-card[data-level="advanced"] .skill-badge {
    color: #059669;
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.25);
}

[data-theme="light"] .skill-card[data-level="intermediate"] .skill-badge {
    color: #d97706;
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.25);
}

.skill-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-height: 0;
    width: 100%;
    text-align: center;
}

.skill-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 14px;
    font-size: 1.5rem;
    color: var(--primary-light);
}

[data-theme="light"] .skill-icon {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.15);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.12);
}

.skill-card h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
    width: 100%;
}

.skill-tags {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    width: 100%;
    min-height: calc(2 * (1.3 * 0.68rem + 8px) + 6px);
}

.skill-tag {
    padding: 4px 10px;
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    line-height: 1.3;
}

[data-theme="light"] .skill-tag {
    background: rgba(15, 15, 26, 0.04);
    border-color: rgba(15, 15, 26, 0.08);
    color: var(--text-secondary);
}

.skill-meter {
    margin-top: auto;
    width: 100%;
    padding-top: 4px;
}

.skill-bar {
    height: 7px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    overflow: hidden;
}

[data-theme="light"] .skill-bar {
    background: rgba(15, 15, 26, 0.08);
    height: 8px;
}

.skill-progress {
    height: 100%;
    border-radius: var(--radius-full);
    width: 0;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.skill-card[data-level="advanced"] .skill-progress {
    background: linear-gradient(90deg, #10b981 0%, #22d3ee 100%);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
}

.skill-card[data-level="intermediate"] .skill-progress {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.skill-card.animate .skill-progress {
    width: var(--progress);
}

@media (max-width: 480px) {
    .skill-badge {
        top: 10px;
        right: 10px;
        font-size: 0.52rem;
        padding: 3px 8px;
    }

    .skill-card {
        padding-top: 40px;
    }

    .skill-tags {
        min-height: calc(3 * (1.3 * 0.68rem + 8px) + 12px);
    }
}

.architecture-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.concept-pill {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 0.85rem;
    border-radius: var(--radius-full);
    font-weight: 500;
}

[data-theme="light"] .concept-pill {
    background: var(--bg-card-hover);
    border-color: rgba(15, 15, 26, 0.08);
}

/* =====================================================
   Projects Section
   ===================================================== */
.projects {
    padding: var(--section-padding);
    background: var(--bg-darker);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    align-items: stretch;
}

.project-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-card-hover) 0%, var(--bg-dark) 100%);
    isolation: isolate;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(99, 102, 241, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
    z-index: 5;
    pointer-events: none;
}

.project-overlay .project-link {
    pointer-events: auto;
}

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

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

.project-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 56px;
    height: auto;
    padding: 10px 12px;
    background: var(--text-primary);
    color: var(--primary);
    border-radius: var(--radius-md);
    font-size: 1.2rem;
    transform: translateY(20px);
    transition: var(--transition-normal);
}

.project-link-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity var(--transition-fast), max-height var(--transition-fast);
}

.project-card:hover .project-link-label,
.project-link:focus-visible .project-link-label {
    opacity: 1;
    max-height: 1rem;
}

.project-card:hover .project-link {
    transform: translateY(0);
}

.project-link:hover {
    background: var(--secondary);
    color: var(--text-primary);
}

.project-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.project-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.6;
    flex: 1;
}

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

.project-tech span {
    padding: 6px 12px;
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
    font-size: 0.8rem;
    border-radius: var(--radius-full);
    font-weight: 500;
}

.project-details-btn {
    margin: 16px 24px 24px;
    margin-top: auto;
    width: calc(100% - 48px);
    justify-content: center;
    font-size: 0.9rem;
    padding: 12px 20px;
}

.project-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.project-carousel-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.project-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
    pointer-events: auto;
}

.project-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0;
}

.project-carousel-dot.active {
    background: var(--secondary);
    transform: scale(1.15);
}

.project-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(15, 15, 26, 0.55);
    color: white;
    cursor: pointer;
    opacity: 0.65;
    pointer-events: auto;
    transition: opacity var(--transition-normal);
}

.project-card:hover .project-carousel-nav,
.project-card:focus-within .project-carousel-nav {
    opacity: 1;
}

.project-carousel-prev {
    left: 8px;
}

.project-carousel-next {
    right: 8px;
}

.project-card .project-carousel-nav,
.project-card .project-carousel-dots {
    display: none;
}

/* Experience timeline */
.experience {
    padding: var(--section-padding);
    background: var(--bg-dark);
}

.experience-timeline {
    position: relative;
    max-width: min(100%, 1040px);
    margin: 0 auto;
    padding-left: 32px;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
    padding: 24px 28px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 28px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--secondary);
    box-shadow: 0 0 0 4px var(--bg-dark);
}

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

.timeline-header h3 {
    font-size: 1.15rem;
}

.timeline-company {
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.95rem;
}

.timeline-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.timeline-bullets {
    list-style: none;
    padding: 0;
}

.timeline-bullets li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.5;
}

.timeline-bullets li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--secondary);
}

.contact-location {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 8px 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-full);
}

.contact-location i {
    color: var(--secondary);
}

[data-theme="light"] .contact-location {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
    color: var(--text-secondary);
}

/* Project modal */
.project-modal {
    border: none;
    padding: 0;
    margin: auto;
    inset: 0;
    position: fixed;
    max-width: min(920px, 92vw);
    width: 100%;
    max-height: min(90vh, 900px);
    background: var(--bg-card);
    color: var(--text-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1200;
}

.project-modal[open] {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.project-modal::backdrop {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
}

.project-modal-inner {
    display: flex;
    flex-direction: column;
    padding: 0;
    max-height: min(90vh, 900px);
    overflow: hidden;
    min-height: 0;
    flex: 1;
}

.project-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 3;
    flex-shrink: 0;
    padding: 20px 28px 16px;
    margin-bottom: 0;
    background: var(--bg-card);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .project-modal-header {
    border-bottom-color: rgba(15, 15, 26, 0.08);
}

.project-modal-body {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    padding: 0 28px 28px;
}

.project-modal-close {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.1rem;
}

[data-theme="light"] .project-modal-close {
    background: rgba(15, 15, 26, 0.08);
}

.project-modal-carousel {
    position: relative;
    min-height: 320px;
    height: min(50vh, 420px);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 20px;
    background: var(--bg-darker);
    isolation: isolate;
    --modal-slide-duration: 0.6s;
    --modal-slide-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

.project-modal-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0;
    visibility: hidden;
    z-index: 0;
    pointer-events: none;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    transition: none;
}

.project-modal-slide.from-next {
    transform: translate3d(36px, 0, 0);
}

.project-modal-slide.from-prev {
    transform: translate3d(-36px, 0, 0);
}

.project-modal-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
    pointer-events: none;
    transform: translate3d(0, 0, 0);
    transition:
        opacity calc(var(--modal-slide-duration) * 0.85) ease-out,
        transform var(--modal-slide-duration) var(--modal-slide-ease),
        visibility 0s;
}

.project-modal-carousel-nav {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
}

.project-modal-carousel-nav button {
    pointer-events: auto;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(15, 15, 26, 0.6);
    color: white;
    cursor: pointer;
}

.project-modal-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.project-modal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.project-modal-dot.active {
    background: var(--secondary);
}

.project-modal-prev {
    left: 12px;
}

.project-modal-next {
    right: 12px;
}

.project-modal-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.project-modal-features {
    margin-bottom: 16px;
    padding-left: 20px;
    color: var(--text-secondary);
}

.project-modal-features li {
    margin-bottom: 6px;
}

.project-modal-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.project-modal-tech span {
    padding: 6px 12px;
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
    font-size: 0.8rem;
    border-radius: var(--radius-full);
}

.project-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

body.modal-open {
    overflow: hidden;
}

.skills-category-architecture {
    margin-top: 16px;
}

.skills-category-architecture .architecture-panel {
    padding: 28px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* =====================================================
   Contact Section
   ===================================================== */
.contact {
    padding: var(--section-padding);
    background: var(--bg-darker);
}

.contact-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 40px;
}

.contact-intro {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0 0 16px;
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 28px;
    align-items: stretch;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: stretch;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
    padding: 24px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: var(--transition-normal);
}

.contact-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(99, 102, 241, 0.15);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 14px;
    font-size: 1.25rem;
    color: var(--primary-light);
    flex-shrink: 0;
}

.contact-details {
    min-width: 0;
}

.contact-details h3 {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.contact-details a {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    overflow-wrap: anywhere;
}

.contact-details a:hover {
    color: var(--primary-light);
}

.contact-social {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    min-height: 100%;
    background: var(--bg-card);
    padding: 32px 28px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    text-align: center;
    transition: var(--transition-normal);
}

.contact-social:hover {
    border-color: rgba(99, 102, 241, 0.25);
}

.contact-social h3 {
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.social-link:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.4);
    color: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
}

[data-theme="light"] .contact-card,
[data-theme="light"] .contact-social {
    border: 1px solid rgba(15, 15, 26, 0.08);
    box-shadow: 0 2px 8px rgba(15, 15, 26, 0.06);
}

[data-theme="light"] .contact-card:hover {
    box-shadow: 0 14px 28px rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
}

[data-theme="light"] .contact-icon {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.15);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.12);
}

[data-theme="light"] .contact-details a:hover {
    color: var(--primary);
}

[data-theme="light"] .social-link {
    background: rgba(15, 15, 26, 0.04);
    border-color: rgba(15, 15, 26, 0.08);
}

[data-theme="light"] .social-link:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.35);
    color: var(--primary);
}

/* =====================================================
   Footer
   ===================================================== */
.footer {
    background: var(--bg-darker);
    padding: 60px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    text-align: center;
    margin-bottom: 32px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Fira Code', monospace;
    margin-bottom: 12px;
}

.footer-text {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =====================================================
   Back to Top Button
   ===================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-glow);
    z-index: 1040;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
}

/* =====================================================
   Responsive Design
   ===================================================== */
@media (min-width: 1025px) {
    .hero-container {
        gap: 76px;
    }
}

@media (max-width: 1100px) {
    .nav-menu {
        gap: 16px;
    }

    .nav-link {
        font-size: 0.875rem;
    }
}

@media (max-width: 1024px) {
    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 20px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 30px;
        padding-bottom: 20px;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-image {
        order: 1;
        padding-top: 20px;
        padding-bottom: 10px;
    }
    
    .image-wrapper {
        width: 280px;
        height: 280px;
    }
    
    .hero-subtitle {
        justify-content: center;
    }

    .hero-location {
        justify-content: center;
    }
    
    .hero-description {
        margin: 0 auto 32px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-social {
        justify-content: center;
    }
    
    .hero-scroll {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 20px;
        text-align: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-text {
        text-align: center;
    }
    
    .about-badge {
        margin-left: auto;
        margin-right: auto;
    }
    
    .about-headline {
        text-align: center;
    }
    
    .about-description {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .about-metrics {
        justify-content: center;
    }
    
    .about-tags {
        justify-content: center;
    }
    
    .about-image {
        order: -1;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 920px) {
    .nav-menu {
        gap: 12px;
    }

    .nav-link {
        font-size: 0.8125rem;
    }
}

@media (max-width: 880px) {
    .nav-spacer {
        display: none;
    }

    .nav-container {
        justify-content: flex-start;
    }

    .nav-controls {
        margin-left: auto;
        margin-right: 0;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        margin-left: 0;
        background: var(--bg-darker);
        flex-direction: column;
        padding: 32px;
        gap: 24px;
        text-align: center;
        box-sizing: border-box;
        transform: translate3d(0, -100%, 0);
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.3s;
        z-index: 1090;
        max-height: calc(100dvh - 70px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    [data-theme="light"] .nav-menu {
        background: var(--bg-card);
        border-bottom: 1px solid rgba(15, 15, 26, 0.08);
    }

    .nav-menu.active {
        transform: translate3d(0, 0, 0);
        visibility: visible;
        pointer-events: auto;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s;
    }

    .nav-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }

    .nav-controls {
        gap: 8px;
    }

    .back-to-top {
        bottom: 20px;
        right: 16px;
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .contact-card {
        padding: 20px;
    }

    .contact-social {
        padding: 28px 20px;
    }

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

    .timeline-item {
        padding: 20px;
    }

    .timeline-item::before {
        left: -24px;
    }

    .project-modal-carousel {
        min-height: 200px;
        height: min(40vh, 280px);
    }

    .project-modal-inner {
        max-height: min(90vh, 900px);
    }

    .project-modal-header {
        padding: 16px 16px 12px;
    }

    .project-modal-body {
        padding: 0 16px 16px;
    }

    .project-modal-actions {
        flex-direction: column;
    }

    .project-modal-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .nav-menu {
        gap: 20px;
    }

    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 20px;
    }
    
    .hero-container {
        padding-top: 30px;
        padding-bottom: 20px;
    }
    
    .hero-image {
        padding-top: 10px;
    }
    
    .hero-scroll {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 20px;
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .about-text {
        text-align: center;
    }
    
    .about-badge {
        margin-left: auto;
        margin-right: auto;
    }
    
    .about-headline {
        text-align: center;
    }
    
    .about-description {
        text-align: center;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-metrics {
        gap: 20px;
        justify-content: center;
    }
    
    .metric-value {
        font-size: 1.6rem;
    }
    
    .about-tags {
        justify-content: center;
    }
    
    .terminal-window {
        max-width: 100%;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-container {
        padding: 20px 16px 50px;
    }
    
    .hero-image {
        padding-top: 5px;
    }
    
    .image-wrapper {
        width: 200px;
        height: 200px;
    }
    
    .hero-scroll {
        margin-top: 15px;
    }
    
    .scroll-indicator {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .project-content h3 {
        font-size: 1.1rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .category-title {
        font-size: 1.1rem;
    }
    
    .skills-category {
        margin-bottom: 40px;
    }
    
    .about-metrics {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .metric {
        align-items: center;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .tag {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    
    .terminal-body {
        padding: 12px;
        font-size: 0.7rem;
    }
    
    .terminal-json {
        padding-left: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .project-card:hover {
        transform: none;
    }

    .project-card:hover .project-image img,
    .project-carousel-slide,
    .project-modal-slide {
        transform: none;
        transition: none;
    }

    .project-modal-slide.active {
        transform: none;
    }

    .skill-progress {
        transition: none;
    }

    .skill-card.animate .skill-progress {
        width: var(--progress);
    }
}

@media (max-width: 1024px) {
    .hero-location {
        justify-content: center;
    }
}
