/* Divya Bengali */
/* yes, the pastels are staying :) */

:root {
    --cream: #fffaf5;
    --paper: #ffffff;
    --ink: #20233a;
    --muted: #666b80;
    --pink: #f5a5b8;
    --pink-dark: #b84468;
    --lavender: #d8c7ff;
    --lavender-dark: #7d5fc9;
    --blue: #bedcff;
    --blue-dark: #3e74b8;
    --sage: #cfe6c7;
    --sage-dark: #4f7c54;
    --butter: #f8dfaf;
    --shadow: 0 1rem 2.5rem rgba(32, 35, 58, 0.12);
    --soft-shadow: 0 0.8rem 1.8rem rgba(32, 35, 58, 0.08);
    --radius: 1.4rem;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(245, 165, 184, 0.25), transparent 32rem),
        radial-gradient(circle at top right, rgba(190, 220, 255, 0.35), transparent 34rem),
        var(--cream);
    color: var(--ink);
    font-family: "Trebuchet MS", Arial, sans-serif;
    line-height: 1.65;
}

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

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.15;
}

h1,
h2 {
    font-family: Georgia, "Times New Roman", serif;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.9rem);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.45rem);
    margin-bottom: 0.8rem;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

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

ul {
    padding-left: 1.25rem;
}

li {
    margin-bottom: 0.6rem;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 100;
    padding: 0.7rem 1rem;
    border-radius: 0.8rem;
    background: var(--ink);
    color: #ffffff;
    transform: translateY(-180%);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem clamp(1rem, 4vw, 4rem);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 0.0625rem solid rgba(32, 35, 58, 0.08);
    backdrop-filter: blur(1rem);
}

.brand {
    display: inline-flex;
    align-items: center;
    min-width: max-content;
}

.brand strong {
    display: block;
    font-size: 1.05rem;
}

.brand small {
    display: block;
    color: var(--pink-dark);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(0.5rem, 1.6vw, 1.6rem);
    flex-wrap: wrap;
}

.site-nav a {
    padding: 0.5rem 0.3rem;
    color: var(--muted);
    font-weight: 700;
    border-bottom: 0.18rem solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav .active {
    color: var(--pink-dark);
    border-color: var(--pink-dark);
}

:focus-visible {
    outline: 0.2rem solid var(--pink-dark);
    outline-offset: 0.2rem;
}

main {
    width: min(92rem, 92%);
    margin: 0 auto;
}

/* Hero = the big top section. I learned the name once and it stuck haha */
.hero,
.page-hero {
    margin: 2rem 0;
    border: 0.0625rem solid rgba(32, 35, 58, 0.06);
    border-radius: calc(var(--radius) + 0.6rem);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(17rem, 0.88fr);
    gap: 2rem;
    align-items: center;
    min-height: 36rem;
    padding: clamp(2rem, 6vw, 5rem);
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.84) 50%, rgba(255, 255, 255, 0.45) 100%),
        linear-gradient(135deg, #ffeaf0, #eaf3ff 46%, #eef8eb);
}

.hero-text {
    max-width: 49rem;
}

.hero-lede {
    font-size: 1.08rem;
}

/* eyebrow = tiny uppercase label above the section title :) */
.eyebrow {
    color: var(--pink-dark);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-text p,
.page-hero p,
.wide-card p,
.card p,
.project-card p,
.project-copy p,
.contact-card p,
.contact-note p,
.education-card p {
    color: var(--muted);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.8rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    padding: 0.75rem 1.2rem;
    border: 0;
    border-radius: 999rem;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-0.12rem);
}

.primary {
    background: linear-gradient(135deg, var(--pink), var(--pink-dark));
    color: #ffffff;
    box-shadow: 0 0.65rem 1.3rem rgba(184, 68, 104, 0.2);
}

.secondary {
    background: #f0e9ff;
    color: var(--lavender-dark);
    box-shadow: 0 0.65rem 1.3rem rgba(125, 95, 201, 0.14);
}

.hero-panel {
    display: grid;
    gap: 1rem;
}

.hero-panel span {
    display: block;
    padding: 1rem 1.2rem;
    border: 0.0625rem solid rgba(32, 35, 58, 0.08);
    border-radius: 999rem;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 0.8rem 1.8rem rgba(32, 35, 58, 0.09);
    color: var(--ink);
    font-weight: 800;
}

.hero-panel span:nth-child(1) {
    background: rgba(216, 199, 255, 0.68);
    color: var(--lavender-dark);
}

.hero-panel span:nth-child(2) {
    background: rgba(190, 220, 255, 0.72);
    color: var(--blue-dark);
}

.hero-panel span:nth-child(3) {
    background: rgba(207, 230, 199, 0.72);
    color: var(--sage-dark);
}

.hero-panel span:nth-child(4) {
    background: rgba(255, 218, 228, 0.8);
    color: var(--pink-dark);
}

.section-intro {
    width: min(62rem, 100%);
    margin: 3.5rem 0 1.4rem;
}

.section-intro > p:last-child {
    color: var(--muted);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.wide-card,
.callout-card,
.timeline-card,
.project-feature,
.project-card,
.education-card,
.contact-card,
.contact-note {
    border: 0.0625rem solid rgba(32, 35, 58, 0.08);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--soft-shadow);
}

.card,
.project-card,
.education-card,
.contact-card,
.contact-note {
    padding: clamp(1.25rem, 3vw, 2rem);
}

.card {
    min-height: 19rem;
}

.icon-circle {
    display: inline-grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    font-size: 1.4rem;
}

.pink-card {
    background: linear-gradient(145deg, #fff7f9, #ffffff);
}

.lavender-card {
    background: linear-gradient(145deg, #f7f2ff, #ffffff);
}

.blue-card {
    background: linear-gradient(145deg, #f3f8ff, #ffffff);
}

.green-card {
    background: linear-gradient(145deg, #f5fbf2, #ffffff);
}

.text-link {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    color: var(--pink-dark);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 0.08rem;
    text-underline-offset: 0.2rem;
}

.text-link:hover,
.text-link:focus-visible {
    text-decoration-thickness: 0.14rem;
}

.wide-card,
.callout-card {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    gap: 1.5rem;
    align-items: center;
    padding: clamp(1.5rem, 4vw, 2.4rem);
    margin: 1.2rem 0 3rem;
}

.wide-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(238, 248, 235, 0.88));
}

.callout-card {
    grid-template-columns: minmax(0, 1fr) auto;
    background: linear-gradient(135deg, #fff7fa, #f4f0ff 55%, #eef7ff);
}

.callout-card p {
    color: var(--muted);
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-list span {
    padding: 0.6rem 0.85rem;
    border-radius: 999rem;
    background: #ffffff;
    color: var(--sage-dark);
    font-weight: 800;
    box-shadow: 0 0.3rem 0.9rem rgba(32, 35, 58, 0.08);
}

.skill-list.compact {
    margin: 1.35rem 0;
    gap: 0.55rem;
}

.skill-list.compact span {
    padding: 0.45rem 0.7rem;
    font-size: 0.92rem;
}

.page-hero {
    padding: clamp(2.2rem, 5vw, 4.3rem);
}

.education-hero {
    background: linear-gradient(135deg, #fff3f6, #f2ecff);
}

.experience-hero {
    background: linear-gradient(135deg, #eef7ff, #fff5f8);
}

.projects-hero {
    background: linear-gradient(135deg, #f7f2ff, #eef7ff 52%, #f5fbf2);
}

.contact-hero {
    background: linear-gradient(135deg, #f5fbf2, #fff1f6);
}

.detail-subtitle {
    font-weight: 800;
    color: var(--lavender-dark) !important;
}

.timeline {
    display: grid;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.timeline-card {
    display: grid;
    grid-template-columns: 12rem minmax(0, 1fr);
    gap: 1.5rem;
    padding: clamp(1.25rem, 3vw, 2rem);
}

.timeline-date {
    align-self: start;
    padding: 0.7rem 0.9rem;
    border-radius: 999rem;
    background: #edf6ff;
    color: var(--blue-dark);
    font-weight: 800;
    text-align: center;
}

.timeline-content > p:not(.detail-subtitle) {
    color: var(--muted);
}

.clean-list {
    margin-bottom: 0;
}

/* Projects: this is the "look, I actually build things" section */
.project-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(24rem, 0.9fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    padding: clamp(1.5rem, 4vw, 2.8rem);
    margin-bottom: 1.2rem;
    background: linear-gradient(145deg, #fffdf8, #fff7f9 45%, #f4f8ff);
    scroll-margin-top: 7rem;
}

.project-copy {
    align-self: center;
}

.project-lede {
    font-size: 1.05rem;
}

.project-meta {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-bottom: 0.9rem;
}

.project-meta span {
    display: inline-flex;
    padding: 0.35rem 0.65rem;
    border-radius: 999rem;
    background: rgba(255, 255, 255, 0.8);
    border: 0.0625rem solid rgba(32, 35, 58, 0.08);
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.architecture {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 1.5rem 0;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.72);
    border: 0.0625rem solid rgba(32, 35, 58, 0.08);
}

.architecture span {
    padding: 0.45rem 0.65rem;
    border-radius: 0.7rem;
    background: #f5f0ff;
    color: var(--lavender-dark);
    font-weight: 800;
}

.architecture b {
    color: var(--muted);
}

.project-bullets {
    margin-bottom: 0;
}

.project-visual {
    margin: 0;
    align-self: center;
}

.project-visual img {
    width: 100%;
    border-radius: 1.1rem;
    border: 0.0625rem solid rgba(32, 35, 58, 0.12);
    box-shadow: var(--soft-shadow);
}

.project-visual figcaption {
    margin-top: 0.7rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
    margin-bottom: 3rem;
}

.project-card {
    scroll-margin-top: 7rem;
}

.project-card .button {
    margin-top: 0.25rem;
}

.education-stack {
    display: grid;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.education-card {
    background: rgba(255, 255, 255, 0.92);
}

.education-heading {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: flex-start;
}

.education-date {
    min-width: max-content;
    padding: 0.55rem 0.75rem;
    border-radius: 999rem;
    background: #fff1f5;
    color: var(--pink-dark) !important;
    font-weight: 800;
}

.academic-focus {
    background: linear-gradient(135deg, #fff8fa, #f6f0ff 48%, #f4fbf2);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.contact-card {
    background: linear-gradient(145deg, #ffffff, #fbf9ff);
}

.contact-primary {
    background: linear-gradient(145deg, #fff7f9, #ffffff);
}

.contact-card .button {
    max-width: 100%;
    overflow-wrap: anywhere;
    text-align: center;
}

.contact-note {
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #f5fbf2, #eef7ff);
}

.site-footer {
    margin-top: 3rem;
    padding: 2rem 1rem;
    text-align: center;
    color: var(--muted);
    border-top: 0.0625rem solid rgba(32, 35, 58, 0.08);
}

@media (max-width: 72rem) {
    .project-feature {
        grid-template-columns: 1fr;
    }

    .project-visual {
        max-width: 58rem;
    }

    .project-grid,
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 56rem) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero,
    .wide-card,
    .callout-card,
    .timeline-card {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .card-grid,
    .two-column,
    .project-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .timeline-date {
        width: fit-content;
        text-align: left;
    }

    .callout-card .button {
        width: fit-content;
    }

    .education-heading {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 36rem) {
    main {
        width: min(94%, 42rem);
    }

    .brand {
        align-items: flex-start;
    }

    .site-nav {
        justify-content: flex-start;
        gap: 0.35rem 0.9rem;
    }

    .button {
        width: 100%;
    }

    .callout-card .button {
        width: 100%;
    }

    .architecture b {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* About page */
/* About: same project-visual treatment, just portrait-shaped because humans are less wide than robots :) */
.about-visual img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 56%;
}
