/* ================================================================
   DANIEL ADEYI PORTFOLIO — PREMIUM DARK REDESIGN
   Inspired by: Linear.app, Basement.studio, Dribbble top shots
   Palette: Near-black · Acid green accent · Warm off-white text
   Fonts: Syne (headings) · DM Sans (body) · JetBrains Mono (labels)
================================================================ */

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

:root {
    /* Core palette */
    --bg: #0a0a0a;
    --bg-surface: #111111;
    --bg-card: #141414;
    --bg-card-hover: #181818;
    --border: #1f1f1f;
    --border-hover: #2e2e2e;

    /* Accent — acid green */
    --accent: #c8f542;
    --accent-dim: rgba(200, 245, 66, 0.10);
    --accent-glow: rgba(200, 245, 66, 0.22);

    /* Text hierarchy */
    --text: #f0ede6;
    --text-secondary: #7a7a72;
    --text-muted: #3d3d38;

    /* Typography */
    --font-display: 'Syne', system-ui, sans-serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;

    /* Spacing */
    --section-pad: clamp(5rem, 10vw, 9rem);
    --page-gutter: clamp(1.25rem, 5vw, 4rem);
    --max-w: 1160px;

    /* Motion */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

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

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

ul {
    list-style: none;
}

button {
    font: inherit;
    cursor: pointer;
}

.mono {
    font-family: var(--font-mono);
}

/* ────────────────────────────────────────────
   GRAIN / NOISE OVERLAY
──────────────────────────────────────────── */
.grain {
    position: fixed;
    inset: -50%;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 160px 160px;
    opacity: 0.028;
    pointer-events: none;
    z-index: 9999;
    animation: grainShift 0.4s steps(1) infinite;
}

@keyframes grainShift {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(-2%, -3%);
    }

    50% {
        transform: translate(3%, 2%);
    }

    75% {
        transform: translate(-1%, 4%);
    }

    100% {
        transform: translate(2%, -1%);
    }
}

/* ────────────────────────────────────────────
   CUSTOM CURSOR
──────────────────────────────────────────── */
.cursor-dot,
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    will-change: transform;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.cursor-ring {
    width: 34px;
    height: 34px;
    border: 1.5px solid rgba(200, 245, 66, 0.55);
    border-radius: 50%;
    transition: width 0.25s var(--ease-out-expo),
        height 0.25s var(--ease-out-expo),
        border-color 0.25s ease,
        background 0.25s ease;
}

.cursor-ring.ring--hover {
    width: 52px;
    height: 52px;
    background: var(--accent-dim);
    border-color: var(--accent);
}

@media (pointer: coarse) {

    .cursor-dot,
    .cursor-ring {
        display: none;
    }
}

/* ────────────────────────────────────────────
   HEADER / NAV
──────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 var(--page-gutter);
    transition: background 0.35s ease, border-color 0.35s ease, padding 0.35s ease;
}

.site-header.scrolled {
    background: #0a0a0a;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 2rem;
}

/* Brand */
.brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.04em;
    color: var(--accent);
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.brand:hover {
    opacity: 0.75;
}

/* Nav links — desktop */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--accent);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
}

/* Nav actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    background: var(--accent);
    color: #000;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 6px;
    transition: opacity 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

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

/* Hamburger */
.nav-close-item {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger span {
    display: block;
    height: 1.5px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s var(--ease-out-expo), opacity 0.2s ease, width 0.3s ease;
}

.hamburger span:first-child {
    width: 22px;
}

.hamburger span:last-child {
    width: 14px;
}

/* Mobile overlay backdrop */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.is-open {
    opacity: 1;
}

/* ────────────────────────────────────────────
   SECTIONS — BASE
──────────────────────────────────────────── */
.section {
    position: relative;
    width: 100%;
    padding: var(--section-pad) var(--page-gutter);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Floating section index number */
.section-index {
    position: absolute;
    top: var(--section-pad);
    left: var(--page-gutter);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    user-select: none;
}

/* Section header block */
.section-header {
    width: 100%;
    max-width: var(--max-w);
    margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.section-label {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.85;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.2rem, 5.5vw, 3.6rem);
    letter-spacing: -0.04em;
    line-height: 1.08;
    color: var(--text);
}

/* Thin horizontal rule separator */
.section+.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: var(--page-gutter);
    right: var(--page-gutter);
    height: 1px;
    background: var(--border);
}

/* ────────────────────────────────────────────
   SCROLL REVEAL ANIMATIONS
──────────────────────────────────────────── */
[data-animate] {
    opacity: 0;
    transition: opacity 0.7s var(--ease-out-expo),
        transform 0.7s var(--ease-out-expo);
}

[data-animate].visible {
    opacity: 1;
    transform: none !important;
}

[data-animate="fade-up"] {
    transform: translateY(28px);
}

[data-animate="fade-right"] {
    transform: translateX(-28px);
}

[data-animate="fade-left"] {
    transform: translateX(28px);
}

[data-animate="zoom-in"] {
    transform: scale(0.93);
}

/* ────────────────────────────────────────────
   01 — HERO SECTION
──────────────────────────────────────────── */
.hero-section {
    min-height: 100vh;
    padding-top: calc(var(--section-pad) + 68px);
    justify-content: center;
}

.hero-inner {
    width: 100%;
    max-width: var(--max-w);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

/* Left text */
.hero-text {
    flex: 1;
    max-width: 560px;
}

.hero-availability {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    margin-bottom: 1.8rem;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 0 var(--accent-glow);
    animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 var(--accent-glow);
    }

    60% {
        box-shadow: 0 0 0 8px transparent;
    }
}

.hero-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(3.5rem, 9vw, 7rem);
    letter-spacing: -0.04em;
    line-height: 0.95;
    color: var(--text);
    margin-bottom: 1.6rem;
}

.hero-role-line {
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 1.4rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.2rem;
}

.hero-im {
    color: var(--text-secondary);
}

.hero-role {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.hero-cursor {
    color: var(--accent);
    animation: blink 0.75s step-end infinite;
    font-weight: 300;
}

@keyframes blink {

    0%,
    49% {
        opacity: 1
    }

    50%,
    100% {
        opacity: 0
    }
}

.hero-bio {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 2.2rem;
    max-width: 440px;
    min-height: 80px;
}

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

/* CTA buttons */
.hero-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.6rem;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    opacity: 0.88;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(200, 245, 66, 0.25);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.73rem 1.5rem;
    border: 1px solid var(--border-hover);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn-ghost:hover {
    color: var(--text);
    border-color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
}

/* Right — photo */
.hero-visual {
    flex-shrink: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hero-img-frame {
    width: clamp(260px, 28vw, 360px);
    height: clamp(260px, 28vw, 360px);
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--border-hover);
    background: var(--bg-surface);
    position: relative;
}

.hero-img-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 28px;
    box-shadow: inset 0 0 0 1px rgba(200, 245, 66, 0.1);
    z-index: 1;
    pointer-events: none;
}

.hero-img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s var(--ease-out-expo);
}

.hero-img-frame:hover img {
    transform: scale(1.04);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.72rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: calc(var(--page-gutter) + 3rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--text-muted), transparent);
    transform-origin: top center;
    animation: scrollDrop 1.8s ease-in-out infinite;
}

@keyframes scrollDrop {
    0% {
        transform: scaleY(0);
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    60% {
        transform: scaleY(1);
        opacity: 1;
    }

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

/* ────────────────────────────────────────────
   02 — ABOUT / SERVICES
──────────────────────────────────────────── */
.about-section {
    background: var(--bg);
}

.services-grid {
    width: 100%;
    max-width: var(--max-w);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
}

.service-card {
    background: var(--bg-card);
    padding: 2.5rem;
    position: relative;
    transition: background 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
}

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

.service-num {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.service-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-dim);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent);
    transition: background 0.25s ease, transform 0.25s ease;
}

.service-card:hover .service-icon {
    background: rgba(200, 245, 66, 0.18);
    transform: scale(1.06);
}

.service-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.025em;
    line-height: 1.25;
    color: var(--text);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    flex-grow: 1;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    margin-top: 0.25rem;
}

.service-tags li {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.6rem;
    border: 1px solid var(--border-hover);
    border-radius: 4px;
    color: var(--text-muted);
}

/* ────────────────────────────────────────────
   03 — SKILLS TICKER
──────────────────────────────────────────── */
.skills-section {
    overflow: hidden;
    gap: 1.2rem;
}

.skills-section .section-header {
    margin-bottom: 0;
}

.ticker-outer {
    width: 100vw;
    overflow: hidden;
    padding: 0.5rem 0;
    /* Edge fade */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.ticker-track {
    display: flex;
    gap: 0;
    width: max-content;
}

.ticker-track--fwd {
    animation: tickerFwd 35s linear infinite;
}

.ticker-track--rev {
    animation: tickerRev 35s linear infinite;
}

@keyframes tickerFwd {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes tickerRev {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

.ticker-outer:hover .ticker-track--fwd,
.ticker-outer:hover .ticker-track--rev {
    animation-play-state: paused;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1.8rem;
    border-right: 1px solid var(--border);
    white-space: nowrap;
    transition: background 0.2s ease;
    cursor: default;
}

.ticker-item:hover {
    background: var(--bg-surface);
}

.ticker-item i {
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.ticker-item:hover i {
    transform: scale(1.15);
}

.ticker-item span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ────────────────────────────────────────────
   04 — PROJECTS
──────────────────────────────────────────── */
.projects-section {
    background: var(--bg);
}

.projects-grid {
    width: 100%;
    max-width: var(--max-w);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
}

.project-card {
    background: var(--bg-card);
    transition: background 0.25s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.project-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

/* Featured card spans 2 columns */
.project-card--featured {
    grid-column: span 2;
}

.project-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Image wrap */
.project-img-wrap {
    position: relative;
    overflow: hidden;
    background: #0e0e0e;
    aspect-ratio: 16/9;
}

.project-card--featured .project-img-wrap {
    aspect-ratio: 21/9;
}

.project-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s var(--ease-out-expo), filter 0.35s ease;
    filter: saturate(0.85) brightness(0.92);
}

.project-card:hover .project-img-wrap img {
    transform: scale(1.06);
    filter: saturate(1) brightness(1);
}

/* Overlay */
.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay span {
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid rgba(200, 245, 66, 0.4);
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
}

/* Card body */
.project-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex-grow: 1;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.project-num {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.project-tags span {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.55rem;
    border: 1px solid var(--border-hover);
    border-radius: 4px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.project-tags .tag-featured {
    border-color: rgba(200, 245, 66, 0.35);
    color: var(--accent);
    background: var(--accent-dim);
}

.project-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    color: var(--text);
    transition: color 0.2s ease;
    line-height: 1.3;
}

.project-card:hover h3 {
    color: var(--accent);
}

.project-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* Accent top-border on hover */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease-out-expo);
}

.project-card:hover::before {
    transform: scaleX(1);
}

/* ────────────────────────────────────────────
   05 — CONTACT
──────────────────────────────────────────── */
.contact-section {
    min-height: 80vh;
    justify-content: center;
}

.contact-inner {
    max-width: 720px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-heading {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    letter-spacing: -0.04em;
    line-height: 1.02;
    color: var(--text);
}

.accent-dot {
    color: var(--accent);
}

.contact-sub {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 520px;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 0.6rem;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.6rem;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    border-radius: 8px;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.3);
    color: #fff;
}

/* Social icons */
.social-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.social-link {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-hover);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: var(--text-secondary);
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
    color: var(--accent);
    border-color: rgba(200, 245, 66, 0.4);
    background: var(--accent-dim);
    transform: translateY(-2px);
}

/* ────────────────────────────────────────────
   FOOTER
──────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 1.75rem var(--page-gutter);
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

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

.footer-copy .mono {
    color: var(--text-secondary);
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-socials a {
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

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

/* ────────────────────────────────────────────
   SCROLL-TO-TOP FAB
──────────────────────────────────────────── */
.to-top-btn {
    position: fixed;
    right: 1.5rem;
    bottom: 1.75rem;
    width: 44px;
    height: 44px;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(200, 245, 66, 0.25);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.2s ease;
    z-index: 999;
}

.to-top-btn.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.to-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(200, 245, 66, 0.35);
}

/* ────────────────────────────────────────────
   RESPONSIVE — Tablet ≤ 1024px
──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-card--featured {
        grid-column: span 2;
    }
}

/* ────────────────────────────────────────────
   RESPONSIVE — Mobile nav ≤ 860px
──────────────────────────────────────────── */
@media (max-width: 860px) {
    .hamburger {
        display: flex;
    }

    .nav-overlay {
        display: block;
        pointer-events: none;
    }

    .nav-overlay.is-open {
        pointer-events: auto;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(80vw, 280px);
        background: #111111;
        border-left: 1px solid var(--border);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 1.5rem 2rem;
        gap: 0.25rem;
        transform: translateX(100%);
        transition: transform 0.35s var(--ease-out-expo);
        z-index: 1000;
        visibility: hidden;
    }

    .nav-links.is-open {
        transform: translateX(0);
        visibility: visible;
    }

    .nav-close-item {
        display: flex;
        justify-content: flex-end;
        padding: 0 0.1rem;
        margin-bottom: 0.75rem;
    }

    .nav-close-btn {
        background: none;
        border: 1px solid var(--border-hover);
        color: var(--text-secondary);
        width: 36px;
        height: 36px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        cursor: pointer;
        transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    }

    .nav-close-btn:hover {
        color: var(--text);
        border-color: var(--accent);
        background: var(--accent-dim);
    }

    .nav-link {
        width: 100%;
        font-size: 1.05rem;
        padding: 0.65rem 0.75rem;
    }

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

    .hero-inner {
        flex-direction: column-reverse;
        gap: 2.5rem;
        text-align: center;
    }

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

    .hero-bio {
        margin: 0 auto 2rem;
    }

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

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

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

    .hero-visual {
        align-items: center;
    }

    .scroll-hint {
        display: none;
    }

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

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

    .project-card--featured {
        grid-column: span 1;
    }

    .project-card--featured .project-img-wrap {
        aspect-ratio: 16/9;
    }

    .section-index {
        display: none;
    }
}

/* ────────────────────────────────────────────
   RESPONSIVE — Small mobile ≤ 520px
──────────────────────────────────────────── */
@media (max-width: 520px) {
    :root {
        --section-pad: 4rem;
        --page-gutter: 1.25rem;
    }

    .hero-name {
        font-size: 3rem;
    }

    .contact-heading {
        font-size: 2.5rem;
    }

    .ticker-item {
        padding: 0.6rem 1.2rem;
    }

    .ticker-item i {
        font-size: 1.25rem;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .to-top-btn {
        right: 1rem;
        bottom: 1rem;
    }
}