/* =========================================================
   A'laa Hany — Portfolio
   Design system: dark wine glass + rose/champagne accents
   ========================================================= */

/* ---------- TOKENS ---------- */
:root {
    /* surfaces */
    --bg: #0e0508;
    --bg-2: #16070c;
    --surface: rgba(255, 255, 255, 0.045);
    --surface-2: rgba(255, 255, 255, 0.07);
    --line: rgba(255, 255, 255, 0.10);
    --line-strong: rgba(255, 209, 220, 0.22);

    /* text */
    --text: #f7eef1;
    --muted: rgba(247, 238, 241, 0.68);
    --faint: rgba(247, 238, 241, 0.45);

    /* brand */
    --rose: #ff4d6d;
    --rose-soft: #ffb3c1;
    --wine: #800020;
    --gold: #e8c39e;

    --grad-brand: linear-gradient(120deg, #ff4d6d 0%, #ff8fa3 45%, #e8c39e 100%);
    --grad-line: linear-gradient(90deg, transparent, var(--rose), transparent);

    /* shape */
    --r-sm: 12px;
    --r-md: 18px;
    --r-lg: 26px;
    --r-xl: 34px;

    /* motion */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --fast: 0.25s var(--ease);
    --med: 0.45s var(--ease);
    --slow: 0.9s var(--ease);

    --nav-h: 76px;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    --shadow-rose: 0 24px 60px rgba(255, 77, 109, 0.18);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

ul,
ol {
    list-style: none;
}

button,
input,
textarea {
    font: inherit;
    color: inherit;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', system-ui, sans-serif;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
}

::selection {
    background: var(--rose);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--rose-soft);
    outline-offset: 3px;
    border-radius: 6px;
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 16px;
    z-index: 3000;
    background: var(--rose);
    color: #fff;
    padding: 10px 18px;
    border-radius: 0 0 10px 10px;
    transition: top var(--fast);
}

.skip-link:focus {
    top: 0;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: clamp(20px, 5vw, 40px);
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--rose), var(--wine));
    border-radius: 10px;
    border: 2px solid var(--bg);
}

/* =========================================================
   AMBIENT BACKGROUND
   ========================================================= */
.ambient {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background:
        radial-gradient(1100px 700px at 12% -5%, rgba(128, 0, 32, 0.55), transparent 60%),
        radial-gradient(900px 600px at 95% 8%, rgba(255, 77, 109, 0.16), transparent 60%),
        linear-gradient(180deg, var(--bg-2), var(--bg) 45%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
    will-change: transform;
}

.orb-1 {
    width: 46vw;
    height: 46vw;
    top: -12vw;
    left: -10vw;
    background: radial-gradient(circle, rgba(255, 77, 109, 0.55), transparent 70%);
    animation: drift1 22s ease-in-out infinite alternate;
}

.orb-2 {
    width: 38vw;
    height: 38vw;
    top: 45%;
    right: -12vw;
    background: radial-gradient(circle, rgba(232, 195, 158, 0.30), transparent 70%);
    animation: drift2 28s ease-in-out infinite alternate;
}

.orb-3 {
    width: 34vw;
    height: 34vw;
    bottom: -10vw;
    left: 25%;
    background: radial-gradient(circle, rgba(128, 0, 32, 0.65), transparent 70%);
    animation: drift3 25s ease-in-out infinite alternate;
}

@keyframes drift1 {
    to {
        transform: translate3d(8vw, 6vh, 0) scale(1.15);
    }
}

@keyframes drift2 {
    to {
        transform: translate3d(-9vw, -7vh, 0) scale(1.2);
    }
}

@keyframes drift3 {
    to {
        transform: translate3d(6vw, -5vh, 0) scale(1.1);
    }
}

.grain {
    position: absolute;
    inset: -50%;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grainShift 8s steps(6) infinite;
    pointer-events: none;
}

@keyframes grainShift {
    0% { transform: translate(0, 0); }
    20% { transform: translate(-3%, 2%); }
    40% { transform: translate(2%, -3%); }
    60% { transform: translate(-2%, -2%); }
    80% { transform: translate(3%, 1%); }
    100% { transform: translate(0, 0); }
}

/* cursor glow (desktop only, enabled by JS) */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 420px;
    height: 420px;
    margin: -210px 0 0 -210px;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    background: radial-gradient(circle, rgba(255, 77, 109, 0.16), transparent 65%);
    transition: opacity 0.4s ease;
}

.cursor-glow.on {
    opacity: 1;
}

/* =========================================================
   SCROLL PROGRESS
   ========================================================= */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 1200;
    background: transparent;
}

.scroll-progress span {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--grad-brand);
    box-shadow: 0 0 14px rgba(255, 77, 109, 0.7);
}

/* =========================================================
   NAVBAR
   ========================================================= */
.nav-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
    transition: background var(--med), backdrop-filter var(--med), border-color var(--med), box-shadow var(--med);
    border-bottom: 1px solid transparent;
}

.nav-wrap.scrolled {
    background: rgba(14, 5, 8, 0.72);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    border-bottom-color: var(--line);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.nav {
    max-width: 1180px;
    margin-inline: auto;
    padding: 0 clamp(20px, 5vw, 40px);
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: transform var(--fast);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--grad-brand);
    color: #2a0710;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: -0.06em;
    box-shadow: 0 8px 22px rgba(255, 77, 109, 0.35);
}

.logo-text {
    font-size: 1.02rem;
}

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

.nav-link {
    position: relative;
    display: block;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
    transition: color var(--fast), background var(--fast);
}

.nav-link:hover {
    color: var(--text);
    background: var(--surface);
}

.nav-link.is-active {
    color: var(--text);
    background: var(--surface-2);
}

.nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    transform: translateX(-50%);
    background: var(--grad-brand);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* hamburger */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    cursor: pointer;
    padding: 12px 11px;
    flex-direction: column;
    justify-content: space-between;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    border-radius: 2px;
    background: var(--text);
    transition: transform var(--fast), opacity var(--fast);
    transform-origin: center;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
    --btn-py: 14px;
    --btn-px: 28px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: var(--btn-py) var(--btn-px);
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    transition: transform var(--fast), box-shadow var(--fast), background var(--fast), color var(--fast), border-color var(--fast);
}

.btn i {
    transition: transform var(--fast);
}

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

.btn:active {
    transform: translateY(-1px);
}

.btn-sm {
    --btn-py: 9px;
    --btn-px: 18px;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--grad-brand);
    color: #2a0710;
    box-shadow: 0 14px 34px rgba(255, 77, 109, 0.28);
}

.btn-primary:hover {
    box-shadow: 0 20px 44px rgba(255, 77, 109, 0.42);
}

.btn-primary:hover i {
    transform: translateX(4px);
}

/* sheen sweep */
.btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.55) 50%, transparent 80%);
    transform: translateX(-120%);
}

.btn-primary:hover::after {
    animation: sheen 0.85s var(--ease);
}

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

.btn-outline {
    background: var(--surface);
    border-color: var(--line-strong);
    color: var(--text);
}

.btn-outline:hover {
    background: var(--surface-2);
    border-color: var(--rose);
    color: var(--rose-soft);
}

.btn-ghost {
    background: var(--surface);
    border-color: var(--line);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: var(--rose);
    color: var(--rose-soft);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
    position: relative;
    min-height: 100svh;
    padding-top: calc(var(--nav-h) + 40px);
    padding-bottom: 130px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 56px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: clamp(30px, 5vw, 70px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px 7px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 22px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #46e39a;
    box-shadow: 0 0 0 0 rgba(70, 227, 154, 0.6);
    animation: pulse 2.2s infinite;
}

@keyframes pulse {
    70% {
        box-shadow: 0 0 0 10px rgba(70, 227, 154, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(70, 227, 154, 0);
    }
}

.script-hello {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(2rem, 4.4vw, 3.1rem);
    line-height: 1.1;
    color: var(--rose-soft);
    margin-bottom: 2px;
}

.hero-name {
    font-size: clamp(2.9rem, 8vw, 5.4rem);
    font-weight: 800;
    margin-bottom: 14px;
}

.grad {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-role {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.05rem, 2.4vw, 1.5rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--rose);
    min-height: 1.9em;
    display: flex;
    align-items: center;
}

.caret {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    margin-left: 4px;
    background: var(--rose);
    animation: blink 1s steps(2) infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.hero-desc {
    max-width: 56ch;
    color: var(--muted);
    font-size: clamp(0.98rem, 1.6vw, 1.08rem);
    margin: 10px 0 32px;
}

.hero-desc strong {
    color: var(--text);
    font-weight: 600;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 34px;
}

.hero-social {
    display: flex;
    gap: 12px;
}

.hero-social a {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    font-size: 1.05rem;
    transition: transform var(--med), background var(--fast), color var(--fast), border-color var(--fast), box-shadow var(--fast);
}

.hero-social a:hover {
    transform: translateY(-6px) rotate(-6deg);
    color: #fff;
    border-color: var(--rose);
    background: rgba(255, 77, 109, 0.16);
    box-shadow: 0 12px 26px rgba(255, 77, 109, 0.25);
}

/* portrait */
.hero-visual {
    display: flex;
    justify-content: center;
}

.portrait-stage {
    position: relative;
    width: min(370px, 78vw);
    transform-style: preserve-3d;
    transition: transform var(--med);
}

.portrait-frame {
    position: relative;
    border-radius: var(--r-xl);
    overflow: hidden;
    border: 1px solid var(--line-strong);
    background: linear-gradient(160deg, rgba(255, 77, 109, 0.18), rgba(128, 0, 32, 0.30));
    box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    animation: floatY 7s ease-in-out infinite;
}

.portrait-media {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 864 / 1056;
    filter: saturate(1.02) contrast(1.03);
    opacity: 0;
    transition: transform var(--slow), filter var(--med), opacity 0.8s var(--ease);
}

/* fades in once script.js has reassembled the tiles */
.portrait-media.ready {
    opacity: 1;
}

.portrait-stage:hover .portrait-media {
    transform: scale(1.04);
    filter: saturate(1.12) contrast(1.06);
}

.portrait-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 77, 109, 0.10) 0%, transparent 35%, rgba(14, 5, 8, 0.55) 100%);
    pointer-events: none;
}

/* ---- image protection (deterrent, not DRM) ----
   The served file is tile-scrambled and only reassembled on a canvas.
   The canvas never receives pointer events, so right-click, drag and
   long-press land on the frame instead — the browser offers no
   "Save image" / "Copy image" option. */
.protected {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.protected img,
.protected canvas {
    pointer-events: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.watermark {
    position: absolute;
    right: 16px;
    bottom: 12px;
    z-index: 2;
    font-family: 'Great Vibes', cursive;
    font-size: 1.35rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.72);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
}

@keyframes floatY {

    0%,
    100% {
        transform: translateY(0);
    }

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

.ring {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(255, 179, 193, 0.28);
    pointer-events: none;
}

.ring-1 {
    inset: -7%;
    animation: spin 26s linear infinite;
}

.ring-2 {
    inset: -16%;
    border-style: solid;
    border-color: rgba(255, 77, 109, 0.12);
    animation: spin 40s linear infinite reverse;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.float-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    background: rgba(22, 7, 12, 0.82);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid var(--line-strong);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
}

.float-badge i {
    color: var(--rose);
}

.badge-a {
    top: 12%;
    left: -14%;
    animation: floatY 6s ease-in-out infinite;
}

.badge-b {
    bottom: 14%;
    right: -12%;
    animation: floatY 6s ease-in-out 1.5s infinite;
}

/* hero stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.stat {
    padding: 20px 22px;
    border-radius: var(--r-md);
    border: 1px solid var(--line);
    background: var(--surface);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transition: transform var(--med), border-color var(--fast), background var(--fast);
}

.stat:hover {
    transform: translateY(-6px);
    border-color: var(--line-strong);
    background: var(--surface-2);
}

.stat-num {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.6rem, 3.4vw, 2.3rem);
    font-weight: 800;
    line-height: 1;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.stat-label {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--faint);
}

/* scroll cue */
.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--faint);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    transition: color var(--fast);
}

.scroll-cue:hover {
    color: var(--rose-soft);
}

.mouse {
    width: 24px;
    height: 38px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    display: grid;
    justify-items: center;
    padding-top: 7px;
}

.mouse span {
    width: 3px;
    height: 7px;
    border-radius: 3px;
    background: var(--rose);
    animation: wheel 1.8s ease-in-out infinite;
}

@keyframes wheel {

    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }

    60% {
        transform: translateY(12px);
        opacity: 0;
    }
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section {
    position: relative;
    padding: clamp(80px, 11vh, 130px) 0;
    scroll-margin-top: var(--nav-h);
}

.section-head {
    margin-bottom: clamp(34px, 5vw, 56px);
}

.section-kicker {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--rose);
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(1.9rem, 5vw, 3rem);
    position: relative;
    display: inline-block;
    padding-bottom: 14px;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 72px;
    height: 3px;
    border-radius: 3px;
    background: var(--grad-brand);
}

/* ---------- CARD BASE ---------- */
.card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: clamp(24px, 3.4vw, 36px);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
    transition: transform var(--med), border-color var(--med), box-shadow var(--med), background var(--med);
}

.card:hover {
    border-color: var(--line-strong);
    background: var(--surface-2);
    box-shadow: var(--shadow-rose);
}

.card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.12rem;
    margin-bottom: 20px;
}

.card-title i {
    color: var(--rose);
}

.badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 77, 109, 0.10);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--rose-soft);
    white-space: nowrap;
}

.badge-accent {
    background: var(--grad-brand);
    color: #2a0710;
    border-color: transparent;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
    align-items: start;
}

.about-main p {
    color: var(--muted);
}

.about-main p + p {
    margin-top: 16px;
}

.about-main strong {
    color: var(--text);
    font-weight: 600;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 77, 109, 0.07);
    font-size: 0.85rem;
    color: var(--muted);
    transition: transform var(--fast), border-color var(--fast), color var(--fast);
}

.chip i {
    color: var(--rose);
}

.chip:hover {
    transform: translateY(-3px);
    border-color: var(--rose);
    color: var(--text);
}

.lang + .lang {
    margin-top: 20px;
}

.lang-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    font-size: 0.92rem;
}

.lang-level {
    font-size: 0.78rem;
    color: var(--rose-soft);
    letter-spacing: 0.06em;
}

.bar {
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.bar span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: var(--grad-brand);
    box-shadow: 0 0 12px rgba(255, 77, 109, 0.5);
    transition: width 1.4s var(--ease);
}

/* =========================================================
   TIMELINE
   ========================================================= */
.timeline {
    position: relative;
    padding-left: 34px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--rose), rgba(255, 77, 109, 0.08));
}

.tl-item {
    position: relative;
}

.tl-item + .tl-item {
    margin-top: 24px;
}

.tl-dot {
    position: absolute;
    left: -34px;
    top: 30px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg);
    border: 3px solid var(--rose);
    box-shadow: 0 0 0 5px rgba(255, 77, 109, 0.14);
    transition: transform var(--fast), box-shadow var(--fast);
}

.tl-item:hover .tl-dot {
    transform: scale(1.2);
    box-shadow: 0 0 0 9px rgba(255, 77, 109, 0.16);
}

.tl-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tl-head h3 {
    font-size: 1.25rem;
}

.tl-meta {
    color: var(--faint);
    font-size: 0.9rem;
    margin: 4px 0 14px;
}

.tl-meta strong {
    color: var(--rose-soft);
}

.bullets li {
    position: relative;
    padding-left: 22px;
    color: var(--muted);
    font-size: 0.95rem;
}

.bullets li + li {
    margin-top: 8px;
}

.bullets li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.72em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rose);
}

/* =========================================================
   EDUCATION
   ========================================================= */
.edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 24px;
}

.edu-card:hover {
    transform: translateY(-8px);
}

.edu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.edu-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background: rgba(255, 77, 109, 0.12);
    border: 1px solid var(--line-strong);
    color: var(--rose);
    font-size: 1.2rem;
}

.edu-card h3 {
    font-size: 1.16rem;
    margin-bottom: 6px;
}

.edu-org {
    color: var(--rose-soft);
    font-size: 0.92rem;
}

.edu-major {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.92rem;
}

.edu-major strong {
    color: var(--text);
}

/* =========================================================
   SKILLS
   ========================================================= */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 24px;
}

.skill-card:hover {
    transform: translateY(-8px);
}

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

.tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    font-size: 0.86rem;
    color: var(--muted);
    overflow: hidden;
    transition: transform var(--fast), color var(--fast), border-color var(--fast), background var(--fast);
}

.tag i {
    color: var(--rose);
    transition: color var(--fast);
}

.tag:hover {
    transform: translateY(-4px);
    color: var(--text);
    border-color: var(--rose);
    background: rgba(255, 77, 109, 0.14);
}

.tag::before {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    transform: skewX(-18deg);
}

.tag:hover::before {
    animation: tagShine 0.75s var(--ease);
}

@keyframes tagShine {
    to {
        left: 180%;
    }
}

.tags.small .tag {
    padding: 6px 12px;
    font-size: 0.78rem;
    border-radius: 9px;
}

/* =========================================================
   PROJECTS
   ========================================================= */
.project-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
    margin-bottom: 26px;
    overflow: hidden;
}

.project-feature::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 300px at 85% 20%, rgba(255, 77, 109, 0.14), transparent 70%);
    pointer-events: none;
}

.pf-body {
    position: relative;
    z-index: 1;
}

.pf-body h3 {
    font-size: clamp(1.6rem, 3.4vw, 2.2rem);
    margin: 14px 0 2px;
}

.pf-sub {
    color: var(--rose-soft);
    font-family: 'Great Vibes', cursive;
    font-size: 1.5rem;
    margin-bottom: 14px;
}

.pf-body > p {
    color: var(--muted);
    font-size: 0.97rem;
}

.pf-body .tags {
    margin: 20px 0 26px;
}

.pf-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* browser mockup */
.pf-visual {
    position: relative;
    z-index: 1;
    perspective: 1000px;
}

.browser {
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--line-strong);
    background: rgba(14, 5, 8, 0.7);
    box-shadow: var(--shadow);
    transform: rotate(-2deg);
    transition: transform var(--slow);
}

.project-feature:hover .browser {
    transform: rotate(0deg) translateY(-6px);
}

.browser-bar {
    display: flex;
    gap: 7px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--line);
}

.browser-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
}

.browser-bar span:first-child {
    background: var(--rose);
}

.browser-body {
    padding: 18px;
    display: grid;
    gap: 12px;
}

.sk {
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.07) 25%, rgba(255, 179, 193, 0.16) 37%, rgba(255, 255, 255, 0.07) 63%);
    background-size: 400% 100%;
    animation: shimmer 2.4s ease-in-out infinite;
}

.sk-hero {
    height: 78px;
}

.sk-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.sk-card {
    height: 56px;
}

.sk-line {
    height: 10px;
}

.sk-line.short {
    width: 55%;
}

@keyframes shimmer {
    0% {
        background-position: 100% 0;
    }

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

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.project-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-10px);
}

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

.project-card p {
    color: var(--muted);
    font-size: 0.93rem;
    flex: 1;
}

.p-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    margin-bottom: 18px;
    background: rgba(255, 77, 109, 0.12);
    border: 1px solid var(--line-strong);
    color: var(--rose);
    font-size: 1.15rem;
    transition: transform var(--med), background var(--fast);
}

.project-card:hover .p-icon {
    transform: rotate(-8deg) scale(1.06);
    background: rgba(255, 77, 109, 0.2);
}

.project-card .tags {
    margin: 16px 0;
}

.p-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--rose);
    transition: gap var(--fast), color var(--fast);
}

.p-link:hover {
    gap: 14px;
    color: var(--rose-soft);
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 24px;
    align-items: start;
}

.contact-list {
    display: grid;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    border-radius: var(--r-md);
}

.c-icon {
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(255, 77, 109, 0.12);
    border: 1px solid var(--line-strong);
    color: var(--rose);
}

.c-label {
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--faint);
}

.contact-item a,
.contact-item span:not(.c-icon) {
    font-size: 0.97rem;
    color: var(--text);
    word-break: break-word;
    transition: color var(--fast);
}

.contact-item a:hover {
    color: var(--rose);
}

.copy-btn {
    margin-left: auto;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--faint);
    cursor: pointer;
    transition: color var(--fast), border-color var(--fast), transform var(--fast);
}

.copy-btn:hover {
    color: var(--rose);
    border-color: var(--rose);
    transform: translateY(-2px);
}

.socials {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-btn {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    font-size: 1.1rem;
    transition: transform var(--med), color var(--fast), border-color var(--fast), background var(--fast), box-shadow var(--fast);
}

.social-btn:hover {
    transform: translateY(-6px);
    color: #fff;
    border-color: var(--rose);
    background: rgba(255, 77, 109, 0.16);
    box-shadow: 0 12px 26px rgba(255, 77, 109, 0.25);
}

/* form */
.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--faint);
    margin-bottom: 8px;
}

.field input,
.field textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.95rem;
    resize: vertical;
    transition: border-color var(--fast), background var(--fast), box-shadow var(--fast);
}

.field input::placeholder,
.field textarea::placeholder {
    color: rgba(247, 238, 241, 0.32);
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--rose);
    background: rgba(255, 77, 109, 0.07);
    box-shadow: 0 0 0 4px rgba(255, 77, 109, 0.12);
}

.field.invalid input,
.field.invalid textarea {
    border-color: #ff6b6b;
}

.error {
    min-height: 1.1em;
    margin-top: 6px;
    font-size: 0.78rem;
    color: #ff8f8f;
}

.form-note {
    margin-top: 14px;
    font-size: 0.85rem;
    color: var(--rose-soft);
    text-align: center;
    min-height: 1.2em;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
    border-top: 1px solid var(--line);
    background: rgba(14, 5, 8, 0.5);
    padding: 44px 0;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-sign {
    font-family: 'Great Vibes', cursive;
    font-size: 1.9rem;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.footer-copy {
    font-size: 0.86rem;
    color: var(--faint);
}

.footer-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    color: var(--muted);
    transition: color var(--fast), gap var(--fast);
}

.footer-top:hover {
    color: var(--rose);
    gap: 12px;
}

/* back to top */
.to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1000;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: rgba(22, 7, 12, 0.85);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    color: var(--rose);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity var(--med), transform var(--med), visibility var(--med), background var(--fast);
}

.to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.to-top:hover {
    background: var(--rose);
    color: #fff;
}

/* toast */
.toast {
    position: fixed;
    left: 50%;
    bottom: 30px;
    z-index: 2000;
    transform: translate(-50%, 24px);
    padding: 12px 24px;
    border-radius: 999px;
    background: rgba(22, 7, 12, 0.94);
    border: 1px solid var(--line-strong);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    font-size: 0.88rem;
    color: var(--text);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--med), transform var(--med);
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* =========================================================
   REVEAL SYSTEM
   ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(38px);
    filter: blur(6px);
    transition:
        opacity 0.9s var(--ease),
        transform 0.9s var(--ease),
        filter 0.9s var(--ease);
    transition-delay: var(--d, 0ms);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
}

/* JS-off fallback: content must never stay invisible */
.no-js .reveal {
    opacity: 1;
    transform: none;
    filter: none;
}

.no-js .bar span {
    width: var(--w, 100%);
}

.no-js .caret {
    display: none;
}

.no-js .nav-toggle {
    display: none !important;
}

@media (max-width: 860px) {
    .no-js .nav-links {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0;
        background: none;
        box-shadow: none;
        border: 0;
    }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 44px;
    }

    .hero-copy {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-desc {
        margin-inline: auto;
    }

    .hero-role {
        justify-content: center;
    }

    .hero-cta,
    .hero-social {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .portrait-stage {
        width: min(300px, 70vw);
    }

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

    .pf-visual {
        order: -1;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 860px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        inset: var(--nav-h) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 18px clamp(20px, 5vw, 40px) 28px;
        background: rgba(14, 5, 8, 0.96);
        -webkit-backdrop-filter: blur(22px);
        backdrop-filter: blur(22px);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-14px);
        transition: opacity var(--med), transform var(--med), visibility var(--med);
    }

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

    .nav-link {
        padding: 13px 16px;
        border-radius: var(--r-sm);
        font-size: 1rem;
    }

    .nav-link.is-active::after {
        display: none;
    }

    .logo-text {
        display: none;
    }
}

@media (max-width: 640px) {
    :root {
        --nav-h: 66px;
    }

    .hero {
        padding-bottom: 110px;
    }

    .float-badge {
        font-size: 0.72rem;
        padding: 8px 12px;
    }

    .badge-a {
        left: -6%;
    }

    .badge-b {
        right: -4%;
    }

    .hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat {
        padding: 16px;
    }

    .timeline {
        padding-left: 26px;
    }

    .tl-dot {
        left: -26px;
        width: 13px;
        height: 13px;
        top: 26px;
    }

    .contact-item {
        flex-wrap: wrap;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .scroll-cue {
        display: none;
    }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
        filter: none;
    }

    .cursor-glow {
        display: none;
    }
}

/* =========================================================
   PRINT
   ========================================================= */
@media print {

    .nav-wrap,
    .to-top,
    .scroll-progress,
    .ambient,
    .cursor-glow,
    .scroll-cue,
    .contact-form,
    .toast {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .card {
        border: 1px solid #ccc;
        background: #fff;
    }
}
