/* ============================================
   Design System — Figma: Pamela Flores Portfolio
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #FAFAF9;
    color: #111827;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* Container */
.container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 45px;
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: rgba(250, 250, 249, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(17, 24, 39, 0.06);
}

.navbar-inner {
    max-width: 1350px;
    margin: 0 auto;
    padding: 16px 45px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    display: flex;
    align-items: center;
}

.navbar-logo-img {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: #6B7280;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #111827;
}

.nav-links a.navbar-cta {
    padding: 8px 18px;
    font-size: 14px;
    color: #FFFFFF;
    margin-left: 16px;
}

.nav-links a.navbar-cta:hover {
    color: #111827;
}

.nav-links a.navbar-cta:focus-visible {
    outline: 2px solid #111827;
    outline-offset: 3px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #111827;
    padding: 4px;
}

/* ============================================
   Hero
   ============================================ */
.hero {
    padding-top: 100px;
    padding-bottom: 120px;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 45px;
}

/* Visual composition: avatar over marquee */
.hero-visual {
    position: relative;
    width: 100%;
    height: 460px;
}

.hero-avatar {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    pointer-events: none;
}

.hero-avatar img {
    width: 440px;
    max-width: none;
    height: auto;
    filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.12));
}

/* Infinite marquee */
.hero-marquee {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: marqueeScroll 40s linear infinite;
    will-change: transform;
}

.marquee-item {
    flex-shrink: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    background: #fff;
    filter: blur(3px);
}

.marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* Mobile screens (portrait ~9:16) */
.marquee-item.marquee-mobile {
    width: 160px;
    height: 310px;
}

/* Standard desktop screens (~4:3) */
.marquee-item.marquee-desktop {
    width: 360px;
    height: 260px;
}

/* Wide desktop screens (~16:10) */
.marquee-item.marquee-desktop-wide {
    width: 400px;
    height: 260px;
}

@keyframes marqueeScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation-play-state: paused;
    }
}

/* Hero text */
.hero-text {
    text-align: center;
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 32px 32px 0;
}

.hero-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(250, 250, 249, 0.85), #FAFAF9 40%);
    box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.05);
    z-index: -1;
    -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
    mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.hero-text h1 {
    font-size: 50px;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.025em;
    color: #111827;
    margin-bottom: 24px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.hero-text h1 .accent {
    color: #F97316;
    font-style: italic;
    font-weight: 700;
}

.hero-text p {
    font-size: 17px;
    color: #4B5563;
    line-height: 1.75;
    letter-spacing: 0.005em;
    max-width: 620px;
    margin: 0 auto;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 36px;
}

.hero-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    cursor: pointer;
}

.hero-btn-primary {
    background-color: #111827;
    color: #FFFFFF;
    border: 2px solid #111827;
}

.hero-btn-secondary {
    background-color: transparent;
    color: #111827;
    border: 2px solid #111827;
}

/* ============================================
   Sections
   ============================================ */
.section {
    padding: 80px 0;
}

.section-light {
    background-color: #FAFAF9;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 17px;
    color: #4B5563;
    max-width: 640px;
    line-height: 1.7;
    margin-bottom: 32px;
}

.section-light .section-title,
.section-light .section-subtitle {
    text-align: center;
}

/* ============================================
   My Work — Sticky Stacking Cards
   ============================================ */
#my-work {
    background-color: #F5F4F0;
    position: relative;
}

/* #my-work needs position context for the watermark */

/* Layer 1: Watermark — absolute, scroll-driven entry + parallax via JS */
.work-watermark {
    position: absolute;
    top: 37.5svh;
    left: 50%;
    transform: translate(-50%, calc(-50% + var(--parallax-offset, 0px)));
    font-size: clamp(120px, 18vw, 250px);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: rgba(17, 24, 39, 0.04);
    pointer-events: none;
    z-index: 0;
    will-change: transform, opacity;
    line-height: 0.85;
    text-align: center;
    opacity: 0;
}

/* Layer 2: Heading — sticky, stays fixed */
.work-heading {
    position: sticky;
    top: 0;
    z-index: 0;
    min-height: 75svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
    padding: 0 45px;
    background: transparent;
}

.work-heading h2 {
    font-size: 48px;
    font-weight: 800;
    color: #111827;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.work-heading.is-visible h2 {
    opacity: 1;
    transform: translateY(0);
}

.work-scroll-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #9CA3AF;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    transition-delay: 0.2s;
}

.work-heading.is-visible .work-scroll-hint {
    opacity: 1;
    transform: translateY(0);
}

.work-scroll-hint::after {
    content: '↓';
    font-size: 16px;
    display: inline-block;
    animation: hintBounce 2s ease-in-out infinite;
}

@keyframes hintBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* Stack container */
.work-stack {
    padding-bottom: 40px;
}

.work-card:nth-child(1) { z-index: 1; }
.work-card:nth-child(2) { z-index: 2; }
.work-card:nth-child(3) { z-index: 3; }

/* Individual card */
.work-card {
    display: block;
    position: sticky;
    top: 0;
    min-height: 100svh;
    padding: 24px 45px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.4s ease, filter 0.4s ease, transform 0.4s ease;
    will-change: transform;
}


.work-card-inner {
    display: flex;
    background: #FFFFFF;
    border-radius: 24px;
    overflow: hidden;
    min-height: calc(100svh - 48px);
    box-shadow: 0 8px 40px rgba(17, 24, 39, 0.08);
    border: 1px solid rgba(17, 24, 39, 0.06);
}

/* Visual zone — left 60% */
.work-card-visual {
    flex: 0 0 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 48px;
    overflow: hidden;
}

.work-card-visual img {
    position: relative;
    z-index: 1;
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
}



/* Geometric dot pattern overlay */
.work-card-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(17, 24, 39, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    z-index: 0;
}

/* Project-specific gradients */
.work-visual-esports {
    background: linear-gradient(135deg, #0D9488 0%, #34D399 50%, #A7F3D0 100%);
}

.work-visual-laskie {
    background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 50%, #93C5FD 100%);
}

.work-visual-abinbev {
    background: linear-gradient(135deg, #D97706 0%, #F59E0B 50%, #FDE68A 100%);
}

/* Content zone — right 40% */
.work-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 48px;
    gap: 0;
}

.work-client {
    font-size: 12px;
    font-weight: 600;
    font-style: normal;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    display: block;
}

.work-card-body h3 {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
    color: #111827;
    letter-spacing: -0.015em;
    margin-bottom: 20px;
}

.work-metric {
    font-size: 18px;
    font-weight: 600;
    color: #F97316;
    line-height: 1.5;
    margin-bottom: 16px;
    padding: 0;
    background: none;
    border: none;
}

.work-desc {
    font-size: 16px;
    color: #4B5563;
    line-height: 1.7;
    margin-bottom: 32px;
}

.work-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    align-self: flex-start;
    transition: none;
}

/* ============================================
   Services — Column Grid
   ============================================ */

.services-title {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1.2px;
    color: #111827;
    text-align: center;
    margin-bottom: 16px;
}

.services-subtitle {
    font-family: 'DM Serif Display', serif;
    font-style: italic;
    font-size: 18px;
    color: #4B5563;
    text-align: center;
    margin-bottom: 80px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.services-col {
    padding: 0 48px;
    text-align: center;
}

.services-col:first-child {
    padding-left: 0;
}

.services-col:last-child {
    padding-right: 0;
}

.services-col--center {
    border-left: 1px solid #E5E7EB;
    border-right: 1px solid #E5E7EB;
}

.services-pain {
    font-family: 'DM Serif Display', serif;
    font-style: italic;
    font-size: 26px;
    line-height: 1.4;
    margin-bottom: 24px;
}

.services-icon {
    width: 84px;
    height: 84px;
    object-fit: contain;
    margin-bottom: 24px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.services-pain { color: #F97316; }

.services-solution {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #111827;
    line-height: 1.7;
}

.services-cta {
    text-align: center;
    margin-top: 80px;
}

.services-cta .hero-btn {
    padding: 14px 48px;
}

/* ── Services scroll-in animation ── */
#what-i-offer .services-title,
#what-i-offer .services-subtitle {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

#what-i-offer .services-col {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

#what-i-offer .services-col:nth-child(1) { transition-delay: 0.2s; }
#what-i-offer .services-col:nth-child(2) { transition-delay: 0.3s; }
#what-i-offer .services-col:nth-child(3) { transition-delay: 0.4s; }

#what-i-offer .services-cta {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    transition-delay: 0.55s;
}

#what-i-offer.is-visible .services-title,
#what-i-offer.is-visible .services-subtitle,
#what-i-offer.is-visible .services-col,
#what-i-offer.is-visible .services-cta {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   About Me
   ============================================ */
#about-me {
    background-color: #F5F4F0;
    padding: 120px 0 0;
    overflow-x: hidden;
}

.about-content {
    display: flex;
    flex-direction: row-reverse;
    gap: 60px;
    align-items: center;
}

.about-text {
    flex: 1;
}

@media (min-width: 769px) {
    .about-text {
        text-align: left;
    }

    .about-text p {
        text-align: left;
    }
}

#about-me .section-title {
    font-size: 88px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #111827;
    margin-bottom: 48px;
}

.about-text p {
    font-size: 15px;
    font-weight: 400;
    color: rgb(75, 85, 99);
    line-height: 27px;
    margin-bottom: 20px;
}

.about-text p:last-of-type {
    margin-bottom: 40px;
}

.about-image {
    flex: 0 0 auto;
    width: 400px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-avatar {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    max-width: 100%;
}

.about-image img {
    max-width: 100%;
}

/* ============================================
   Contact + Footer (fused)
   ============================================ */
.contact-wrapper {
    background-color: #F5F4F0;
}

.footer {
    background-color: #F97316;
    color: #FAFAF9;
    padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 6vw, 80px);
    border-top-left-radius: 50vw clamp(80px, 20vw, 280px);
    border-top-right-radius: 50vw clamp(80px, 20vw, 280px);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 45px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Zone 1 — Invitation */
.contact-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 800;
    color: #FAFAF9;
    line-height: 1.05;
    margin: 0 auto;
    max-width: 920px;
    text-align: center;
}

.contact-title .accent {
    color: #111827;
    font-style: italic;
    font-weight: 700;
}

.contact-great {
    display: inline-block;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 250ms ease-out 200ms, transform 250ms ease-out 200ms;
}

.contact-great.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-warm {
    margin: 24px auto 0;
    max-width: 640px;
    font-size: clamp(16px, 1.6vw, 20px);
    font-style: italic;
    font-weight: 400;
    color: #FAFAF9;
    opacity: 0.9;
    text-align: center;
}

.contact-buttons {
    margin: 40px auto 0;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-arrow {
    display: inline-block;
    margin-left: 6px;
    transition: transform 200ms ease;
}

.contact-primary:hover .contact-arrow {
    transform: translateX(4px);
}

/* Zone 2 — Divider */
.footer-divider {
    margin: clamp(80px, 10vw, 140px) auto 48px;
    width: 200px;
    max-width: 40%;
    height: 1px;
    border: 0;
    background-color: rgba(255, 255, 255, 0.25);
}

/* Zone 3 — Recent work */
.footer-recent {
    margin: 0;
    font-size: 15px;
    color: #FAFAF9;
    letter-spacing: 0.01em;
}

.footer-recent-label {
    opacity: 0.85;
    margin-right: 6px;
}

.footer-recent a {
    color: #FAFAF9;
    text-decoration: none;
    transition: opacity 150ms ease, text-decoration-color 150ms ease;
    font-weight: 500;
}

.footer-recent a:hover {
    opacity: 0.8;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-recent a:focus-visible {
    outline: 2px solid #FAFAF9;
    outline-offset: 3px;
    border-radius: 2px;
}

.footer-sep {
    opacity: 0.55;
    margin: 0 4px;
}

/* Zone 4 — Meta */
.footer-bottom {
    margin-top: 48px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 24px;
    opacity: 0.85;
}

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

.footer-social a {
    font-size: 13px;
    color: #FAFAF9;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 150ms ease;
}

.footer-social a:hover {
    opacity: 0.75;
}

.footer-social a:focus-visible {
    outline: 2px solid #FAFAF9;
    outline-offset: 3px;
    border-radius: 2px;
}

.footer-meta-text {
    margin: 0;
    font-size: 13px;
    color: #FAFAF9;
    letter-spacing: 0.02em;
}

.footer-copy {
    margin: 0;
    font-size: 13px;
    color: #FAFAF9;
    letter-spacing: 0.02em;
}

@media (prefers-reduced-motion: reduce) {
    .contact-great {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .contact-arrow,
    .contact-primary:hover .contact-arrow {
        transition: none;
        transform: none;
    }
}

/* ============================================
   Responsive — Tablet
   ============================================ */
@media (max-width: 1024px) {
    .container {
        padding: 0 32px;
    }

    .navbar-inner {
        padding: 16px 32px;
    }

    .hero-text h1 {
        font-size: 42px;
    }

    .hero-avatar img {
        width: 380px;
    }

    .marquee-item.marquee-mobile {
        width: 130px;
        height: 260px;
    }

    .marquee-item.marquee-desktop {
        width: 300px;
        height: 220px;
    }

    .marquee-item.marquee-desktop-wide {
        width: 340px;
        height: 220px;
    }

    .hero-visual {
        height: 380px;
    }

    .work-heading {
        padding: 0 32px;
    }

    .work-heading h2 {
        font-size: 40px;
    }

    .work-card {
        padding: 20px 32px;
    }

    .work-card-visual {
        flex: 0 0 50%;
        padding: 32px;
    }

    .work-card-body {
        padding: 40px 32px;
    }

    .work-card-body h3 {
        font-size: 24px;
    }

    .work-metric {
        font-size: 16px;
    }

    .work-desc {
        font-size: 15px;
    }

    .services-col {
        padding: 0 32px;
    }

    .services-pain {
        font-size: 23px;
    }

    .about-content {
        gap: 40px;
    }

    .about-image {
        width: 280px;
    }

    #about-me .section-title {
        font-size: 72px;
    }
}

/* ============================================
   Responsive — Mobile
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .navbar-inner {
        padding: 14px 20px;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    /* Hero */
    .hero {
        padding-top: 70px;
        padding-bottom: 80px;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-text {
        padding: 20px 0 0;
    }

    .hero-avatar img {
        width: 80vw;
        max-width: 380px;
    }

    .marquee-item.marquee-mobile {
        width: 110px;
        height: 220px;
    }

    .marquee-item.marquee-desktop {
        width: 240px;
        height: 170px;
    }

    .marquee-item.marquee-desktop-wide {
        width: 280px;
        height: 170px;
    }

    .marquee-track {
        gap: 14px;
    }

    .hero-text h1 {
        font-size: 32px;
        letter-spacing: -0.02em;
    }

    .hero-text p {
        max-width: 100%;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-top: 28px;
    }

    .hero-btn {
        text-align: center;
        width: 100%;
        padding: 16px 32px;
    }

    /* Sections */
    .section {
        padding: 56px 0;
    }

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

    /* Work Cards */
    .work-heading {
        padding: 0 20px;
        min-height: 80svh;
    }

    .work-heading h2 {
        font-size: 32px;
    }

    .work-watermark {
        top: 40svh;
        font-size: clamp(100px, 28vw, 160px);
        color: rgba(17, 24, 39, 0.045);
    }

    .work-card {
        padding: 8px 0;
        min-height: auto;
    }

    .work-card-inner {
        flex-direction: column;
        min-height: auto;
    }

    .work-card-visual {
        flex: none;
        height: 40vh;
        min-height: 240px;
        padding: 24px 20px;
    }

    .work-card-body {
        padding: 28px 24px 32px;
    }

    .work-card-body h3 {
        font-size: 24px;
    }

    .work-metric {
        font-size: 16px;
    }

    .work-desc {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .work-cta {
        font-size: 14px;
        align-self: flex-start;
    }

    /* Services */
    .services-title {
        font-size: 36px;
        letter-spacing: -0.8px;
    }

    .services-subtitle {
        font-size: 16px;
        margin-bottom: 48px;
    }

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

    .services-col {
        padding: 0;
        padding-bottom: 40px;
        border-bottom: 1px solid #E5E7EB;
    }

    .services-col:first-child {
        padding-left: 0;
    }

    .services-col:last-child {
        padding-right: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .services-col--center {
        border-left: none;
        border-right: none;
        padding-top: 40px;
    }

    .services-col:last-child {
        padding-top: 40px;
    }

    .services-cta {
        margin-top: 48px;
    }

    #what-i-offer .services-icon {
        width: 128px;
        height: 128px;
        margin-bottom: 31px;
    }

    /* About */
    #about-me {
        padding: 80px 0 0;
    }

    #about-me .container {
        padding: 0 24px;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-image {
        width: 300px;
        order: -1;
    }

    #about-me .section-title {
        font-size: 64px;
        font-weight: 800;
        letter-spacing: -2px;
        line-height: 0.95;
        margin-bottom: 32px;
    }

    .about-text p {
        text-align: left;
    }

}

@media (max-width: 640px) {
    .contact-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
    }

    .contact-buttons .hero-btn {
        width: 100%;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    #about-me .section-title {
        font-size: clamp(56px, 15vw, 72px);
        letter-spacing: -1.8px;
        line-height: 0.95;
        white-space: normal;
    }

    #what-i-offer .services-icon {
        width: 112px;
        height: 112px;
    }
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 200;
    background-color: #111827;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-link {
    font-size: 28px;
    font-weight: 600;
    color: #FFFFFF;
    transition: opacity 0.2s;
}

.mobile-menu-link:hover {
    opacity: 0.7;
}

/* ============================================
   Wave transition (about-me -> contact)
   SVG lives inside <section class="wave-transition">.
   .wave-transition overlaps the tail of #about-me via margin-top
   so the arc becomes visible while Beyond the Work is still on screen.
   ============================================ */

.wave-transition {
  position: relative;
  height: 250vh;
  margin-top: -70vh;
  background: linear-gradient(
    to bottom,
    rgb(245, 244, 240) 0%,
    rgb(245, 244, 240) 40%,
    #F97316 40%,
    #F97316 100%
  );
}

.wave-transition__sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}

.wave-transition__svg {
  width: 100%;
  height: 100%;
  display: block;
}

.wave-transition__path {
  will-change: d;
}

#about-me {
  position: relative;
  z-index: 2;
}

/* Clip the trailing orange tail of .wave-transition so <main> ends at the
   footer's bottom. overflow:clip preserves the inner position:sticky
   (unlike overflow:hidden which would break the wave animation). */
main {
  overflow: clip;
}

@media (max-width: 768px) {
  .wave-transition { height: 260vh; }
}

@media (prefers-reduced-motion: reduce) {
  .wave-transition { height: auto; margin-top: 0; }
  .wave-transition__sticky { position: static; height: auto; }
}

/* Pull the footer over the tail of .wave-transition so the solid orange
   end-state isn't a long dead stretch. The wave animation finishes before
   the footer arrives; -80vh keeps the overlap enough to hide ~80vh of the
   trailing orange rectangle without cutting the animation short. */
#contact.footer {
  position: relative;
  z-index: 4;
  /* -125vh scales with viewport (matches the 250vh wave height).
     -80px compensates the fixed padding-top: 80px so the visual overlap
     stays consistent across viewport sizes. */
  margin-top: calc(-125vh - 80px);
}

@media (max-width: 768px) {
  /* Mobile buttons stack vertically → footer is taller, padding is smaller
     via clamp(). Different balance: -130vh - 60px. */
  #contact.footer { margin-top: calc(-130vh - 60px); }
}

@media (prefers-reduced-motion: reduce) {
  #contact.footer { margin-top: 0; }
}

/* Footer reveal — staggered fade + slide up when #contact enters viewport.
   Longhand transition properties so per-item transition-delay on
   :nth-child() reliably overrides (shorthand delays have higher precedence). */
#contact .footer-inner > .footer-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition-property: opacity, transform;
  transition-duration: 600ms;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0ms;
}

#contact.is-revealed .footer-inner > .footer-reveal {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger: 90ms between elements, in visual order */
#contact.is-revealed .footer-inner > .footer-reveal:nth-child(1) { transition-delay: 0ms; }
#contact.is-revealed .footer-inner > .footer-reveal:nth-child(2) { transition-delay: 90ms; }
#contact.is-revealed .footer-inner > .footer-reveal:nth-child(3) { transition-delay: 180ms; }
#contact.is-revealed .footer-inner > .footer-reveal:nth-child(4) { transition-delay: 270ms; }
#contact.is-revealed .footer-inner > .footer-reveal:nth-child(5) { transition-delay: 360ms; }
#contact.is-revealed .footer-inner > .footer-reveal:nth-child(6) { transition-delay: 450ms; }

@media (prefers-reduced-motion: reduce) {
  #contact .footer-inner > .footer-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================
   Contact+Footer: override pastel hovers with inverted mirror system
   Only affects buttons inside #contact.footer — hero/about/services unchanged
   ============================================ */
#contact.footer .contact-primary {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

#contact.footer .contact-primary:hover {
  background-color: #FAFAF9;
  color: #111827;
  border-color: #FAFAF9;
}

/* Single-CTA mode: presence via extra breathing room, not bigger size.
   The button inherits .hero-btn base (padding 14px 32px, font 16px, height 58px)
   to stay consistent with every other CTA in the system. */
#contact.footer .contact-buttons {
  margin-top: 56px;
}

@media (max-width: 768px) {
  #contact.footer .contact-buttons {
    margin-top: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #contact.footer .contact-primary {
    transition: none;
  }
}

