/* =========================================
   PRAVANSHII WORKS — PRAGATI JINDAL
========================================= */

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

:root {
    --cream: #f5ebdd;
    --cream-dark: #eadbc7;
    --pink: #f3b6c6;
    --red: #d95d5d;
    --orange: #f29a5b;
    --yellow: #f1d477;
    --green: #a9c98d;
    --blue: #9bc8dc;
    --purple: #b59ad8;
    --brown: #8b6f61;
    --dark: #27221f;
    --white: #fffaf3;
}

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

html { scroll-behavior: smooth; }

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

img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

section {
    position: relative;
    padding: 80px 7vw 100px;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 50px;
}

.section-label span:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--dark);
    border-radius: 50%;
}


/* =========================================
   HERO
========================================= */

.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 90px 6vw 80px;
    overflow: hidden;
    z-index: 1;
}

.hero-small-text {
    position: absolute;
    top: 38px;
    left: 6vw;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
}

.hero-nav {
    position: absolute;
    top: 34px;
    right: 6vw;
    display: flex;
    gap: 22px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
}

.hero-nav a { padding-bottom: 2px; border-bottom: 1px solid transparent; transition: border-color .2s; }
.hero-nav a:hover { border-color: var(--dark); }

/* Title: PRAVANSHII / WORKS */

.portfolio-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(6px, 1vw, 14px);
    width: 100%;
    font-weight: inherit;
}

.title-row {
    display: flex;
    justify-content: center;
    gap: clamp(3px, .6vw, 9px);
}

.half {
    display: flex;
    gap: clamp(3px, .6vw, 9px);
}

.letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(44px, 7.4vw, 100px);
    height: clamp(56px, 9.4vw, 126px);
    font-family: 'Syne', sans-serif;
    font-size: clamp(24px, 3.7vw, 52px);
    font-weight: 800;
    line-height: 1;
    border-radius: 8px;
    box-shadow: 4px 6px 0 rgba(39, 34, 31, 0.08);
    color: var(--dark);
    transition: transform .3s ease;
}

/* colours + tilt, per word */
.row-a .half:nth-child(1) .letter:nth-child(1) { background: var(--pink);   transform: rotate(-7deg); }
.row-a .half:nth-child(1) .letter:nth-child(2) { background: var(--green);  transform: rotate(4deg); }
.row-a .half:nth-child(1) .letter:nth-child(3) { background: var(--orange); transform: rotate(-3deg); }
.row-a .half:nth-child(1) .letter:nth-child(4) { background: var(--blue);   transform: rotate(6deg); }
.row-a .half:nth-child(1) .letter:nth-child(5) { background: var(--red); color: var(--white); transform: rotate(-5deg); }

.row-a .half:nth-child(2) .letter:nth-child(1) { background: var(--purple); transform: rotate(5deg); }
.row-a .half:nth-child(2) .letter:nth-child(2) { background: var(--yellow); transform: rotate(-6deg); }
.row-a .half:nth-child(2) .letter:nth-child(3) { background: var(--brown); color: var(--white); transform: rotate(4deg); }
.row-a .half:nth-child(2) .letter:nth-child(4) { background: var(--pink);   transform: rotate(-3deg); }
.row-a .half:nth-child(2) .letter:nth-child(5) { background: var(--green);  transform: rotate(6deg); }

.row-b .letter:nth-child(1) { background: var(--orange); transform: rotate(4deg); }
.row-b .letter:nth-child(2) { background: var(--blue);   transform: rotate(-5deg); }
.row-b .letter:nth-child(3) { background: var(--red); color: var(--white); transform: rotate(3deg); }
.row-b .letter:nth-child(4) { background: var(--purple); transform: rotate(-6deg); }
.row-b .letter:nth-child(5) { background: var(--yellow); transform: rotate(5deg); }

.letter:hover { transform: translateY(-10px) rotate(0deg) scale(1.05) !important; }

.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-top: 55px;
}

.hero-name {
    display: flex;
    flex-direction: column;
    font-family: 'Syne', sans-serif;
    font-size: clamp(26px, 3.4vw, 46px);
    font-weight: 800;
    line-height: .88;
    letter-spacing: -2px;
}

.hero-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 10px;
}

.hero-description { max-width: 280px; font-size: 15px; line-height: 1.55; }

.hero-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--brown);
}

.hero-cta {
    margin-top: 4px;
    padding: 11px 22px;
    border: 1.5px solid var(--dark);
    border-radius: 40px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: background .25s, color .25s;
}
.hero-cta:hover { background: var(--dark); color: var(--white); }

.scroll-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 9px;
    letter-spacing: 2px;
    font-weight: 700;
}

.scroll-line {
    width: 1px;
    height: 36px;
    background: var(--dark);
    animation: scrollLine 1.7s infinite;
}

@keyframes scrollLine {
    0%   { transform: scaleY(0); transform-origin: top; }
    50%  { transform: scaleY(1); transform-origin: top; }
    51%  { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

.hero-decoration { position: absolute; border-radius: 50%; z-index: -1; }
.decoration-1 { width: 150px; height: 150px; background: var(--yellow); top: 14%; right: -45px; }
.decoration-2 { width: 95px;  height: 95px;  background: var(--purple); bottom: 14%; left: -35px; }


/* keep labels/headings lined up with the centred content */
.about .section-label,
.works .section-label { max-width: 1000px; margin-left: auto; margin-right: auto; }
.contact .section-label,
.contact-heading { max-width: 900px; margin-left: auto; margin-right: auto; }
.contact-heading { margin-bottom: 55px; }
.contact-note { margin-top: 40px; font-size: 14px; font-weight: 600; line-height: 1.5; }

/* =========================================
   SECTION STACKING (each rises over the last)
========================================= */

.about, .works, .contact {
    margin-top: -32px;
    padding-top: 90px;
    border-radius: 40px 40px 0 0;
}

.about   { background: var(--cream); z-index: 2; overflow: hidden; }
.works   { background: var(--white); z-index: 3; }
.contact { background: var(--purple); z-index: 4; overflow: hidden; padding-bottom: 30px; }

.js .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.22, 1, .36, 1);
}
.js .reveal.visible { opacity: 1; transform: none; }


/* =========================================
   ABOUT
========================================= */

.about-content {
    position: relative;
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    align-items: center;
    gap: 4vw;
    max-width: 1000px;
    margin: auto;
}

.about-photo-wrapper { position: relative; display: flex; justify-content: center; }

.about-photo-shape {
    width: min(340px, 85%);
    aspect-ratio: .82;
    overflow: hidden;
    border-radius: 48% 52% 44% 56% / 55% 43% 57% 45%;
    background: var(--pink);
    transform: rotate(-3deg);
}

.about-photo { width: 100%; height: 100%; object-fit: cover; }

.photo-decoration {
    position: absolute;
    bottom: -18px;
    right: 14%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--orange);
    font-size: 22px;
}

.about-curves {
    position: absolute;
    left: 42%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 340px;
    pointer-events: none;
}

.curve {
    position: absolute;
    width: 170px;
    height: 340px;
    border: 3px solid var(--cream-dark);
    border-left: none;
    border-radius: 0 50% 50% 0;
}
.curve-one   { transform: translateX(-25px); }
.curve-two   { transform: translateX(5px);  border-color: #e2d0b9; }
.curve-three { transform: translateX(35px); border-color: #d9c4aa; }

.about-bubble {
    position: relative;
    width: 100%;
    padding: 56px 58px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    background: var(--cream-dark);
    border-radius: 80px 80px 80px 80px / 90px 90px 90px 90px;
}

.bubble-label { font-size: 10px; font-weight: 700; letter-spacing: 2px; margin-bottom: 12px; }

.about-bubble h2 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1;
    margin-bottom: 4px;
}

.about-bubble p { font-size: 14px; line-height: 1.65; }
.about-bubble .bubble-closing { font-weight: 700; }

.available {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 8px 16px;
    border-radius: 40px;
    background: var(--white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
}
.available i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4caf6a;
    box-shadow: 0 0 0 4px rgba(76, 175, 106, .2);
}

.chips-label {
    margin-top: 56px;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.bubble-star { position: absolute; right: 48px; top: 50px; font-size: 22px; color: var(--red); }

.skill-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.skill-chips li {
    padding: 9px 20px;
    border: 1.5px solid var(--dark);
    border-radius: 40px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}
.skill-chips li:nth-child(1) { background: var(--pink); }
.skill-chips li:nth-child(2) { background: var(--yellow); }
.skill-chips li:nth-child(3) { background: var(--green); }
.skill-chips li:nth-child(4) { background: var(--blue); }
.skill-chips li:nth-child(5) { background: var(--orange); }


/* =========================================
   WORKS
========================================= */

.works-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    max-width: 1000px;
    margin: 0 auto 50px;
}

.works-heading h2 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(44px, 6vw, 84px);
    line-height: .86;
    letter-spacing: -3px;
}
.works-heading h2 span { color: var(--red); }
.works-heading p { width: 230px; font-size: 14px; line-height: 1.6; }

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    max-width: 1000px;
    margin: 0 auto;
}

.work-card { display: flex; flex-direction: column; gap: 14px; cursor: pointer; outline-offset: 6px; }

.work-thumbnail {
    position: relative;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 22px;
    background: var(--cream-dark);
}

.work-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.work-card:hover .work-thumbnail img { transform: scale(1.05); }

.work-thumbnail::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(39,34,31,.25), transparent 45%);
    pointer-events: none;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--white);
    font-size: 16px;
    padding-left: 3px;
    transition: .3s ease;
}
.work-card:hover .play-button { transform: translate(-50%, -50%) scale(1.12); background: var(--pink); }

.work-number {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--white);
    font-size: 11px;
    font-weight: 700;
}

.work-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(39, 34, 31, .2);
}
.work-info h3 { font-family: 'Syne', sans-serif; font-size: 18px; }
.work-info span { font-size: 9px; font-weight: 700; letter-spacing: 1.5px; color: var(--brown); }

/* "Your product next?" card */

.work-cta {
    aspect-ratio: 9 / 16;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 14px;
    padding: 28px;
    border-radius: 22px;
    background: var(--pink);
    transition: transform .3s ease;
}
.work-cta:hover { transform: translateY(-6px) rotate(-1deg); }

.cta-star {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--yellow);
    font-size: 20px;
}
.work-cta h3 { font-family: 'Syne', sans-serif; font-size: 26px; line-height: 1.05; }
.work-cta p { font-size: 13px; line-height: 1.55; }
.cta-button {
    margin-top: 6px;
    padding: 10px 20px;
    border-radius: 40px;
    background: var(--dark);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}


/* =========================================
   VIDEO MODAL (portrait)
========================================= */

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(39, 34, 31, .9);
    opacity: 0;
    visibility: hidden;
    transition: .3s ease;
}
.video-modal.active { opacity: 1; visibility: visible; }

.video-modal-content { position: relative; }

.video-modal video {
    display: block;
    height: min(86vh, 780px);
    max-width: 92vw;
    aspect-ratio: 9 / 16;
    border-radius: 18px;
    background: #000;
    object-fit: contain;
}

.close-video {
    position: absolute;
    right: -12px;
    top: -12px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: var(--pink);
    color: var(--dark);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}


/* =========================================
   CONTACT
========================================= */

.contact-heading { margin-bottom: 55px; }
.contact-heading p { font-size: 17px; line-height: 1.3; }
.contact-heading p span { color: var(--white); }

.contact-heading h2 {
    margin-top: 14px;
    font-family: 'Syne', sans-serif;
    font-size: clamp(44px, 7.2vw, 104px);
    line-height: .86;
    letter-spacing: -4px;
    padding-bottom: 12px;
}

.contact-links { max-width: 900px; margin: auto; }

.contact-link {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 20px 10px;
    border-top: 1px solid rgba(39, 34, 31, .35);
    transition: padding .3s ease;
}
.contact-link:last-child { border-bottom: 1px solid rgba(39, 34, 31, .35); }
.contact-link:hover { padding-left: 24px; }

.contact-icon {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--white);
    font-size: 19px;
    font-weight: 700;
}

.contact-link-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.contact-link-text span { font-size: 9px; letter-spacing: 2px; font-weight: 700; }
.contact-link-text strong { font-family: 'Syne', sans-serif; font-size: 18px; overflow-wrap: anywhere; }

.contact-arrow { margin-left: auto; font-size: 22px; }

.contact-decoration {
    position: absolute;
    right: 8%;
    top: 12%;
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--yellow);
    font-size: 30px;
    transform: rotate(10deg);
}

footer {
    display: flex;
    justify-content: space-between;
    margin-top: 70px;
    padding-top: 22px;
    border-top: 1px solid rgba(39, 34, 31, .3);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .about-content { grid-template-columns: 1fr; gap: 60px; }
    .about-photo-wrapper { width: 70%; margin: auto; }
    .about-curves { display: none; }
    .about-bubble { margin: auto; }

    .works-heading { flex-direction: column; align-items: flex-start; gap: 20px; }
    .works-heading p { width: 100%; }

    .works-grid { grid-template-columns: repeat(2, 1fr); }
    .work-cta { grid-column: 1 / -1; aspect-ratio: auto; padding: 30px; }
}


/* =========================================
   PHONE
========================================= */

@media (max-width: 600px) {

    section { padding: 64px 6vw 80px; }
    .about, .works, .contact { padding-top: 70px; }

    .section-label { margin-bottom: 36px; }

    /* Hero */
    .hero { padding: 80px 5vw 70px; }
    .hero-small-text { display: none; }
    .hero-nav { right: 5vw; top: 28px; gap: 14px; font-size: 11px; }

    .title-row.row-a { flex-direction: column; align-items: center; gap: 6px; }
    .portfolio-title { gap: 6px; }
    .half { gap: 4px; }

    .letter {
        width: 16vw;
        height: 20vw;
        font-size: 8.6vw;
        border-radius: 7px;
    }

    .hero-bottom { flex-direction: column; align-items: flex-start; margin-top: 38px; gap: 22px; }
    .hero-name { font-size: 30px; }
    .hero-side { align-items: flex-start; text-align: left; }
    .hero-description { font-size: 13px; }
    .scroll-indicator { display: none; }

    /* About */
    .about-photo-wrapper { width: 80%; }
    .about-bubble { padding: 34px 26px; border-radius: 36px; gap: 10px; }
    .about-bubble h2 { font-size: 27px; }
    .about-bubble p { font-size: 13.5px; line-height: 1.6; }
    .bubble-star { right: 22px; top: 22px; font-size: 18px; }
    .chips-label { margin-top: 40px; }

    /* Works */
    .works-heading h2 { font-size: 52px; letter-spacing: -3px; }
    .works-grid { gap: 12px; }
    .work-thumbnail { border-radius: 16px; }
    .play-button { width: 46px; height: 46px; font-size: 13px; }
    .work-number { width: 30px; height: 30px; top: 10px; right: 10px; font-size: 10px; }
    .work-info h3 { font-size: 14px; }
    .work-info span { font-size: 8px; letter-spacing: 1px; }
    .work-cta { border-radius: 16px; margin-top: 10px; }
    .work-cta h3 { font-size: 22px; }

    /* Contact */
    .contact-heading { margin-bottom: 40px; }
    .contact-heading h2 { font-size: 48px; letter-spacing: -3px; }
    .contact-decoration { width: 60px; height: 60px; font-size: 18px; top: 9%; }
    .contact-link { gap: 14px; padding: 16px 4px; }
    .contact-icon { width: 44px; height: 44px; font-size: 15px; }
    .contact-link-text strong { font-size: 14px; }
    .contact-link-text span { font-size: 8px; letter-spacing: 1.4px; }
    .contact-arrow { font-size: 18px; }

    footer { flex-direction: column; gap: 8px; margin-top: 50px; }

    .video-modal video { height: min(82vh, 700px); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { transition: none; opacity: 1; transform: none; }
    .scroll-line { animation: none; }
}
