/* ============================================================
   SimplyBeario Portfolio — style.css
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
    /* Colours */
    --bg:           #07080d;
    --bg-2:         #0c0e18;
    --bg-card:      #0f1220;
    --bg-card-h:    #131729;
    --accent:       #00c8ff;
    --accent-dim:   rgba(0, 200, 255, 0.08);
    --accent-glow:  rgba(0, 200, 255, 0.18);
    --purple:       #8b5cf6;
    --purple-dim:   rgba(139, 92, 246, 0.08);
    --green:        #22c55e;
    --red:          #ef4444;

    /* Text */
    --text:         #dde4f0;
    --text-2:       #8b97ad;
    --text-muted:   #4a5568;

    /* Borders */
    --border:       rgba(255, 255, 255, 0.05);
    --border-acc:   rgba(0, 200, 255, 0.2);

    /* Spacing */
    --gap:          clamp(1rem, 3vw, 2rem);
    --section-gap:  clamp(5rem, 10vw, 8rem);

    /* Radius */
    --r-sm:   6px;
    --r-md:  12px;
    --r-lg:  20px;

    /* Transitions */
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Nav height */
    --nav-h: 64px;
}

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

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Space Grotesk', system-ui, sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
strong { font-weight: 600; color: var(--text); }
em { font-style: italic; color: var(--text-2); }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3 { font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
p { color: var(--text-2); }

/* ── Utility ────────────────────────────────────────────────── */
.container {
    width: min(1140px, 100% - 2 * var(--gap));
    margin-inline: auto;
}

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

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

#loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.loader-logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.1em;
    animation: pulse-logo 1.5s ease-in-out infinite;
}

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

.loader-track {
    width: 200px;
    height: 2px;
    background: var(--border);
    border-radius: 99px;
    overflow: hidden;
}

.loader-fill {
    height: 100%;
    background: var(--accent);
    animation: loader-sweep 1.6s var(--ease) forwards;
}

@keyframes loader-sweep {
    from { width: 0%; }
    to   { width: 100%; }
}

.loader-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

/* ── Navigation ─────────────────────────────────────────────── */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-h);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(7, 8, 13, 0.85);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

#navbar.scrolled {
    border-color: var(--border);
    background: rgba(7, 8, 13, 0.95);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: min(1140px, 100% - 2 * var(--gap));
    margin-inline: auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.01em;
    transition: color 0.2s;
}

.nav-logo:hover { color: var(--accent); }
.logo-img {
    height: 28px;
    width: auto;
    display: block;
    filter: brightness(1);
    transition: filter 0.2s;
}

.footer-brand .logo-img { height: 24px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    padding: 0.45rem 0.85rem;
    border-radius: var(--r-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-2);
    transition: color 0.2s, background 0.2s;
}

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

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

.nav-cta {
    background: var(--accent-dim);
    color: var(--accent) !important;
    border: 1px solid var(--border-acc);
    transition: background 0.2s, box-shadow 0.2s !important;
}

.nav-cta:hover {
    background: rgba(0, 200, 255, 0.15) !important;
    box-shadow: 0 0 14px var(--accent-glow);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    width: 38px;
}

.ham-line {
    display: block;
    height: 2px;
    background: var(--text-2);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s;
}

.hamburger.open .ham-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open .ham-line:nth-child(2) { opacity: 0; }
.hamburger.open .ham-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ───────────────────────────────────────────────────── */
#hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--nav-h);
}

#particle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--gap);
    max-width: 780px;
}

/* Available badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.07);
    border-radius: 99px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--green);
    margin-bottom: 1.4rem;
    letter-spacing: 0.01em;
}

.badge-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    animation: badge-ring 2s ease-in-out infinite;
}

@keyframes badge-ring {
    0%  { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100%{ box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero-name {
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.hero-role {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 500;
    color: var(--text-2);
    margin-bottom: 0.8rem;
    min-height: 2em;
}

.typed-word {
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
}

.type-cursor {
    color: var(--accent);
    font-weight: 400;
    animation: blink 0.9s step-end infinite;
}

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

.hero-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.75rem;
    border-radius: var(--r-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s var(--ease);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #07080d;
    box-shadow: 0 0 20px rgba(0, 200, 255, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 0 32px rgba(0, 200, 255, 0.45);
    transform: translateY(-2px);
}

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

.btn-ghost:hover {
    border-color: var(--border-acc);
    color: var(--text);
    background: var(--accent-dim);
    transform: translateY(-2px);
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 1;
    animation: float 3s ease-in-out infinite;
}

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

.scroll-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.scroll-bar {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    border-radius: 1px;
}

/* ── Scroll Reveal ──────────────────────────────────────────── */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Section Shared ─────────────────────────────────────────── */
section {
    padding-block: var(--section-gap);
}

.section-head {
    margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section-tag {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.section-head h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--text);
}

.section-intro {
    font-size: 1.05rem;
    max-width: 640px;
    margin-bottom: 2.5rem;
}

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

.about-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
}

/* Left: profile panel */
.about-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    position: sticky;
    top: calc(var(--nav-h) + 2rem);
}

.avatar-frame {
    width: 100%;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(0,200,255,0.05), 0 12px 40px rgba(0,0,0,0.5);
    transition: box-shadow 0.3s, border-color 0.3s;
}

.avatar-frame:hover {
    border-color: var(--border-acc);
    box-shadow: 0 0 0 4px rgba(0,200,255,0.1), 0 12px 48px rgba(0,200,255,0.12);
}

.avatar-frame img {
    width: 100%;
    display: block;
}

.avatar-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
    text-align: center;
    margin-top: 0.25rem;
}

.avatar-sub {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

/* Stats inside profile panel */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    width: 100%;
    margin-top: 0.5rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 0.9rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.15rem;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.stat-card:hover {
    border-color: var(--border-acc);
    box-shadow: 0 0 16px var(--accent-glow);
}

.stat-val {
    display: flex;
    align-items: flex-start;
    line-height: 1;
    gap: 1px;
}

.stat-num {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    line-height: 1;
}

.stat-sfx {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    line-height: 1;
    margin-top: 0.15rem;
}

.stat-lbl {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-top: 0.3rem;
}

/* Right: bio + why */
.about-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-copy p {
    margin-bottom: 1rem;
    font-size: 1.02rem;
    line-height: 1.85;
}

.about-copy p:last-child { margin-bottom: 0; }

/* Why hire card */
.why-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.5rem 1.75rem;
}

.why-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1.1rem;
    letter-spacing: 0;
}

.why-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.why-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    font-size: 0.93rem;
    color: var(--text-2);
    line-height: 1.6;
}

.why-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 0.2rem;
    background: var(--accent-dim);
    border: 1px solid var(--border-acc);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

/* ── Skills ─────────────────────────────────────────────────── */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
}

.skill-card:hover {
    border-color: var(--border-acc);
    box-shadow: 0 4px 30px var(--accent-glow);
    transform: translateY(-4px);
}

.skill-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-dim);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    padding: 10px;
    flex-shrink: 0;
}

.skill-icon svg { width: 100%; height: 100%; }

/* Primary/specialisation card */
.skill-card--primary {
    border-color: var(--border-acc);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0,200,255,0.04) 100%);
}

.skill-primary-badge {
    display: inline-flex;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid var(--border-acc);
    padding: 0.2rem 0.55rem;
    border-radius: 99px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.skill-card h3 {
    font-size: 1.05rem;
    color: var(--text);
    font-weight: 600;
    letter-spacing: 0;
}

.skill-card p {
    font-size: 0.9rem;
    line-height: 1.65;
    flex: 1;
}


/* ── Projects ───────────────────────────────────────────────── */
#projects { background: var(--bg-2); }

.project-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    margin-bottom: 2rem;
    transition: border-color 0.3s;
}

.project-block:last-child { margin-bottom: 0; }

.project-block:hover { border-color: var(--border-acc); }

.project-info {
    padding: clamp(1.5rem, 3vw, 2rem);
    border-bottom: 1px solid var(--border);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.tag {
    font-size: 0.75rem;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid var(--border-acc);
    padding: 0.25rem 0.65rem;
    border-radius: 99px;
    letter-spacing: 0.03em;
}

.project-name {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    color: var(--text);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.project-trophy { margin-right: 0.3rem; }

.tag-wip {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.3);
}

.project-sub {
    font-size: 0.9em;
    font-weight: 400;
    color: var(--text-muted);
}

.project-desc {
    font-size: 0.97rem;
    line-height: 1.8;
    max-width: 72ch;
}

/* Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
    gap: 0;
}

.gal-item {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    cursor: default;
}

.gal-item:last-child,
.gal-item:nth-child(4n) { border-right: none; }

.gal-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease);
    z-index: 1;
}

.gal-item:hover img { transform: scale(1.06); }

.gal-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(
        45deg,
        rgba(255,255,255,0.015) 0px,
        rgba(255,255,255,0.015) 1px,
        transparent 1px,
        transparent 20px
    );
    z-index: 0;
}

.gal-placeholder span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* When image loads successfully, hide placeholder */
.gal-item img:not([src=""]) + .gal-placeholder { display: none; }

/* ── Gallery Trigger Button ─────────────────────────────────── */
.gallery-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.58rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--text-2);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.25s var(--ease),
                color       0.25s var(--ease),
                background  0.25s var(--ease),
                box-shadow  0.25s var(--ease),
                transform   0.25s var(--ease);
}

.gallery-trigger svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    transition: transform 0.2s var(--ease);
}

/* Trigger becomes prominent when project block is hovered */
.project-block:hover .gallery-trigger {
    border-color: var(--border-acc);
    color: var(--accent);
    background: var(--accent-dim);
    box-shadow: 0 0 16px var(--accent-glow);
}

.project-block:hover .gallery-trigger svg {
    transform: translateX(4px);
}

.gallery-trigger:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ── Gallery Modal ──────────────────────────────────────────── */
.gallery-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9500;
    background: rgba(4, 5, 10, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    overflow: hidden;
}

.gallery-modal.open { display: flex; }

/* Header */
.gm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.gm-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gm-counter {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    padding: 0.28rem 0.7rem;
    border-radius: var(--r-sm);
    white-space: nowrap;
    flex-shrink: 0;
}

.gm-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-2);
    font-size: 1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.gm-close:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

/* Main image stage */
.gm-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 1.25rem 4.5rem;
    min-height: 0;
}

.gm-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--r-md);
    user-select: none;
    -webkit-user-drag: none;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
    box-shadow: 0 8px 60px rgba(0, 0, 0, 0.6);
}

.gm-img.fading {
    opacity: 0;
    transform: scale(0.97);
}

/* Prev / Next arrow buttons */
.gm-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    flex-shrink: 0;
}

.gm-btn svg { width: 20px; height: 20px; pointer-events: none; }

.gm-btn:hover {
    background: var(--accent-dim);
    border-color: var(--border-acc);
    color: var(--accent);
}

.gm-btn:active { transform: translateY(-50%) scale(0.92); }
.gm-btn:disabled { opacity: 0.2; cursor: not-allowed; pointer-events: none; }
.gm-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.gm-prev { left: 0.85rem; }
.gm-next { right: 0.85rem; }

/* Thumbnail strip */
.gm-thumbs {
    display: flex;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-top: 1px solid var(--border);
    overflow-x: auto;
    flex-shrink: 0;
    justify-content: center;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.gm-thumbs::-webkit-scrollbar        { height: 3px; }
.gm-thumbs::-webkit-scrollbar-thumb  { background: var(--border); border-radius: 2px; }

.gm-thumb {
    width: 72px;
    height: 48px;
    border-radius: var(--r-sm);
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
}

.gm-thumb:hover  { opacity: 0.75; transform: scale(1.06); }
.gm-thumb.active { border-color: var(--accent); opacity: 1; }

.gm-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
}

/* Mobile adjustments for modal */
@media (max-width: 600px) {
    .gm-stage       { padding: 1rem 3.5rem; }
    .gm-prev        { left: 0.4rem; }
    .gm-next        { right: 0.4rem; }
    .gm-btn         { width: 38px; height: 38px; }
    .gm-thumbs      { justify-content: flex-start; }
    .gm-thumb       { width: 56px; height: 38px; }
}

/* ── Discord Bots ────────────────────────────────────────────── */
#bots { background: var(--bg-2); }

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

.bot-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
}

.bot-card:hover {
    border-color: rgba(139, 92, 246, 0.35);
    box-shadow: 0 4px 30px rgba(139, 92, 246, 0.12);
    transform: translateY(-4px);
}

.bot-icon {
    width: 44px;
    height: 44px;
    background: var(--purple-dim);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple);
    padding: 10px;
    flex-shrink: 0;
}

.bot-icon svg { width: 100%; height: 100%; }

.bot-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0;
}

.bot-card p {
    font-size: 0.9rem;
    line-height: 1.65;
}

.bots-cta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
}

.bots-cta p {
    flex: 1;
    font-size: 0.95rem;
    min-width: 200px;
}

/* ── Web Design ──────────────────────────────────────────────── */
.web-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.web-card {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.75rem;
    text-decoration: none;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
    cursor: pointer;
}

.web-card:hover {
    border-color: var(--border-acc);
    box-shadow: 0 4px 30px var(--accent-glow);
    transform: translateY(-4px);
}

.web-card--this {
    border-color: var(--border-acc);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0,200,255,0.04) 100%);
}

.web-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.web-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--green);
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    padding: 0.25rem 0.65rem;
    border-radius: 99px;
}

.web-ext-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    padding: 0.25rem 0.65rem;
    border-radius: 99px;
    transition: color 0.2s, border-color 0.2s;
}

.web-card:hover .web-ext-badge {
    color: var(--accent);
    border-color: var(--border-acc);
}

.web-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-dim);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    padding: 9px;
    flex-shrink: 0;
}

.web-icon svg { width: 100%; height: 100%; }

.web-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0;
}

.web-card p {
    font-size: 0.9rem;
    line-height: 1.65;
    flex: 1;
}

.web-tech {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.04em;
    margin-top: auto;
}

@media (max-width: 600px) {
    .bots-cta { flex-direction: column; align-items: flex-start; }
    .bots-cta .btn { width: 100%; justify-content: center; }
}

/* ── Composition ─────────────────────────────────────────────── */
.audio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.audio-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
}

.audio-card:hover {
    border-color: var(--border-acc);
    box-shadow: 0 4px 30px var(--accent-glow);
    transform: translateY(-3px);
}

.audio-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.audio-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 11px;
}

.audio-icon-wrap svg { width: 100%; height: 100%; }

.audio-horror { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.audio-fps    { background: rgba(249, 115, 22, 0.1); color: #f97316; }
.audio-social { background: rgba(139, 92, 246, 0.1); color: var(--purple); }

.audio-meta h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0;
    margin-bottom: 0.25rem;
}

.audio-meta p {
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Native audio player theming (where supported) */
.audio-player {
    width: 100%;
    border-radius: var(--r-sm);
    accent-color: var(--accent);
    background: transparent;
    height: 36px;
}

/* ── Contact ─────────────────────────────────────────────────── */
#contact { background: var(--bg-2); }

.contact-wrap {
    max-width: 620px;
}

.contact-intro {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.discord-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.discord-card:hover {
    border-color: rgba(88, 101, 242, 0.4);
    box-shadow: 0 0 24px rgba(88, 101, 242, 0.1);
}

.discord-icon {
    width: 36px;
    height: 36px;
    color: #5865f2;
    flex-shrink: 0;
}

.discord-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.discord-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
}

.discord-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text-2);
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.copy-btn svg { width: 14px; height: 14px; }

.copy-btn:hover {
    background: var(--accent-dim);
    border-color: var(--border-acc);
    color: var(--accent);
}

.copy-btn.copied {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: var(--green);
}

.contact-note {
    font-size: 0.87rem;
    color: var(--text-muted);
}

/* ── Nav: Sovs highlight ─────────────────────────────────────── */
.nav-link--sovs {
    color: #f59e0b !important;
}
.nav-link--sovs:hover,
.nav-link--sovs.active {
    background: rgba(245,158,11,0.08) !important;
    color: #f59e0b !important;
}

/* ── SOVS Section ────────────────────────────────────────────── */
#sovs {
    background: var(--bg-2);
}

.sovs-tag {
    color: #f59e0b !important;
}

.sovs-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
}

.sovs-intro {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-2);
    margin-bottom: 2rem;
}

.sovs-intro strong { color: var(--text); }

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

.sovs-point {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
}

.sovs-point-icon {
    width: 40px;
    height: 40px;
    background: rgba(245,158,11,0.08);
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
    padding: 9px;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.sovs-point-icon svg { width: 100%; height: 100%; }

.sovs-point h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.35rem;
    letter-spacing: 0;
}

.sovs-point p {
    font-size: 0.92rem;
    line-height: 1.7;
}

.sovs-point strong { color: var(--text); }

/* Sidebar stats */
.sovs-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: calc(var(--nav-h) + 2rem);
}

.sovs-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    transition: border-color 0.25s;
}

.sovs-stat-card:hover { border-color: rgba(245,158,11,0.3); }

.sovs-stat-card--highlight {
    border-color: rgba(245,158,11,0.25);
    background: rgba(245,158,11,0.04);
}

.sovs-stat-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: #f59e0b;
    line-height: 1;
}

.sovs-stat-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.sovs-stat-lbl {
    font-size: 0.82rem;
    color: var(--text-2);
    line-height: 1.5;
}

/* In the sovs sidebar the stat-val/num reuse the accent colour — override to amber */
.sovs-sidebar .stat-val .stat-num,
.sovs-sidebar .stat-val .stat-sfx {
    color: #f59e0b;
}

@media (max-width: 860px) {
    .sovs-layout {
        grid-template-columns: 1fr;
    }
    .sovs-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

/* ── Roblox profile card ─────────────────────────────────────── */
.roblox-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid rgba(226, 35, 26, 0.25);
    border-radius: var(--r-lg);
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease);
}

.roblox-card:hover {
    border-color: rgba(226, 35, 26, 0.5);
    box-shadow: 0 0 24px rgba(226, 35, 26, 0.12);
    transform: translateY(-2px);
}

.roblox-card-icon {
    width: 40px;
    height: 40px;
    background: rgba(226,35,26,0.1);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e2231a;
    padding: 9px;
    flex-shrink: 0;
}

.roblox-card-icon svg { width: 100%; height: 100%; }

.roblox-card-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.roblox-card-lbl {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
}

.roblox-card-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.roblox-card-arrow {
    color: var(--text-muted);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.2s, color 0.2s;
}

.roblox-card-arrow svg { width: 100%; height: 100%; }
.roblox-card:hover .roblox-card-arrow { transform: translateX(4px); color: #e2231a; }

/* ── Footer ─────────────────────────────────────────────────── */
#footer {
    padding-block: 2.5rem;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    width: min(1140px, 100% - 2 * var(--gap));
    margin-inline: auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 0.25rem;
}

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

.footer-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.04em;
}

/* ── Grid line accent ────────────────────────────────────────── */
section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--border-acc) 50%, transparent 100%);
    opacity: 0;
    pointer-events: none;
}

section { position: relative; }

/* ── Mobile Nav ─────────────────────────────────────────────── */
@media (max-width: 720px) {
    .hamburger { display: flex; }

    .nav-links {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background: rgba(7, 8, 13, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 1.5rem var(--gap) 2rem;
        gap: 0.5rem;
        border-bottom: 1px solid var(--border);
        transform: translateY(-120%);
        transition: transform 0.35s var(--ease);
        pointer-events: none;
    }

    .nav-links.open {
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-link { padding: 0.65rem 1rem; font-size: 1rem; width: 100%; }
    .nav-cta { text-align: center; justify-content: center; }
}

/* ── Responsive Layout Breakpoints ──────────────────────────── */
@media (max-width: 860px) {
    .about-layout {
        grid-template-columns: 1fr;
    }
    .about-profile {
        position: static;
        flex-direction: row;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 1.25rem;
    }
    .avatar-frame {
        width: 120px;
        flex-shrink: 0;
    }
    .avatar-name, .avatar-sub { text-align: left; }
    .stats-grid {
        flex: 1;
        min-width: 200px;
        margin-top: 0;
    }
}

@media (max-width: 600px) {
    .hero-actions { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 280px; }

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

    .image-gallery {
        grid-template-columns: 1fr 1fr;
    }

    .gal-item:nth-child(2n) { border-right: none; }
    .gal-item:nth-child(4n) { border-right: 1px solid var(--border); }

    .discord-card {
        flex-wrap: wrap;
    }

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

    .scroll-hint { display: none; }
}

@media (max-width: 400px) {
    .image-gallery { grid-template-columns: 1fr; }
    .gal-item { border-right: none !important; }
}
