/* =============================================================
   HERO SECTION — Dr. Vipin Mathur Portfolio
   Fully Responsive: 360px → 1440px+
   UPDATED: + Wavy Pinterest-style SVG background + Arrow-down CTA
   ============================================================= */

/* ── Section wrapper ─────────────────────────────────────────── */
.hero-section {
    position: relative;
    min-height: 90vh;
    background-color: var(--color-bg);
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

/* ── Dark block ──────────────────────────────────────────────── */
.hero-dark-block {
    position: absolute;
    inset: 0;
    left: 18%;
    background-color: var(--color-bg-alt);
    border-radius: 120px 0 0 120px;
    z-index: 0;
    overflow: hidden;
    margin-top: 5px;
    margin-bottom: 0;
}

.hero-dark-block::before,
.hero-dark-block::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--color-fg-alt-subtle);
    pointer-events: none;
}

.hero-dark-block::before {
    width: 700px;
    height: 700px;
    bottom: -260px;
    right: -200px;
}

.hero-dark-block::after {
    width: 420px;
    height: 420px;
    top: -140px;
    right: -80px;
}

/* ═══════════════════════════════════════════════════════════════
   ── WAVY PINTEREST-STYLE DECORATIVE SVG LINES ────────────────
   Anchored to bottom-right of the hero section, just like the
   reference image from The Restoration Project site.
   ═══════════════════════════════════════════════════════════════ */
.hero-waves {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 42%;          /* covers the right-bottom corner */
    height: 80%;
    pointer-events: none;
    z-index: 1;          /* above dark-block, below content */
    overflow: visible;
}

.hero-waves svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Each wave path — strokes use CSS var so they adapt to theme */
.hero-wave-path {
    fill: none;
    stroke: var(--color-fg-alt-subtle, rgba(255,255,255,0.10));
    stroke-width: 1.5;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

/* Draw-in animation using pathLength="1" trick */
@keyframes waveDraw {
    from { stroke-dashoffset: 1; }
    to   { stroke-dashoffset: 0; }
}

.hero-wave-path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: waveDraw 2.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero-wave-path:nth-child(1) { animation-delay: 0.2s; }
.hero-wave-path:nth-child(2) { animation-delay: 0.50s; }
.hero-wave-path:nth-child(3) { animation-delay: 0.80s; }
.hero-wave-path:nth-child(4) { animation-delay: 1.10s; }
.hero-wave-path:nth-child(5) { animation-delay: 1.35s; }

/* ── Inner layout ────────────────────────────────────────────── */
.hero-inner {
    position: relative;
    z-index: 2;          /* above waves */
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 80px 0 0;
    display: grid;
    grid-template-columns: 480px 1fr;
    min-height: 90vh;
    align-items: center;
    gap: 0;
}

/* ── LEFT — portrait ─────────────────────────────────────────── */
.hero-image-col {
    position: relative;
    height: 100%;
    display: flex;
    margin-top: 25%;
    align-items: flex-start;
    padding-left: 80px;
    animation: heroFadeUp 0.9s ease both 0.1s;
}

.hero-image-wrap {
    position: relative;
    width: 400px;
    height: 550px;
    flex-shrink: 0;
}

.hero-portrait {
    width: 100%;
    height: 100%;
    border-radius: 200px 200px 0 0;
    overflow: hidden;
    background: var(--color-bg-alt);
}

.hero-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.7s ease;
}

.hero-portrait:hover img {
    transform: scale(1.04);
}

.hero-portrait-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-accent-dark) 100%);
}

.hero-portrait-placeholder svg {
    width: 56px;
    height: 56px;
    fill: var(--color-fg-alt-muted);
}

.hero-portrait-placeholder span {
    font-family: var(--font-sans);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-fg-alt-muted);
}

/* ── Badge ───────────────────────────────────────────────────── */
.hero-badge {
    position: absolute;
    bottom: 28px;
    right: -52px;
    background: var(--color-accent);
    color: var(--color-white);
    border-radius: var(--radius-pill);
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 32px var(--color-accent-light);
    white-space: nowrap;
    z-index: 2;
    animation: heroFadeUp 0.9s ease both 0.55s;
    max-width: calc(100% + 52px);
    box-sizing: border-box;
}

.hero-badge__icon {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-fg-alt);
    flex-shrink: 0;
}

.hero-badge__text {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── RIGHT — text content ────────────────────────────────────── */
.hero-content-col {
    padding: 0 0 0 80px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 90vh;
}

/* heading */
.hero-heading {
    font-family: var(--font-serif);
    font-size: clamp(40px, 4.8vw, 66px);
    font-weight: 100;
    line-height: 1.04;
    color: var(--color-accent-dark);
    margin-bottom: 14px;
    letter-spacing: -0.02em;
    animation: heroFadeUp 0.8s ease both 0.3s;
}

.hero-heading__accent::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1.5px;
    background: linear-gradient(90deg, var(--color-accent-dark), transparent);
    border-radius: 2px;
}

/* roles */
.hero-roles {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-accent-secondary);
    margin-bottom: 32px;
    animation: heroFadeUp 0.8s ease both 0.38s;
}

/* divider */
.hero-divider {
    width: 60px;
    height: 1px;
    background: var(--color-accent);
    margin-bottom: 28px;
    animation: heroFadeUp 0.8s ease both 0.42s;
}

/* tagline */
.hero-tagline {
    font-family: var(--font-serif);
    font-size: clamp(18px, 1.5vw, 21px);
    font-style: italic;
    font-weight: 450;
    color: var(--color-fg);
    line-height: 1.65;
    margin-bottom: 24px;
    padding-left: 20px;
    border-left: 2px solid var(--color-fg);
    animation: heroFadeUp 0.8s ease both 0.46s;
}

/* description */
.hero-description {
    font-family: var(--font-sans);
    font-size: clamp(15px, 1.3vw, 19px);
    font-weight: 400;
    line-height: 1.55;
    color: var(--color-fg);
    margin-bottom: 25px;
    max-width: 700px;
    animation: heroFadeUp 0.8s ease both 0.52s;
    padding: 0 0 0 40px;
}

/* CTA buttons */
.hero-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 26px;
    animation: heroFadeUp 0.8s ease both 0.60s;
    justify-content: center;
    width: 100%;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all var(--transition);
    border: 1.5px solid transparent;
    cursor: pointer;
}

.hero-btn--primary {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

.hero-btn--primary:hover {
    background: var(--color-accent-secondary);
    border-color: var(--color-accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 12px 36px var(--color-accent-light);
}

.hero-btn__arrow {
    font-size: 15px;
    transition: transform 0.25s ease;
}

.hero-btn--primary:hover .hero-btn__arrow {
    transform: translateX(4px);
}

.hero-btn--outline {
    background: transparent;
    color: var(--color-fg-alt);
    border-color: var(--color-fg-alt-subtle);
}

.hero-btn--outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent-secondary);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════
   ── "THIS WAY" ARROW DOWN CTA ─────────────────────────────────
   Matches the reference image style: small label + hand-drawn
   arrow image from /images/arrow-down.png
   ═══════════════════════════════════════════════════════════════ */
.hero-arrow-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: 8px;
    margin-left: 4px;
    animation: heroFadeUp 0.8s ease both 0.68s;
}

.hero-arrow-cta__label {
    font-family: var(--font-sans);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-accent, rgba(255,255,255,0.45));
}

.hero-arrow-cta__link {
    display: block;
    line-height: 0;
    transition: transform 0.25s ease;
}

.hero-arrow-cta__link:hover {
    transform: translateY(4px);
}

/* The arrow-down image from your /images/ folder */
.hero-arrow-cta__img {
    width: 52px;
    height: auto;
    display: block;
    /* Gentle bob to draw the eye */
    animation: arrowBob 2.4s ease-in-out infinite 1.6s;

}



@keyframes arrowBob {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(6px); }
}

/* ── scroll cue ──────────────────────────────────────────────── */
.hero-scroll {
    display: flex;
    align-items: center;
    gap: 12px;
    animation: heroFadeUp 0.8s ease both 0.72s;
}

.hero-scroll__label {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-fg-alt-muted);
}

.hero-scroll__line {
    width: 48px;
    height: 1px;
    background: var(--color-fg-alt-subtle);
    position: relative;
    overflow: hidden;
}

.hero-scroll__line::after {
    content: '';
    position: absolute;
    inset: 0;
    left: -100%;
    width: 100%;
    background: var(--color-accent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ── Keyframes ───────────────────────────────────────────────── */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
    0%   { left: -100%; }
    50%  { left: 0%; }
    100% { left: 100%; }
}

/* =============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================= */

/* ── 1280px ───────────────────────────────────────────────────── */
@media (max-width: 1280px) {
    .hero-inner {
        grid-template-columns: 420px 1fr;
        padding-right: 60px;
        max-width: 100%;
    }

    .hero-image-col  { padding-left: 60px; }
    .hero-image-wrap { width: 360px; height: 500px; }
    .hero-content-col { padding-left: 60px; }
    .hero-dark-block { left: 20%; }

    .hero-waves { width: 44%; }
}

/* ── 1100px ───────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .hero-inner {
        grid-template-columns: 340px 1fr;
        padding-right: 48px;
    }

    .hero-image-col  { padding-left: 48px; }
    .hero-image-wrap { width: 300px; height: 440px; }
    .hero-content-col { padding-left: 48px; }

    .hero-dark-block {
        left: 22%;
        border-radius: 80px 0 0 80px;
    }

    .hero-badge {
        right: -16px;
        padding: 9px 16px;
        gap: 7px;
        max-width: calc(100% + 16px);
    }

    .hero-badge__text { font-size: 10px; }

    .hero-waves { width: 48%; }
}

/* ── 960px: stack to single column ───────────────────────────── */
@media (max-width: 960px) {
    .hero-section { min-height: auto; }

    .hero-dark-block {
        left: 0;
        border-radius: 0;
        margin-top: 0;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        padding: 80px 40px 60px;
        min-height: auto;
        text-align: center;
        gap: 40px;
    }

    .hero-image-col {
        justify-content: center;
        align-items: flex-start;
        padding-left: 0;
        height: auto;
        margin-top: 0;
        order: 1;
    }

    .hero-image-wrap {
        width: 260px;
        height: 360px;
        margin: 0 auto;
    }

    .hero-badge {
        position: absolute;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        bottom: -22px;
        white-space: nowrap;
        max-width: 90vw;
        padding: 9px 18px;
        gap: 8px;
    }

    .hero-badge__text { font-size: 10px; }

    .hero-content-col {
        padding-left: 0;
        align-items: center;
        min-height: auto;
        padding-bottom: 20px;
        order: 2;
    }

    .hero-tagline,
    .hero-description {
        text-align: left;
        max-width: 520px;
    }

    .hero-cta-group,
    .hero-scroll { justify-content: center; }

    .hero-divider {
        margin-left: auto;
        margin-right: auto;
    }

    /* Waves: wider on tablet, lower opacity */
    .hero-waves {
        width: 70%;
        height: 60%;
        opacity: 0.5;
    }

    /* Arrow CTA: centre on mobile */
    .hero-arrow-cta {
        align-items: center;
        margin-left: 0;
    }
}

/* ── 640px ───────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .hero-inner {
        padding: 70px 24px 48px;
        gap: 32px;
    }

    .hero-image-wrap {
        width: 220px;
        height: 310px;
    }

    .hero-portrait {
        border-radius: 140px 140px 0 0;
    }

    .hero-badge {
        padding: 8px 14px;
        gap: 6px;
        max-width: 88vw;
    }

    .hero-badge__text {
        font-size: 9px;
        letter-spacing: 0.04em;
    }

    .hero-badge__icon {
        width: 6px;
        height: 6px;
    }

    .hero-heading    { font-size: clamp(32px, 8vw, 48px); }
    .hero-roles      { font-size: 11px; letter-spacing: 0.12em; }
    .hero-tagline    { font-size: 17px; }
    .hero-description{ font-size: 15px; line-height: 1.75; }

    .hero-btn {
        padding: 13px 26px;
        font-size: 12px;
    }

    .hero-arrow-cta__img { width: 44px; }
    .hero-arrow-cta__label { font-size: 8px; }

    .hero-waves {
        width: 90%;
        opacity: 0.35;
    }
}

/* ── 480px ───────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .hero-inner {
        padding: 60px 20px 40px;
        gap: 28px;
    }

    .hero-image-wrap {
        width: 220px;
        height: 270px;
    }

    .hero-portrait {
        border-radius: 110px 110px 0 0;
    }

    .hero-badge {
        padding: 7px 12px;
        gap: 5px;
        max-width: 85vw;
        bottom: -20px;
    }

    .hero-badge__text {
        font-size: 8.5px;
        letter-spacing: 0.035em;
    }

    .hero-badge__icon {
        width: 5px;
        height: 5px;
    }

    .hero-heading    { font-size: clamp(28px, 9vw, 40px); margin-bottom: 10px; }
    .hero-roles      { font-size: 10px; letter-spacing: 0.10em; margin-bottom: 24px; }
    .hero-divider    { margin-bottom: 20px; }
    .hero-tagline    { font-size: 16px; margin-bottom: 18px; padding-left: 14px; }
    .hero-description{ font-size: 14px; line-height: 1.70; margin-bottom: 20px; }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        gap: 12px;
        margin-bottom: 20px;
    }

    .hero-btn {
        justify-content: center;
        width: 100%;
        padding: 13px 20px;
    }

    .hero-arrow-cta__img { width: 38px; }
}

/* ── 360px ───────────────────────────────────────────────────── */
@media (max-width: 360px) {
    .hero-inner {
        padding: 56px 16px 36px;
    }

    .hero-image-wrap {
        width: 195px;
        height: 240px;
    }

    .hero-portrait {
        border-radius: 95px 95px 0 0;
    }

    .hero-badge {
        white-space: normal;
        text-align: center;
        justify-content: center;
        padding: 6px 10px;
        max-width: 80vw;
        bottom: -24px;
    }

    .hero-badge__text {
        font-size: 8px;
        letter-spacing: 0.02em;
    }

    .hero-heading    { font-size: 26px; }
    .hero-description{ font-size: 13px; }
}

/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .hero-image-col,
    .hero-heading,
    .hero-roles,
    .hero-divider,
    .hero-tagline,
    .hero-description,
    .hero-cta-group,
    .hero-scroll,
    .hero-badge,
    .hero-wave-path,
    .hero-arrow-cta,
    .hero-arrow-cta__img {
        animation: none;
        opacity: 1;
        transform: none;
        stroke-dashoffset: 0;
    }

    .hero-scroll__line::after { animation: none; }
    .hero-portrait:hover img  { transform: none; }
}