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

body {
    background-color: #0B0E13;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Inter', Arial, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    background: black;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

#container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    padding: 20px;
    width: 100%;
    max-width: 720px;
}

.avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 2px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    animation: avatarPulse 3s ease-in-out infinite;
    box-shadow: 0 0 40px rgba(103, 150, 230, 0.15);
}

@keyframes avatarPulse {
    0%, 100% { box-shadow: 0 0 40px rgba(103, 150, 230, 0.15); }
    50% { box-shadow: 0 0 60px rgba(103, 150, 230, 0.30); }
}

.avatar svg {
    width: 52px;
    height: 52px;
    opacity: 0.9;
}

.avatar svg .geom {
    fill: none;
    stroke: #6796E6;
    stroke-width: 1.5;
}

.avatar svg .geom-fill {
    fill: rgba(103, 150, 230, 0.12);
    stroke: #6796E6;
    stroke-width: 1.5;
}

.avatar svg .dot {
    fill: #6796E6;
    animation: dotFloat 2s ease-in-out infinite;
}

.avatar svg .dot:nth-child(6) { animation-delay: 0s; }
.avatar svg .dot:nth-child(7) { animation-delay: 0.4s; }
.avatar svg .dot:nth-child(8) { animation-delay: 0.8s; }

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

h1 {
    color: #fff;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 28px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 0%, #6796E6 50%, #a78bfa 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShine 6s ease-in-out infinite;
}

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

.card {
    background: rgba(11, 14, 19, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px 32px;
    width: 100%;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    border-color: rgba(103, 150, 230, 0.25);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(103, 150, 230, 0.08) inset;
}

pre {
    background: rgba(0, 0, 0, 0.3);
    color: #e2e8f0;
    padding: 0;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 14px;
    line-height: 1.75;
    border-radius: 8px;
    white-space: pre-wrap;
    overflow-x: auto;
    margin: 0;
}

.key {
    color: #82aaff;
}

.string {
    color: #6AC070;
}

.number {
    color: #D19A66;
}

.boolean {
    color: #6796E6;
}

.null {
    color: #e06c75;
}

pre a {
    color: #6796E6;
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
    font-weight: 500;
}

pre a:hover {
    color: #a78bfa;
    text-decoration: underline;
    text-underline-offset: 3px;
}

pre a::after {
    content: ' ↗';
    font-size: 11px;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

pre a:hover::after {
    opacity: 1;
}

.social-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 4px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.25s ease;
}

.social-link:hover {
    color: #fff;
    background: rgba(103, 150, 230, 0.12);
    border-color: rgba(103, 150, 230, 0.3);
    box-shadow: 0 0 20px rgba(103, 150, 230, 0.1);
}

.social-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

footer {
    color: rgba(255, 255, 255, 0.25);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    text-align: center;
    z-index: 1;
    padding-bottom: 24px;
}

footer a {
    color: rgba(103, 150, 230, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #6796E6;
}

/* ========== NEW SECTIONS ========== */

.section-title {
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.about-text {
    color: #94a3b8;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.7;
}

/* Tech badges */
.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    display: inline-block;
    background: rgba(103, 150, 230, 0.1);
    color: #6796E6;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(103, 150, 230, 0.2);
    transition: all 0.2s ease;
    cursor: default;
}

.badge:hover {
    background: rgba(103, 150, 230, 0.2);
    border-color: rgba(103, 150, 230, 0.4);
    transform: translateY(-2px);
}

/* Project cards */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-card {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.25s ease;
}

.project-card:hover {
    border-color: rgba(103, 150, 230, 0.2);
    background: rgba(0, 0, 0, 0.35);
}

.project-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.project-name {
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.project-desc {
    color: #94a3b8;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    color: #64748b;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.project-link {
    color: #6796E6;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.project-link:hover {
    color: #a78bfa;
}

/* Scroll reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays */
.scroll-reveal:nth-child(2) { transition-delay: 0.05s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.10s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.15s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.20s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.25s; }
.scroll-reveal:nth-child(7) { transition-delay: 0.30s; }

/* ========== RESPONSIVE ========== */

@media screen and (max-width: 600px) {
    h1 {
        font-size: 22px;
    }

    pre {
        font-size: 12px;
    }

    .card {
        padding: 20px 16px;
        border-radius: 12px;
    }

    #container {
        gap: 20px;
        padding: 16px;
    }

    .avatar {
        width: 68px;
        height: 68px;
    }

    .avatar svg {
        width: 40px;
        height: 40px;
    }

    .social-link {
        font-size: 12px;
        padding: 6px 10px;
        gap: 6px;
    }

    .social-link svg {
        width: 16px;
        height: 16px;
    }

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

    .about-text {
        font-size: 14px;
    }

    .badge {
        font-size: 11px;
        padding: 4px 10px;
    }

    .project-card {
        padding: 16px;
    }
}

/* ========== REDUCED MOTION ========== */

@media (prefers-reduced-motion: reduce) {
    .avatar {
        animation: none;
    }

    h1 {
        animation: none;
    }

    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .avatar svg .dot {
        animation: none;
        opacity: 1;
    }
}
