/* ==========================================================================
   ACTIVE THEORY INSPIRED PORTFOLIO — Zedira Moussa
   ========================================================================== */

/* --- VARIABLES --- */
:root {
    --bg: #030305;
    --bg-secondary: #0a0a0f;
    --text: #e8e8ed;
    --text-muted: #5a5a72;
    --accent: #818cf8;
    --accent-2: #c084fc;
    --accent-3: #38bdf8;
    --gradient: linear-gradient(135deg, #818cf8, #c084fc, #38bdf8);

    --font-display: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html.lenis, html.lenis body {
    height: auto;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    cursor: none;
}

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

ul { list-style: none; }
img { display: block; max-width: 100%; }
button { cursor: none; }
input, textarea, button { font-family: inherit; }

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

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(129, 140, 248, 0.3);
    border-radius: 4px;
}

/* --- PAGE TRANSITION --- */
.page-transition {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
}

.page-transition__wipe {
    position: absolute;
    inset: 0;
    background: var(--bg);
    transform: scaleY(0);
    transform-origin: bottom;
}

/* --- FILM GRAIN --- */
.grain {
    position: fixed;
    inset: 0;
    z-index: 9000;
    pointer-events: none;
    opacity: 0.035;
    mix-blend-mode: overlay;
}

/* --- BG COLOR SHIFT --- */
.bg-shift {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.8s ease, background 0.8s ease;
    pointer-events: none;
}

/* --- LOADER --- */
.loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.loader__text {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loader__bar {
    width: clamp(120px, 20vw, 200px);
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.loader__bar-fill {
    width: 0%;
    height: 100%;
    background: var(--gradient);
    border-radius: 2px;
    transition: width 0.1s linear;
}

.loader__percent {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

/* SVG logo draw */
.loader__logo {
    width: clamp(60px, 12vw, 100px);
    height: clamp(60px, 12vw, 100px);
    margin-bottom: 1rem;
}

.loader__logo path {
    fill: none;
    stroke: url(#loaderGradient);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: drawLogo 2s var(--ease) forwards;
}

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

/* Project counter transition */
.project-counter {
    position: fixed;
    left: clamp(1.5rem, 4vw, 3rem);
    bottom: 2rem;
    z-index: 90;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    pointer-events: none;
}

.project-counter__current {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    transition: all 0.5s var(--ease);
    display: inline-block;
}

.project-counter__sep {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    margin: 0 0.25rem;
}

.project-counter__total {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.project-counter.changing .project-counter__current {
    transform: translateY(-10px);
    opacity: 0;
}

/* --- CUSTOM CURSOR --- */
.cursor {
    pointer-events: none;
    position: fixed;
    z-index: 10000;
    mix-blend-mode: difference;
}

.cursor__dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.2s var(--ease), height 0.2s var(--ease);
}

.cursor__ring {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s;
}

.cursor__label {
    position: fixed;
    transform: translate(-50%, -50%);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s;
}

.cursor--hover .cursor__ring {
    width: 60px;
    height: 60px;
    border-color: var(--accent);
}

.cursor--hover .cursor__dot {
    width: 4px;
    height: 4px;
}

.cursor--view .cursor__ring {
    width: 80px;
    height: 80px;
    border-color: var(--accent);
}

.cursor--view .cursor__label {
    opacity: 1;
}

.cursor--view .cursor__dot {
    width: 0;
    height: 0;
}

/* --- NAV --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem clamp(1.5rem, 4vw, 3rem);
    transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
}

.nav--hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.nav__logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.nav__logo span {
    color: var(--accent);
}

.nav__toggle {
    position: relative;
    width: 32px;
    height: 20px;
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    z-index: 101;
}

.nav__toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.4s var(--ease), opacity 0.3s;
    transform-origin: center;
}

.nav__toggle.active span:first-child {
    transform: translateY(9px) rotate(45deg);
}

.nav__toggle.active span:last-child {
    transform: translateY(-9px) rotate(-45deg);
}

/* --- MENU OVERLAY --- */
.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(3, 3, 5, 0.95);
    backdrop-filter: blur(40px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s var(--ease), visibility 0.5s;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-overlay__inner {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.menu-link {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text-muted);
    padding: 0.25rem 0;
    transition: color 0.3s, transform 0.4s var(--ease);
    display: flex;
    align-items: baseline;
    gap: 1rem;
    clip-path: inset(0 0 100% 0);
}

.menu-overlay.active .menu-link {
    clip-path: inset(0 0 0% 0);
    transition: clip-path 0.6s var(--ease), color 0.3s, transform 0.4s var(--ease);
}

.menu-link::before {
    content: attr(data-index);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

.menu-link:hover {
    color: var(--text);
}

.menu-link__text {
    display: inline-block;
    transition: transform 0.4s var(--ease);
}

/* --- SECTIONS BASE --- */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: clamp(80px, 10vw, 120px) clamp(1.5rem, 6vw, 8rem);
    position: relative;
}

.section--project {
    overflow: hidden;
}

.section-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 2rem;
    position: relative;
    padding-left: 1.5rem;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0.75rem;
    height: 1px;
    background: var(--accent);
}

/* --- FLOATING SHAPES --- */
.floating-shapes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.04;
    filter: blur(80px);
    animation: floatShape 20s ease-in-out infinite;
}

.floating-shape:nth-child(1) {
    width: 500px;
    height: 500px;
    background: var(--accent);
    top: 10%;
    left: -10%;
    animation-duration: 22s;
}

.floating-shape:nth-child(2) {
    width: 400px;
    height: 400px;
    background: var(--accent-2);
    top: 50%;
    right: -10%;
    animation-duration: 18s;
    animation-delay: -5s;
}

.floating-shape:nth-child(3) {
    width: 350px;
    height: 350px;
    background: var(--accent-3);
    bottom: 10%;
    left: 30%;
    animation-duration: 25s;
    animation-delay: -10s;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, -30px) scale(1.1); }
    50% { transform: translate(-20px, 40px) scale(0.95); }
    75% { transform: translate(30px, 20px) scale(1.05); }
}

/* --- HERO --- */
.section--hero {
    justify-content: center;
    position: relative;
}

/* Aurora gradient mesh */
.section--hero::before {
    content: '';
    position: absolute;
    inset: -50%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(129, 140, 248, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(192, 132, 252, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(56, 189, 248, 0.08) 0%, transparent 50%);
    animation: auroraShift 12s ease-in-out infinite alternate;
    pointer-events: none;
    filter: blur(60px);
}

.section--hero::after {
    content: '';
    position: absolute;
    inset: -50%;
    background:
        radial-gradient(ellipse at 70% 60%, rgba(129, 140, 248, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 30% 30%, rgba(56, 189, 248, 0.06) 0%, transparent 40%);
    animation: auroraShift 12s ease-in-out infinite alternate-reverse;
    pointer-events: none;
    filter: blur(80px);
}

@keyframes auroraShift {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(5%, -3%) rotate(2deg) scale(1.05); }
    66% { transform: translate(-3%, 5%) rotate(-1deg) scale(0.98); }
    100% { transform: translate(2%, 2%) rotate(1deg) scale(1.02); }
}

.hero {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero__label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 0;
}

.hero__name {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 12vw, 10rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

.hero__line {
    display: block;
    clip-path: inset(0 -10% -20% 0);
}

.hero__line-inner {
    display: block;
    transform: translateY(120%);
    will-change: transform;
}

.hero__line.accent .hero__line-inner {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Clip-path reveal for all big titles */
[data-reveal] {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.8s var(--ease);
}

[data-reveal].revealed {
    clip-path: inset(0 0 0% 0);
}

/* Parallax layers */
[data-speed] {
    will-change: transform;
}

.hero__title {
    font-size: clamp(1rem, 2vw, 1.35rem);
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0;
}

.hero__tags {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero__tag {
    padding: 0.4rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0;
}

.hero__cta {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    opacity: 0;
}

.hero__scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
}

.hero__scroll span {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hero__scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: none;
    transition: all 0.35s var(--ease);
    cursor: none;
}

.btn {
    overflow: hidden;
    position: relative;
}

.btn__text {
    display: inline-flex;
    flex-direction: column;
    transition: transform 0.45s var(--ease);
    line-height: 1;
}

.btn__text span {
    display: block;
}

.btn__text span:last-child {
    position: absolute;
    top: 100%;
}

.btn:hover .btn__text {
    transform: translateY(-100%);
}

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

.btn--primary:hover {
    background: #9ba3fb;
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(129, 140, 248, 0.4), 0 0 60px rgba(129, 140, 248, 0.15);
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn--ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(129, 140, 248, 0.15);
}

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

/* --- ABOUT --- */
.about {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: clamp(3rem, 6vw, 8rem);
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.about__hook {
    font-size: clamp(1.35rem, 2.3vw, 2rem);
    line-height: 1.35;
    color: #ffffff;
    margin-bottom: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.about__hook .word {
    display: inline-block;
    opacity: 0.2;
    transition: opacity 0.3s;
}

.about__points {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about__point {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.6;
    color: #b8b8c8;
    padding-left: 1.75rem;
    position: relative;
    font-weight: 400;
}

.about__point::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75em;
    width: 1rem;
    height: 1px;
    background: linear-gradient(90deg, #6366f1, transparent);
}

.about__tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.about__tag {
    padding: 0.4rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.about__visual-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.about__photo-wrap {
    width: clamp(220px, 24vw, 320px);
    height: clamp(260px, 28vw, 380px);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    padding: 2px;
    background: linear-gradient(145deg, rgba(129, 140, 248, 0.3), rgba(192, 132, 252, 0.1), transparent);
}

.about__photo-wrap::before {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 18px;
    background: var(--bg);
    z-index: 1;
}

.about__photo-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
    border-radius: 20px 0 0 0;
    z-index: 3;
    opacity: 0.7;
}

.about__photo {
    position: relative;
    z-index: 2;
    border-radius: 18px;
}

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

.about__stats {
    display: flex;
    gap: 2.5rem;
    text-align: center;
}

.about__stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text);
}

.about__stat-suffix {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
}

.about__stat-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
}

.about__status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.about__status-dot {
    width: 8px;
    height: 8px;
    background: #34d399;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.5);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* --- PROJECTS --- */
.section--project {
    padding: 0;
}

.project {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    height: 100vh;
    position: relative;
}

.project__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 6vw, 6rem);
}

.project__number {
    font-family: var(--font-display);
    font-size: clamp(5rem, 10vw, 10rem);
    font-weight: 800;
    -webkit-text-stroke: 1.5px var(--text-muted);
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.project__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.project__desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 450px;
    margin-bottom: 2rem;
}

.project__wip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #f59e0b;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    width: fit-content;
}

.project__wip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
    animation: wipPulse 2s ease-in-out infinite;
}

@keyframes wipPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.project__tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.project__tech-pill {
    padding: 0.35rem 0.9rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.project__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    transition: gap 0.3s var(--ease);
}

.project__link:hover {
    gap: 1rem;
}

.project__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.5s var(--ease);
    transform-style: preserve-3d;
    perspective: 800px;
}

/* Mask wipe reveal */
.project__visual-wipe {
    position: absolute;
    inset: 0;
    z-index: 5;
    transform-origin: top;
}

.project__visual-wipe::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--project-color);
    transform: scaleY(1);
    transform-origin: bottom;
    transition: transform 1.2s var(--ease);
}

.project__visual-wipe.revealed::before {
    transform: scaleY(0);
}

.project__visual-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, var(--project-color), transparent 70%);
    opacity: 0.12;
    transition: opacity 0.5s;
}

.section--project:hover .project__visual-bg {
    opacity: 0.2;
}

.project__visual-distort {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 40%, var(--project-color), transparent 60%),
                radial-gradient(circle at 70% 60%, var(--project-color), transparent 60%);
    opacity: 0.06;
    filter: url(#distortion);
    transition: opacity 0.5s, filter 0.5s;
}

.section--project:hover .project__visual-distort {
    opacity: 0.15;
}

.project__visual-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.project__visual-stat {
    text-align: center;
}

.project__visual-stat-value {
    font-family: var(--font-mono);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--project-color);
    line-height: 1;
}

.project__visual-stat-label {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

/* Project slide panel */
.project__slide {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 45%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(30px);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    padding: clamp(2rem, 4vw, 4rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transform: translateX(100%);
    will-change: transform;
}

.project__slide-overview {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.project__slide-feature-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
}

.project__slide-feature p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* --- SKILLS --- */
.section--skills {
    align-items: flex-start;
    padding-top: clamp(100px, 12vw, 160px);
    padding-bottom: clamp(100px, 12vw, 160px);
}

.skills-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 8rem);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.skills__col {
    display: flex;
    flex-direction: column;
}

/* --- SKILL DOMAINS --- */
.skills__domains {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.skill-domain {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.35s var(--ease);
}

.skill-domain:hover {
    border-color: rgba(129, 140, 248, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(129, 140, 248, 0.06);
}

.skill-domain__title {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.skill-domain__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-domain__item {
    font-size: 0.78rem;
    color: var(--text-muted);
    padding-left: 1rem;
    position: relative;
    transition: color 0.3s;
}

.skill-domain__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.skill-domain:hover .skill-domain__item {
    color: var(--text);
}

.skill-domain:hover .skill-domain__item::before {
    opacity: 1;
}

.skills__stack {
    margin-top: 1rem;
}

.skills__stack-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.skills__stack-item {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    color: var(--text-muted);
    transition: all 0.3s var(--ease);
}

.skills__stack-item:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 0 20px rgba(129, 140, 248, 0.15);
}

/* Tooltip */
.skills__stack-item {
    position: relative;
}

.skills__stack-item::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-size: 0.65rem;
    font-family: var(--font-mono);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s var(--ease);
    z-index: 10;
}

.skills__stack-item:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.skills__stack-item svg {
    width: 22px;
    height: 22px;
}

/* --- TIMELINE --- */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.timeline__item {
    position: relative;
    padding-left: 1.5rem;
}

.timeline__item::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 0.35rem;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    transform: translateX(-50%);
}

.timeline__year {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.05em;
}

.timeline__title {
    font-size: 0.92rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.timeline__sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.timeline__detail {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
    opacity: 0.7;
}

/* --- CERTIFICATIONS --- */
.certif-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.certif-item {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-left: 1rem;
    position: relative;
}

.certif-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
}

/* --- LANGUAGES --- */
.languages {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.lang-item {
    padding: 0.4rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* --- CONTACT --- */
.section--contact {
    min-height: 100vh;
}

.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 8rem);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.contact__heading {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.contact__sub {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact__socials {
    display: flex;
    gap: 1rem;
}

.contact__social {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: var(--text-muted);
    transition: all 0.3s var(--ease);
}

.contact__social:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-4px);
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Honeypot anti-spam — invisible */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.contact__field {
    position: relative;
}

.contact__field input,
.contact__field textarea {
    width: 100%;
    padding: 1.25rem 0 0.75rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
    resize: none;
}

.contact__field input:focus,
.contact__field textarea:focus {
    border-color: var(--accent);
    border-image: var(--gradient) 1;
    border-image-slice: 1;
}

.contact__field::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.5s var(--ease);
}

.contact__field:focus-within::after {
    width: 100%;
}

.contact__field label {
    position: absolute;
    left: 0;
    top: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.3s var(--ease);
}

.contact__field input:focus + label,
.contact__field input:not(:placeholder-shown) + label,
.contact__field textarea:focus + label,
.contact__field textarea:not(:placeholder-shown) + label {
    top: 0;
    font-size: 0.68rem;
    color: var(--accent);
    letter-spacing: 0.05em;
}

/* --- FOOTER --- */
.footer {
    padding: 3rem clamp(1.5rem, 6vw, 8rem);
    text-align: center;
}

.footer p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- SECTION NAV DOTS --- */
.section-nav {
    position: fixed;
    right: clamp(1rem, 2vw, 2rem);
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-nav__counter {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.section-nav__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    cursor: none;
    transition: all 0.4s var(--ease);
    position: relative;
}

.section-nav__dot.active {
    background: var(--accent);
    box-shadow: 0 0 12px rgba(129, 140, 248, 0.5);
    transform: scale(1.4);
}

.section-nav__dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.3);
}

/* --- MARQUEE --- */
.marquee {
    overflow: hidden;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.marquee__track {
    display: flex;
    gap: 0;
    white-space: nowrap;
    animation: marqueeScroll 25s linear infinite;
    width: max-content;
}

.marquee__item {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--text-muted);
    padding: 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s;
}

.marquee__item:hover {
    color: var(--accent);
}

.marquee__separator {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: rgba(255, 255, 255, 0.08);
    padding: 0 0.5rem;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.333%); }
}

/* --- SEPARATORS --- */
.separator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 clamp(1.5rem, 6vw, 8rem);
}

.separator__line {
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(129, 140, 248, 0.3), transparent);
    transition: width 1.5s var(--ease);
}

.separator__line.expanded {
    width: 100%;
}

/* --- SCROLL SPINE LINE --- */
.scroll-spine {
    position: fixed;
    left: 50%;
    top: 0;
    width: 1px;
    height: 100vh;
    z-index: 80;
    pointer-events: none;
    transform: translateX(-50%);
}

.scroll-spine__track {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
    position: relative;
}

.scroll-spine__fill {
    width: 100%;
    height: 0%;
    background: var(--gradient);
    border-radius: 0 0 2px 2px;
    transition: height 0.1s linear;
    box-shadow: 0 0 8px rgba(129, 140, 248, 0.3);
}

.scroll-spine__dot {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    transform: translate(-50%, 50%);
    box-shadow: 0 0 12px rgba(129, 140, 248, 0.6);
    transition: opacity 0.3s;
    opacity: 0;
}

.scroll-spine__dot.visible {
    opacity: 1;
}

/* --- PHOTO REVEAL MASK --- */
.about__photo-wrap {
    position: relative;
    overflow: hidden;
}

.about__photo-mask {
    position: absolute;
    inset: 0;
    background: var(--bg);
    z-index: 2;
    transform-origin: top;
    transform: scaleY(1);
}

/* --- QUOTE SECTION --- */
.section--quote {
    justify-content: center;
    min-height: 70vh;
}

.quote {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.quote__text {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.02em;
    font-style: italic;
    color: var(--text-muted);
}

.quote__text .word {
    display: inline-block;
    opacity: 0.1;
    transition: opacity 0.4s;
}

.quote__line {
    display: block;
    width: 0;
    height: 2px;
    background: var(--gradient);
    margin: 2rem auto;
    transition: width 1.2s var(--ease);
}

.quote__line.expanded {
    width: 80px;
}

.quote__cite {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-style: normal;
    opacity: 0;
    transition: opacity 0.8s 0.5s;
}

.quote__cite.visible {
    opacity: 1;
}

/* --- FOOTER ENHANCED --- */
.footer {
    padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 6vw, 8rem) 2rem;
    text-align: center;
}

.footer__big {
    margin-bottom: 4rem;
}

.footer__big-text {
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    letter-spacing: -0.04em;
}

.footer__big-text .footer-letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(60px) rotateX(40deg);
    transition: none;
}

.footer__big-text .footer-letter.visible {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
    transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__copy,
.footer__credit {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.footer__links {
    display: flex;
    gap: 1.5rem;
}

.footer__links a {
    font-size: 0.72rem;
    color: var(--text-muted);
    transition: color 0.3s;
    position: relative;
}

.footer__links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.4s var(--ease);
}

.footer__links a:hover {
    color: var(--accent);
}

.footer__links a:hover::after {
    width: 100%;
}


/* --- UNDERLINE SCROLL REVEAL --- */
.section-label {
    position: relative;
}

.section-label::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 1.5rem;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 1s var(--ease);
}

.section-label.underlined::after {
    width: calc(100% - 1.5rem);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .project {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
    }

    .project__visual {
        min-height: 40vh;
    }

    .project__slide {
        position: relative;
        width: 100%;
        transform: none;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .cursor {
        display: none;
    }

    .section-nav {
        display: none;
    }

    .scroll-spine {
        display: none;
    }

    .project-counter {
        display: none;
    }

    .section {
        padding: clamp(60px, 8vw, 80px) 1.25rem;
    }

    .about {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about__visual-col {
        order: -1;
    }

    .about__tags {
        justify-content: center;
    }

    .skills-section {
        grid-template-columns: 1fr;
    }

    .skills__domains {
        grid-template-columns: 1fr;
    }

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

    .contact__text-col {
        text-align: center;
    }

    .contact__socials {
        justify-content: center;
    }

    .project {
        grid-template-columns: 1fr;
        height: auto;
        min-height: auto;
    }

    .section--project {
        min-height: auto;
        padding: clamp(60px, 8vw, 80px) 1.25rem;
    }

    .project__info {
        padding: 0;
    }

    .project__visual {
        min-height: 30vh;
        border-radius: 16px;
        margin-top: 2rem;
    }

    .project__slide {
        display: none;
    }

    .project__number {
        font-size: 4rem;
    }

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

    .nav__toggle {
        cursor: auto;
    }

    .btn {
        cursor: auto;
    }
}

@media (max-width: 480px) {
    .hero__cta {
        flex-direction: column;
        align-items: center;
    }

    .about__stats {
        gap: 1.5rem;
    }

    .skills__stack-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
    }

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

    .footer__links {
        justify-content: center;
    }
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .hero__scroll-line {
        animation: none;
    }
}

/* ==========================================================================
   PROJECT DETAIL PAGE
   ========================================================================== */

.project-detail {
    max-width: 1000px;
    margin: 0 auto;
    padding: clamp(100px, 12vw, 140px) 1.5rem 4rem;
    position: relative;
    z-index: 1;
}

.project-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 3rem;
    transition: color 0.2s;
}

.project-back:hover {
    color: var(--text);
}

.project-back svg {
    width: 16px;
    height: 16px;
}

.project-header {
    margin-bottom: 3rem;
}

.project-header__id {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.project-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.project-header__sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 700px;
}

.project-tech-bar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.project-tech-bar span {
    padding: 0.35rem 0.9rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    font-size: 0.78rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.project-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
    margin: 2.5rem 0;
}

.project-stat-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.25rem;
    text-align: center;
}

.project-stat-card__value {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-mono);
    line-height: 1;
}

.project-stat-card__label {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.4rem;
}

.project-overview-block {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.project-overview-block p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.project-section-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-section-title::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.project-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.35s var(--ease);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.75rem;
    margin-bottom: 1.25rem;
}

.feature-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.feature-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.feature-highlight {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 500;
}

.project-archi-block {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.archi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.archi-item {
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
}

.archi-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.archi-value {
    font-size: 0.88rem;
    font-weight: 600;
}

.project-cta {
    text-align: center;
    padding: 3rem 0;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- 404 PAGE --- */
.page-404 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
}

.page-404__number {
    font-family: var(--font-display);
    font-size: clamp(6rem, 20vw, 12rem);
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.page-404__text {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

@media (max-width: 600px) {
    .project-features-grid {
        grid-template-columns: 1fr;
    }

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

    .project-overview-block,
    .project-archi-block {
        padding: 1.5rem;
    }
}
