/* ============================================================
   Gamal Abd El Naser — Portfolio
   Premium Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=DM+Mono:wght@400;500&display=swap');

/* ── Variables ── */
:root {
    /* Tokens */
    --ff-display:   'Cormorant Garamond', Georgia, serif;
    --ff-body:      'DM Sans', system-ui, sans-serif;
    --ff-mono:      'DM Mono', 'Courier New', monospace;

    /* Spacing system — 8px base */
    --sp-1: 0.5rem;   /* 8px  */
    --sp-2: 1rem;     /* 16px */
    --sp-3: 1.5rem;   /* 24px */
    --sp-4: 2rem;     /* 32px */
    --sp-5: 2.5rem;   /* 40px */
    --sp-6: 3rem;     /* 48px */
    --sp-8: 4rem;     /* 64px */
    --sp-10: 5rem;    /* 80px */
    --sp-14: 7rem;    /* 112px */
    --sp-20: 10rem;   /* 160px */

    /* Radius */
    --r-sm: 6px;
    --r-md: 12px;
    --r-lg: 20px;
    --r-xl: 32px;
    --r-full: 9999px;

    /* Ease */
    --ease-expo:   cubic-bezier(0.16, 1, 0.3, 1);
    --ease-quart:  cubic-bezier(0.25, 1, 0.5, 1);

    /* Durations */
    --dur-fast: 0.15s;
    --dur-base: 0.3s;
    --dur-slow: 0.6s;

    /* Layout */
    --max-w: 1280px;
    --px: clamp(1.5rem, 5vw, 4rem);
}

/* Dark theme — default */
[data-theme="dark"] {
    --bg:         #0d0d12;
    --bg-2:       #13131a;
    --bg-3:       #1a1a24;
    --bg-card:    #181820;
    --border:     rgba(255,255,255,0.08);
    --border-2:   rgba(255,255,255,0.12);
    --text:       #f0f0f5;
    --text-2:     #9898b0;
    --text-3:     #5c5c78;
    --gold:       #d4aa50;
    --gold-dim:   rgba(212,170,80,0.12);
    --gold-glow:  rgba(212,170,80,0.35);
    --overlay:    rgba(0,0,0,0.6);
    --shadow:     0 20px 60px rgba(0,0,0,0.5);
    --shadow-sm:  0 4px 16px rgba(0,0,0,0.25);
}

/* Light theme */
[data-theme="light"] {
    --bg:         #fafafa;
    --bg-2:       #f2f2f5;
    --bg-3:       #e8e8ef;
    --bg-card:    #ffffff;
    --border:     rgba(0,0,0,0.08);
    --border-2:   rgba(0,0,0,0.14);
    --text:       #0d0d12;
    --text-2:     #55556a;
    --text-3:     #999ab0;
    --gold:       #b08830;
    --gold-dim:   rgba(176,136,48,0.1);
    --gold-glow:  rgba(176,136,48,0.25);
    --overlay:    rgba(0,0,0,0.45);
    --shadow:     0 20px 60px rgba(0,0,0,0.1);
    --shadow-sm:  0 4px 16px rgba(0,0,0,0.08);
}

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

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

body {
    font-family: var(--ff-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background var(--dur-slow), color var(--dur-slow);
}

::selection {
    background: var(--gold);
    color: var(--bg);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: var(--r-full); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { font-family: var(--ff-body); cursor: pointer; border: none; background: none; }
input, textarea { font-family: var(--ff-body); }

/* ── Preloader ── */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s var(--ease-expo), visibility 0.5s;
}

.preloader.done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader__inner {
    position: relative;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader__ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    stroke: var(--gold);
    stroke-dasharray: 163;
    stroke-dashoffset: 163;
    animation: ringDraw 1.2s var(--ease-expo) forwards;
}

@keyframes ringDraw {
    to { stroke-dashoffset: 0; }
}

.preloader__initials {
    font-family: var(--ff-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.05em;
}

/* ── Cursor ── */
.cursor {
    position: fixed;
    top: 0; left: 0;
    width: 10px; height: 10px;
    background: var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, opacity 0.2s;
    mix-blend-mode: screen;
}

.cursor.big {
    width: 60px;
    height: 60px;
    opacity: 0.25;
}

@media (pointer: coarse) {
    .cursor { display: none; }
}

/* ── Layout Helpers ── */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--px);
}

.section {
    padding: clamp(5rem, 10vw, 9rem) 0;
}

/* ── Section Typography ── */
.section__label {
    display: inline-block;
    font-family: var(--ff-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--sp-2);
}

.section__title {
    font-family: var(--ff-display);
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 600;
    line-height: 1.12;
    color: var(--text);
    margin-bottom: var(--sp-3);
}

.section__title em {
    font-style: italic;
    color: var(--gold);
}

.section__subtitle {
    max-width: 540px;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-2);
}

.section__header {
    text-align: center;
    margin-bottom: var(--sp-8);
}

.section__header .section__title {
    margin-bottom: var(--sp-2);
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.75s var(--ease-expo), transform 0.75s var(--ease-expo);
}

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

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-1);
    padding: 0.875rem 1.875rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--r-full);
    transition: all var(--dur-fast);
    white-space: nowrap;
}

.btn svg {
    flex-shrink: 0;
    transition: transform var(--dur-fast);
}

.btn:hover svg {
    transform: translateX(3px);
}

.btn--primary {
    background: var(--gold);
    color: var(--bg);
}

.btn--primary:hover {
    opacity: 0.88;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--gold-glow);
}

.btn--ghost {
    background: var(--bg-3);
    color: var(--text);
    border: 1px solid var(--border-2);
}

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

/* ── Navigation ── */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 900;
    padding: var(--sp-3) 0;
    transition: padding var(--dur-base), background var(--dur-base);
}

.header.stuck {
    padding: var(--sp-2) 0;
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
}

.nav {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--px);
    display: flex;
    align-items: center;
    gap: var(--sp-4);
}

/* ══════════════════════════════════════
   LOGO — DUAL STRIKE EDITION
   ══════════════════════════════════════ */

@keyframes char-drop {
    0%   { opacity:0; transform: translateY(-22px) rotateX(90deg); }
    100% { opacity:1; transform: translateY(0)      rotateX(0deg); }
}
@keyframes char-rise {
    0%   { opacity:0; transform: translateY(22px) rotateX(-90deg); }
    100% { opacity:1; transform: translateY(0)     rotateX(0deg); }
}
@keyframes div-expand {
    0%   { width:0; opacity:0; }
    100% { width:100%; opacity:1; }
}
@keyframes diamond-pop {
    0%   { opacity:0; transform: scale(0) rotate(0deg); }
    70%  { transform: scale(1.4) rotate(180deg); }
    100% { opacity:1; transform: scale(1)   rotate(180deg); }
}
@keyframes gold-pulse {
    0%,100% { text-shadow: 0 0 12px rgba(212,170,80,0.4), 0 0 30px rgba(212,170,80,0.15); }
    50%      { text-shadow: 0 0 24px rgba(212,170,80,0.8), 0 0 60px rgba(212,170,80,0.35), 0 0 90px rgba(212,170,80,0.1); }
}
@keyframes char-hover {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
}

.nav__brand {
    display:         flex;
    align-items:     center;
    margin-right:    auto;
    text-decoration: none;
    perspective:     600px;
}

.logo-wrap {
    display:        flex;
    flex-direction: column;
    align-items:    center;
    gap:            0px;
}

/* ── Row shared ── */
.logo-row {
    display:      flex;
    align-items:  baseline;
    gap:          0;
    line-height:  1;
}

/* ── GAMAL — top row ── */
.logo-row--1 { margin-bottom: 1px; }

.logo-char {
    font-family:    'Cormorant Garamond', Georgia, serif;
    font-size:      2rem;
    font-weight:    700;
    letter-spacing: 0.1em;
    color:          var(--gold);
    display:        inline-block;
    opacity:        0;
    text-shadow:
        0 0 18px rgba(212,170,80,0.55),
        0 2px 4px rgba(0,0,0,0.3);
    animation:
        char-drop  0.5s cubic-bezier(0.22,1,0.36,1) calc(0.05s + var(--i) * 0.07s) forwards,
        gold-pulse 2.8s ease-in-out calc(1s + var(--i) * 0.15s) infinite;
}

.logo-char:hover {
    animation: char-hover 0.4s ease-in-out, gold-pulse 2.8s ease-in-out infinite;
    color: #ffe9a0;
}

/* ── Divider ── */
.logo-divider {
    display:     flex;
    align-items: center;
    gap:         6px;
    width:       100%;
    margin:      3px 0;
}

.logo-div-line {
    height:     1px;
    flex:       1;
    background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
    width:      0;
    animation:  div-expand 0.6s var(--ease-expo) 0.5s forwards;
}

.logo-diamond {
    font-size:  0.45rem;
    color:      var(--gold);
    opacity:    0;
    flex-shrink: 0;
    animation:  diamond-pop 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.75s forwards;
    text-shadow: 0 0 10px rgba(212,170,80,0.8);
}

/* ── ABD EL NASER — bottom row ── */
.logo-char2 {
    font-family:    'Cormorant Garamond', Georgia, serif;
    font-size:      2rem;
    font-weight:    700;
    letter-spacing: 0.1em;
    color:          var(--text);
    display:        inline-block;
    opacity:        0;
    text-shadow:    0 2px 4px rgba(0,0,0,0.2);
    animation:      char-rise 0.5s cubic-bezier(0.22,1,0.36,1) calc(0.35s + var(--i) * 0.06s) forwards;
    transition:     color 0.2s, text-shadow 0.2s;
}

.logo-char2:hover {
    color:       var(--gold);
    text-shadow: 0 0 18px rgba(212,170,80,0.55), 0 2px 4px rgba(0,0,0,0.3);
}

.logo-sp {
    display: inline-block;
    width:   0.3em;
}

/* ── Brand hover — gold glow on whole logo ── */
.nav__brand:hover .logo-char {
    text-shadow:
        0 0 28px rgba(212,170,80,0.9),
        0 0 60px rgba(212,170,80,0.4),
        0 2px 4px rgba(0,0,0,0.3);
}


.nav__menu {
    display: none;
    align-items: center;
    gap: var(--sp-5);
}

@media (min-width: 1024px) {
    .nav__menu { display: flex; }
}

.nav__link {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-2);
    transition: color var(--dur-fast);
    position: relative;
    padding-bottom: 2px;
}

.nav__link::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width var(--dur-base) var(--ease-quart);
}

.nav__link:hover,
.nav__link.active {
    color: var(--text);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

.nav__theme {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-full);
    border: 1px solid var(--border);
    color: var(--text-2);
    transition: all var(--dur-fast);
}

.nav__theme:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.nav__theme-icon {
    display: flex;
}

[data-theme="dark"] .nav__theme-icon--dark,
[data-theme="light"] .nav__theme-icon--light {
    display: none;
}

.nav__cta {
    display: none;
    padding: 0.6rem 1.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--gold);
    color: var(--bg);
    border-radius: var(--r-full);
    transition: all var(--dur-fast);
}

.nav__cta:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

@media (min-width: 768px) {
    .nav__cta { display: inline-flex; }
}

/* Burger */
.nav__burger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 28px;
    padding: 4px 0;
}

@media (min-width: 1024px) {
    .nav__burger { display: none; }
}

.nav__burger span {
    display: block;
    height: 1.5px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--dur-base);
    transform-origin: center;
}

.nav__burger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__burger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

/* Mobile menu */
@media (max-width: 1023px) {
    .nav__menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0; right: -100%;
        width: min(360px, 100%);
        height: 100dvh;
        background: var(--bg-2);
        padding: 100px var(--px) var(--sp-8);
        gap: var(--sp-3);
        transition: right var(--dur-slow) var(--ease-expo);
        border-left: 1px solid var(--border);
        align-items: flex-start;
    }

    .nav__menu.open {
        right: 0;
    }

    .nav__link {
        font-size: 1.5rem;
        font-family: var(--ff-display);
        font-weight: 500;
    }
}

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--sp-20) 0 var(--sp-10);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero__noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.025;
    background-size: 180px 180px;
}

.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}

.hero__orb--1 {
    width: 600px;
    height: 600px;
    right: -150px;
    top: -100px;
    background: radial-gradient(circle, rgba(212,170,80,0.15) 0%, transparent 70%);
}

.hero__orb--2 {
    width: 400px;
    height: 400px;
    left: -100px;
    bottom: 0;
    background: radial-gradient(circle, rgba(212,170,80,0.08) 0%, transparent 70%);
}

.hero__layout {
    position: relative;
    z-index: 1;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--px);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-10);
    align-items: center;
}

@media (min-width: 1024px) {
    .hero__layout {
        grid-template-columns: 1fr 1fr;
    }
}

/* Hero content */
.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-1);
    font-family: var(--ff-mono);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-2);
    margin-bottom: var(--sp-4);
    opacity: 0;
    animation: fadeUp 0.9s var(--ease-expo) 0.2s forwards;
}

.hero__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: blink 2.5s ease infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.25; }
}

.hero__heading {
    font-family: var(--ff-display);
    font-size: clamp(3.25rem, 8vw, 6.5rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: var(--sp-4);
    overflow: visible;
    padding-bottom: 0.1em;
}

.hero__heading-line {
    display: block;
    opacity: 0;
    transform: translateY(110%);
    animation: lineUp 1s var(--ease-expo) forwards;
}

.hero__heading-line:nth-child(1) { animation-delay: 0.35s; }
.hero__heading-line:nth-child(2) { animation-delay: 0.5s; }
.hero__heading-line:nth-child(3) { animation-delay: 0.65s; }

.hero__heading-line em {
    font-style: italic;
    color: var(--gold);
}

@keyframes lineUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero__sub {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.75;
    color: var(--text-2);
    margin-bottom: var(--sp-6);
    opacity: 0;
    animation: fadeUp 0.9s var(--ease-expo) 0.75s forwards;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    margin-bottom: var(--sp-8);
    opacity: 0;
    animation: fadeUp 0.9s var(--ease-expo) 0.88s forwards;
}

.hero__stats {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    opacity: 0;
    animation: fadeUp 0.9s var(--ease-expo) 1s forwards;
}

.hero__stat {
    text-align: left;
}

.hero__stat-num {
    font-family: var(--ff-display);
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1;
    color: var(--text);
}

.hero__stat-suf {
    font-family: var(--ff-display);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--gold);
}

.hero__stat-label {
    display: block;
    font-family: var(--ff-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-top: var(--sp-1);
}

.hero__stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-2);
}

/* Photo column */
.hero__photo-col {
    display: flex;
    justify-content: center;
    opacity: 0;
    animation: fadeUp 1s var(--ease-expo) 0.4s forwards;
}

.hero__photo-wrap {
    position: relative;
    width: min(420px, 90vw);
}

.hero__photo-frame {
    position: relative;
    border-radius: var(--r-xl);
    overflow: hidden;
    background: transparent;
    aspect-ratio: 3/4;
}

.hero__photo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    display: block;
    transition: transform 0.8s var(--ease-expo);
}

.hero__photo-wrap:hover .hero__photo-img {
    transform: scale(1.04);
}

/* Ring SVG */
.hero__photo-ring {
    position: absolute;
    top: -30px; right: -30px;
    width: 160px;
    height: 160px;
    color: var(--text-3);
    animation: spinSlow 20s linear infinite;
    pointer-events: none;
}

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

/* Badge */
.hero__photo-badge {
    position: absolute;
    bottom: 28px;
    left: -20px;
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    padding: 0.625rem 1rem;
    background: var(--gold);
    color: var(--bg);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--r-full);
    box-shadow: 0 8px 24px var(--gold-glow);
}

/* Location tag */
.hero__photo-tag {
    position: absolute;
    top: 24px;
    left: -16px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 0.875rem;
    background: var(--bg-card);
    border: 1px solid var(--border-2);
    border-radius: var(--r-full);
    font-family: var(--ff-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-2);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

.hero__photo-tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
}

/* Scroll cue */
.hero__scroll {
    position: absolute;
    bottom: var(--sp-4);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-1);
    font-family: var(--ff-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-3);
    transition: color var(--dur-fast);
    opacity: 0;
    animation: fadeUp 0.9s var(--ease-expo) 1.3s forwards;
    z-index: 1;
}

.hero__scroll:hover { color: var(--gold); }

.hero__scroll svg {
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(6px); }
}

/* ── About ── */
.about {
    background: var(--bg-2);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-10);
    align-items: start;
}

@media (min-width: 1024px) {
    .about__grid {
        grid-template-columns: 5fr 7fr;
    }
}

.about__image-col {
    position: relative;
}

.about__image-wrap {
    border-radius: var(--r-lg);
    overflow: hidden;
    aspect-ratio: 4/5;
    background: transparent;
    max-width: 380px;
    margin: 0 auto;
    position: relative;
    box-shadow:
        0 0 0 1px rgba(212,170,80,0.2),
        0 20px 60px rgba(0,0,0,0.35),
        0 0 80px rgba(212,170,80,0.1);
}

.about__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    border-radius: var(--r-lg);
}

.about__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    transition: transform 0.7s var(--ease-expo);
    filter: grayscale(20%);
    position: relative;
    z-index: 1;
}

.about__image-wrap:hover .about__image {
    transform: scale(1.04);
    filter: grayscale(0%);
}

.about__image-overlay {
    display: none;
}

.about__exp-card {
    position: absolute;
    bottom: -20px;
    right: 0;
    padding: var(--sp-3) var(--sp-4);
    background: var(--gold);
    color: var(--bg);
    border-radius: var(--r-md);
    text-align: center;
    box-shadow: 0 12px 32px var(--gold-glow);
}

@media (min-width: 1024px) {
    .about__exp-card {
        right: -20px;
    }
}

.about__exp-num {
    display: block;
    font-family: var(--ff-display);
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1;
}

.about__exp-num sup {
    font-size: 1.25rem;
    vertical-align: super;
}

.about__exp-text {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    opacity: 0.85;
    line-height: 1.35;
    margin-top: 4px;
}

.about__text-col {
    padding-top: var(--sp-2);
}

@media (min-width: 1024px) {
    .about__text-col {
        padding-left: var(--sp-4);
        padding-top: var(--sp-4);
    }
}

.about__body {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-2);
    margin-bottom: var(--sp-3);
}

.about__pillars {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    margin-bottom: var(--sp-6);
}

.about__pillars li {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text);
}

.about__pillars svg {
    flex-shrink: 0;
    stroke: var(--gold);
}

/* ── Work ── */
.work__filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sp-1);
    margin-bottom: var(--sp-8);
}

.work__filter-btn {
    padding: 0.5rem 1.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-2);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    transition: all var(--dur-fast);
}

.work__filter-btn:hover {
    color: var(--text);
    border-color: var(--border-2);
}

.work__filter-btn.active {
    background: var(--gold);
    color: var(--bg);
    border-color: var(--gold);
}

.work__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-4);
}

@media (min-width: 640px) {
    .work__grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Work card */
.work__card {
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all var(--dur-base) var(--ease-quart), opacity 0.3s, transform 0.3s;
}

.work__card:hover {
    border-color: var(--border-2);
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.work__card.hide {
    opacity: 0;
    transform: scale(0.94) translateY(8px);
    pointer-events: none;
}

.work__card-link {
    display: block;
}

.work__card-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.work__card-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s var(--ease-expo);
}

.work__card:hover .work__card-thumb {
    transform: scale(1.06);
}

.work__card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.work__card-thumb--1 {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.work__card-thumb--2 {
    background: linear-gradient(135deg, #1a0a00 0%, #3d1a00 50%, #6b2d00 100%);
}

.work__card-thumb--3 {
    background: linear-gradient(135deg, #1a0a0a 0%, #3d0000 50%, #6b1010 100%);
}

.work__card-thumb--4 {
    background: linear-gradient(135deg, #0a1a0a 0%, #003d00 50%, #006b10 100%);
}

.work__card-thumb-letter {
    font-family: var(--ff-display);
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255,255,255,0.12);
    letter-spacing: 0.05em;
    user-select: none;
}

.work__card-hover {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-1);
    opacity: 0;
    transition: opacity var(--dur-base);
    backdrop-filter: blur(4px);
}

.work__card:hover .work__card-hover {
    opacity: 1;
}

.work__card-hover-label {
    font-family: var(--ff-mono);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
}

.work__card-hover svg {
    stroke: rgba(255,255,255,0.7);
}

.work__card-body {
    padding: var(--sp-3) var(--sp-4);
}

.work__card-cat {
    display: inline-block;
    font-family: var(--ff-mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--sp-1);
}

.work__card-title {
    font-family: var(--ff-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--sp-1);
    line-height: 1.2;
    transition: color var(--dur-fast);
}

.work__card-link:hover .work__card-title {
    color: var(--gold);
}

.work__card-desc {
    font-size: 0.9rem;
    color: var(--text-2);
}

/* ── Skills ── */
.skills {
    background: var(--bg-2);
}

.skills__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-6);
}

@media (min-width: 1024px) {
    .skills__layout {
        grid-template-columns: 1fr 1.5fr;
    }
}

.skills__group-title {
    font-family: var(--ff-mono);
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: var(--sp-4);
}

/* Tools */
.skills__tools {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--sp-4) var(--sp-5);
}

.skills__tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-3);
}

.skills__tool {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--sp-2);
    padding: var(--sp-3);
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    transition: all var(--dur-fast);
}

.skills__tool:hover {
    border-color: var(--gold);
    background: var(--gold-dim);
}

.skills__tool-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ff-display);
    font-size: 1.25rem;
    font-weight: 700;
    font-style: italic;
}

.skills__tool-icon--ps {
    background: #001d34;
    color: #31a8ff;
}

.skills__tool-icon--ai {
    background: #1a0700;
    color: #ff9a00;
}

.skills__tool-icon--id {
    background: #1a0a2e;
    color: #ff3366;
}

.skills__tool-icon--cv {
    background: #7d2ae8;
    color: #00c4cc;
}

/* ── Animated Hero Photo Background ── */
.hero__photo-frame {
    box-shadow:
        0 0 0 1px rgba(212,170,80,0.25),
        0 0 80px rgba(212,170,80,0.18),
        0 30px 80px rgba(0,0,0,0.4);
}

.hero__photo-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    border-radius: var(--r-xl);
}

.hero__photo-img {
    position: relative;
    z-index: 1;
}

/* Badge visibility fix */
.hero__photo-badge {
    z-index: 5;
    background: var(--gold);
    color: #0d0d12;
    font-weight: 700;
    box-shadow: 0 8px 32px rgba(212,170,80,0.5), 0 0 0 2px rgba(212,170,80,0.3);
}


.skills__tool span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-2);
}

/* Bars */
.skills__bars {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--sp-4) var(--sp-5);
}

.skills__list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}

.skills__item-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--sp-1);
}

.skills__item-name {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text);
}

.skills__item-pct {
    font-family: var(--ff-mono);
    font-size: 0.8125rem;
    color: var(--gold);
}

.skills__bar {
    height: 6px;
    background: var(--bg-3);
    border-radius: var(--r-full);
    overflow: hidden;
}

.skills__bar-fill {
    height: 100%;
    border-radius: var(--r-full);
    background: linear-gradient(to right, var(--gold), color-mix(in srgb, var(--gold) 70%, #fff));
    width: 0;
    transition: width 1.4s var(--ease-expo);
}

/* ── Contact ── */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-8);
}

@media (min-width: 1024px) {
    .contact__grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.contact__body {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-2);
    margin-bottom: var(--sp-6);
}

.contact__list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.contact__item {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3);
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    background: var(--bg-2);
    transition: all var(--dur-fast);
    cursor: pointer;
}

.contact__item:hover {
    border-color: var(--border-2);
    background: var(--gold-dim);
    transform: translateX(6px);
}

.contact__item-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--r-sm);
    background: var(--bg-3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--gold);
    transition: background var(--dur-fast);
}

.contact__item-icon--wa {
    background: #128C7E;
    color: #fff;
}

.contact__item span:not(.contact__item-icon) {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact__item strong {
    display: block;
    font-size: 0.8rem;
    font-family: var(--ff-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-3);
    font-weight: 400;
}

.contact__item span:not(.contact__item-icon) > *:last-child {
    font-size: 0.9375rem;
    color: var(--text);
    word-break: break-all;
}

/* Form */
.contact__form-wrap {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.form__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-3);
}

@media (min-width: 480px) {
    .form__row {
        grid-template-columns: 1fr 1fr;
    }
}

.form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form__label {
    font-size: 0.825rem;
    font-weight: 500;
    color: var(--text-2);
    letter-spacing: 0.03em;
}

.form__input {
    width: 100%;
    padding: 0.875rem 1.125rem;
    font-size: 0.9375rem;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border-2);
    border-radius: var(--r-md);
    outline: none;
    transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}

.form__input::placeholder {
    color: var(--text-3);
}

.form__input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-dim);
}

.form__textarea {
    resize: vertical;
    min-height: 130px;
}

.form__submit {
    width: 100%;
    justify-content: center;
    position: relative;
}

.form__status {
    font-size: 0.9rem;
    text-align: center;
    min-height: 1.4rem;
    color: var(--text-2);
}

.form__status.ok  { color: #22c55e; }
.form__status.err { color: #ef4444; }

/* ── Footer ── */
.footer {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: var(--sp-10) 0 var(--sp-6);
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--sp-6);
    padding-bottom: var(--sp-6);
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--sp-6);
}

.footer__logo {
    font-family: var(--ff-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text);
    display: block;
    margin-bottom: var(--sp-2);
}

.footer__logo span {
    color: var(--gold);
}

.footer__brand p {
    max-width: 280px;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-2);
}

.footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-4);
    align-items: center;
}

.footer__nav a {
    font-size: 0.9rem;
    color: var(--text-2);
    transition: color var(--dur-fast);
}

.footer__nav a:hover {
    color: var(--gold);
}

.footer__social {
    display: flex;
    gap: var(--sp-2);
}

.footer__social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-full);
    border: 1px solid var(--border);
    color: var(--text-2);
    transition: all var(--dur-fast);
}

.footer__social a:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--gold-dim);
}

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--sp-2);
}

.footer__bottom p {
    font-size: 0.85rem;
    color: var(--text-3);
}

/* ── Responsive tweaks ── */
@media (max-width: 640px) {
    .hero__photo-ring {
        display: none;
    }

    .hero__photo-badge {
        left: 0;
        bottom: 16px;
        font-size: 0.8125rem;
    }

    .hero__photo-tag {
        left: 0;
        top: 16px;
    }

    .hero__stat-num  { font-size: 2rem; }
    .hero__stat-suf  { font-size: 1.4rem; }
    .hero__stats { gap: var(--sp-3); }

    /* ── About exp card fix on mobile ── */
    .about__image-col {
        padding-bottom: 80px; /* space for card below */
    }

    .about__exp-card {
        position: absolute;
        bottom: 0;
        right: 50%;
        transform: translateX(50%);
        z-index: 10;
        min-width: 160px;
    }

    /* ── Hero heading smaller ── */
    .hero__heading {
        font-size: clamp(2.6rem, 11vw, 4rem);
    }

    /* ── Nav CTA smaller ── */
    .nav__cta {
        padding: 0.6rem 1.1rem;
        font-size: 0.85rem;
    }

    /* ── Hero actions stack ── */
    .hero__actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* ── Work grid single col ── */
    .work__grid {
        grid-template-columns: 1fr !important;
    }

    /* ── Skills tools 2-col stays but smaller padding ── */
    .skills__tools {
        padding: var(--sp-3);
    }

    .skills__tool {
        padding: var(--sp-2);
    }

    /* ── Contact grid ── */
    .contact__grid {
        grid-template-columns: 1fr !important;
    }

    /* ── Form row stack ── */
    .form__row {
        grid-template-columns: 1fr !important;
    }

    /* ── Footer stack ── */
    .footer__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--sp-4);
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    /* ── Section titles ── */
    .section__title {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    /* ── Preloader initials ── */
    .preloader__initials {
        font-size: 1.5rem;
    }
}

/* ── Tablet tweaks (641–1023px) ── */
@media (min-width: 641px) and (max-width: 1023px) {
    .about__image-col {
        padding-bottom: 70px;
    }

    .about__exp-card {
        bottom: 0;
        right: 0;
        transform: none;
    }

    .work__grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .hero__heading {
        font-size: clamp(3rem, 7vw, 5rem);
    }

    .hero__actions .btn {
        padding: 0.75rem 1.5rem;
    }

    .skills__layout {
        grid-template-columns: 1fr !important;
    }

    .contact__grid {
        grid-template-columns: 1fr !important;
    }
}