/* =====================================================
   Eagle Gaming — Portfolio Landing Page
   css/styles.css
   ===================================================== */

/* ---- Custom Properties ---- */
:root {
    --black:         #0a0a0b;
    --black-light:   #111113;
    --white:         #ffffff;
    --blue:          #3b82f6;
    --blue-dark:     #2563eb;
    --blue-hover:    #1d4ed8;
    --purple:        #8b5cf6;
    --cyan:          #06b6d4;
    --grey-50:       #f8fafc;
    --grey-100:      #f1f5f9;
    --grey-200:      #e2e8f0;
    --grey-300:      #cbd5e1;
    --grey-400:      #94a3b8;
    --grey-500:      #64748b;
    --grey-600:      #475569;
    --grey-700:      #334155;
    --grey-800:      #1e293b;
    --grey-900:      #0f172a;
    --text:          #f1f5f9;
    --text-muted:    #94a3b8;
    --text-dim:      #64748b;
    --border:        rgba(255,255,255,0.08);
    --border-light:  rgba(255,255,255,0.12);
    --glass:         rgba(255,255,255,0.03);
    --glass-border:  rgba(255,255,255,0.06);
    --radius-sm:     8px;
    --radius:        12px;
    --radius-lg:     16px;
    --radius-xl:     24px;
    --radius-2xl:    32px;
    --shadow-glow:   0 0 60px rgba(59,130,246,0.15);
    --container-w:   1200px;
    --section-py:    120px;
    --font:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

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

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

a {
    color: var(--blue);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--blue-dark);
}

ul, ol {
    list-style: none;
}

p { margin: 0; }

button {
    font-family: var(--font);
    cursor: pointer;
}

/* ---- Accessibility ---- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

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

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
h4 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---- Layout ---- */
.container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--section-py) 0;
    position: relative;
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-header--center {
    text-align: center;
}

.section-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 1rem;
    padding: 0.35rem 0.85rem;
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: 100px;
}

.section-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 540px;
    margin-top: 0.75rem;
    line-height: 1.75;
}

.section-sub--center {
    margin-left: auto;
    margin-right: auto;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border: 1.5px solid transparent;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
    -webkit-user-select: none;
    user-select: none;
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

.btn-primary:hover {
    background: var(--blue-hover);
    border-color: var(--blue-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59,130,246,0.35);
}

.btn-white {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.btn-white:hover {
    color: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255,255,255,0.2);
}

.btn-ghost {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.8);
    border-color: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.3);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-muted);
    border-color: var(--border-light);
}

.btn-outline:hover {
    border-color: var(--blue);
    color: var(--blue);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: 0.5rem 1.1rem;
    font-size: 0.825rem;
}

/* ---- Reveal Animation ---- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(10,10,11,0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
    background: rgba(10,10,11,0.92);
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
    position: relative;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s, gap 0.2s var(--ease-out);
    flex-shrink: 0;
}

.back-link:hover {
    color: var(--white);
    gap: 0.55rem;
}

.logo {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.025em;
    text-decoration: none;
    flex-shrink: 0;
    transition: color 0.2s;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo:hover {
    color: var(--blue);
}

.primary-nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.primary-nav a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
}

.primary-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--blue);
    transition: width 0.25s var(--ease-out);
}

.primary-nav a:hover {
    color: var(--white);
}

.primary-nav a:hover::after {
    width: 100%;
}

.primary-nav a.btn {
    color: var(--white);
}

.primary-nav a.btn::after {
    display: none;
}

.primary-nav a.btn:hover {
    color: var(--white);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 0.5rem;
    transition: background 0.2s;
}

.hamburger:hover {
    background: rgba(255,255,255,0.06);
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform-origin: center;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========================================
   HERO
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: orbFloat 20s ease-in-out infinite;
}

.hero-orb--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59,130,246,0.3) 0%, transparent 70%);
    top: -15%;
    left: -10%;
    animation-delay: 0s;
}

.hero-orb--2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139,92,246,0.25) 0%, transparent 70%);
    bottom: -10%;
    right: -10%;
    animation-delay: -7s;
}

.hero-orb--3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(6,182,212,0.2) 0%, transparent 70%);
    top: 50%;
    left: 60%;
    animation-delay: -13s;
}

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

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s var(--ease-out) both;
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: var(--blue);
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse 2.5s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(59,130,246,0.5);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.4; transform: scale(0.75); }
}

.hero h1 {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    animation: fadeInUp 0.8s var(--ease-out) 0.15s both;
}

.hero-line {
    display: block;
}

.hero-line--accent {
    background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 50%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 3rem;
    line-height: 1.75;
    animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s var(--ease-out) 0.45s both;
}

/* Stats Bar */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    animation: fadeInUp 0.8s var(--ease-out) 0.6s both;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-num {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.03em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.stat-pct {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-dim);
    letter-spacing: 0.02em;
}

.stat-sep {
    width: 1px;
    height: 40px;
    background: var(--border-light);
}

/* Scroll cue */
.hero-scroll-cue {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-dim);
    animation: scrollBounce 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.4; }
    50%      { transform: translateX(-50%) translateY(8px); opacity: 0.8; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   WORK / PROJECTS
   ======================================== */
.work-section {
    background: var(--black-light);
    border-top: 1px solid var(--border);
}

/* Filter Bar */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.filter-pill {
    padding: 0.5rem 1.25rem;
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    transition: all 0.25s var(--ease-out);
}

.filter-pill:hover {
    color: var(--white);
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
}

.filter-pill.active {
    color: var(--white);
    background: var(--blue);
    border-color: var(--blue);
}

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
}

.project-card {
    --accent: 210 100% 50%;
    background: hsl(var(--accent) / 0.03);
    border: 1px solid hsl(var(--accent) / 0.08);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, hsl(var(--accent) / 0.6), hsl(var(--accent) / 0.1));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}

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

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 50px hsl(var(--accent) / 0.12), 0 20px 40px rgba(0,0,0,0.3);
    border-color: hsl(var(--accent) / 0.2);
}

.project-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
}

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

.project-card--featured .project-preview {
    min-height: 320px;
}

/* Browser chrome */
.project-browser {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: hsl(var(--accent) / 0.02);
    border-bottom: 1px solid hsl(var(--accent) / 0.08);
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    transition: background 0.2s;
}

.project-card:hover .browser-dots span:nth-child(1) { background: #ef4444; }
.project-card:hover .browser-dots span:nth-child(2) { background: #eab308; }
.project-card:hover .browser-dots span:nth-child(3) { background: #22c55e; }

.browser-url {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-dim);
    background: rgba(255,255,255,0.04);
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    letter-spacing: 0.01em;
    flex: 1;
    max-width: 280px;
}

/* Project Preview */
.project-preview {
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
}

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

.project-card:hover .project-preview img {
    transform: scale(1.04);
}

.project-preview-bg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s var(--ease-out);
}

.project-card:hover .project-preview-bg {
    transform: scale(1.03);
}

.preview-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.preview-icon {
    font-size: 3rem;
    line-height: 1;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.preview-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.preview-tagline {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.02em;
}

/* Project Info */
.project-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.project-tag {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 100px;
    background: hsl(var(--accent) / 0.1);
    color: hsl(var(--accent) / 0.85);
    border: 1px solid hsl(var(--accent) / 0.15);
}

.project-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.project-info p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
    flex: 1;
}

.project-footer {
    padding-top: 0.75rem;
    border-top: 1px solid hsl(var(--accent) / 0.08);
    margin-top: auto;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s, gap 0.25s var(--ease-out);
}

.project-link:hover {
    color: hsl(var(--accent));
    gap: 0.6rem;
}

/* Hidden state for filtered cards */
.project-card.is-hidden {
    display: none;
}

/* ========================================
   SERVICES
   ======================================== */
.services-section {
    background: var(--black);
    border-top: 1px solid var(--border);
}

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

.service-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--purple));
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover {
    border-color: rgba(59,130,246,0.2);
    box-shadow: 0 8px 30px rgba(59,130,246,0.08);
    transform: translateY(-4px);
}

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

.service-icon-wrap {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.15);
    color: var(--blue);
    margin-bottom: 1.25rem;
}

.service-card h3 {
    margin-bottom: 0.5rem;
}

.service-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ========================================
   ABOUT
   ======================================== */
.about-section {
    background: var(--black-light);
    border-top: 1px solid var(--border);
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-top: 1.25rem;
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
}

.about-detail {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.about-detail svg {
    color: var(--blue);
    flex-shrink: 0;
}

/* Floating Cards */
.about-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.about-card-stack {
    position: relative;
    width: 320px;
    height: 360px;
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    transition: transform 0.4s var(--ease-out);
    white-space: nowrap;
}

.floating-card:hover {
    transform: translateY(-4px) !important;
}

.floating-card--1 {
    top: 0;
    left: 0;
    animation: floatCard1 6s ease-in-out infinite;
}

.floating-card--2 {
    top: 50%;
    left: 15%;
    transform: translateY(-50%);
    animation: floatCard2 6s ease-in-out infinite;
    animation-delay: -2s;
}

.floating-card--3 {
    bottom: 0;
    right: 0;
    animation: floatCard3 6s ease-in-out infinite;
    animation-delay: -4s;
}

@keyframes floatCard1 {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

@keyframes floatCard2 {
    0%, 100% { transform: translateY(-50%); }
    50%      { transform: translateY(calc(-50% + 8px)); }
}

@keyframes floatCard3 {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

.fc-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.fc-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.fc-text strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
}

.fc-text span {
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* ========================================
   CTA
   ======================================== */
.cta-section {
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 140px 0;
    background: var(--black);
    border-top: 1px solid var(--border);
}

.cta-bg {
    position: absolute;
    inset: 0;
}

.cta-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}

.cta-orb--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59,130,246,0.2) 0%, transparent 70%);
    top: -30%;
    left: 30%;
}

.cta-orb--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, transparent 70%);
    bottom: -20%;
    right: 20%;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    max-width: 480px;
    margin: 0 auto 1rem;
}

.cta-section p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 440px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: var(--black);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-logo {
    font-size: 1rem;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-logo:hover {
    color: var(--blue);
}

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

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

@media (max-width: 1024px) {
    :root { --section-py: 88px; }

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

    .about-layout {
        gap: 3rem;
    }

    .project-card--featured {
        grid-template-columns: 1fr;
    }

    .project-card--featured .project-preview {
        min-height: 240px;
    }
}

@media (max-width: 768px) {
    :root { --section-py: 72px; }

    .hamburger {
        display: flex;
    }

    .primary-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10,10,11,0.98);
        backdrop-filter: blur(20px);
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        padding: 1.25rem 2rem 1.5rem;
        z-index: 100;
    }

    .primary-nav.is-open {
        display: block;
    }

    .primary-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .primary-nav a {
        display: block;
        padding: 0.875rem 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--border);
    }

    .primary-nav a::after {
        display: none;
    }

    .logo {
        position: static;
        transform: none;
    }

    .primary-nav ul li:last-child a {
        border-bottom: none;
        padding-top: 1rem;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-num {
        font-size: 1.75rem;
    }

    .stat-sep {
        height: 30px;
    }

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

    .project-card--featured {
        grid-column: auto;
        grid-template-columns: 1fr;
    }

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

    .about-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-visual {
        min-height: 300px;
        order: -1;
    }

    .about-card-stack {
        width: 280px;
        height: 300px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    :root { --section-py: 56px; }

    .container {
        padding: 0 1.25rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.25rem;
    }

    .stat-sep {
        width: 40px;
        height: 1px;
    }

    .filter-bar {
        gap: 0.375rem;
    }

    .filter-pill {
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
    }

    .cta-section {
        padding: 80px 0;
    }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
