@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    --background: #15131b;
    --background-soft: #1b1823;
    --surface: #211d2b;
    --surface-hover: #292333;
    --border: rgba(214, 190, 255, 0.12);
    --border-strong: rgba(181, 140, 255, 0.28);
    --text: #f3effa;
    --text-soft: #b7afc2;
    --text-muted: #80778d;
    --purple: #b58cff;
    --purple-bright: #c9adff;
    --max-width: 1120px;
    --radius: 22px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 15%, rgba(139, 88, 205, 0.08), transparent 28%),
        radial-gradient(circle at 88% 55%, rgba(111, 76, 174, 0.07), transparent 30%),
        var(--background);
    font-family: "DM Sans", sans-serif;
    line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(calc(100% - 40px), var(--max-width)); margin-inline: auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(214, 190, 255, 0.07);
    background: rgba(21, 19, 27, 0.82);
    backdrop-filter: blur(18px);
}
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { font: 700 1.45rem/1 "Space Grotesk", sans-serif; letter-spacing: -0.04em; }
.brand span { color: var(--purple); }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--text-soft); font-size: 0.92rem; transition: color 180ms ease; }
.nav-links a:hover { color: var(--text); }
.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--text); }

.hero {
    min-height: 720px;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
    align-items: center;
    gap: 80px;
}
.eyebrow {
    margin-bottom: 14px;
    color: var(--purple);
    font: 700 0.76rem/1.3 "Space Grotesk", sans-serif;
    letter-spacing: 0.16em;
}
.hero h1, .section-heading h2, .contact-card h2 {
    font-family: "Space Grotesk", sans-serif;
    line-height: 1.05;
    letter-spacing: -0.055em;
}
.hero h1 { max-width: 850px; font-size: clamp(4rem, 9vw, 7.4rem); }
.hero h1 span { color: var(--purple); }
.hero-description { max-width: 650px; margin-top: 28px; color: var(--text-soft); font-size: 1.14rem; }
.hero-actions { display: flex; gap: 14px; margin-top: 36px; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border: 1px solid var(--border);
    border-radius: 14px;
    font-weight: 600;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { border-color: transparent; background: var(--purple); color: #18131f; }
.button.primary:hover { background: var(--purple-bright); }
.button.secondary { background: rgba(255,255,255,0.02); }
.button.secondary:hover { background: var(--surface); border-color: var(--border-strong); }

.hero-card, .info-card, .project-card, .contact-card {
    border: 1px solid var(--border);
    background: linear-gradient(145deg, rgba(40, 35, 52, 0.84), rgba(28, 24, 36, 0.96));
    box-shadow: var(--shadow);
}
.hero-card { padding: 28px; border-radius: var(--radius); }
.status { display: flex; align-items: center; gap: 10px; color: var(--text-soft); font-size: 0.9rem; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #9de28c; box-shadow: 0 0 18px rgba(157,226,140,0.35); }
.hero-card-line { height: 1px; margin: 24px 0; background: var(--border); }
.quick-fact { padding: 15px 0; }
.quick-fact + .quick-fact { border-top: 1px solid var(--border); }
.quick-fact span { display: block; margin-bottom: 4px; color: var(--text-muted); font-size: 0.82rem; }
.quick-fact strong { font-size: 0.98rem; }

.section { padding-block: 110px; }
.section-heading { margin-bottom: 52px; }
.section-heading h2 { font-size: clamp(2.2rem, 5vw, 4.1rem); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr); gap: 70px; align-items: start; }
.about-text { max-width: 720px; color: var(--text-soft); font-size: 1.06rem; }
.about-text p + p { margin-top: 22px; }
.info-card { border-radius: 18px; padding: 10px 25px; }
.info-row { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; }
.info-row + .info-row { border-top: 1px solid var(--border); }
.info-row span { color: var(--text-muted); }
.info-row strong { text-align: right; }

.timeline { position: relative; margin-left: 8px; padding-left: 36px; border-left: 1px solid rgba(181,140,255,0.25); }
.timeline-item { position: relative; padding-bottom: 50px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
    position: absolute;
    top: 3px;
    left: -43px;
    width: 13px;
    height: 13px;
    border: 3px solid var(--background);
    border-radius: 50%;
    background: var(--purple);
    box-shadow: 0 0 0 1px rgba(181,140,255,0.25);
}
.timeline-header { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.timeline-content h3, .project-card h3, .skill-group h3 { font-family: "Space Grotesk", sans-serif; }
.timeline-content h3 { font-size: 1.35rem; }
.company { color: var(--purple-bright); font-size: 0.94rem; }
.date { flex-shrink: 0; color: var(--text-muted); font-size: 0.9rem; }
.timeline-content > p { max-width: 760px; color: var(--text-soft); }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid rgba(181,140,255,0.16);
    border-radius: 999px;
    background: rgba(181,140,255,0.06);
    color: #d7c7f2;
    font-size: 0.78rem;
}

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.project-card {
    min-height: 390px;
    display: flex;
    flex-direction: column;
    padding: 28px;
    border-radius: var(--radius);
    transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}
.project-card:hover { transform: translateY(-5px); border-color: var(--border-strong); background: linear-gradient(145deg, rgba(47,40,61,0.96), rgba(31,27,40,1)); }
.project-card.featured { grid-row: span 2; min-height: 798px; }
.project-number { margin-bottom: auto; color: var(--text-muted); font: 500 0.82rem/1 "Space Grotesk", sans-serif; }
.project-main { margin-top: 28px; }
.project-type { margin-bottom: 8px; color: var(--purple); font-size: 0.73rem; font-weight: 700; letter-spacing: 0.14em; }
.project-card h3 { font-size: 2rem; letter-spacing: -0.04em; }
.project-card p:not(.project-type) { max-width: 620px; margin-top: 12px; color: var(--text-soft); }
.project-link { width: fit-content; margin-top: 26px; font-weight: 600; }
.project-link span { display: inline-block; margin-left: 5px; color: var(--purple); transition: transform 180ms ease; }
.project-link:hover span { transform: translate(3px, -3px); }

.skills-layout { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.skill-group { min-height: 270px; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(33,29,43,0.5); }
.skill-group h3 { margin-bottom: 24px; font-size: 1.15rem; }
.skill-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-cloud span { padding: 10px 13px; border: 1px solid rgba(181,140,255,0.13); border-radius: 12px; background: rgba(181,140,255,0.04); color: var(--text-soft); font-size: 0.88rem; }

.contact-section { padding-top: 60px; }
.contact-card { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; padding: clamp(30px, 6vw, 60px); border-radius: 28px; }
.contact-card h2 { max-width: 680px; font-size: clamp(2.3rem, 5vw, 4.1rem); }
.contact-card > div:first-child > p:last-child { max-width: 600px; margin-top: 22px; color: var(--text-soft); }
.contact-links { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; }
.contact-links a { color: var(--text-soft); transition: color 180ms ease; }
.contact-links a:hover { color: var(--purple-bright); }
.footer { display: flex; justify-content: space-between; gap: 20px; padding-block: 40px 55px; color: var(--text-muted); font-size: 0.82rem; }

@media (max-width: 900px) {
    .hero, .about-grid, .contact-card { grid-template-columns: 1fr; }
    .hero { min-height: auto; padding-block: 110px 70px; gap: 50px; }
    .project-grid { grid-template-columns: 1fr; }
    .project-card, .project-card.featured { grid-row: auto; min-height: 390px; }
    .skills-layout { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .container { width: min(calc(100% - 28px), var(--max-width)); }
    .nav-toggle { display: block; }
    .nav-links {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 8px 14px 14px;
        border-bottom: 1px solid var(--border);
        background: rgba(21,19,27,0.98);
        backdrop-filter: blur(18px);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 13px 4px; }
    .hero h1 { font-size: clamp(3.2rem, 17vw, 5.3rem); }
    .hero-description { font-size: 1rem; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .button { width: 100%; }
    .section { padding-block: 80px; }
    .timeline-header { flex-direction: column; gap: 3px; }
    .info-row { flex-direction: column; gap: 5px; }
    .info-row strong { text-align: left; }
    .contact-links { justify-content: flex-start; }
    .footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
