  /* ─── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --purple:   #8b5cf6;
    --purple-d: #6d28d9;
    --teal:     #14b8a6;
    --dark:     #0d0d0d;
    --dark2:    #111111;
    --charcoal: #1e2530;
    --charcoal2:#252d38;
    --text:     #e8e8e8;
    --muted:    #9ca3af;
    --white:    #ffffff;
    --nav-h:    68px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark);
    color: var(--text);
    overflow-x: hidden;
}

/* ─── NAVBAR ───────────────────────────────────────────────── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    background: #0a0a0a;
    box-shadow: 0 4px 28px rgba(0,0,0,0.8), 0 1px 0 rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(20px, 5%, 80px);
    z-index: 1000;
}

.nav-logo {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: clamp(0.82rem, 1.2vw, 0.95rem);
    font-weight: 500;
    padding: 9px clamp(10px, 1.4vw, 22px);
    border-radius: 4px;
    transition: color 0.25s;
    white-space: nowrap;
}

.nav-links a:hover { color: var(--white); }

.nav-links .btn-hire {
    border: 1.5px solid var(--white);
    border-radius: 6px;
    color: var(--white);
    font-weight: 600;
    transition: background 0.25s, color 0.25s;
}

.nav-links .btn-hire:hover {
    background: var(--white);
    color: #000;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}
.hamburger span {
    display: block;
    width: 26px; height: 2.5px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ─── HERO ─────────────────────────────────────────────────── */
#home {
    position: relative;
    height: 100vh;
    min-height: 580px;
    background: var(--dark2);
    display: flex;
    align-items: stretch;
    padding-top: var(--nav-h);
    overflow: hidden;
}

/* Animated circles canvas */
#circles-canvas {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Two-column flex — left: content, right: photo with space */
.hero-container {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    align-items: center;       /* vertically centre both columns */
    padding: 0 5%;
    gap: 0;
}

/* ── LEFT COLUMN — 58% width, content top-aligned then centred */
.hero-left {
    flex: 0 0 58%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 4%;
}

/* Massive title matching match.png scale */
.hero-title {
    font-size: clamp(3rem, 6vw, 5.2rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.08;
    letter-spacing: -2px;
    padding-top: 15px;
}

.hero-title .accent { color: var(--purple); }

/* "& Data Scientist" line — indented right (staircase) */
.hero-title .second-line {
    display: block;
    padding-left: clamp(1.4rem, 2.8vw, 2.8rem);
}

.hero-title .amp {
    color: var(--muted);
    font-weight: 300;
    margin-right: 0.35em;
}

.hero-desc {
    margin-top: clamp(20px, 3vh, 36px);
    font-size: clamp(0.95rem, 1.3vw, 1.08rem);
    line-height: 1.78;
    color: #b0b8c4;
    max-width: 540px;
}

.btn-work {
    display: inline-block;
    margin-top: clamp(24px, 3.5vh, 44px);
    padding: 11px 30px;
    border: 1.5px solid var(--white);
    border-radius: 6px;
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.25s, color 0.25s;
    cursor: pointer;
    background: transparent;
    align-self: flex-start;
}

.btn-work:hover {
    background: var(--purple);
    border-color: var(--purple);
    color: var(--white);
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: clamp(16px, 2.2vh, 26px);
    padding-bottom: 20px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border: 1.5px solid rgba(255,255,255,0.22);
    border-radius: 7px;
    color: var(--muted);
    transition: border-color 0.25s, color 0.25s, background 0.25s;
    cursor: pointer;
    background: rgba(255,255,255,0.04);
}

.social-btn:hover {
    border-color: var(--purple);
    color: var(--purple);
    background: rgba(139,92,246,0.12);
}

.social-btn svg { width: 17px; height: 17px; fill: currentColor; }

/* ── RIGHT COLUMN — 42%, photo centred with breathing room */
.hero-right {
    flex: 0 0 42%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;       /* centre photo horizontally in column */
    justify-content: flex-end; /* anchor to bottom */
}

/* Photo: natural proportions, centred, does NOT fill full width */
.hero-photo {
    display: block;
    width: clamp(240px, 30vw, 420px); /* good breathing room on both sides */
    height: calc(100vh - var(--nav-h));
    min-height: 340px;
    max-height: 800px;
    object-fit: cover;
    object-position: top center;
}

/* Banner: sits at the very bottom of hero-right, full-column width */
.hero-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #3b0d8f 0%, #5b21b6 50%, #7c3aed 100%);
    padding: 14px 28px 14px 40px;
    clip-path: polygon(28px 0%, 100% 0%, 100% 100%, 0% 100%);
    z-index: 3;
}

.banner-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 4px 0;
}

.banner-item svg { width: 15px; height: 15px; flex-shrink: 0; }

.banner-check { color: #a7f3d0; }
.banner-dot   { color: #6ee7b7; }

/* ─── SECTION COMMON ───────────────────────────────────────── */
section { width: 100%; }

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

.section-header h2 {
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--white);
}

.section-underline {
    display: block;
    width: 52px;
    height: 4px;
    background: var(--teal);
    border-radius: 2px;
    margin: 10px 0 0 0; /* left-aligned per design */
}

/* ─── CURIOUS ABOUT ME ─────────────────────────────────────── */
#about {
    background: var(--dark2);
    padding: 90px 5%;
}

.curious-inner {
    max-width: 1100px;
    margin: 0 auto;
}

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

.curious-col p {
    font-size: 0.97rem;
    line-height: 1.82;
    color: #c8d0db;
    margin-bottom: 22px;
}

.curious-col p:last-child { margin-bottom: 0; }

/* ─── SKILLS ───────────────────────────────────────────────── */
#skills {
    background: var(--dark);
    padding: 90px 5%;
}

.skills-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 48px 32px;
}

.skill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    cursor: default;
}

.skill-icon {
    width: 72px; height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.skill-card:hover .skill-icon { transform: translateY(-6px) scale(1.08); }

.skill-icon img,
.skill-icon svg {
    width: 64px; height: 64px;
    object-fit: contain;
}

.skill-label {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
    text-align: center;
}

/* Inline SVG skill icons */
.icon-python    { color: #f7d34e; }
.icon-r         { color: #276bbf; }
.icon-sql       { color: #fff; }

/* ─── PROJECTS ─────────────────────────────────────────────── */
#projects {
    background: var(--charcoal2);
    padding: 90px 5%;
}

.projects-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.project-card {
    background: #1a2133;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 28px;
    transition: border-color 0.3s, transform 0.3s;
}

.project-card:hover {
    border-color: var(--purple);
    transform: translateY(-4px);
}

.project-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.tag-data    { background: rgba(139,92,246,0.18); color: var(--purple); }
.tag-web     { background: rgba(20,184,166,0.18);  color: var(--teal); }
.tag-ml      { background: rgba(251,146,60,0.18);  color: #fb923c; }

.project-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.project-card p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.65;
}

.project-footer {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.tech-pill {
    padding: 3px 10px;
    background: rgba(255,255,255,0.06);
    border-radius: 99px;
    font-size: 0.75rem;
    color: var(--muted);
}

/* ─── CONTACT ──────────────────────────────────────────────── */
#contact {
    background: var(--charcoal);
    padding: 90px 5%;
}

.contact-inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-inner p {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 36px;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.4px;
}

.form-group input,
.form-group textarea,
.form-group select {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--white);
    font-size: 0.92rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.25s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--purple);
}

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

.btn-send {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    background: var(--purple);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 13px 36px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s;
    align-self: flex-start;
}

.btn-send:hover { background: var(--purple-d); transform: translateY(-1px); }

.contact-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.25s;
}

.contact-link:hover { color: var(--purple); }
.contact-link svg { width: 18px; height: 18px; fill: currentColor; }

/* ─── FOOTER ───────────────────────────────────────────────── */
footer {
    background: #080808;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 28px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

footer p {
    font-size: 0.82rem;
    color: var(--muted);
}

footer .footer-social {
    display: flex;
    gap: 10px;
}

/* ─── SCROLL-IN ANIMATION ──────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ─── MEDIA QUERIES ────────────────────────────────────────── */

/* Tablet landscape ≤1100px — keep 2-col but tighten */
@media (max-width: 1100px) {
    .hero-left  { flex: 0 0 60%; }
    .hero-right { flex: 0 0 40%; }
    .hero-title { font-size: clamp(2.6rem, 5.5vw, 4.2rem); }
}

/* Tablet portrait ≤768px — stack vertically */
@media (max-width: 768px) {
    #home {
    height: auto;
    min-height: 100svh;
    align-items: flex-start;
    }

    .hero-container {
    flex-direction: column;
    align-items: stretch;
    padding: 48px 5% 0;
    gap: 0;
    }

    .hero-left {
    flex: none;
    width: 100%;
    padding-right: 0;
    }

    .hero-right {
    flex: none;
    width: 100%;
    align-items: center;
    justify-content: flex-end;
    margin-top: 32px;
    }

    .hero-photo {
    width: clamp(220px, 68vw, 380px);
    height: auto;
    min-height: unset;
    max-height: unset;
    }

    /* on tablet/mobile the banner returns to normal flow below photo */
    .hero-banner {
    position: static;
    width: clamp(220px, 68vw, 380px);
    clip-path: polygon(18px 0%, 100% 0%, 100% 100%, 0% 100%);
    }

    .curious-grid    { grid-template-columns: 1fr; gap: 28px; }
    .skills-grid     { grid-template-columns: repeat(4, 1fr); gap: 36px 16px; }
    .projects-grid   { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile ≤600px */
@media (max-width: 600px) {
    :root { --nav-h: 60px; }

    nav { padding: 0 18px; }

    .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: #0a0a0a;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 22px 24px;
    gap: 0;
    transform: translateY(-110%);
    transition: transform 0.35s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    }

    .nav-links.open { transform: translateY(0); }
    .nav-links li   { width: 100%; }

    .nav-links a {
    width: 100%;
    display: block;
    padding: 14px 0;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 1rem;
    }

    .nav-links .btn-hire {
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    border-radius: 0;
    padding: 14px 0;
    font-size: 1rem;
    }

    .hamburger { display: flex; }

    .hero-container { padding: 36px 18px 0; }

    .hero-title { font-size: clamp(2rem, 8vw, 2.8rem); letter-spacing: -1px; }

    .hero-photo  { width: clamp(180px, 78vw, 320px); }
    .hero-banner { width: clamp(180px, 78vw, 320px); }

    .skills-grid   { grid-template-columns: repeat(3, 1fr); gap: 26px 12px; }
    .projects-grid { grid-template-columns: 1fr; }
    .form-row      { grid-template-columns: 1fr; }

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

/* Very small ≤400px */
@media (max-width: 400px) {
    .hero-title  { font-size: 1.8rem; letter-spacing: -0.5px; }
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
}