:root {
    --white: #fffafd;
    --white-soft: #fff3f8;
    --pink-50: #fff7fb;
    --pink-100: #ffe6f1;
    --pink-200: #ffc8df;
    --pink-300: #ff9fc8;
    --pink-400: #f46fa8;
    --rose: #9c315f;
    --rose-deep: #3d2435;
    --ink: #2e2430;
    --muted: #7f6070;
    --mint: #8fd6c2;
    --gold: #e6b869;
    --line: rgba(174, 72, 120, 0.18);
    --glass: rgba(255, 255, 255, 0.62);
    --shadow: rgba(129, 42, 82, 0.16);
    --shadow-strong: rgba(129, 42, 82, 0.24);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Manrope", sans-serif;
}

html {
    scroll-behavior: smooth;
}

html.aos-fallback [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

body {
    position: relative;
    min-height: 100vh;
    color: var(--ink);
    overflow-x: hidden;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.96), rgba(255, 230, 241, 0.9) 42%, rgba(255, 250, 253, 0.98) 72%),
        linear-gradient(135deg, #fffafd, #ffd7e9 52%, #ffffff);
    background-size: 180% 180%;
    animation: page-gradient 18s ease-in-out infinite;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        repeating-linear-gradient(90deg, rgba(255, 145, 193, 0.06) 0 1px, transparent 1px 82px),
        repeating-linear-gradient(0deg, rgba(255, 145, 193, 0.04) 0 1px, transparent 1px 82px);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 78%);
}

a {
    color: inherit;
}

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

.back-vid {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -3;
    opacity: 0.16;
    filter: brightness(1.25) saturate(0.62) hue-rotate(315deg) contrast(0.86);
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    padding: 18px 24px 0;
}

.nav-shell {
    width: min(1120px, 100%);
    min-height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 10px 12px 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 8px;
    background: rgba(255, 250, 253, 0.76);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 16px 42px rgba(157, 66, 108, 0.12);
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-family: "Cormorant Garamond", serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    color: var(--rose-deep);
}

.nav-logo img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid rgba(244, 111, 168, 0.18);
    background: var(--white);
    box-shadow: 0 10px 24px rgba(244, 111, 168, 0.2);
}

.brand-accent {
    color: var(--pink-400);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-menu a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.28s ease, background 0.28s ease, transform 0.28s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--rose);
    background: rgba(255, 230, 241, 0.78);
}

.nav-menu a:hover {
    transform: translateY(-2px);
}

.menu-icon {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(244, 111, 168, 0.22);
    border-radius: 8px;
    background: linear-gradient(135deg, var(--white), var(--pink-100));
    color: var(--rose);
    font-size: 26px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.menu-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(244, 111, 168, 0.2);
}

main {
    position: relative;
    z-index: 1;
}

.section-wrap {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}

.hero {
    min-height: calc(100svh - 150px);
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.78fr);
    align-items: center;
    gap: 64px;
    padding: 142px 0 56px;
}

.hero-copy {
    max-width: 640px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--rose);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
}

.eyebrow span {
    width: 24px;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--pink-400), var(--gold));
}

.hero h1,
.section-heading h2,
.contact-panel h2 {
    font-family: "Cormorant Garamond", serif;
    color: var(--rose-deep);
}

.hero h1 {
    margin-top: 18px;
    font-size: 78px;
    line-height: 0.95;
    font-weight: 700;
    letter-spacing: 0;
}

.hero h2 {
    margin-top: 18px;
    color: var(--rose);
    font-size: 24px;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: 0;
}

.hero-text {
    max-width: 560px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 18%, rgba(255, 255, 255, 0.44), transparent 42%);
    transform: translateX(-120%);
}

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

.btn:hover::before {
    animation: sheen 0.9s ease;
}

.btn.primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--pink-400), #f58fbd 54%, #f7b5d0);
    box-shadow: 0 18px 36px rgba(244, 111, 168, 0.34);
}

.btn.secondary {
    color: var(--rose);
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(244, 111, 168, 0.24);
    box-shadow: 0 14px 28px rgba(129, 42, 82, 0.1);
}

.social-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
}

.social-row a {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: var(--rose);
    text-decoration: none;
    font-size: 20px;
    border: 1px solid rgba(244, 111, 168, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 12px 28px rgba(129, 42, 82, 0.1);
    transition: transform 0.28s ease, color 0.28s ease, background 0.28s ease;
}

.social-row a:hover {
    transform: translateY(-5px);
    color: var(--white);
    background: var(--pink-400);
}

.hero-visual {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portrait-frame {
    position: relative;
    width: min(410px, 100%);
    aspect-ratio: 4 / 5;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 216, 233, 0.42)),
        linear-gradient(135deg, #ffffff, #ffd2e5);
    box-shadow: 0 26px 70px var(--shadow-strong), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    animation: portrait-float 7s ease-in-out infinite;
}

.portrait-frame::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(156, 49, 95, 0.18);
    border-radius: 6px;
    pointer-events: none;
}

.portrait-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 22%, rgba(255, 255, 255, 0.28), transparent 50%);
    transform: translateX(-120%);
    animation: slow-sheen 7s ease-in-out infinite;
    pointer-events: none;
}

.portrait-frame img {
    width: 92%;
    height: 96%;
    object-fit: cover;
    object-position: center top;
    filter: drop-shadow(0 18px 28px rgba(61, 36, 53, 0.18));
}

.hero-note {
    position: absolute;
    right: 0;
    bottom: 74px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 8px;
    color: var(--rose);
    background: rgba(255, 255, 255, 0.76);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 16px 34px rgba(129, 42, 82, 0.14);
    font-size: 14px;
    font-weight: 800;
    animation: note-float 6s ease-in-out infinite;
}

.hero-note i {
    color: var(--gold);
    font-size: 21px;
}

.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 0 0 92px;
}

.stat-card,
.project-card,
.skills-panel,
.contact-panel,
.focus-list article {
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    background: var(--glass);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 18px 44px var(--shadow);
}

.stat-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 96px;
    padding: 18px;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.stat-card:hover,
.project-card:hover,
.focus-list article:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 54px var(--shadow-strong);
}

.stat-card strong {
    font-family: "Cormorant Garamond", serif;
    color: var(--pink-400);
    font-size: 42px;
    line-height: 1;
}

.stat-card span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
    text-align: right;
    line-height: 1.35;
}

.about,
.projects,
.skills,
.contact {
    padding: 92px 0;
    scroll-margin-top: 110px;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 36px;
}

.section-heading.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-heading.center .eyebrow {
    justify-content: center;
}

.section-heading h2,
.contact-panel h2 {
    margin-top: 14px;
    font-size: 48px;
    line-height: 1.05;
    letter-spacing: 0;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
    gap: 28px;
    align-items: start;
}

.about-copy {
    padding: 6px 0;
}

.about-copy p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.85;
}

.about-copy p + p {
    margin-top: 18px;
}

.focus-list {
    display: grid;
    gap: 14px;
}

.focus-list article {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 18px;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.focus-list i,
.project-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    color: var(--rose);
    background: linear-gradient(135deg, var(--white), var(--pink-100));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.focus-list i {
    font-size: 24px;
}

.focus-list h3,
.project-card h3,
.skill-group h3 {
    color: var(--rose-deep);
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: 0;
}

.focus-list p,
.project-card p,
.contact-panel p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

.focus-list p {
    margin-top: 4px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.project-card {
    position: relative;
    min-height: 310px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
    padding: 22px;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pink-400), var(--gold), var(--mint));
}

.project-card.featured {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 221, 237, 0.76)),
        var(--glass);
    border-color: rgba(244, 111, 168, 0.28);
}

.project-icon {
    margin-bottom: 26px;
    font-size: 25px;
}

.project-tag {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--rose);
    background: rgba(255, 230, 241, 0.72);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.project-card h3 {
    margin-bottom: 10px;
    font-size: 22px;
}

.project-card p:last-child {
    margin-top: auto;
}

.skills-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 22px;
}

.skill-group {
    padding: 12px;
}

.skill-group h3 {
    margin-bottom: 14px;
}

.skill-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-chips span {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 0 14px;
    border: 1px solid rgba(244, 111, 168, 0.18);
    border-radius: 999px;
    color: var(--rose);
    background: rgba(255, 255, 255, 0.62);
    font-size: 13px;
    font-weight: 800;
    transition: transform 0.25s ease, background 0.25s ease;
}

.skill-chips span:hover {
    transform: translateY(-3px);
    background: var(--pink-100);
}

.contact {
    padding-bottom: 110px;
}

.contact-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px;
    padding: 34px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 225, 239, 0.76)),
        var(--glass);
}

.contact-panel p:last-child {
    max-width: 650px;
    margin-top: 14px;
}

@keyframes page-gradient {
    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes portrait-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

@keyframes note-float {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(-8px, -10px, 0);
    }
}

@keyframes slow-sheen {
    0%,
    42% {
        transform: translateX(-120%);
    }

    62%,
    100% {
        transform: translateX(120%);
    }
}

@keyframes sheen {
    from {
        transform: translateX(-120%);
    }

    to {
        transform: translateX(120%);
    }
}

@media (max-width: 980px) {
    .site-header {
        padding: 14px 16px 0;
    }

    .nav-logo {
        font-size: 25px;
    }

    .menu-icon {
        display: inline-flex;
    }

    .nav-menu {
        position: fixed;
        top: 92px;
        right: 16px;
        width: min(300px, calc(100vw - 32px));
        display: grid;
        gap: 8px;
        padding: 12px;
        border: 1px solid rgba(255, 255, 255, 0.74);
        border-radius: 8px;
        background: rgba(255, 250, 253, 0.92);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        box-shadow: 0 18px 46px rgba(129, 42, 82, 0.16);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-menu a {
        justify-content: flex-start;
        min-height: 46px;
        padding: 0 14px;
        font-size: 15px;
    }

    .section-wrap {
        width: min(720px, calc(100% - 36px));
    }

    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 34px;
        padding: 126px 0 48px;
    }

    .hero-copy {
        max-width: 100%;
        text-align: center;
    }

    .hero .eyebrow,
    .hero-actions,
    .social-row {
        justify-content: center;
    }

    .hero h1 {
        font-size: 58px;
    }

    .hero h2 {
        font-size: 21px;
    }

    .hero-text {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-visual {
        min-height: auto;
        order: -1;
    }

    .portrait-frame {
        width: min(360px, 100%);
    }

    .hero-note {
        right: calc(50% - 182px);
        bottom: 34px;
    }

    .stats-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-bottom: 70px;
    }

    .stats-strip [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .about,
    .projects,
    .skills,
    .contact {
        padding: 72px 0;
    }

    .section-heading,
    .section-heading.center {
        max-width: 100%;
        text-align: left;
    }

    .section-heading.center .eyebrow {
        justify-content: flex-start;
    }

    .section-heading h2,
    .contact-panel h2 {
        font-size: 40px;
    }

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

    .project-card {
        min-height: 250px;
    }

    .contact-panel {
        align-items: start;
    }
}

@media (max-width: 560px) {
    .site-header {
        padding: 10px 10px 0;
    }

    .nav-shell {
        min-height: 60px;
        padding: 8px 8px 8px 12px;
    }

    .nav-logo {
        gap: 9px;
        font-size: 21px;
    }

    .nav-logo img {
        width: 38px;
        height: 38px;
    }

    .menu-icon {
        width: 40px;
        height: 40px;
    }

    .nav-menu {
        top: 76px;
        right: 10px;
        width: calc(100vw - 20px);
    }

    .section-wrap {
        width: calc(100% - 28px);
    }

    .hero {
        padding-top: 104px;
        padding-bottom: 38px;
    }

    .hero h1 {
        font-size: 42px;
        line-height: 1;
    }

    .hero h2 {
        font-size: 18px;
    }

    .hero-text,
    .about-copy p {
        font-size: 15px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .portrait-frame {
        width: min(300px, 100%);
    }

    .hero-note {
        right: 0;
        bottom: 22px;
        min-height: 48px;
        font-size: 13px;
    }

    .stats-strip {
        grid-template-columns: 1fr;
        gap: 10px;
        padding-bottom: 50px;
    }

    .stat-card {
        min-height: 82px;
    }

    .section-heading h2,
    .contact-panel h2 {
        font-size: 32px;
    }

    .about,
    .projects,
    .skills,
    .contact {
        padding: 56px 0;
    }

    .focus-list article {
        grid-template-columns: 44px minmax(0, 1fr);
        padding: 14px;
    }

    .focus-list i,
    .project-icon {
        width: 44px;
        height: 44px;
    }

    .project-card,
    .skills-panel,
    .contact-panel {
        padding: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
