:root {
    --indigo: #6366f1;
    --indigo-dark: #4f46e5;
    --violet: #8b5cf6;
    --sky: #38bdf8;
    --emerald: #34d399;
    --dark-bg: #0f172a;
    --dark-secondary: #1e293b;
    --dark-tertiary: #293548;
    --dark-card: #1a2740;
    --text-light: #e2e8f0;
    --text-muted: #94a3b8;
    --border: rgba(99, 102, 241, 0.15);
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --glass-bg: rgba(15, 23, 42, 0.92);
    --glass-float: rgba(15, 23, 42, 0.88);
    --gradient-mid: rgba(15, 23, 42, 0.5);
    --gradient-bottom: rgba(15, 23, 42, 0.95);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-light);
    background-color: var(--dark-bg);
    line-height: 1.6;
}

body.light-mode {
    --indigo: #4f46e5;
    --indigo-dark: #4338ca;
    --violet: #7c3aed;
    --sky: #0284c7;
    --emerald: #059669;
    --dark-bg: #ffffff;
    --dark-secondary: #f3f4f6;
    --dark-tertiary: #e5e7eb;
    --dark-card: #f9fafb;
    --text-light: #1f2937;
    --text-muted: #6b7280;
    --border: rgba(79, 70, 229, 0.1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.92);
    --glass-float: rgba(255, 255, 255, 0.88);
    --gradient-mid: rgba(255, 255, 255, 0.5);
    --gradient-bottom: rgba(255, 255, 255, 0.95);
}

.mono {
    font-family: 'JetBrains Mono', monospace;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 14px;
    letter-spacing: 0.3px;
    font-family: 'Space Grotesk', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--indigo), var(--violet));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--indigo);
    border: 1.5px solid rgba(99, 102, 241, 0.5);
}

.btn-outline:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--indigo);
    transform: translateY(-2px);
}

.btn-small {
    padding: 8px 18px;
    font-size: 12px;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
}

.logo {
    font-weight: 700;
    font-size: 20px;
    font-family: 'JetBrains Mono', monospace;
}

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

.logo-text {
    background: linear-gradient(135deg, var(--indigo), var(--violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    position: relative;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--indigo), var(--violet));
    transition: var(--transition);
    border-radius: 2px;
}

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

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

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--indigo);
    margin: 4px 0;
    transition: var(--transition);
    border-radius: 2px;
}

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

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

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

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}

.hero .container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 480px;
    align-items: center;
    gap: 60px;
    padding: 60px 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.25);
    color: var(--emerald);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
    animation: pulse-badge 2s ease-in-out infinite;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--emerald);
    border-radius: 50%;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
    font-size: 58px;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
    color: var(--text-light);
    animation: fadeInDown 0.8s ease-out;
}

.highlight {
    background: linear-gradient(135deg, var(--indigo), var(--violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight-secondary {
    background: linear-gradient(135deg, var(--violet), var(--sky));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 20px;
    font-family: 'JetBrains Mono', monospace;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.separator {
    color: var(--indigo);
    opacity: 0.5;
}

.hero-description {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 36px;
    line-height: 1.8;
    max-width: 480px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.social-links {
    display: flex;
    gap: 12px;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.social-links a {
    color: var(--text-muted);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--dark-secondary);
    border: 1px solid var(--border);
    font-size: 18px;
}

.social-links a:hover {
    color: white;
    background: var(--indigo);
    border-color: var(--indigo);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

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

.photo-frame {
    position: relative;
    width: 380px;
    height: 460px;
}

.photo-ring {
    position: absolute;
    inset: -16px;
    border-radius: 32px;
    border: 1.5px dashed rgba(99, 102, 241, 0.25);
    animation: spin-slow 20s linear infinite;
}

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

.photo-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 28px;
    overflow: hidden;
    border: 1.5px solid rgba(99, 102, 241, 0.2);
    background: var(--dark-secondary);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    filter: brightness(0.95) saturate(0.9);
}

.photo-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 45%,
        var(--gradient-mid) 75%,
        var(--gradient-bottom) 100%
    );
    pointer-events: none;
}

.float-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--glass-float);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    animation: float-gentle 3s ease-in-out infinite;
    white-space: nowrap;
}

.float-badge i {
    color: var(--indigo);
    font-size: 16px;
}

.badge-top-right {
    top: -18px;
    right: -24px;
    animation-delay: 0s;
}

.badge-bottom-left {
    bottom: 60px;
    left: -28px;
    animation-delay: 1.5s;
}

@keyframes float-gentle {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.float-stat {
    position: absolute;
    bottom: 20px;
    right: -20px;
    background: var(--glass-float);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 14px;
    padding: 12px 18px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    animation: float-gentle 3.5s ease-in-out infinite;
}

.float-stat-2 {
    right: auto;
    left: -20px;
    bottom: 160px;
    animation-delay: 1s;
}

.float-stat-num {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    color: var(--indigo);
    line-height: 1.2;
}

.float-stat-label {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 2px;
}

.orbit-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--indigo);
    opacity: 0.6;
    animation-name: float-enhanced;
}

.orbit-dot-1 {
    top: 20%;
    left: -20px;
    animation: orbit-float 4s ease-in-out infinite;
}

.orbit-dot-2 {
    top: 55%;
    right: -14px;
    width: 6px;
    height: 6px;
    background: var(--violet);
    animation: orbit-float 5s ease-in-out infinite reverse;
}

.orbit-dot-3 {
    bottom: 25%;
    left: 10%;
    width: 5px;
    height: 5px;
    background: var(--sky);
    animation: orbit-float 3.5s ease-in-out infinite;
    animation-delay: 0.8s;
}

@keyframes orbit-float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-12px) scale(1.3); opacity: 1; }
}

.scroll-down {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 11px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1.5px;
    height: 40px;
    background: linear-gradient(to bottom, var(--indigo), transparent);
    animation: scroll-anim 2s ease-in-out infinite;
}

@keyframes scroll-anim {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

.section-header {
    margin-bottom: 56px;
}

.section-label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--indigo);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 42px;
    color: var(--text-light);
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    background: linear-gradient(135deg, var(--indigo), var(--violet));
    margin-top: 16px;
    border-radius: 2px;
}

.about {
    padding: 100px 0;
    background: var(--dark-secondary);
}

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

.about-text p {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-muted);
}

.about-text strong {
    color: var(--text-light);
    font-weight: 600;
}

.about-text em {
    color: var(--indigo);
    font-style: normal;
    font-weight: 500;
}

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

.stat {
    text-align: center;
    padding: 20px 16px;
    background: var(--dark-tertiary);
    border-radius: 14px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.stat:hover {
    border-color: var(--indigo);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.12);
}

.stat h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--indigo);
    margin-bottom: 6px;
    font-family: 'JetBrains Mono', monospace;
}

.stat-no-animate {
    font-size: 28px;
    font-weight: 700;
    color: var(--indigo);
    margin-bottom: 6px;
    font-family: 'JetBrains Mono', monospace;
}

.stat p {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-card {
    background: var(--dark-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.about-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: var(--dark-tertiary);
    border-bottom: 1px solid var(--border);
}

.card-dots {
    display: flex;
    gap: 6px;
}

.card-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.4;
}

.card-dots span:first-child { background: #ef4444; opacity: 0.8; }
.card-dots span:nth-child(2) { background: #f59e0b; opacity: 0.8; }
.card-dots span:last-child { background: #22c55e; opacity: 0.8; }

.about-card-header .mono {
    font-size: 13px;
    color: var(--text-muted);
    margin-left: 6px;
}

.about-card-body {
    padding: 20px 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.9;
    color: var(--text-muted);
}

.json-key { color: #93c5fd; }
.json-string { color: #86efac; }
.json-num { color: #fbbf24; }
.json-bool { color: #c084fc; }
.json-indent { padding-left: 20px; }

.skills {
    padding: 100px 0;
    background: var(--dark-bg);
}

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

.skill-card {
    background: var(--dark-secondary);
    padding: 28px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
}

.skill-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    opacity: 0;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.3), transparent);
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.skill-card:hover::after {
    opacity: 1;
}

.skill-icon {
    font-size: 44px;
    color: var(--indigo);
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.skill-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-light);
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.skill-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.skill-level {
    display: flex;
    gap: 12px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--indigo), var(--violet));
    border-radius: 3px;
    animation: widthAnimation 1s ease-in-out;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}

@keyframes widthAnimation {
    from { width: 0 !important; }
}

.skill-level span {
    font-weight: 600;
    font-size: 13px;
    color: var(--indigo);
    min-width: 40px;
    font-family: 'JetBrains Mono', monospace;
}

.projects {
    padding: 100px 0;
    background: var(--dark-secondary);
}

.project-filter {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 44px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--border);
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    color: var(--text-muted);
    transition: var(--transition);
    font-family: 'Space Grotesk', sans-serif;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--indigo);
    color: var(--text-light);
    background: rgba(99, 102, 241, 0.1);
}

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

.project-card {
    background: var(--dark-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}

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

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
    z-index: 2;
}

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

.project-image {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.06));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-icon-bg {
    font-size: 64px;
    color: rgba(99, 102, 241, 0.2);
    transition: var(--transition);
}

.project-card:hover .project-icon-bg {
    color: rgba(99, 102, 241, 0.35);
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(99, 102, 241, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.project-content {
    padding: 22px 24px;
}

.project-type {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--indigo);
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    display: block;
    margin-bottom: 8px;
}

.project-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-light);
    font-weight: 600;
}

.project-content p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.7;
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--indigo);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, 0.2);
    font-family: 'JetBrains Mono', monospace;
}

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

.project-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.project-links a:hover {
    color: var(--indigo);
}

.experience {
    padding: 100px 0;
    background: var(--dark-bg);
}

.timeline {
    position: relative;
    padding: 10px 0;
    max-width: 800px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--indigo), rgba(139, 92, 246, 0.3), transparent);
}

.timeline-item {
    margin-bottom: 48px;
    padding-left: 36px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 6px;
    width: 12px;
    height: 12px;
    background: var(--dark-bg);
    border: 2px solid var(--indigo);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
}

.timeline-content {
    background: var(--dark-secondary);
    padding: 24px 28px;
    border-radius: 14px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.1);
}

.timeline-content h3 {
    font-size: 18px;
    margin-bottom: 6px;
    color: var(--text-light);
    font-weight: 600;
}

.timeline-content .company {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.timeline-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--indigo);
    background: rgba(99, 102, 241, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.timeline-content .description {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.timeline-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.timeline-tags span {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.08);
    color: var(--indigo);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, 0.18);
    font-family: 'JetBrains Mono', monospace;
}

.contact {
    padding: 100px 0;
    background: var(--dark-secondary);
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 52px;
    max-width: 480px;
    line-height: 1.7;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-item {
    display: flex;
    gap: 18px;
    margin-bottom: 28px;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: var(--indigo);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
    font-weight: 500;
}

.contact-details a,
.contact-details p {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

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

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    transition: var(--transition);
    background: var(--dark-bg);
    color: var(--text-light);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

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

.footer {
    background: var(--dark-bg);
    color: var(--text-muted);
    padding: 32px 0;
    border-top: 1px solid var(--border);
}

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

.footer-content p {
    font-size: 13px;
    font-family: 'JetBrains Mono', monospace;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
}

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

.other-projects {
    padding: 80px 0;
    background: var(--dark-bg);
    border-top: 1px solid var(--border);
}

.other-projects-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 20px;
}

.other-projects-sub {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 6px;
}

.gh-profile-btn {
    white-space: nowrap;
    flex-shrink: 0;
}

.other-projects-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.gh-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--emerald);
    font-family: 'JetBrains Mono', monospace;
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.2);
    padding: 4px 10px;
    border-radius: 100px;
}

.gh-live-badge .badge-dot {
    width: 6px;
    height: 6px;
    background: var(--emerald);
    border-radius: 50%;
    animation: pulse-green 2s infinite;
}

.gh-count {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.other-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.other-repo-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--dark-secondary);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.other-repo-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.1);
    background: rgba(99, 102, 241, 0.03);
}

.other-repo-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.other-repo-icon {
    font-size: 22px;
    line-height: 1;
}

.other-repo-gh {
    font-size: 16px;
    color: var(--text-muted);
    opacity: 0.4;
    transition: var(--transition);
}

.other-repo-card:hover .other-repo-gh {
    opacity: 1;
    color: var(--text-light);
}

.other-repo-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-light);
    line-height: 1.3;
}

.other-repo-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.other-repo-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.other-repo-lang {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.lang-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lang-color, var(--indigo));
    flex-shrink: 0;
}

.other-repo-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.other-repo-updated {
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    margin-left: auto;
    opacity: 0.6;
}

.other-repo-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 24px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.other-repo-empty i {
    font-size: 40px;
    opacity: 0.3;
}

.other-repo-empty p {
    font-size: 14px;
}

.other-projects-error {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.other-projects-error i {
    font-size: 28px;
    color: #f59e0b;
}

.skeleton {
    pointer-events: none;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.9; }
}

.skeleton-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--dark-tertiary);
}

.skeleton-line {
    height: 11px;
    border-radius: 4px;
    background: var(--dark-tertiary);
}

.skeleton-line.w90 { width: 90%; }
.skeleton-line.w60 { width: 60%; }
.skeleton-line.w40 { width: 40%; }

.theme-toggle-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--indigo), var(--violet));
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
    transition: var(--transition);
}

.theme-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

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

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

@keyframes float-enhanced {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(1deg);
    }
}

@media (max-width: 1024px) {
    .hero-layout {
        grid-template-columns: 1fr 400px;
        gap: 40px;
    }

    .photo-frame {
        width: 320px;
        height: 400px;
    }
}

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

    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--glass-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
        padding: 24px 0;
        gap: 0;
        backdrop-filter: blur(16px);
    }

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

    .nav-link {
        padding: 16px 0;
        display: block;
        font-size: 16px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
        padding: 40px 0 80px;
    }

    .hero-visual {
        order: -1;
    }

    .photo-frame {
        width: 280px;
        height: 340px;
        margin: 0 auto;
    }

    .float-badge {
        padding: 7px 11px;
        font-size: 11px;
        gap: 6px;
    }

    .float-badge i {
        font-size: 13px;
    }

    .badge-top-right {
        right: 10px;
        top: 10px;
    }

    .badge-bottom-left {
        left: 10px;
        bottom: 10px;
    }

    .float-stat {
        right: 10px;
        bottom: 68px;
        top: auto;
        padding: 8px 12px;
    }

    .float-stat-2 {
        display: none;
    }

    .float-stat-num {
        font-size: 14px;
    }

    .float-stat-label {
        font-size: 9px;
    }

    .scroll-down {
        bottom: 80px;
    }

    .hero-title {
        font-size: 40px;
    }

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

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

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

    .social-links {
        justify-content: center;
    }

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

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

    .timeline::before {
        left: 0;
    }

    .section-title {
        font-size: 32px;
    }

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

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

    .footer-links {
        justify-content: center;
    }

    .other-projects-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .gh-profile-btn {
        width: 100%;
        justify-content: center;
    }

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

    .theme-toggle-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
        bottom: 16px;
        right: 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

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

    .hero-buttons {
        flex-direction: column;
    }

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

    .photo-frame {
        width: 240px;
        height: 300px;
    }
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(99, 102, 241, 0.08);
    border: 1.5px solid rgba(99, 102, 241, 0.3);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.lang-toggle-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--indigo);
    color: var(--text-light);
    transform: translateY(-1px);
}

.lang-icon {
    font-size: 14px;
    line-height: 1;
}

@media (max-width: 768px) {
    .lang-toggle-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
}