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

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #06d6a0;
    --bg-color: #0a0a0a;
    --surface-color: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border-color: #333333;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --accent-gradient: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

[data-theme="light"] {
    --primary-color: #4f46e5;
    --secondary-color: #7c3aed;
    --accent-color: #059669;
    --bg-color: #f8fafc;
    --surface-color: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
}

html {
    scroll-behavior: smooth;
}

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

.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease;
    opacity: 0;
}

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

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.footer-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.footer-brand-name {
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

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

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

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

.lang-switcher {
    display: flex;
    gap: 0.25rem;
    margin-left: 1rem;
}

.lang-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: inherit;
    line-height: 1;
}

.lang-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.lang-btn.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.15);
}

[data-theme="light"] .lang-btn {
    background: var(--surface-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .lang-btn.active {
    background: rgba(99, 102, 241, 0.15);
    box-shadow: none;
}

.theme-toggle {
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.theme-toggle:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: rotate(15deg);
}

[data-theme="light"] .theme-toggle {
    background: var(--surface-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    overflow: hidden;
    padding-top: 5rem;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-text {
    z-index: 2;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.title-line {
    display: block;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-location {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 500;
}

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

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

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

.btn-secondary:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Developer Scene */
.dev-scene {
    position: relative;
    width: 100%;
    max-width: 420px;
}

.dev-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(99, 102, 241, 0.15));
}

/* Code lines pulsing animation */
.code-line {
    animation: codePulse 2.5s ease-in-out infinite;
}

.code-line-1 { animation-delay: 0s; }
.code-line-2 { animation-delay: 0.3s; }
.code-line-3 { animation-delay: 0.6s; }
.code-line-4 { animation-delay: 0.9s; }
.code-line-5 { animation-delay: 1.2s; }
.code-line-6 { animation-delay: 1.5s; }
.code-line-7 { animation-delay: 1.8s; }
.code-line-8 { animation-delay: 2.1s; }
.code-line-9 { animation-delay: 0.15s; }

@keyframes codePulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.9; }
}

/* Screen glow pulsing */
.screen-glow {
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.02; }
    50% { opacity: 0.06; }
}

/* Cursor blinking */
.screen-cursor {
    animation: cursorBlink 1s step-end infinite;
}

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

/* Typing hands subtle animation */
.typing-hands {
    animation: typing 0.6s ease-in-out infinite alternate;
}

@keyframes typing {
    0% { transform: translateY(0); }
    100% { transform: translateY(-1.5px); }
}

.left-hand {
    animation: typeLeft 0.4s ease-in-out infinite alternate;
}

.right-hand {
    animation: typeRight 0.4s ease-in-out infinite alternate-reverse;
}

@keyframes typeLeft {
    0% { transform: translateY(0); }
    100% { transform: translateY(-2px); }
}

@keyframes typeRight {
    0% { transform: translateY(0); }
    100% { transform: translateY(-2px); }
}

/* Coffee steam */
.steam {
    animation: steamFloat 3s ease-in-out infinite;
}

.steam-1 { animation-delay: 0s; }
.steam-2 { animation-delay: 1s; }

@keyframes steamFloat {
    0%, 100% { opacity: 0.1; transform: translateY(0); }
    50% { opacity: 0.4; transform: translateY(-4px); }
}

/* Tech Bubbles Container — positioned above the monitor */
.tech-bubbles {
    position: absolute;
    top: -5%;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 35%;
    pointer-events: none;
    overflow: visible;
}

/* Individual tech bubble */
.tech-bubble {
    position: absolute;
    left: 50%;
    bottom: 0;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    background: rgba(99, 102, 241, 0.25);
    border: 1px solid rgba(139, 92, 246, 0.4);
    backdrop-filter: blur(4px);
    white-space: nowrap;
    opacity: 0;
    animation: techFloat 5s ease-out infinite;
    animation-delay: calc(var(--i) * 0.33s);
}

@keyframes techFloat {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(0) scale(0.6);
    }
    12% {
        opacity: 1;
        transform: translateX(calc(-50% + var(--dir) * 25px)) translateY(-20px) scale(1);
    }
    60% {
        opacity: 0.85;
        transform: translateX(calc(-50% + var(--dir) * 55px)) translateY(-80px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(calc(-50% + var(--dir) * 75px)) translateY(-120px) scale(0.85);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translateX(-50%) translateY(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(-50%) translateY(20px); opacity: 0; }
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 4rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about {
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--bg-color) 0%, var(--surface-color) 100%);
}

.about-header {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.about-intro {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    flex: 1;
}

/* No Language Barriers Banner */
.lang-barrier-banner {
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.18);
    border-radius: 14px;
    padding: 1.5rem 2rem;
    margin: 1.5rem 0 0.5rem;
    text-align: center;
}

.lang-banner-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.lang-banner-header i {
    font-size: 1.6rem;
    color: var(--primary-color);
}

.lang-banner-header h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.lang-banner-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin: 0 0 1rem;
    line-height: 1.5;
}

.lang-banner-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.lang-tag {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.lang-tag--primary {
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--primary-color);
}

.lang-banner-more {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    opacity: 0.8;
}

/* Value Proposition Cards */
.value-prop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin: 2rem 0 2.5rem;
}

.value-card {
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.18);
    border-radius: 12px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}

.value-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.value-card-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    font-size: 1.4rem;
    color: var(--primary-color);
}

.value-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.value-card-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 768px) {
    .value-prop-grid {
        grid-template-columns: 1fr;
    }
}

.achievements h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.achievement-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
}

.achievement-item:hover {
    transform: translateY(-5px);
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

.achievement-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.achievement-item h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

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

.profile-card {
    background: var(--surface-color);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

.profile-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    flex-shrink: 0;
}

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.profile-socials {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.profile-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.profile-socials a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.profile-socials .dou-link {
    width: auto;
    padding: 0 10px;
}

.profile-socials .dou-link span {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fff;
}

.footer-links .dou-link {
    text-decoration: none;
}

.footer-links .dou-link span {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fff;
}

.projects {
    padding: 8rem 0;
}

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

.project-card {
    background: var(--surface-color);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-image {
    margin-bottom: 1.5rem;
}

.project-icon {
    font-size: 3rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.skills {
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--bg-color) 0%, var(--surface-color) 100%);
}

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

.skill-category {
    background: var(--surface-color);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
}

.skill-category h3 {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    font-size: 1.25rem;
}

.skill-category i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-item span {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient);
    border-radius: 10px;
    transition: width 2s ease;
}

.contact {
    padding: 8rem 0;
}

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

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

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

.contact-method {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--surface-color);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.contact-method:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.3);
}

.contact-method i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.contact-method h4 {
    margin-bottom: 0.25rem;
}

.contact-method p {
    color: var(--text-secondary);
    margin: 0;
}

.contact-form {
    background: var(--surface-color);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    min-width: 24px;
}

.contact-item h4 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.contact-item a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

.form-group select {
    cursor: pointer;
}

.contact-form form {
    margin-bottom: 2rem;
}

.form-info {
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
}

.form-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-info i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}


.footer {
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text p {
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--surface-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

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

    .hamburger {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 6rem;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        z-index: 10;
        position: relative;
    }

    .hero-text {
        z-index: 10;
        position: relative;
    }

    .hero {
        min-height: auto;
        padding-top: 0;
        padding-bottom: 3rem;
    }

    .hero-visual {
        order: -1;
    }

    .dev-scene {
        max-width: 340px;
        margin: 0 auto;
    }

    .tech-bubble {
        font-size: 0.68rem;
        padding: 0.2rem 0.55rem;
    }

    .about-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-card {
        flex-direction: column;
        text-align: center;
    }

    .profile-socials {
        justify-content: center;
    }

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

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

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

    .hero-buttons {
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

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

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

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

    .nav-container {
        padding: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

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

/* Light theme specific overrides */
[data-theme="light"] .navbar {
    background: rgba(248, 250, 252, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .hero {
    background: radial-gradient(circle at 50% 50%, rgba(79, 70, 229, 0.08) 0%, transparent 50%);
}

[data-theme="light"] .about {
    background: linear-gradient(180deg, var(--bg-color) 0%, var(--surface-color) 100%);
}

[data-theme="light"] .skills {
    background: linear-gradient(180deg, var(--bg-color) 0%, var(--surface-color) 100%);
}

[data-theme="light"] .project-card,
[data-theme="light"] .skill-category,
[data-theme="light"] .contact-form,
[data-theme="light"] .contact-method,
[data-theme="light"] .profile-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .project-card:hover,
[data-theme="light"] .skill-category:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .achievement-item {
    background: rgba(79, 70, 229, 0.05);
    border-color: rgba(79, 70, 229, 0.1);
}

[data-theme="light"] .achievement-item:hover {
    background: rgba(79, 70, 229, 0.08);
}

[data-theme="light"] .tech-tag {
    background: rgba(79, 70, 229, 0.1);
}

[data-theme="light"] .footer {
    background: var(--surface-color);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .nav-menu {
    background-color: var(--surface-color);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
    background: var(--bg-color);
    border-color: var(--border-color);
}

/* Developer scene light theme */
[data-theme="light"] .dev-svg {
    filter: drop-shadow(0 10px 30px rgba(79, 70, 229, 0.2));
}

[data-theme="light"] .tech-bubble {
    background: rgba(79, 70, 229, 0.15);
    border-color: rgba(79, 70, 229, 0.35);
    color: var(--text-primary);
}

/* Interactive animations */
.tech-bubble {
    cursor: pointer;
    pointer-events: auto;
}

.tech-bubble.popping {
    animation: bubblePop 0.4s ease-out forwards !important;
}

@keyframes bubblePop {
    0% { transform: translateX(var(--pop-x)) translateY(var(--pop-y)) scale(1); opacity: 0.85; }
    50% { transform: translateX(var(--pop-x)) translateY(var(--pop-y)) scale(1.5); opacity: 1; }
    100% { transform: translateX(var(--pop-x)) translateY(var(--pop-y)) scale(0); opacity: 0; }
}

.coffee-mug {
    transform-box: fill-box;
    transform-origin: center center;
    animation: coffeeMugSip 25s ease-in-out infinite;
    animation-delay: 5s;
}

.coffee-mug.flipping {
    animation: mugFlip 0.8s ease-in-out;
}

@keyframes mugFlip {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(180deg) translateY(-10px); }
    100% { transform: rotate(360deg) translateY(0); }
}

.developer-group {
    transform-origin: 197px 280px;
}

.developer-group.spinning {
    animation: devSpin 0.8s ease-in-out;
}

@keyframes devSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* === SIP COFFEE ANIMATION (periodic, 25s cycle) ===
   Head cross-fades from back-view → left-profile → back-view.
   Mug translates from desk up to face level and returns.
   0%–60%  : normal coding
   60%–67% : back-of-head fades out, profile fades in, arm extends
   67%–73% : sip arm fades (holding mug), mug rises to face
   73%–83% : sipping (profile + mug at face)
   83%–89% : mug returns, sip arm briefly visible
   89%–95% : profile fades out, back-of-head fades in
   95%–100%: normal
*/

.back-of-head-group {
    animation: backOfHeadVis 25s ease-in-out infinite;
    animation-delay: 5s;
}

.profile-head-group {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: 50% 85%;
    animation: profileHeadVis 25s ease-in-out infinite,
               profileHeadTilt 25s ease-in-out infinite;
    animation-delay: 5s, 5s;
}

.left-arm-group {
    animation: leftArmGroupVis 25s ease-in-out infinite;
    animation-delay: 5s;
}

.left-sip-group {
    opacity: 0;
    animation: leftSipGroupVis 25s ease-in-out infinite;
    animation-delay: 5s;
}

@keyframes backOfHeadVis {
    0%, 60%  { opacity: 1; }
    67%      { opacity: 0; }
    89%      { opacity: 0; }
    95%      { opacity: 1; }
    100%     { opacity: 1; }
}

@keyframes profileHeadVis {
    0%, 60%  { opacity: 0; }
    67%      { opacity: 1; }
    89%      { opacity: 1; }
    95%      { opacity: 0; }
    100%     { opacity: 0; }
}

@keyframes leftArmGroupVis {
    0%, 60%  { opacity: 1; }
    65%      { opacity: 0; }
    91%      { opacity: 0; }
    96%      { opacity: 1; }
    100%     { opacity: 1; }
}

@keyframes leftSipGroupVis {
    0%, 60%  { opacity: 0; }
    65%      { opacity: 1; }
    72%      { opacity: 0; }
    84%      { opacity: 0; }
    87%      { opacity: 1; }
    91%      { opacity: 0; }
    100%     { opacity: 0; }
}

/* Head tilts back (+clockwise) while drinking — pivot near neck */
@keyframes profileHeadTilt {
    0%, 70%  { transform: rotate(0deg); }
    76%      { transform: rotate(9deg); }
    83%      { transform: rotate(9deg); }
    89%      { transform: rotate(0deg); }
    100%     { transform: rotate(0deg); }
}

@keyframes coffeeMugSip {
    /* mug lifts to face and tilts as if pouring */
    0%, 63%  { transform: translate(0, 0) rotate(0deg); }
    70%      { transform: translate(89px, -49px) rotate(38deg); }
    83%      { transform: translate(89px, -49px) rotate(38deg); }
    89%      { transform: translate(0, 0) rotate(0deg); }
    100%     { transform: translate(0, 0) rotate(0deg); }
}

/* ============================================
   Timeline Banner – Career Timeline
   ============================================ */

.tl-banner {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #0a0a18;
    border-top:    1px solid rgba(99,102,241,0.12);
    border-bottom: 1px solid rgba(99,102,241,0.12);
    line-height: 0;
    padding: 0;
    margin: 0;
}
.tl-svg {
    width: 100%;
    height: auto;
    max-height: 220px;
    display: block;
}

/* Line segments draw left to right */
@keyframes tl-draw { to { stroke-dashoffset: 0; } }
.tl-seg-1 { animation: tl-draw 0.7s ease-out 0.4s 1 forwards; }
.tl-seg-2 { animation: tl-draw 0.7s ease-out 1.2s 1 forwards; }
.tl-seg-3 { animation: tl-draw 0.7s ease-out 2.0s 1 forwards; }
.tl-seg-4 { animation: tl-draw 0.7s ease-out 2.8s 1 forwards; }

/* Node pop-in with elastic bounce */
.tl-node-inner { opacity: 0; transform-origin: 0 0; }
@keyframes tl-node-pop {
    0%   { opacity: 0; transform: scale(0);    }
    70%  { opacity: 1; transform: scale(1.25); }
    100% { opacity: 1; transform: scale(1);    }
}
.tl-ni-1 { animation: tl-node-pop 0.4s cubic-bezier(0.34,1.56,0.64,1) 0.3s 1 forwards; }
.tl-ni-2 { animation: tl-node-pop 0.4s cubic-bezier(0.34,1.56,0.64,1) 1.1s 1 forwards; }
.tl-ni-3 { animation: tl-node-pop 0.4s cubic-bezier(0.34,1.56,0.64,1) 1.9s 1 forwards; }
.tl-ni-4 { animation: tl-node-pop 0.4s cubic-bezier(0.34,1.56,0.64,1) 2.7s 1 forwards; }
.tl-ni-5 { animation: tl-node-pop 0.4s cubic-bezier(0.34,1.56,0.64,1) 3.5s 1 forwards; }

/* "Now" node – pulsing ring */
.tl-pulse-wrap { transform-origin: 0 0; opacity: 0; animation: tl-pulse 1.5s ease-out 4.0s infinite; }
@keyframes tl-pulse {
    0%   { transform: scale(1);   opacity: 0.8; }
    100% { transform: scale(2.4); opacity: 0;   }
}

/* Hero subtle float */
@keyframes tl-hero-float {
    0%,100% { transform: translateY(0);    }
    50%     { transform: translateY(-2px); }
}
.tl-hero-body { animation: tl-hero-float 3.5s ease-in-out infinite; }

/* ============================================
   Terminal Banner – "load --skills"
   ============================================ */

.term-banner {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #0a0a18;
    border-top:    1px solid rgba(99,102,241,0.12);
    border-bottom: 1px solid rgba(99,102,241,0.12);
    line-height: 0;
    padding: 0;
    margin: 0;
}
.term-svg {
    width: 100%;
    height: auto;
    max-height: 220px;
    display: block;
}

/* Terminal window slides down */
@keyframes tb-win-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0);    }
}
.tb-window { animation: tb-win-in 0.35s ease-out 1 forwards; }

/* Typewriter clip-rect expansions */
@keyframes tb-rev-cmd    { from{width:0} to{width:110px} }
@keyframes tb-rev-scan   { from{width:0} to{width:286px} }
@keyframes tb-rev-tech1  { from{width:0} to{width:479px} }
@keyframes tb-rev-tech2  { from{width:0} to{width:530px} }
@keyframes tb-rev-status { from{width:0} to{width:362px} }

.tb-clip-cmd    { animation: tb-rev-cmd    1.2s steps(13,end) 0.05s 1 forwards; }
.tb-clip-scan   { animation: tb-rev-scan   0.8s steps(34,end) 1.8s  1 forwards; }
.tb-clip-tech1  { animation: tb-rev-tech1  1.6s steps(57,end) 4.5s  1 forwards; }
.tb-clip-tech2  { animation: tb-rev-tech2  1.5s steps(63,end) 6.2s  1 forwards; }
.tb-clip-status { animation: tb-rev-status 1.0s steps(43,end) 7.8s  1 forwards; }

/* Progress bar fill */
@keyframes tb-prog-fill { from{width:0} to{width:290px} }
.tb-progress-bar { animation: tb-prog-fill 1.8s linear 2.6s 1 forwards; }

/* Simple opacity reveals */
@keyframes tb-appear { from{opacity:0} to{opacity:1} }
.tb-prog-wrap  { opacity:0; animation: tb-appear 0.15s ease 2.6s  1 forwards; }
.tb-prog-pct   { opacity:0; animation: tb-appear 0.1s  ease 4.4s  1 forwards; }
.tb-found-lbl  { opacity:0; animation: tb-appear 0.15s ease 4.5s  1 forwards; }
.tb-status-chk { opacity:0; animation: tb-appear 0.1s  ease 7.8s  1 forwards; }

/* End-of-session blinking cursor */
@keyframes tb-blink { 0%,100%{opacity:1} 50%{opacity:0} }
.tb-end-cursor { opacity:0; animation: tb-blink 0.6s step-end 8.8s infinite; }

/* Hero: arm points toward terminal */
@keyframes tb-hero-point {
    0%   { transform: rotate(0deg);   }
    60%  { transform: rotate(-50deg); }
    100% { transform: rotate(-45deg); }
}
.tb-hero-point {
    animation: tb-hero-point 0.7s ease-out 0.5s 1 forwards;
    transform-origin: 0 0;
}

/* Hero: subtle float */
@keyframes tb-hero-float {
    0%,100% { transform: translateY(0);    }
    50%     { transform: translateY(-2px); }
}
.tb-hero-body { animation: tb-hero-float 3.5s ease-in-out infinite; }

/* ====================================
   Walk Banner – "The Walk + Chat Bubble"
   ==================================== */

.walk-banner {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #0a0a18;
    border-top:    1px solid rgba(99,102,241,0.12);
    border-bottom: 1px solid rgba(99,102,241,0.12);
    line-height: 0;
    padding: 0;
    margin: 0;
}
.walk-svg {
    width: 100%;
    height: auto;
    max-height: 240px;
    display: block;
}

/* Hero walks across */
@keyframes bw-hero-walk {
    0%   { transform: translateX(1040px); }
    60%  { transform: translateX(0px); }
    100% { transform: translateX(0px); }
}
.bw-walk-hero {
    animation: bw-hero-walk 10s cubic-bezier(0.4, 0, 0.6, 1) 1 forwards;
}

/* Body bob while walking */
@keyframes bw-body-bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-3.5px); }
}
.bw-body-bob {
    animation: bw-body-bob 0.23s ease-in-out 26 forwards;
}

/* Leg swing */
@keyframes bw-leg-f {
    0%   { transform: rotate(-30deg); }
    50%  { transform: rotate(30deg);  }
    100% { transform: rotate(-30deg); }
}
@keyframes bw-leg-b {
    0%   { transform: rotate(30deg);  }
    50%  { transform: rotate(-30deg); }
    100% { transform: rotate(30deg);  }
}
.bw-leg-front {
    animation: bw-leg-f 0.46s ease-in-out 13 forwards;
    transform-origin: 0 0;
}
.bw-leg-back {
    animation: bw-leg-b 0.46s ease-in-out 13 forwards;
    transform-origin: 0 0;
}

/* Back arm swings during walk */
@keyframes bw-arm-b {
    0%   { transform: rotate(-22deg); }
    50%  { transform: rotate(22deg);  }
    100% { transform: rotate(-22deg); }
}
.bw-arm-back-walk {
    animation: bw-arm-b 0.46s ease-in-out 13 forwards;
    transform-origin: 0 0;
}

/* Front arm waves after stop */
@keyframes bw-wave {
    0%   { transform: rotate(0deg);   }
    25%  { transform: rotate(-52deg); }
    50%  { transform: rotate(-26deg); }
    75%  { transform: rotate(-58deg); }
    100% { transform: rotate(-32deg); }
}
.bw-arm-front-wave {
    animation: bw-wave 0.65s ease-in-out 3 6.0s forwards;
    transform-origin: 0 0;
}

/* Shadow under hero */
@keyframes bw-shadow-in {
    from { opacity: 0; }
    to   { opacity: 0.22; }
}
.bw-hero-shadow {
    opacity: 0;
    animation: bw-shadow-in 0.4s ease-out 5.9s 1 forwards;
}

/* Tech trail icons pop in */
@keyframes bw-trail-pop {
    0%   { transform: scale(0) rotate(-160deg); opacity: 0; }
    70%  { transform: scale(1.15) rotate(5deg);  opacity: 1; }
    100% { transform: scale(1) rotate(0deg);     opacity: 0.9; }
}
.bw-trail-icon {
    opacity: 0;
    animation: bw-trail-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 1 forwards;
}
.bw-trail-7 { animation-delay: 1.1s; }
.bw-trail-6 { animation-delay: 1.9s; }
.bw-trail-5 { animation-delay: 2.7s; }
.bw-trail-4 { animation-delay: 3.4s; }
.bw-trail-3 { animation-delay: 4.2s; }
.bw-trail-2 { animation-delay: 4.9s; }
.bw-trail-1 { animation-delay: 5.6s; }

/* Chat bubble pops in from pointer tip */
@keyframes bw-bubble-pop {
    0%   { opacity: 0; transform: scale(0.4); }
    70%  { opacity: 1; transform: scale(1.04); }
    100% { opacity: 1; transform: scale(1); }
}
.bw-chat-bubble {
    opacity: 0;
    transform-origin: 276px 80px;
    animation: bw-bubble-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 1 6.0s forwards;
}

/* Typewriter text reveal via clip-rect width expansion */
@keyframes bw-reveal-1 {
    from { width: 0; }
    to   { width: 280px; }
}
@keyframes bw-reveal-2 {
    from { width: 0; }
    to   { width: 438px; }
}
.bw-clip-rect-1 {
    animation: bw-reveal-1 1.5s steps(29, end) 1 6.5s forwards;
}
.bw-clip-rect-2 {
    animation: bw-reveal-2 2.0s steps(35, end) 1 8.0s forwards;
}

/* Blinking cursor */
@keyframes bw-cursor-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}
.bw-cursor {
    opacity: 0;
    animation: bw-cursor-blink 0.7s step-end 8.0s infinite;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .code-line,
    .screen-glow,
    .screen-cursor,
    .typing-hands,
    .left-hand,
    .right-hand,
    .steam,
    .tech-bubble,
    .back-of-head-group,
    .profile-head-group,
    .left-arm-group,
    .left-sip-group,
    .coffee-mug {
        animation: none;
    }

    .code-line { opacity: 0.7; }
    .screen-glow { opacity: 0.03; }
    .screen-cursor { opacity: 1; }
    .steam { opacity: 0.2; }
    .profile-head-group { opacity: 0; }
    .left-sip-group { opacity: 0; }
    .tech-bubble {
        opacity: 0.7;
        transform: translateX(calc(-50% + var(--dir) * 50px)) translateY(-60px);
    }

    /* Timeline Banner: show final state */
    .tl-seg-1, .tl-seg-2,
    .tl-seg-3, .tl-seg-4  { animation: none; stroke-dashoffset: 0; }
    .tl-node-inner         { animation: none; opacity: 1; transform: scale(1); }
    .tl-pulse-wrap         { animation: none; opacity: 0; }
    .tl-hero-body          { animation: none; }

    /* Terminal Banner: show final state */
    .tb-window     { animation: none; opacity: 1; transform: translateY(0); }
    .tb-clip-cmd    { animation: none; width: 110px; }
    .tb-clip-scan   { animation: none; width: 286px; }
    .tb-clip-tech1  { animation: none; width: 479px; }
    .tb-clip-tech2  { animation: none; width: 530px; }
    .tb-clip-status { animation: none; width: 362px; }
    .tb-progress-bar{ animation: none; width: 290px; }
    .tb-prog-wrap   { animation: none; opacity: 1; }
    .tb-prog-pct    { animation: none; opacity: 1; }
    .tb-found-lbl   { animation: none; opacity: 1; }
    .tb-status-chk  { animation: none; opacity: 1; }
    .tb-end-cursor  { animation: none; opacity: 1; }
    .tb-hero-point  { animation: none; transform: rotate(-45deg); }
    .tb-hero-body   { animation: none; }

    /* Walk Banner: skip animation, show final state */
    .bw-walk-hero    { animation: none; transform: translateX(0); }
    .bw-body-bob     { animation: none; }
    .bw-leg-front,
    .bw-leg-back,
    .bw-arm-back-walk,
    .bw-arm-front-wave { animation: none; transform: rotate(0deg); }
    .bw-hero-shadow  { animation: none; opacity: 0.22; }
    .bw-trail-icon   { animation: none; opacity: 0.9; transform: scale(1); }
    .bw-chat-bubble  { animation: none; opacity: 1; transform: scale(1); }
    .bw-clip-rect-1  { animation: none; width: 280px; }
    .bw-clip-rect-2  { animation: none; width: 438px; }
    .bw-cursor       { animation: none; opacity: 1; }
}