:root {
    --bg-dark: #120a2e;
    --bg-secondary: #1a0f3d;
    --accent-primary: #ffd700;
    --text-main: #ffffff;
    --text-muted: #d1d1d1;
    --glass-bg: rgba(26, 15, 61, 0.7);
    --glass-border: rgba(255, 215, 0, 0.2);
    --gradient-hero: linear-gradient(135deg, #120a2e, #ffd700);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    cursor: none;
}

@keyframes heartbeat {
    0%   { transform: translate(-10px, -5px) scale(1); }
    50%  { transform: translate(-10px, -5px) scale(1.1); }
    100% { transform: translate(-10px, -5px) scale(1); }
}

@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes pulse {
    0%   { box-shadow: 0 0 10px var(--accent-primary), 0 0 20px var(--accent-primary); }
    50%  { box-shadow: 0 0 15px var(--accent-primary), 0 0 30px var(--accent-primary); }
    100% { box-shadow: 0 0 10px var(--accent-primary), 0 0 20px var(--accent-primary); }
}

@keyframes rotateOrbit {
    from { transform: rotate(var(--start)); }
    to   { transform: rotate(var(--end)); }
}

@keyframes counterRotate {
    from { transform: rotate(var(--cstart)); }
    to   { transform: rotate(var(--cend)); }
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    box-shadow: 0 0 10px var(--accent-primary), 0 0 20px var(--accent-primary);
    animation: pulse 2s ease-in-out infinite;
}

.cursor-follower {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease;
}

.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

h1 { font-size: 3.5rem; line-height: 1.1; }
h2 { font-size: 2.5rem; margin-bottom: 2rem; }

span {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ─── Navigation ─── */
.main-nav {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 600px;
    background: rgba(18, 10, 46, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 0.8rem 2.5rem;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.main-nav.sticky {
    top: 15px;
    padding: 0.6rem 2.5rem;
    background: rgba(18, 10, 46, 0.98);
    transform: translateX(-50%) scale(0.95);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.6);
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-family: 'Syncopate', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -2px;
    text-decoration: none;
    color: var(--text-main);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    transform: skewX(-15deg);
    transition: transform 0.3s;
    margin-left: -50px;
    margin-right: calc(3rem + 50px);
}

.logo:hover { transform: skewX(-15deg) scale(1.05); }

.logo span {
    color: var(--accent-primary);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: unset;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
    transform: scale(2) translateY(2px);
    transform-origin: left center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
    white-space: nowrap;
}

.nav-links a {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: color 0.3s, transform 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s;
}

.nav-links a:hover::after { width: 100%; }

.nav-cta { margin-right: -50px; margin-left: 50px; }

.btn-cta {
    background: #ffd700;
    color: #000;
    padding: 0.8rem 2.5rem;
    font-size: 0.85rem;
    font-weight: 950;
    margin-right: -5px;
    text-transform: uppercase;
    border-radius: 50px;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
    white-space: nowrap;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
}

.btn-cta:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.5);
}

/* Buttons */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient-hero);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-secondary:hover { background: var(--glass-bg); }

/* ─── Hero Section ─── */
.hero {
    min-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: var(--bg-dark);
    padding-top: 120px;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), var(--bg-dark));
    z-index: 1;
}

.hero-image-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 0;
    opacity: 2;
    z-index: 0;
}

/* ─── Orbits ─── */
.orbits-container {
    position: relative;
    /* Size set via JS / inline for responsiveness */
    width: 860px;
    height: 860px;
    z-index: 2;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    /* CRITICAL: must not clip the orbiting icons */
    overflow: visible;
}

.orbit {
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    pointer-events: none;
    box-shadow: inset 0 0 50px rgba(18, 10, 46, 0.5);
}

.orbit-1 {
    position: absolute;
    width: 700px;
    height: 700px;
    overflow: hidden;       /* clips central image to circle */
    display: flex;
    align-items: center;
    justify-content: center;
}

.central-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.central-img {
    width: 98%;
    height: 98%;
    object-fit: cover;
    border-radius: 50%;
    filter: saturate(0.4) contrast(0.8);
    opacity: 0.95;
}

/* Tech icon base style */
.tech-icon {
    background: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-primary);
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    /* width/height/font-size set inline via JS */
}

.tech-icon:hover {
    transform: scale(1.2) !important;
    box-shadow: 0 0 30px var(--accent-primary) !important;
}

/* Wrapper fills orbits-container so rotation pivot is its center */
.tech-icon-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* Tech Stack section */
.tech-stack { padding: 100px 0; }

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.tech-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
}

.tech-item:hover {
    background: var(--accent-primary);
    color: #fff;
    transform: scale(1.1);
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

/* ─── Services Section — Unique Bento Design ─── */

/* Section base */
.sv-section {
    position: relative;
    padding: 120px 0 140px;
    background: var(--bg-dark);
    overflow: hidden;
}

/* Floating particles */
.sv-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

@keyframes svFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    25%      { transform: translate(12px, -18px) scale(1.3); opacity: 0.9; }
    50%      { transform: translate(-8px, -30px) scale(1); opacity: 0.4; }
    75%      { transform: translate(15px, -10px) scale(1.2); opacity: 0.7; }
}

.sv-particle {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--s);
    height: var(--s);
    background: var(--accent-primary);
    border-radius: 50%;
    animation: svFloat var(--d) ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

/* SVG Decorative line */
.sv-line-deco {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: auto;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
}

/* Section header — left-aligned */
.sv-header {
    position: relative;
    z-index: 2;
    margin-bottom: 4rem;
}

.sv-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.sv-badge-dot {
    width: 10px;
    height: 10px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
    animation: pulse 2s ease-in-out infinite;
}

.sv-header-badge span {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-primary);
    background: none;
    -webkit-text-fill-color: var(--accent-primary);
}

.sv-header h2 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
    color: var(--text-main);
}

.sv-header-sub {
    margin-top: 1rem;
    color: rgba(200, 200, 220, 0.6);
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* The "span" within h2 picks up the global gradient span styling automatically */

/* ─── Bento Grid ─── */
.sv-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 2;
    perspective: 1200px;
}

.sv-card--wide {
    grid-column: span 2;
}

/* ─── Card Container ─── */
.sv-card {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.sv-card:hover {
    transform: translateY(-6px) rotateX(2deg) rotateY(-1deg);
}

/* Animated gradient border — the magic */
.sv-card-border {
    position: absolute;
    inset: 0;
    border-radius: 22px;
    padding: 1.5px;
    background: conic-gradient(
        from var(--border-angle, 0deg),
        transparent 0%,
        rgba(255, 215, 0, 0.5) 10%,
        transparent 20%,
        transparent 80%,
        rgba(255, 215, 0, 0.3) 90%,
        transparent 100%
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.sv-card:hover .sv-card-border {
    opacity: 1;
    animation: borderSpin 4s linear infinite;
}

@keyframes borderSpin {
    to { --border-angle: 360deg; }
}

/* Register custom property for animation */
@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* Card inner layer */
.sv-card-inner {
    position: relative;
    background: linear-gradient(
        160deg,
        rgba(22, 13, 52, 0.95) 0%,
        rgba(14, 8, 35, 0.98) 100%
    );
    border: 1px solid rgba(255, 215, 0, 0.08);
    border-radius: 22px;
    padding: 2.2rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.sv-card:hover .sv-card-inner {
    border-color: rgba(255, 215, 0, 0.18);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 215, 0, 0.06);
}

.sv-card--wide .sv-card-inner {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
}


/* ─── Animated SVG Icons ─── */
.sv-animated-icon {
    width: 38px;
    height: 38px;
    position: relative;
    z-index: 2;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                filter 0.4s ease;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.2));
}

.sv-card:hover .sv-animated-icon {
    transform: scale(1.18);
    filter: drop-shadow(0 0 14px rgba(255, 215, 0, 0.45));
}

/* ─── Icon ─── */
.sv-icon-wrap {
    position: relative;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    flex-shrink: 0;
    z-index: 1;
}

.sv-icon-wrap i {
    font-size: 1.5rem;
    color: var(--accent-primary);
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                text-shadow 0.4s ease;
}

.sv-card:hover .sv-icon-wrap i {
    transform: scale(1.15);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.sv-icon-ring {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(255, 215, 0, 0.15);
    border-radius: 16px;
    transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.sv-card:hover .sv-icon-ring {
    border-color: rgba(255, 215, 0, 0.35);
    transform: rotate(8deg) scale(1.08);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.1);
}

/* ─── Card content ─── */
.sv-card-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.sv-card-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text-main);
}

.sv-card-content p {
    color: rgba(200, 200, 220, 0.75);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Tech tags */
.sv-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: auto;
}

.sv-tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 215, 0, 0.15);
    color: rgba(255, 215, 0, 0.7);
    background: rgba(255, 215, 0, 0.04);
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    /* Override global span styles */
    -webkit-text-fill-color: rgba(255, 215, 0, 0.7);
}

.sv-card:hover .sv-tag {
    border-color: rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.08);
    color: var(--accent-primary);
    -webkit-text-fill-color: var(--accent-primary);
}


/* ─── Ambient hover glow inside card ─── */
.sv-card-inner::before {
    content: '';
    position: absolute;
    top: var(--glow-y, 0);
    left: var(--glow-x, 0);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.sv-card:hover .sv-card-inner::before {
    opacity: 1;
}

/* ─── Mobile Hamburger ─── */
.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(255, 215, 0, 0.35);
    background: rgba(255, 215, 0, 0.08);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
}

.menu-toggle:hover {
    transform: translateY(-1px);
    background: rgba(255, 215, 0, 0.15);
}

.menu-toggle-line {
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent-primary);
    transition: transform 0.35s ease, opacity 0.35s ease;
}

/* ─── Mobile Backdrop ─── */
.menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8, 5, 20, 0.65);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    z-index: 1050;
}

/* ─── Mobile Sidebar ─── */
.mobile-sidebar {
    position: fixed;
    top: 12px;
    bottom: 12px;
    right: 12px;
    width: min(88vw, 360px);
    height: auto;
    background:
        radial-gradient(120% 60% at 100% 0%, rgba(255, 215, 0, 0.16), transparent 58%),
        linear-gradient(180deg, rgba(22, 14, 49, 0.98), rgba(8, 7, 19, 0.985));
    border-left: 1px solid rgba(255, 215, 0, 0.25);
    box-shadow: -24px 0 45px rgba(0,0,0,0.5);
    transform: translateX(130%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1100;
    padding: 1rem 1rem 1.4rem;
    border-radius: 22px;
    overflow-y: auto;
    overflow-x: hidden;
}

.mobile-sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(135deg, rgba(255,255,255,0.02), rgba(255,255,255,0.02) 2px, transparent 2px, transparent 12px);
    opacity: 0.35;
    pointer-events: none;
}

.mobile-sidebar > * { position: relative; z-index: 1; }

.mobile-sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    padding: 0.35rem 0.35rem 0.9rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
}

.mobile-brand-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.mobile-brand-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #fff;
}

.mobile-close {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: 11px;
    background: rgba(255, 215, 0, 0.08);
    color: #ffd700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.mobile-close:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: rotate(90deg);
}

.mobile-sidebar-tag {
    margin: 0.8rem 0.45rem 1rem;
    color: rgba(255,255,255,0.72);
    font-size: 0.76rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.mobile-nav-links li {
    opacity: 0;
    transform: translateX(14px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.mobile-nav-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 13px;
    padding: 0.9rem 0.95rem;
    border: 1px solid rgba(255,255,255,0.05);
    background: linear-gradient(120deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    text-decoration: none;
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.mobile-nav-links a i {
    width: 16px;
    text-align: center;
    color: rgba(255, 215, 0, 0.9);
    font-size: 0.95rem;
}

.mobile-nav-links a span {
    background: none;
    -webkit-text-fill-color: #fff;
    color: #fff;
    font-size: 0.85rem;
    letter-spacing: 0.9px;
}

.mobile-nav-links a:hover {
    border-color: rgba(255, 215, 0, 0.38);
    background: linear-gradient(120deg, rgba(255,215,0,0.18), rgba(255,215,0,0.04));
    color: var(--accent-primary);
}

.mobile-cta {
    margin-top: 0.9rem;
    justify-content: center;
    border: none !important;
    background: #ffd700 !important;
    color: #111 !important;
    font-weight: 900 !important;
    letter-spacing: 1px;
}

/* ─── Open state ─── */
body.menu-open { overflow: hidden; }

body.menu-open .menu-backdrop { opacity: 1; visibility: visible; }
body.menu-open .mobile-sidebar { transform: translateX(0); }

body.menu-open .mobile-nav-links li { opacity: 1; transform: translateX(0); }
body.menu-open .mobile-nav-links li:nth-child(1) { transition-delay: 0.03s; }
body.menu-open .mobile-nav-links li:nth-child(2) { transition-delay: 0.07s; }
body.menu-open .mobile-nav-links li:nth-child(3) { transition-delay: 0.11s; }
body.menu-open .mobile-nav-links li:nth-child(4) { transition-delay: 0.15s; }
body.menu-open .mobile-nav-links li:nth-child(5) { transition-delay: 0.19s; }
body.menu-open .mobile-nav-links li:nth-child(6) { transition-delay: 0.23s; }

body.menu-open .menu-toggle-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.menu-open .menu-toggle-line:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ─── Responsive ─── */
@media (max-width: 1160px) {
    .main-nav {
        min-width: 0;
        width: calc(100% - 2rem);
        padding: 0.7rem 1.1rem;
        border-radius: 20px;
        top: 12px;
    }
    .main-nav.sticky {
        top: 8px;
        padding: 0.62rem 1.1rem;
        transform: translateX(-50%) scale(1);
    }
    .main-nav .container { gap: 0.9rem; }
    .logo { margin-left: 0; margin-right: 0; }
    .nav-cta { margin: 0; }
    .nav-links { gap: 1rem; }
    .btn-cta { padding: 0.7rem 1.2rem; }
}

@media (max-width: 900px) {
    body { cursor: auto; }
    .cursor, .cursor-follower { display: none; }

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }
    .nav-links, .nav-cta { display: none; }

    .hero {
        min-height: auto;
        padding-top: 108px;
        padding-bottom: 70px;
    }

    .main-nav .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }

    .logo {
        flex: 1 1 auto;
        min-width: 0;
        margin: 0;
        transform: none !important;
    }

    .logo-img {
        height: 48px;
        width: auto;
        transform: none;
        max-width: 100%;
    }

    .menu-toggle {
        margin-left: 0;
        flex: 0 0 48px;
    }

    .orbits-container {
        width: min(96vw, 560px);
        height: min(96vw, 560px);
        margin-bottom: 18px;
    }

    .orbit-1 {
        width: min(76vw, 430px);
        height: min(76vw, 430px);
    }

    /* Bento tablet: 2 cols, wide cards span full row */
    .sv-section { padding: 80px 0 100px; }
    .sv-header h2 { font-size: 2.8rem; }
    .sv-bento {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
    .sv-card--wide { grid-column: span 2; }
    .sv-card--wide .sv-card-inner {
        flex-direction: row;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .container { padding: 0 1rem; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 2rem; }

    /* Bento responsive */
    .sv-section { padding: 70px 0 80px; }
    .sv-header h2 { font-size: 2.4rem; }
    .sv-bento {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .sv-card--wide { grid-column: span 1; }
    .sv-card--wide .sv-card-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .sv-card-inner { min-height: auto; padding: 2rem 1.5rem; }
    .sv-line-deco { display: none; }

    #about h2 {
        font-size: clamp(1.8rem, 8vw, 2.4rem) !important;
        line-height: 1.2;
    }
    #about p {
        font-size: 1rem !important;
        line-height: 1.7 !important;
    }
    #about .btn {
        width: min(92vw, 260px);
        margin: 0.45rem auto;
    }
}

@media (max-width: 600px) {
    .orbits-container {
        width: min(98vw, 420px);
        height: min(98vw, 420px);
    }
    .orbit-1 {
        width: min(68vw, 300px);
        height: min(68vw, 300px);
    }
}

@media (max-width: 480px) {
    .main-nav {
        width: calc(100% - 1rem);
        padding: 0.62rem 0.8rem;
        border-radius: 16px;
        left: 50%;
        transform: translateX(-50%);
    }
    .main-nav.sticky {
        transform: translateX(-50%) scale(1);
    }

    .logo-img {
        height: 52px !important;
        transform: none !important;
        max-width: 100%;
    }

    .menu-toggle {
        width: 44px !important;
        height: 44px !important;
        flex: 0 0 44px !important;
    }

    .orbits-container {
        width: min(98vw, 380px) !important;
        height: min(98vw, 380px) !important;
        overflow: visible !important;
    }

    .orbit-1 {
        width: min(62vw, 260px) !important;
        height: min(62vw, 260px) !important;
    }

    .mobile-sidebar {
        width: min(92vw, 330px);
        top: 10px;
        bottom: 10px;
        right: 10px;
        border-radius: 18px;
        padding: 0.75rem 0.8rem 1rem;
    }

    .mobile-brand-img {
        width: 56px !important;
        height: 56px !important;
        object-fit: contain;
    }

    .mobile-brand-text {
        font-size: 0.82rem;
    }
}

/* Absolute tiny screen fix */
@media (max-width: 520px) {
    html, body { overflow-x: hidden !important; width: 100%; }

    .main-nav {
        left: 4px !important;
        right: 4px !important;
        width: auto !important;
        min-width: 0 !important;
        transform: none !important;
        padding: 0.55rem 0.65rem !important;
    }

    .main-nav.sticky {
        left: 4px !important;
        right: 4px !important;
        transform: none !important;
        top: 8px !important;
    }

    .main-nav .container {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.35rem;
        width: 100%;
        padding: 0 !important;
    }

    .logo {
        margin: 0 !important;
        transform: none !important;
        overflow: hidden;
        min-width: 0;
    }

    .logo-img {
        height: 52px !important;
        width: auto;
        transform: none !important;
        max-width: 100%;
    }

    .menu-toggle {
        width: 42px !important;
        height: 42px !important;
        flex: 0 0 42px !important;
        margin: 0 !important;
        justify-self: end;
        position: relative;
        z-index: 1200;
    }

    .orbits-container {
        width: min(98vw, 360px) !important;
        height: min(98vw, 360px) !important;
        overflow: visible !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .orbit-1 {
        width: min(60vw, 240px) !important;
        height: min(60vw, 240px) !important;
    }

    .mobile-sidebar {
        width: min(90vw, 310px) !important;
        top: 10px !important;
        bottom: 10px !important;
        right: 10px !important;
        border-radius: 18px !important;
    }

    .mobile-brand-img {
        width: 64px !important;
        height: 64px !important;
    }

    .mobile-brand-text { display: none !important; }
}