/* =========================================
   TORO-OBONG EMMANUEL HANSON
   PREMIUM PORTFOLIO — "GRAPHICS VIBE" REVAMP
   ========================================= */


/* ---------- RESET ---------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

::selection {
    background: var(--accent);
    color: #0a0a0b;
}


/* ---------- VARIABLES ---------- */

:root {
    --bg: #0a0a0b;
    --bg-soft: #121214;
    --surface: #17171a;
    --surface-2: #1e1e22;
    --text: #f2f1ee;
    --muted: #9a9a9f;
    --faint: #6a6a70;
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.16);

    --accent: #c6ff3a;
    --accent-2: #7c5cff;
    --accent-3: #22d3ee;
    --accent-4: #ff4d8d;

    --grad: linear-gradient(120deg, var(--accent) 0%, var(--accent-3) 50%, var(--accent-2) 100%);
    --grad-warm: linear-gradient(120deg, var(--accent-4), var(--accent-2));

    --heading-font: "Playfair Display", serif;
    --body-font: "DM Sans", sans-serif;
    --mono-font: "Space Grotesk", sans-serif;

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


/* ---------- GRAIN / NOISE ---------- */

.grain {
    position: fixed;
    inset: -50%;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grainShift 0.6s steps(2) infinite;
}

@keyframes grainShift {
    0% { transform: translate(0, 0); }
    50% { transform: translate(-4%, 3%); }
    100% { transform: translate(3%, -2%); }
}


/* ---------- CUSTOM CURSOR ---------- */

.cursor-dot {
    position: fixed;
    top: 0; left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 35px; height: 35px;
    background: #fff;
}

body.cursor-ready { cursor: none; }
body.cursor-ready a,
body.cursor-ready button { cursor: none; }


/* ---------- PRELOADER ---------- */

.preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s var(--ease), visibility 0.6s;
}

.preloader.is-done {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    text-align: center;
    width: min(320px, 70vw);
}

.preloader-mark {
    font-family: var(--heading-font);
    font-size: 54px;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 26px;
}

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

.preloader-bar {
    height: 2px;
    width: 100%;
    background: var(--border);
    overflow: hidden;
    border-radius: 2px;
}

.preloader-bar span {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--grad);
}

.preloader-count {
    margin-top: 16px;
    font-family: var(--mono-font);
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--muted);
}


/* ---------- SCROLL PROGRESS ---------- */

.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: var(--grad);
    z-index: 9997;
    box-shadow: 0 0 14px rgba(198, 255, 58, 0.6);
}


/* ---------- NAVIGATION ---------- */

.navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    padding: 24px 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 900;
    transition: padding 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 15px 6%;
    background: rgba(10, 10, 11, 0.72);
    backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -1px;
    z-index: 2;
}

.logo span, .footer-logo span { color: var(--accent); }

.nav-links {
    display: flex;
    gap: 34px;
    padding: 10px 24px;
    border: 1px solid var(--border);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
}

.nav-link {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--muted);
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0; bottom: -5px;
    width: 0; height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.3s var(--ease);
}

.nav-link:hover,
.nav-link.is-active { color: var(--text); }
.nav-link:hover::after,
.nav-link.is-active::after { width: 100%; }

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

.nav-button {
    padding: 12px 24px;
    background: var(--accent);
    color: #0a0a0b;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.nav-button:hover {
    box-shadow: 0 10px 30px rgba(198, 255, 58, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 44px; height: 44px;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-toggle span {
    width: 20px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.3s var(--ease);
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }


/* ---------- MOBILE MENU OVERLAY ---------- */

.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 899;
    background: var(--bg-soft);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 8%;
    clip-path: circle(0% at 90% 5%);
    transition: clip-path 0.6s var(--ease);
    pointer-events: none;
}

.menu-overlay.is-open {
    clip-path: circle(150% at 90% 5%);
    pointer-events: auto;
}

.menu-overlay-nav { display: flex; flex-direction: column; gap: 6px; }

.menu-overlay-nav a {
    font-family: var(--heading-font);
    font-size: clamp(38px, 11vw, 70px);
    font-weight: 600;
    letter-spacing: -2px;
    display: flex;
    align-items: baseline;
    gap: 18px;
    transition: color 0.3s ease, transform 0.3s var(--ease);
}

.menu-overlay-nav a span {
    font-family: var(--mono-font);
    font-size: 14px;
    letter-spacing: 1px;
    color: var(--accent);
}

.menu-overlay-nav a:hover { color: var(--accent); transform: translateX(12px); }

.menu-overlay-footer {
    display: flex;
    gap: 26px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.menu-overlay-footer a {
    font-size: 14px;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    padding-bottom: 3px;
}

.menu-overlay-footer a:hover { color: var(--text); }


/* ---------- HERO ---------- */

.hero {
    min-height: 100vh;
    padding: 160px 6% 100px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero-background-slideshow { position: absolute; inset: 0; z-index: 0; }

.hero-background-slideshow img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.08);
    filter: grayscale(0.4) brightness(0.5) contrast(1.05);
    transition: opacity 1.4s ease, transform 7s ease;
}

.hero-background-slideshow img.is-active { opacity: 0.22; transform: scale(1); }

#tech-background {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        radial-gradient(90% 70% at 80% 10%, transparent 40%, rgba(10,10,11,0.75) 100%),
        linear-gradient(180deg, transparent 55%, var(--bg) 100%);
    pointer-events: none;
}

/* aurora blobs */
.aurora {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    filter: blur(60px);
}

.blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
    mix-blend-mode: screen;
}

.blob-1 { width: 46vw; height: 46vw; left: -6vw; top: -8vw; background: radial-gradient(circle, rgba(124,92,255,0.9), transparent 65%); animation: float1 16s ease-in-out infinite; }
.blob-2 { width: 40vw; height: 40vw; right: -8vw; top: 4vw; background: radial-gradient(circle, rgba(34,211,238,0.75), transparent 65%); animation: float2 20s ease-in-out infinite; }
.blob-3 { width: 36vw; height: 36vw; left: 28vw; bottom: -14vw; background: radial-gradient(circle, rgba(198,255,58,0.55), transparent 65%); animation: float3 18s ease-in-out infinite; }

@keyframes float1 { 0%,100%{transform:translate(0,0) scale(1);} 50%{transform:translate(6vw,4vw) scale(1.1);} }
@keyframes float2 { 0%,100%{transform:translate(0,0) scale(1);} 50%{transform:translate(-5vw,6vw) scale(1.15);} }
@keyframes float3 { 0%,100%{transform:translate(0,0) scale(1);} 50%{transform:translate(4vw,-5vw) scale(1.08);} }

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1050px;
    width: 100%;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    border: 1px solid var(--border-strong);
    border-radius: 50px;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(8px);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 28px;
}

.status-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(198,255,58,0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%{box-shadow:0 0 0 0 rgba(198,255,58,0.6);}
    70%{box-shadow:0 0 0 10px rgba(198,255,58,0);}
    100%{box-shadow:0 0 0 0 rgba(198,255,58,0);}
}

.eyebrow {
    font-family: var(--mono-font);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 26px;
    color: var(--muted);
}
.eyebrow span { color: var(--accent); }

.hero h1 {
    font-family: var(--heading-font);
    font-size: clamp(48px, 7.2vw, 108px);
    line-height: 0.98;
    letter-spacing: -3px;
    font-weight: 700;
}

.hero h1 em { font-style: italic; font-weight: 500; color: var(--accent); }

.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
    font-weight: 600;
}

.hero-description {
    max-width: 560px;
    margin-top: 34px;
    font-size: 17.5px;
    color: var(--muted);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 40px;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
    will-change: transform;
}

.button svg { width: 18px; height: 18px; }

.button-accent {
    background: var(--accent);
    color: #0a0a0b;
}
.button-accent:hover { box-shadow: 0 14px 38px rgba(198, 255, 58, 0.32); }

.button-ghost {
    border: 1px solid var(--border-strong);
    color: var(--text);
    background: rgba(255,255,255,0.02);
}
.button-ghost:hover { background: var(--text); color: #0a0a0b; border-color: var(--text); }

.hero-stats {
    display: flex;
    gap: 50px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.stat { display: flex; align-items: center; gap: 14px; }

.stat-num {
    font-family: var(--heading-font);
    font-size: 46px;
    font-weight: 700;
    line-height: 1;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 1.35;
}

.hero-number {
    position: absolute;
    right: 6%;
    bottom: 60px;
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 3;
    color: var(--text);
}

.hero-number span { font-family: var(--heading-font); font-size: 40px; color: var(--accent); }
.hero-number p { font-family: var(--mono-font); font-size: 9px; letter-spacing: 2px; line-height: 1.4; color: var(--muted); }

.scroll-cue {
    position: absolute;
    left: 6%;
    bottom: 48px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: var(--mono-font);
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--muted);
}

.scroll-cue-line {
    width: 1px; height: 46px;
    background: linear-gradient(var(--accent), transparent);
    position: relative;
    overflow: hidden;
}
.scroll-cue-line::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 40%;
    background: var(--accent);
    animation: scrollDown 1.8s var(--ease) infinite;
}
@keyframes scrollDown { 0%{transform:translateY(-100%);} 100%{transform:translateY(300%);} }


/* ---------- MARQUEE ---------- */

.marquee {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-soft);
    overflow: hidden;
    padding: 26px 0;
}

.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-group { display: flex; align-items: center; }

.marquee-group span {
    font-family: var(--heading-font);
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -1px;
    padding: 0 26px;
    color: var(--text);
    white-space: nowrap;
}

.marquee-group i { color: var(--accent); font-style: normal; font-size: 16px; }

@keyframes marquee { from{transform:translateX(0);} to{transform:translateX(-50%);} }


/* ---------- SECTION LABEL ---------- */

.section-label {
    display: inline-flex;
    gap: 14px;
    align-items: center;
    font-family: var(--mono-font);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--muted);
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 50px;
}

.section-label span { color: var(--accent); font-size: 13px; }


/* ---------- ABOUT ---------- */

.about { padding: 150px 6%; position: relative; }

.about-layout {
    display: grid;
    grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
    gap: 70px;
    align-items: start;
    margin-top: 60px;
}

.about-photo {
    position: relative;
    min-height: 500px;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: linear-gradient(145deg, var(--surface), var(--bg-soft));
    transform-style: preserve-3d;
}

.about-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 30px;
    background: var(--grad);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.6;
    z-index: 3;
    pointer-events: none;
}

.about-photo img { width: 100%; height: 100%; object-fit: cover; }

.about-photo-badge {
    position: absolute;
    left: 16px; bottom: 16px;
    z-index: 4;
    padding: 12px 18px;
    border-radius: 16px;
    background: rgba(10,10,11,0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-strong);
}
.about-photo-badge strong { display: block; font-family: var(--heading-font); font-size: 20px; }
.about-photo-badge strong { color: var(--accent); }
.about-photo-badge span { font-size: 11px; color: var(--muted); letter-spacing: 1px; }

.about-content { max-width: 760px; }

.about h2 {
    font-family: var(--heading-font);
    font-size: clamp(40px, 5.5vw, 76px);
    line-height: 1.04;
    letter-spacing: -2px;
    margin-bottom: 34px;
    font-weight: 700;
}
.about h2 em { font-style: italic; color: var(--accent); font-weight: 500; }

.about p { font-size: 17px; color: var(--muted); margin-bottom: 20px; }

.about-skills { margin-top: 38px; display: grid; gap: 20px; max-width: 520px; }

.skill-top {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 9px;
    letter-spacing: 0.5px;
}
.skill-top em { color: var(--accent); font-style: normal; font-family: var(--mono-font); }

.skill-bar { height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.skill-bar i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 6px;
    background: var(--grad);
    transition: width 1.3s var(--ease);
}
.skill-bar.is-visible i { width: var(--w); }

.about-buttons { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 40px; }


/* ---------- SERVICES ---------- */

.services {
    padding: 150px 6%;
    background:
        radial-gradient(60% 40% at 50% 0%, rgba(124,92,255,0.12), transparent 70%),
        var(--bg-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-label.light { color: var(--muted); }

.services-heading { margin: 50px 0 60px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }

.services-heading h2 {
    font-family: var(--heading-font);
    font-size: clamp(50px, 7vw, 100px);
    line-height: 1;
    letter-spacing: -3px;
    font-weight: 700;
}
.services-heading h2 em { font-style: italic; color: var(--accent); font-weight: 500; }
.services-heading p { max-width: 340px; color: var(--muted); font-size: 16px; }

.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.service-card {
    position: relative;
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: linear-gradient(160deg, var(--surface), var(--bg-soft));
    overflow: hidden;
    transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
    transform-style: preserve-3d;
}

.service-card:hover { border-color: var(--border-strong); }

.service-glow {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(198,255,58,0.16), transparent 60%);
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.service-card:hover .service-glow { opacity: 1; }

.service-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.service-num { font-family: var(--mono-font); font-size: 13px; letter-spacing: 2px; color: var(--faint); }
.service-icon {
    font-size: 22px;
    color: var(--accent);
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    transition: transform 0.4s var(--ease);
}
.service-card:hover .service-icon { transform: rotate(10deg) scale(1.08); }

.service-card h3 {
    font-family: var(--heading-font);
    font-size: 30px;
    margin-bottom: 14px;
    font-weight: 600;
}
.service-card p { color: var(--muted); font-size: 15px; max-width: 420px; }


/* ---------- WORK ---------- */

.work { padding: 150px 6%; }

.work-heading { margin: 50px 0 60px; }
.work-heading h2 {
    font-family: var(--heading-font);
    font-size: clamp(44px, 6vw, 86px);
    line-height: 1;
    letter-spacing: -3px;
    max-width: 850px;
    font-weight: 700;
}
.work-heading h2 em { font-style: italic; color: var(--accent); font-weight: 500; }

.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 60px 30px; }

.project-media {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.project-image {
    aspect-ratio: 4 / 3;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-image.is-clickable { cursor: pointer; }
.project-image.is-clickable:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.project:hover .project-image img { transform: scale(1.06); }

.project-tag {
    position: absolute;
    top: 16px; left: 16px;
    padding: 7px 14px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 50px;
    background: rgba(10,10,11,0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-strong);
    color: var(--text);
    z-index: 2;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.gallery-item { padding: 0; border: 0; background: transparent; cursor: pointer; }

.gallery-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--border);
    filter: grayscale(0.4) brightness(0.85);
    opacity: 0.75;
    transform: translateY(10px) scale(0.96);
    transition: transform 0.45s var(--ease), opacity 0.45s var(--ease), filter 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.gallery-item:nth-child(2) img { transition-delay: 0.04s; }
.gallery-item:nth-child(3) img { transition-delay: 0.08s; }
.gallery-item:nth-child(4) img { transition-delay: 0.12s; }
.gallery-item:nth-child(5) img { transition-delay: 0.16s; }

.project:hover .gallery-item img,
.gallery-item:hover img,
.gallery-item:focus-visible img {
    opacity: 1;
    filter: grayscale(0) brightness(1);
    transform: translateY(0) scale(1);
    box-shadow: 0 16px 34px rgba(0,0,0,0.45);
}

.gallery-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 14px; }

.project-info {
    padding-top: 22px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.project-info h3 { font-family: var(--heading-font); font-size: 27px; font-weight: 600; }
.project-info p { margin-top: 5px; font-size: 13px; color: var(--muted); letter-spacing: 0.5px; }

.project-arrow {
    flex-shrink: 0;
    width: 50px; height: 50px;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.project-arrow svg { width: 20px; height: 20px; }
.project-arrow:hover,
.project-arrow:focus-visible { background: var(--accent); color: #0a0a0b; transform: rotate(-45deg) translateY(-2px); }
.project-arrow:disabled { cursor: not-allowed; opacity: 0.3; }


/* ---------- UI / UX ---------- */

.ui {
    padding: 150px 6%;
    background:
        radial-gradient(55% 40% at 80% 0%, rgba(34, 211, 238, 0.10), transparent 70%),
        var(--bg);
    border-top: 1px solid var(--border);
}

.ui-heading { margin: 50px 0 60px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }

.ui-heading h2 {
    font-family: var(--heading-font);
    font-size: clamp(44px, 6vw, 86px);
    line-height: 1;
    letter-spacing: -3px;
    font-weight: 700;
    max-width: 760px;
}
.ui-heading h2 em { font-style: italic; color: var(--accent); font-weight: 500; }
.ui-heading p { max-width: 340px; color: var(--muted); font-size: 16px; }

.ui-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.ui-card.is-featured { grid-column: 1 / -1; }

.ui-frame {
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(160deg, var(--surface), var(--bg-soft));
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
    transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}

.ui-card:hover .ui-frame { transform: translateY(-6px); border-color: var(--border-strong); }

.ui-frame-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 18px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border);
}

.ui-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--surface-2); }
.ui-dot:nth-child(1) { background: #ff5f57; }
.ui-dot:nth-child(2) { background: #febc2e; }
.ui-dot:nth-child(3) { background: #28c840; }

.ui-frame-url {
    margin-left: 14px;
    font-family: var(--mono-font);
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--faint);
    padding: 4px 16px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
}

.ui-frame-screen {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
}

/* Featured (full-width) showcase keeps the dashboard's real proportions */
.ui-card.is-featured .ui-frame-screen { aspect-ratio: 1366 / 641; }

.ui-frame-screen video,
.ui-frame-screen img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.ui-info {
    padding-top: 22px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.ui-info h3 { font-family: var(--heading-font); font-size: 27px; font-weight: 600; }
.ui-info p { margin-top: 5px; font-size: 13px; color: var(--muted); letter-spacing: 0.5px; }

.ui-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 50px;
    color: var(--accent);
    border: 1px solid var(--border-strong);
    background: rgba(198, 255, 58, 0.06);
}


/* ---------- CONTACT ---------- */

.contact {
    padding: 160px 6%;
    position: relative;
    overflow: hidden;
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    text-align: center;
    isolation: isolate;
}

.contact-aurora { filter: blur(80px); opacity: 0.55; }
.contact-aurora .blob-1 { width: 50vw; height: 50vw; left: -10vw; top: 10vw; }
.contact-aurora .blob-2 { width: 44vw; height: 44vw; right: -10vw; bottom: -10vw; }

.contact .section-label { margin: 0 auto; }

.contact-content { position: relative; z-index: 2; margin-top: 50px; }

.contact .eyebrow { color: var(--muted); }

.contact h2 {
    font-family: var(--heading-font);
    font-size: clamp(50px, 9vw, 120px);
    line-height: 0.95;
    letter-spacing: -4px;
    max-width: 1000px;
    margin: 18px auto 44px;
    font-weight: 700;
}
.contact h2 em { font-style: italic; color: var(--accent); font-weight: 500; }

.contact-email {
    display: inline-block;
    font-size: clamp(20px, 3.4vw, 38px);
    font-family: var(--heading-font);
    position: relative;
    padding-bottom: 8px;
}
.contact-email::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 2px;
    background: var(--grad);
    transform: scaleX(0.3);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}
.contact-email:hover::after { transform: scaleX(1); }

.contact-socials {
    display: flex;
    gap: 26px;
    justify-content: center;
    margin-top: 48px;
    flex-wrap: wrap;
}
.contact-socials a {
    font-size: 14px;
    color: var(--muted);
    padding: 10px 22px;
    border: 1px solid var(--border);
    border-radius: 50px;
    transition: 0.3s var(--ease);
}
.contact-socials a:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-2px); }


/* ---------- FOOTER ---------- */

footer {
    padding: 44px 6%;
    background: var(--bg);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-logo { font-family: var(--heading-font); font-size: 26px; font-weight: 700; }
footer p { color: var(--faint); font-size: 12.5px; }

.social-links { display: flex; gap: 22px; flex-wrap: wrap; }
.social-links a { font-size: 12.5px; color: var(--muted); }
.social-links a:hover { color: var(--accent); }


/* ---------- IMAGE LIGHTBOX ---------- */

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6%;
    background: rgba(5, 5, 6, 0.9);
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(14px);
    transition: opacity 0.35s var(--ease);
}
.image-lightbox.is-open { opacity: 1; pointer-events: auto; }

.lightbox-image {
    max-width: min(100%, 960px);
    max-height: 84vh;
    border-radius: 20px;
    border: 1px solid var(--border-strong);
    box-shadow: 0 40px 90px rgba(0,0,0,0.6);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s var(--ease);
}
.image-lightbox.is-open .lightbox-image { transform: translateY(0) scale(1); }

.lightbox-close {
    position: absolute;
    top: 28px; right: 6%;
    padding: 12px 20px;
    border: 1px solid var(--border-strong);
    border-radius: 50px;
    background: rgba(255,255,255,0.08);
    color: var(--text);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: 0.3s var(--ease);
}
.lightbox-close:hover { background: var(--accent); color: #0a0a0b; }

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 54px; height: 54px;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: var(--text);
    cursor: pointer;
    font-size: 22px;
    transform: translateY(-50%);
    transition: 0.3s var(--ease);
}
.lightbox-nav:hover { background: var(--accent); color: #0a0a0b; }
.lightbox-prev { left: 4%; }
.lightbox-next { right: 4%; }
.lightbox-nav[hidden] { display: none; }


/* ---------- SCROLL REVEAL ---------- */

[data-reveal] {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }


/* ---------- RESPONSIVE ---------- */

@media (max-width: 1000px) {
    .services-grid { gap: 18px; }
    .about-layout { gap: 50px; }
}

@media (max-width: 860px) {

    body { cursor: auto !important; }
    .cursor-dot { display: none; }

    .nav-links { display: none; }
    .nav-button { display: none; }
    .nav-toggle { display: flex; }

    .hero { padding: 140px 6% 90px; min-height: auto; }
    .hero h1 { letter-spacing: -2px; }
    .h1-break { display: none; }
    .hero-number { display: none; }
    .scroll-cue { display: none; }
    .hero-stats { gap: 30px; margin-top: 46px; }
    .stat-num { font-size: 38px; }

    .about, .services, .work, .contact { padding: 100px 6%; }
    .about-layout { grid-template-columns: 1fr; gap: 40px; margin-top: 40px; }
    .about-photo { min-height: 420px; }

    .services-grid { grid-template-columns: 1fr; }
    .service-card { padding: 32px; }

    .portfolio-grid { grid-template-columns: 1fr; gap: 50px; }
    .project-gallery { grid-template-columns: repeat(3, 1fr); }

    .ui-grid { grid-template-columns: 1fr; gap: 24px; }

    footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .marquee-group span { font-size: 24px; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .hero-buttons .button { justify-content: center; }
    .project-gallery { grid-template-columns: repeat(2, 1fr); }
}


/* ---------- REDUCED MOTION ---------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .hero-background-slideshow img { transition: none; }
    [data-reveal] { opacity: 1; transform: none; }
}
