:root {
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-500: #3b82f6;
    --blue-100: #dbeafe;
    --blue-50: #eff6ff;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-100: #f1f5f9;
    --white: #ffffff;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--slate-900);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 2rem;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease;
}

nav.scrolled {
    box-shadow: 0 1px 24px rgba(0,0,0,0.06);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--slate-900);
}

.nav-logo svg {
    width: 36px;
    height: 36px;
}

.nav-logo span {
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 0.25rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--slate-700);
    font-size: 0.9rem;
    font-weight: 450;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-links a:hover {
    color: var(--blue-600);
    background: var(--blue-50);
}

.lang-switch {
    display: flex;
    background: var(--slate-100);
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

.lang-switch button {
    border: none;
    background: transparent;
    padding: 0.4rem 0.65rem;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    color: var(--slate-400);
    font-weight: 500;
    transition: all 0.2s;
}

.lang-switch button.active {
    background: var(--blue-600);
    color: var(--white);
    border-radius: 6px;
}

/* ── HAMBURGER ── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--slate-900);
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 7rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 20%, rgba(37, 99, 235, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 50% 80% at 10% 80%, rgba(37, 99, 235, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, black, transparent);
    pointer-events: none;
}

.hero-content {
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--blue-600);
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.75rem;
    animation: fadeUp 0.6s ease both;
}

.hero-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--blue-600);
    border-radius: 50%;
    animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.035em;
    color: var(--slate-900);
    margin-bottom: 1.5rem;
    animation: fadeUp 0.6s ease 0.1s both;
}

.hero h1 .accent {
    color: var(--blue-600);
}

.hero p {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: var(--slate-700);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    animation: fadeUp 0.6s ease 0.2s both;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeUp 0.6s ease 0.3s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: var(--font-body);
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--blue-600);
    color: var(--white);
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3), 0 4px 12px rgba(37, 99, 235, 0.15);
}

.btn-primary:hover {
    background: var(--blue-700);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35), 0 8px 24px rgba(37, 99, 235, 0.2);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--slate-700);
    border: 1.5px solid var(--slate-300);
}

.btn-secondary:hover {
    border-color: var(--blue-600);
    color: var(--blue-600);
    background: var(--blue-50);
}

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

/* ── ABOUT ── */
.about {
    padding: 6rem 2rem;
    background: var(--slate-900);
    color: var(--white);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 80% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.about-inner {
    max-width: 960px;
    margin: 0 auto;
    position: relative;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--blue-500);
    margin-bottom: 1rem;
}

.about h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.about-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.about-text p {
    color: var(--slate-300);
    font-size: 1rem;
    line-height: 1.8;
}

.tech-strip {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.tech-strip-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--slate-400);
    margin-bottom: 1.25rem;
}

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

.tech-tag {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    padding: 0.4rem 0.85rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    color: var(--slate-300);
    transition: all 0.2s;
}

.tech-tag:hover {
    border-color: var(--blue-500);
    color: var(--blue-500);
    background: rgba(37, 99, 235, 0.08);
}

/* ── CONTACT ── */
.contact {
    padding: 6rem 2rem;
}

.contact-inner {
    max-width: 960px;
    margin: 0 auto;
}

.contact h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.contact-subtitle {
    color: var(--slate-700);
    font-size: 1.05rem;
    margin-bottom: 3rem;
    max-width: 480px;
}

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

.contact-card {
    padding: 2rem;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.06);
    background: var(--slate-100);
    transition: all 0.25s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.contact-card:hover {
    border-color: var(--blue-600);
    background: var(--blue-50);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
}

.contact-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--blue-600);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.contact-card-icon svg {
    width: 20px;
    height: 20px;
    color: var(--white);
}

.contact-card-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-400);
    margin-bottom: 0.5rem;
}

.contact-card-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--slate-900);
    line-height: 1.5;
}

/* ── FOOTER ── */
footer {
    padding: 2rem;
    text-align: center;
    font-size: 0.82rem;
    color: var(--slate-400);
    border-top: 1px solid rgba(0,0,0,0.06);
}

footer a {
    color: var(--blue-600);
    text-decoration: none;
}

/* ── MOBILE ── */
@media (max-width: 768px) {
    nav {
        padding: 0 1.25rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(255,255,255,0.97);
        backdrop-filter: blur(20px);
        padding: 1rem;
        border-bottom: 1px solid rgba(0,0,0,0.06);
        box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 0.75rem 1rem;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding: 6rem 1.5rem 3rem;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

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

    .hero-cta .btn {
        justify-content: center;
    }

    .about {
        padding: 4rem 1.5rem;
    }

    .about-text {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .contact {
        padding: 4rem 1.5rem;
    }

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

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.85rem;
    }

    .nav-logo span {
        font-size: 0.92rem;
    }
}