/* ================================
   01. RESET & BASE
================================ */

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

:root {
    --bg: #f8fafc;
    --dark: #0b1120;
    --text: #0b1120;
    --muted: #475569;
    --soft-muted: #64748b;
    --border: #dbe3ef;
    --line: #e2e8f0;
    --blue: #2563eb;
    --blue-soft: #93c5fd;
    --white: #ffffff;
    --card-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
    --hover-shadow: 0 25px 70px rgba(15, 23, 42, 0.13);
    --radius-lg: 2rem;
    --radius-md: 1.5rem;
    --radius-sm: 1rem;
    --transition: 0.25s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
}

h1,
h2,
h3 {
    font-family: 'Space Grotesk', sans-serif;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ================================
   02. HEADER / NAV
================================ */

.siteHeader {
    width: min(1180px, 90%);
    margin: 2rem auto;
    padding: 0.9rem 1.2rem;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--border);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.06);
    position: sticky;
    top: 1rem;
    z-index: 10;
    backdrop-filter: blur(16px);
    transition: box-shadow var(--transition), transform var(--transition), background var(--transition);
}

.siteHeader.scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.12);
}

.logo img {
    width: 62px;
    transition: transform var(--transition);
}

.logo:hover img {
    transform: rotate(-4deg) scale(1.04);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.6rem;
}

nav a {
    color: #334155;
    font-weight: 700;
    position: relative;
    transition: color var(--transition);
}

nav a::after {
    content: "";
    width: 0;
    height: 2px;
    background: var(--blue);
    position: absolute;
    left: 0;
    bottom: -6px;
    border-radius: 999px;
    transition: width var(--transition);
}

nav a:hover {
    color: var(--blue);
}

nav a:hover::after {
    width: 100%;
}

/* ================================
   03. BUTTONS
================================ */

.btn {
    display: inline-block;
    padding: 0.9rem 1.3rem;
    border-radius: 999px;
    font-weight: 850;
    transition:
        transform var(--transition),
        background var(--transition),
        color var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.btn:hover {
    transform: translateY(-3px);
}

.primaryBtn {
    background: var(--dark);
    color: var(--white);
}

.primaryBtn:hover {
    box-shadow: 0 15px 35px rgba(11, 17, 32, 0.22);
}

.secondaryBtn {
    background: var(--white);
    color: var(--dark);
    border: 1px solid var(--border);
}

.secondaryBtn:hover {
    border-color: var(--blue);
    color: var(--blue);
}

/* ================================
   04. HERO
================================ */

.hero {
    width: min(1180px, 90%);
    margin: 0 auto;
    padding: 5rem 0 4rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--blue);
    font-size: 0.85rem;
    font-weight: 850;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(3.8rem, 8vw, 7.8rem);
    line-height: 0.92;
    letter-spacing: -0.06em;
    max-width: 1100px;
}

.heroBottom {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    align-items: flex-end;
}

.heroBottom p {
    max-width: 620px;
    color: var(--muted);
    line-height: 1.8;
    font-size: 1.05rem;
}

.heroButtons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1rem;
}

/* ================================
   05. FEATURED PROJECT
================================ */

.projectShowcase {
    width: min(1180px, 90%);
    margin: 3rem auto;
    background: var(--dark);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3rem;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.projectShowcase::before {
    content: "";
    width: 280px;
    height: 280px;
    background: rgba(37, 99, 235, 0.2);
    border-radius: 50%;
    filter: blur(70px);
    position: absolute;
    right: -80px;
    top: -80px;
}

.projectShowcase .eyebrow {
    color: var(--blue-soft);
}

.projectInfo {
    position: relative;
    z-index: 2;
}

.projectInfo h2 {
    font-size: clamp(3rem, 6vw, 6rem);
    line-height: 0.9;
    margin-bottom: 1.3rem;
}

.projectInfo p {
    color: #cbd5e1;
    line-height: 1.8;
    max-width: 520px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.5rem;
}

.tags span {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    font-weight: 750;
    font-size: 0.85rem;
    transition: background var(--transition), transform var(--transition);
}

.tags span:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
}

.projectVisual {
    min-height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.browserMockup {
    width: 100%;
    max-width: 650px;
    background: var(--white);
    border-radius: 1.4rem;
    overflow: hidden;
    transform: rotate(-2deg);
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.35);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.browserMockup:hover {
    transform: rotate(0deg) translateY(-8px);
    box-shadow: 0 45px 110px rgba(0, 0, 0, 0.45);
}

.mockupTop {
    height: 42px;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem;
}

.mockupTop span {
    width: 11px;
    height: 11px;
    background: #94a3b8;
    border-radius: 50%;
}

.mockupScreen {
    height: 360px;
    background: linear-gradient(135deg, #111827, #f59e0b);
    overflow: hidden;
}

.mockupScreen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.browserMockup:hover .mockupScreen img {
    transform: scale(1.04);
}

/* ================================
   06. SHARED SECTIONS
================================ */

.workSection,
.experienceSection,
.skillsSection,
.contactCTA {
    width: min(1180px, 90%);
    margin: 6rem auto;
}

.sectionHeader {
    max-width: 760px;
    margin-bottom: 2rem;
}

.sectionHeader h2,
.experienceSection h2,
.contactCTA h2 {
    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
}

/* ================================
   07. WORK GRID
================================ */

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

.workCard {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.05);
}

.workCard:hover {
    transform: translateY(-9px);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: var(--hover-shadow);
}

.workPreview {
    height: 220px;
    border-radius: 1.1rem;
    margin-bottom: 1.2rem;
    overflow: hidden;
    background: #e5e7eb;
    transition: transform var(--transition), filter var(--transition);
}

.workPreview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.workCard:hover .workPreview {
    transform: scale(0.98);
    filter: saturate(1.12);
}


.workCard h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.workCard p {
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 1rem;
}

.workCard span {
    color: var(--blue);
    font-size: 0.85rem;
    font-weight: 850;
}

/* ================================
   08. EXPERIENCE
================================ */

.experienceSection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.experienceList {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
}

.experienceItem {
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--line);
    transition: padding-left var(--transition), border-color var(--transition);
}

.experienceItem:hover {
    padding-left: 0.7rem;
    border-color: rgba(37, 99, 235, 0.35);
}

.experienceItem:last-child {
    border-bottom: none;
}

.experienceItem strong {
    font-size: 1.1rem;
}

.experienceItem p {
    color: var(--soft-muted);
    margin-top: 0.3rem;
}

/* ================================
   09. SKILLS
================================ */

.skillsTrack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skillsTrack span {
    background: var(--dark);
    color: var(--white);
    padding: 1rem 1.3rem;
    border-radius: 999px;
    font-weight: 850;
    transition: transform var(--transition), background var(--transition);
}

.skillsTrack span:hover {
    transform: translateY(-4px);
    background: var(--blue);
}

/* ================================
   10. CONTACT CTA
================================ */

.contactCTA {
    background: var(--dark);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contactCTA::before {
    content: "";
    width: 320px;
    height: 320px;
    background: rgba(37, 99, 235, 0.2);
    border-radius: 50%;
    filter: blur(80px);
    position: absolute;
    left: -120px;
    bottom: -140px;
}

.contactCTA h2,
.contactCTA p,
.contactCTA a {
    position: relative;
    z-index: 2;
}

.contactCTA p {
    color: #cbd5e1;
    line-height: 1.8;
    max-width: 650px;
    margin: 1rem auto 2rem;
}

/* ================================
   11. PROJECTS PAGE
================================ */

.pageHero {
    width: min(1180px, 90%);
    margin: 0 auto;
    padding: 5rem 0 3rem;
}

.pageHero h1 {
    font-size: clamp(3.5rem, 7vw, 7rem);
    line-height: 0.92;
    letter-spacing: -0.06em;
    max-width: 1050px;
    margin-bottom: 1.5rem;
}

.pageHero p {
    color: var(--muted);
    line-height: 1.8;
    max-width: 700px;
    font-size: 1.05rem;
}

.projectsPageGrid {
    width: min(1180px, 90%);
    margin: 2rem auto 6rem;
    display: grid;
    gap: 2rem;
}

.projectDetailCard {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.projectDetailCard:hover {
    transform: translateY(-7px);
    box-shadow: var(--hover-shadow);
    border-color: rgba(37, 99, 235, 0.35);
}

.projectDetailCard img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: 1.4rem;
}

.projectDetailCard h2 {
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 0.95;
    margin-bottom: 1rem;
}

.projectDetailCard p {
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.projectDetailCard span {
    color: var(--blue);
    font-weight: 850;
}

/* ================================
   12. RESUME PAGE
================================ */

.resumeLayout {
    width: min(1180px, 90%);
    margin: 2rem auto 6rem;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 2rem;
    align-items: start;
}

.resumeMain {
    display: grid;
    gap: 2rem;
}

.resumeBlock,
.resumeSideCard {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--card-shadow);
}

.resumeBlock h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 0.95;
    margin-bottom: 1.5rem;
}

.resumeItem {
    padding: 1.4rem 0;
    border-bottom: 1px solid var(--line);
}

.resumeItem:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.resumeItem h3 {
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
}

.resumeItem span {
    display: block;
    color: var(--blue);
    font-weight: 850;
    margin-bottom: 0.7rem;
}

.resumeItem p {
    color: var(--muted);
    line-height: 1.75;
}

.resumeSidebar {
    display: grid;
    gap: 1.5rem;
    position: sticky;
    top: 7rem;
}

.resumeSideCard h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.resumeSideCard ul {
    list-style: none;
    display: grid;
    gap: 0.8rem;
}

.resumeSideCard li {
    color: var(--muted);
    font-weight: 700;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--line);
}

.darkCard {
    background: var(--dark);
    color: var(--white);
}

.darkCard p {
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.darkCard .primaryBtn {
    background: var(--white);
    color: var(--dark);
}

/* ================================
   13. CONTACT PAGE
================================ */

.contactLayout {
    width: min(1180px, 90%);
    margin: 2rem auto 6rem;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 2rem;
    align-items: start;
}

.contactInfo {
    display: grid;
    gap: 1.2rem;
}

.contactCard,
.contactForm {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--card-shadow);
}

.darkContactCard {
    background: var(--dark);
    color: var(--white);
}

.contactCard h2,
.contactForm h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 0.95;
    margin-bottom: 1rem;
}

.contactCard h3 {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
}

.contactCard p {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.darkContactCard p {
    color: #cbd5e1;
}

.contactCard a {
    color: var(--blue);
    font-weight: 850;
}

.contactForm {
    display: grid;
}

.contactForm label {
    font-weight: 850;
    color: var(--dark);
    margin: 1.2rem 0 0.5rem;
}

.contactForm input,
.contactForm textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--dark);
    background: var(--bg);
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.contactForm input:focus,
.contactForm textarea:focus {
    outline: none;
    border-color: var(--blue);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.contactForm textarea {
    min-height: 180px;
    resize: vertical;
}

.contactForm button {
    border: none;
    cursor: pointer;
    margin-top: 1.5rem;
    width: fit-content;
}

/* ================================
   14. SCROLL REVEAL INTERACTION
================================ */

.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   15. RESPONSIVE
================================ */

@media (max-width: 900px) {
    .siteHeader {
        border-radius: 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding-top: 3rem;
    }

    .heroBottom,
    .projectShowcase,
    .experienceSection {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .workGrid,
    .resumeLayout,
    .contactLayout {
        grid-template-columns: 1fr;
    }

    .resumeSidebar {
        position: static;
    }

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

    .projectDetailCard img {
        height: 240px;
    }

    .projectShowcase,
    .contactCTA {
        padding: 2rem;
    }

    .mockupScreen {
        height: 260px;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: clamp(3rem, 15vw, 4.5rem);
    }

    .heroBottom p {
        font-size: 1rem;
    }

    .siteHeader {
        width: min(1180px, 94%);
    }
}