/* ============================================================
   Jessie Sarcinella Portfolio - Clean Professional
   Light/Dark theme
   ============================================================ */

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

html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; line-height: 1.1; }
p { overflow-wrap: break-word; }

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

/* --- CSS Variables (Light = default) --- */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f7f8fa;
    --bg-tertiary: #eef0f4;
    --accent-1: #6c63ff;
    --accent-2: #4f46e5;
    --accent-3: #ff6b6b;
    --text: #1a1a2e;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    --card-bg: #ffffff;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
    --card-shadow-hover: 0 4px 12px rgba(0,0,0,0.08), 0 8px 32px rgba(0,0,0,0.06);
    --navbar-bg: rgba(255, 255, 255, 0.92);
    --navbar-scrolled: rgba(255, 255, 255, 0.97);
    --mobile-menu-bg: rgba(255, 255, 255, 0.98);
    --hero-badge-bg: rgba(255, 255, 255, 0.9);
    --loader-bg: #ffffff;
    --tag-bg: rgba(108, 99, 255, 0.08);
    --tag-color: var(--accent-1);
    --skill-hover-bg: rgba(108, 99, 255, 0.06);
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Space Grotesk', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 100px;
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Dark Theme --- */
[data-theme="dark"] {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a2e;
    --text: #e4e4e7;
    --text-muted: #a1a1aa;
    --text-light: #71717a;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --card-bg: #16161f;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.3), 0 4px 16px rgba(0,0,0,0.2);
    --card-shadow-hover: 0 4px 12px rgba(108,99,255,0.1), 0 8px 32px rgba(0,0,0,0.3);
    --navbar-bg: rgba(10, 10, 15, 0.92);
    --navbar-scrolled: rgba(10, 10, 15, 0.97);
    --mobile-menu-bg: rgba(10, 10, 15, 0.98);
    --hero-badge-bg: rgba(18, 18, 26, 0.9);
    --loader-bg: #0a0a0f;
    --tag-bg: rgba(108, 99, 255, 0.15);
    --tag-color: #a5b4fc;
    --skill-hover-bg: rgba(108, 99, 255, 0.1);
}

/* Invert dark-only logos in dark mode */
[data-theme="dark"] .logo-invert {
    filter: invert(1);
}

/* --- Body --- */
body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- Disable expensive effects during scroll --- */
body.is-scrolling * {
    pointer-events: none !important;
}

/* --- Selection --- */
::selection {
    background: rgba(108, 99, 255, 0.2);
    color: var(--text);
}

/* ============================================================
   Grain Overlay (disabled)
   ============================================================ */
.grain-overlay { display: none; }

/* ============================================================
   Custom Cursor (disabled for cleaner UX)
   ============================================================ */
.cursor, .cursor-trail { display: none; }

/* ============================================================
   Theme Toggle
   ============================================================ */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
    margin-right: 12px;
}

[data-theme="dark"] .theme-toggle {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.theme-toggle:hover {
    border-color: rgba(108, 99, 255, 0.4);
    background: rgba(108, 99, 255, 0.12);
    box-shadow: 0 4px 16px rgba(108, 99, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.theme-toggle:hover svg {
    color: var(--accent-1);
}

.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }

[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

/* ============================================================
   Loader
   ============================================================ */
.loader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--loader-bg);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

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

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.loader-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-logo-img {
    height: 140px;
    width: auto;
    object-fit: contain;
}

.loader-bar {
    width: 120px;
    height: 2px;
    background: var(--border-subtle);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.loader-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    border-radius: var(--radius-pill);
    transition: width 0.3s ease;
}

/* ============================================================
   Navbar
   ============================================================ */
.navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
    transition: transform var(--transition-base), background var(--transition-base);
}

[data-theme="dark"] .navbar {
    background: rgba(10, 10, 15, 0.45);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.2);
}

.navbar.hidden { transform: translateY(-100%); }
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.7);
}
[data-theme="dark"] .navbar.scrolled {
    background: rgba(10, 10, 15, 0.7);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.nav-logo-img {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.nav-logo-dark { display: none; }

[data-theme="dark"] .nav-logo-light { display: none; }
[data-theme="dark"] .nav-logo-dark { display: block; }

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.logo-glow { display: none; }

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 4px 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 2px;
    background: var(--accent-1);
    border-radius: 1px;
    transition: width var(--transition-base);
}

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

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    background: rgba(108, 99, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 12px rgba(108, 99, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.btn-glow { display: none; }

.nav-cta:hover {
    transform: translateY(-1px);
    background: rgba(108, 99, 255, 0.75);
    box-shadow: 0 4px 20px rgba(108, 99, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px; height: 44px;
    z-index: 101;
}

.nav-hamburger span {
    display: block;
    width: 28px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--transition-base), opacity var(--transition-base);
    transform-origin: center;
}

.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Mobile Menu
   ============================================================ */
.mobile-menu {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100vh; height: 100dvh;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.mobile-menu.open { opacity: 1; visibility: visible; }

[data-theme="dark"] .mobile-menu {
    background: rgba(10, 10, 15, 0.7);
}

.mobile-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--text);
    transition: color var(--transition-fast);
    opacity: 0;
    transform: translateY(20px);
}

.mobile-menu.open .mobile-link {
    opacity: 1; transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease, color var(--transition-fast);
}

.mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

.mobile-link:hover { color: var(--accent-1); }

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 80px;
}

#heroCanvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    display: none;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    padding: 0 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    background: var(--hero-badge-bg);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.badge-dot {
    width: 8px; height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--text);
}

.title-line { display: block; }

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

.title-accent .hero-letter {
    color: var(--accent-1);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.subtitle-prefix { color: var(--accent-1); display: none; }

.hero-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
    white-space: nowrap;
    cursor: pointer;
}

.btn-primary {
    color: #fff;
    background: var(--accent-1);
    box-shadow: 0 2px 12px rgba(108, 99, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 24px rgba(108, 99, 255, 0.35);
}

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

.btn-secondary:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
}

/* Liquid Glass Buttons */
.btn-glass.btn-primary {
    background: rgba(108, 99, 255, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(108, 99, 255, 0.3);
    color: #fff;
    box-shadow: 0 4px 24px rgba(108, 99, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-glass.btn-primary:hover {
    background: rgba(108, 99, 255, 0.4);
    box-shadow: 0 8px 32px rgba(108, 99, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-glass.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--text);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-glass.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .btn-glass.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e4e4e7;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .btn-glass.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: scrollBounce 2s ease-in-out infinite;
}

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

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

/* ============================================================
   Sections - General
   ============================================================ */
.section {
    padding-block: clamp(80px, 12vw, 140px);
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-inline: 24px;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-1);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.label-number {
    color: var(--accent-1);
    font-weight: 600;
}

.label-line {
    display: inline-block;
    width: 40px; height: 2px;
    background: var(--accent-1);
    border-radius: 1px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 48px;
    letter-spacing: -0.02em;
}

/* ============================================================
   About Section
   ============================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
}

.about-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text);
}

.about-description {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

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

.text-gradient {
    color: var(--accent-1);
    font-weight: inherit;
}

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

/* About Stats */
.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-card {
    background: rgba(240, 242, 248, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
    cursor: default;
}

[data-theme="dark"] .stat-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.stat-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-4px);
}

/* Stat Card Hover Animations */
.stat-card .stat-icon svg {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-card:hover .stat-icon svg {
    transform: scale(1.15) rotate(5deg);
    color: var(--accent-1);
}

.stat-card:hover .location-icon svg {
    animation: pinBounce 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pinBounce {
    0% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
    50% { transform: translateY(-2px); }
    70% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

.stat-value {
    display: flex;
    align-items: baseline;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1;
    color: var(--accent-1);
    transition: color 0.3s ease, transform 0.3s ease;
}

.stat-card:hover .stat-number {
    color: var(--accent-1);
    transform: scale(1.05);
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1;
    color: var(--accent-1);
    display: inline;
    transition: color 0.3s ease;
}

.stat-card:hover .stat-suffix {
    color: var(--accent-1);
}

.stat-icon {
    color: var(--accent-1);
    margin-bottom: 4px;
}

.location-icon { color: var(--accent-2); }

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============================================================
   Projects Section
   ============================================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

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

.project-card {
    position: relative;
    background: rgba(240, 242, 248, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

[data-theme="dark"] .project-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.project-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-4px);
}

.project-spotlight { display: none; }

.project-image {
    aspect-ratio: 4 / 3;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--project-color, var(--accent-1)) 10%, var(--bg-tertiary)),
        var(--bg-secondary)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-card-lg .project-image { aspect-ratio: 16 / 9; }

.project-image-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--project-color, var(--accent-1));
}

.project-icon {
    width: 60%;
    max-width: 200px;
    opacity: 0.25;
    transition: opacity var(--transition-base), transform var(--transition-slow);
}

.project-card:hover .project-icon {
    opacity: 0.4;
    transform: scale(1.05);
}

/* ============================================================
   Project Card Hover Animations
   ============================================================ */

/* Company Factory - Network nodes pulse */
[data-project="company-factory"] .project-icon circle {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    transform-origin: center;
}
[data-project="company-factory"]:hover .project-icon circle {
    transform: scale(1.3);
    opacity: 0.8;
}
[data-project="company-factory"] .project-icon line {
    transition: opacity 0.4s ease, stroke-width 0.3s ease;
}
[data-project="company-factory"]:hover .project-icon line {
    opacity: 0.9;
    stroke-width: 1.5;
}

/* Lead Hunter - Magnifying glass searches */
[data-project="lead-hunter"] .project-icon {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-project="lead-hunter"]:hover .project-icon {
    transform: rotate(-15deg) scale(1.1);
}
[data-project="lead-hunter"] .project-icon circle {
    transition: r 0.4s ease, stroke-width 0.3s ease;
}
[data-project="lead-hunter"]:hover .project-icon circle {
    stroke-width: 1.5;
}

/* Trading Bot - Chart line draws and dot pulses */
[data-project="trading-bot"] .project-icon polyline {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 0.8s ease;
}
[data-project="trading-bot"]:hover .project-icon polyline {
    stroke-dashoffset: 0;
}
[data-project="trading-bot"]:hover .project-icon circle {
    animation: tradingPulse 1s ease-in-out infinite;
}
@keyframes tradingPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* Field Sales OS - Phone content slides in */
[data-project="field-sales-os"] .project-icon line {
    transform: translateX(-20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
[data-project="field-sales-os"]:hover .project-icon line:nth-child(2) {
    transform: translateX(0); opacity: 0.5; transition-delay: 0s;
}
[data-project="field-sales-os"]:hover .project-icon line:nth-child(3) {
    transform: translateX(0); opacity: 0.5; transition-delay: 0.1s;
}
[data-project="field-sales-os"]:hover .project-icon line:nth-child(4) {
    transform: translateX(0); opacity: 0.5; transition-delay: 0.2s;
}

/* AI Receptionist - Person glows + signal waves */
[data-project="ai-receptionist"] .project-icon circle:first-child {
    transition: stroke-width 0.3s ease;
}
[data-project="ai-receptionist"]:hover .project-icon circle:first-child {
    stroke-width: 1.5;
}
[data-project="ai-receptionist"]:hover .project-icon circle:last-child {
    animation: signalWave 1.2s ease-out infinite;
}
@keyframes signalWave {
    0% { opacity: 0.7; r: 6; }
    100% { opacity: 0; r: 14; }
}

/* UrbanWave - Buildings grow up */
[data-project="urbanwave"] .project-icon path {
    transform-origin: bottom center;
    transform: scaleY(0);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-project="urbanwave"]:hover .project-icon path:nth-child(1) {
    transform: scaleY(1); transition-delay: 0s;
}
[data-project="urbanwave"]:hover .project-icon path:nth-child(2) {
    transform: scaleY(1); transition-delay: 0.1s;
}
[data-project="urbanwave"]:hover .project-icon path:nth-child(3) {
    transform: scaleY(1); transition-delay: 0.2s;
}

/* Vibecoding OS - Code lines type in */
[data-project="vibecoding-os"] .project-icon line {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    transition: stroke-dashoffset 0.5s ease;
}
[data-project="vibecoding-os"]:hover .project-icon line:nth-child(2) {
    stroke-dashoffset: 0; transition-delay: 0s;
}
[data-project="vibecoding-os"]:hover .project-icon line:nth-child(3) {
    stroke-dashoffset: 0; transition-delay: 0.15s;
}
[data-project="vibecoding-os"]:hover .project-icon line:nth-child(4) {
    stroke-dashoffset: 0; transition-delay: 0.3s;
}

/* WhatsApp Bot - Chat dots bounce */
[data-project="whatsapp-bot"] .project-icon circle {
    opacity: 0;
    transition: opacity 0.2s ease;
}
[data-project="whatsapp-bot"]:hover .project-icon circle:nth-child(2) {
    animation: chatDot 1s ease-in-out 0s infinite;
}
[data-project="whatsapp-bot"]:hover .project-icon circle:nth-child(3) {
    animation: chatDot 1s ease-in-out 0.15s infinite;
}
[data-project="whatsapp-bot"]:hover .project-icon circle:nth-child(4) {
    animation: chatDot 1s ease-in-out 0.3s infinite;
}
@keyframes chatDot {
    0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
    30% { opacity: 0.8; transform: translateY(-4px); }
}

/* Project Info */
.project-info {
    position: relative;
    z-index: 2;
    padding: 24px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.tag {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 12px;
    background: rgba(108, 99, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(108, 99, 255, 0.15);
    color: var(--tag-color);
    border-radius: var(--radius-pill);
}

[data-theme="dark"] .tag {
    background: rgba(108, 99, 255, 0.15);
    border: 1px solid rgba(108, 99, 255, 0.2);
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-1);
    transition: gap var(--transition-fast);
}

.project-link:hover { gap: 10px; }
.project-link svg { transition: transform var(--transition-fast); }
.project-link:hover svg { transform: translate(2px, -2px); }

/* ============================================================
   Skills Section
   ============================================================ */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.skill-category {
    background: rgba(240, 242, 248, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

[data-theme="dark"] .skill-category {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.skill-category:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.skill-category-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
}

.service-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-top: 12px;
}

/* ============================================================
   Service Hover Animations
   ============================================================ */
.service-anim {
    width: 100%;
    height: 120px;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.service-svg {
    width: 100%;
    height: 100%;
}

/* --- Web: content blocks slide in --- */
.sa-block {
    transform: translateX(-40px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

[data-service="web"]:hover .sa-block-1 { transform: translateX(0); opacity: 0.6; transition-delay: 0s; }
[data-service="web"]:hover .sa-block-2 { transform: translateX(0); opacity: 0.15; transition-delay: 0.1s; }
[data-service="web"]:hover .sa-block-3 { transform: translateX(0); opacity: 0.15; transition-delay: 0.2s; }
[data-service="web"]:hover .sa-block-4 { transform: translateX(0); opacity: 0.15; transition-delay: 0.3s; }

/* --- AI: pulse + orbits scale --- */
.sa-orbit {
    transform-origin: center;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.sa-line {
    transition: opacity 0.4s ease;
}

.sa-pulse {
    opacity: 0;
    transform-origin: center;
}

.sa-core-dot {
    transition: opacity 0.3s ease, r 0.4s ease;
}

[data-service="ai"]:hover .sa-orbit { transform: scale(1.15); opacity: 0.8; }
[data-service="ai"]:hover .sa-line { opacity: 0.6; }
[data-service="ai"]:hover .sa-core-dot { opacity: 0.7; }
[data-service="ai"]:hover .sa-pulse { animation: saPulse 1.5s ease-out infinite; }

@keyframes saPulse {
    0% { opacity: 0.4; r: 18; }
    100% { opacity: 0; r: 45; }
}

/* --- Chat: bubbles slide in + typing dots bounce --- */
.sa-bubble {
    transform: translateY(15px) scale(0.9);
    opacity: 0 !important;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.sa-bubble-line {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sa-dot {
    opacity: 0;
}

[data-service="chat"]:hover .sa-bubble-1 { transform: translateY(0) scale(1); opacity: 0.12 !important; transition-delay: 0s; }
[data-service="chat"]:hover .sa-bubble-2 { transform: translateY(0) scale(1); opacity: 0.2 !important; transition-delay: 0.15s; }
[data-service="chat"]:hover .sa-bubble-3 { transform: translateY(0) scale(1); opacity: 0.12 !important; transition-delay: 0.3s; }
[data-service="chat"]:hover .sa-bubble-line { opacity: 1; transition-delay: 0.2s; }
[data-service="chat"]:hover .sa-dot-1 { animation: saDotBounce 1s ease-in-out 0.4s infinite; }
[data-service="chat"]:hover .sa-dot-2 { animation: saDotBounce 1s ease-in-out 0.55s infinite; }
[data-service="chat"]:hover .sa-dot-3 { animation: saDotBounce 1s ease-in-out 0.7s infinite; }

@keyframes saDotBounce {
    0%, 60%, 100% { opacity: 0.2; transform: translateY(0); }
    30% { opacity: 0.7; transform: translateY(-5px); }
}

/* --- CRM: bars grow up + trend line draws --- */
.sa-bar {
    transform-origin: bottom center;
    transform: scaleY(0);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.sa-trend {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 0.8s ease 0.3s;
}

[data-service="crm"]:hover .sa-bar-1 { transform: scaleY(1); transition-delay: 0s; }
[data-service="crm"]:hover .sa-bar-2 { transform: scaleY(1); transition-delay: 0.1s; }
[data-service="crm"]:hover .sa-bar-3 { transform: scaleY(1); transition-delay: 0.2s; }
[data-service="crm"]:hover .sa-bar-4 { transform: scaleY(1); transition-delay: 0.3s; }
[data-service="crm"]:hover .sa-trend { stroke-dashoffset: 0; }

.category-icon {
    color: var(--accent-1);
    display: inline-flex;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
    cursor: default;
}

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

.skill-icon-wrapper {
    width: 48px; height: 48px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.skill-item:hover .skill-icon-wrapper {
    border-color: var(--accent-1);
}

.skill-icon {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-1);
}

/* Skill logo images */
.skill-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.skill-name {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    font-weight: 500;
}

/* ============================================================
   Contact Section
   ============================================================ */
.contact {
    position: relative;
    overflow: hidden;
    background: var(--bg-secondary);
}

.contact-aurora { display: none; }

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

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
}

.contact-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.contact-desc {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 32px;
    line-height: 1.7;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
}

.form-input {
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-md);
    background: rgba(240, 242, 248, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
}

[data-theme="dark"] .form-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.form-input::placeholder {
    color: var(--text-light);
}

.form-input:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    align-self: stretch;
    border: none;
    width: 100%;
    padding: 16px 32px;
    font-size: 1rem;
}

.form-success {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 16px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: var(--radius-md);
    color: #22c55e;
    font-size: 0.9rem;
}

.form-success.visible {
    display: flex;
}

/* Contact Sidebar */
.contact-sidebar {
    padding-top: 80px;
}

.contact-sidebar-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
}

.contact-links-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(240, 242, 248, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-pill);
    padding: 14px 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    cursor: pointer;
}

[data-theme="dark"] .contact-link {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.contact-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
}

.contact-link-icon {
    color: var(--accent-1);
    display: inline-flex;
}

.contact-link-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

.contact-link-arrow {
    display: inline-flex;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    color: var(--text-muted);
}

.contact-link:hover .contact-link-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* --- Map --- */
.map-wrapper {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.map-wrapper iframe {
    display: block;
}

.map-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ============================================================
   Footer
   ============================================================ */
/* --- Process Section --- */
.process-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
}

.process-step {
    flex: 1;
    text-align: center;
    padding: 0 16px;
    position: relative;
}

.process-number {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-1);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.process-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: rgba(108, 99, 255, 0.08);
    border: 1px solid rgba(108, 99, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--accent-1);
    transition: all var(--transition-base);
}

.process-step:hover .process-icon {
    background: rgba(108, 99, 255, 0.15);
    border-color: rgba(108, 99, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(108, 99, 255, 0.15);
}

.process-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.process-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.process-connector {
    display: flex;
    align-items: center;
    padding-top: 40px;
    flex-shrink: 0;
}

/* --- Footer --- */
.footer {
    padding: 48px 0 24px;
    border-top: 1px solid var(--border-subtle);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 32px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo {
    height: 160px;
    width: auto;
    object-fit: contain;
    align-self: flex-start;
    margin-left: -80px;
    margin-bottom: -40px;
}

.footer-logo-dark { display: none; }

[data-theme="dark"] .footer-logo-light { display: none; }
[data-theme="dark"] .footer-logo-dark { display: block; }

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 280px;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-nav-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--accent-1);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

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

/* Reveal animations disabled — all elements always visible */

.magnetic-btn {
    position: relative;
    display: inline-flex;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .projects-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
    .project-card-lg { grid-column: span 1; }
    .project-card-lg .project-image { aspect-ratio: 4 / 3; }
    .skills-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .nav-hamburger { display: flex; }
    .hero { padding-bottom: 40px; }
    .hero-title { font-size: clamp(2.5rem, 12vw, 4.5rem); }
    .hero-cta { flex-direction: column; width: 100%; align-items: stretch; }
    .btn { justify-content: center; padding: 14px 24px; }
    .btn-glass { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
    .section { padding-block: clamp(60px, 10vw, 100px); }
    .section-title { font-size: clamp(1.8rem, 6vw, 2.4rem); }
    .about-heading { font-size: clamp(1.3rem, 5vw, 1.8rem); }
    .about-stats { grid-template-columns: 1fr 1fr; }
    .skills-grid { grid-template-columns: 1fr; }
    .service-anim { height: 100px; }
    .service-svg { transform-origin: center; }
    .projects-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-sidebar { padding-top: 0; }
    .contact-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }
    .form-row { grid-template-columns: 1fr; }
    .contact-links-vertical { flex-direction: row; flex-wrap: wrap; }
    .contact-link { width: auto; }
    .process-grid { flex-direction: column; gap: 16px; }
    .process-connector { display: none; }
    .process-step {
        padding: 20px;
        text-align: left;
        display: flex;
        flex-direction: column;
        gap: 10px;
        position: relative;
        background: var(--bg-secondary);
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius-lg);
    }
    .process-step .process-number {
        position: absolute;
        top: 16px;
        right: 16px;
        font-size: 0.7rem;
        opacity: 0.4;
        margin-bottom: 0;
    }
    .process-step .process-icon { margin: 0 0 4px; flex-shrink: 0; }
    .process-step .process-title { font-size: 1rem; }
    .process-step .process-desc { font-size: 0.85rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
    .footer-brand { align-items: center; }
    .footer-tagline { max-width: none; }
    .footer-nav-col { align-items: center; }
}

@media (max-width: 480px) {
    .container { padding-inline: 16px; }
    .hero { padding-bottom: 24px; }
    .hero-content { padding: 0 16px; }
    .hero-badge { font-size: 0.75rem; padding: 6px 14px; }
    .scroll-indicator { bottom: 16px; }
    .scroll-indicator span { font-size: 0.6rem; }
    .about-stats { grid-template-columns: 1fr; }
    .stat-card { padding: 16px; }
    .skill-category { padding: 20px; }
    .skill-items { gap: 8px; }
    .skill-item { padding: 8px; }
    .skill-icon-wrapper { width: 40px; height: 40px; }
    .skill-logo { width: 22px; height: 22px; }
    .service-anim { height: 85px; }
    .projects-grid { gap: 16px; }
    .footer-logo { height: 64px; }
    .nav-logo-img { height: 80px; }
}

/* --- Fallback for browsers without backdrop-filter --- */
@supports not (backdrop-filter: blur(1px)) {
    .navbar { background: var(--navbar-scrolled); }
    .mobile-menu { background: var(--mobile-menu-bg); }
    .theme-toggle { background: var(--bg-secondary); }
    .stat-card, .project-card, .skill-category, .contact-link, .form-input {
        background: var(--card-bg);
        border: 1px solid var(--border-subtle);
    }
    .btn-glass.btn-primary { background: var(--accent-1); }
    .btn-glass.btn-secondary { background: var(--bg-secondary); }
    .nav-cta { background: var(--accent-1); }
    .tag { background: var(--tag-bg); }
}
