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

:root {
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-alt: 'Inter', sans-serif;
  --sp-1: 8px; --sp-2: 16px; --sp-3: 24px; --sp-4: 32px; --sp-5: 40px;
  --sp-6: 48px; --sp-8: 64px; --sp-10: 80px; --sp-12: 96px;
  --radius-sm: 8px; --radius-md: 16px; --radius-lg: 24px; --radius-xl: 32px; --radius-full: 9999px;
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] {
  --bg: hsl(225, 15%, 3%); --bg-glass: hsla(225, 15%, 4%, 0.8);
  --surface: hsl(225, 12%, 7%); --surface-2: hsl(225, 12%, 11%); --surface-3: hsl(225, 12%, 15%);
  --border: hsla(0, 0%, 100%, 0.06); --border-hover: hsla(0, 0%, 100%, 0.14);
  --text: hsl(0, 0%, 97%); --text-muted: hsl(225, 8%, 48%); --text-subtle: hsl(225, 8%, 22%);
  --accent: hsl(354, 80%, 58%); --accent-glow: hsla(354, 80%, 58%, 0.18);
  --accent-subtle: hsla(354, 80%, 58%, 0.06); --accent-2: hsl(354, 90%, 65%);
  --toggle-bg: hsl(225, 12%, 12%); --toggle-knob: hsl(0, 0%, 97%);
  --nav-hover: hsla(0, 0%, 100%, 0.05);
  --hero-overlay: linear-gradient(to bottom, hsla(225, 15%, 3%, 0) 40%, hsla(225, 15%, 3%, 1) 100%);
  --card-shadow: 0 2px 8px hsla(0,0%,0%,0.3), 0 1px 3px hsla(0,0%,0%,0.2);
  --card-shadow-hover: 0 24px 48px -12px hsla(0,0%,0%,0.45), 0 8px 16px -8px hsla(0,0%,0%,0.3);
  --glow-accent: 0 0 80px -20px hsla(354, 80%, 58%, 0.3);
  --noise-opacity: 0.03;
}

[data-theme="light"] {
  --bg: hsl(40, 20%, 97%); --bg-glass: hsla(40, 20%, 97%, 0.82);
  --surface: hsl(0, 0%, 100%); --surface-2: hsl(40, 15%, 93%); --surface-3: hsl(40, 15%, 89%);
  --border: hsla(225, 20%, 20%, 0.06); --border-hover: hsla(225, 20%, 20%, 0.14);
  --text: hsl(225, 25%, 8%); --text-muted: hsl(225, 8%, 42%); --text-subtle: hsl(225, 8%, 78%);
  --accent: hsl(354, 80%, 52%); --accent-glow: hsla(354, 80%, 52%, 0.12);
  --accent-subtle: hsla(354, 80%, 52%, 0.05); --accent-2: hsl(354, 90%, 60%);
  --toggle-bg: hsl(40, 15%, 89%); --toggle-knob: hsl(225, 25%, 8%);
  --nav-hover: hsla(225, 20%, 20%, 0.04);
  --hero-overlay: linear-gradient(to bottom, hsla(40, 20%, 97%, 0) 40%, hsla(40, 20%, 97%, 1) 100%);
  --card-shadow: 0 2px 8px hsla(225,20%,20%,0.04), 0 1px 3px hsla(225,20%,20%,0.03);
  --card-shadow-hover: 0 16px 32px -8px hsla(225,20%,20%,0.1), 0 4px 8px -4px hsla(225,20%,20%,0.06);
  --glow-accent: 0 0 60px -20px hsla(354, 80%, 52%, 0.15);
  --noise-opacity: 0.015;
}

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

html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body); background-color: var(--bg); color: var(--text);
  line-height: 1.6; transition: background-color var(--transition), color var(--transition);
  overflow-x: hidden; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}

body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  opacity: var(--noise-opacity); mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

::selection { background: var(--accent); color: white; }
section { position: relative; padding: var(--sp-12) var(--sp-4); overflow: hidden; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--sp-10); }
@media (max-width: 1200px) { .container { padding: 0 var(--sp-6); } }
@media (max-width: 768px) { .container { padding: 0 var(--sp-4); } }

/* ═══ HEADER ═══ */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: 80px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 var(--sp-10);
  background: var(--bg-glass); border-bottom: 1px solid var(--border);
  backdrop-filter: blur(32px) saturate(220%); -webkit-backdrop-filter: blur(32px) saturate(220%);
  transition: all var(--transition);
}
header.scrolled { height: 64px; box-shadow: 0 4px 40px hsla(0,0%,0%,0.12), 0 1px 0 var(--border); }

.logo {
  font-family: var(--font-display); font-style: italic; font-size: 1.25rem; font-weight: 400;
  letter-spacing: -0.02em; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 2px; transition: all var(--transition);
  margin-right: var(--sp-6);
}
.logo span { color: var(--accent); font-weight: 400; }
.header-right { display: flex; align-items: center; gap: var(--sp-5); }

/* ─── Theme Toggle ─── */
.theme-toggle {
  width: 52px; height: 28px; background: var(--toggle-bg); border: 1px solid var(--border);
  border-radius: var(--radius-full); cursor: pointer; position: relative; display: flex;
  align-items: center; justify-content: space-around; padding: 0 4px; transition: all var(--transition);
}
.theme-toggle .icon { font-size: 12px; z-index: 1; opacity: 0.6; transition: opacity var(--transition); }
.theme-toggle .knob {
  position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--toggle-knob); box-shadow: 0 2px 4px rgba(0,0,0,0.1); transition: all var(--transition-slow);
}
[data-theme="light"] .theme-toggle .knob { transform: translateX(24px); }

/* ─── Nav Links ─── */
nav { display: flex; align-items: center; gap: var(--sp-2); }
nav a { font-family: var(--font-body); font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); text-decoration: none; padding: var(--sp-1) var(--sp-3); border-radius: var(--radius-md); transition: all var(--transition); letter-spacing: 0.1em; }
nav a:hover, nav a.nav-active { color: var(--text); background: var(--nav-hover); }
nav a.nav-active { position: relative; }
nav a.nav-active::after { content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%); width: 16px; height: 2px; border-radius: var(--radius-full); background: var(--accent); }
nav a.cta {
  background: var(--accent); color: white; padding: 10px 22px; margin-left: var(--sp-4);
  box-shadow: 0 8px 16px var(--accent-glow); text-transform: none; font-size: 0.85rem;
  letter-spacing: normal; white-space: nowrap; border-radius: var(--radius-full);
  display: inline-flex; align-items: center; height: fit-content;
}
nav a.cta:hover { transform: translateY(-1px) scale(1.02); box-shadow: 0 12px 24px var(--accent-glow); }
.header-socials { display: flex; gap: var(--sp-2); margin: 0 var(--sp-3); padding-right: var(--sp-3); border-right: 1px solid var(--border); align-items: center; }
.header-socials a { opacity: 0.8; transition: 0.3s; width: 24px; height: 24px; display: flex; }
.header-socials a img { width: 100%; height: 100%; object-fit: contain; }

/* ─── Mobile Menu ─── */
.menu-toggle { display: none; flex-direction: column; gap: 6px; cursor: pointer; padding: var(--sp-2); border-radius: var(--radius-md); transition: all var(--transition); background: transparent; border: none; }
.menu-toggle:hover { background: var(--nav-hover); }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: var(--radius-full); transition: all var(--transition); }
.mobile-nav { position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-4); z-index: 2000; transition: all var(--transition-slow); padding: var(--sp-8); }
.mobile-nav.open { right: 0; }
.mobile-nav-close {
  position: absolute; top: var(--sp-4); right: var(--sp-4); width: 48px; height: 48px;
  border-radius: var(--radius-full); border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text); font-size: 1.8rem; cursor: pointer; display: flex; align-items: center;
  justify-content: center; transition: all var(--transition); line-height: 1;
}
.mobile-nav-close:hover { background: var(--accent); color: white; border-color: var(--accent); transform: scale(1.1); }
.mobile-nav a { font-family: var(--font-display); font-size: 2.5rem; font-weight: 400; color: var(--text); text-decoration: none; transition: all var(--transition); }
.mobile-nav a:hover { color: var(--accent); transform: translateX(10px); }
.mobile-socials { margin-top: auto; padding-bottom: var(--sp-8); display: flex; gap: var(--sp-6); justify-content: center; align-items: center; }
.mobile-socials a { display: flex; }
.mobile-socials img { object-fit: contain; }

/* ═══ HERO ═══ */
#hero-scroll-container { height: 140vh; position: relative; }
#hero-sticky { position: sticky; top: 0; height: 100vh; width: 100%; overflow: hidden; background: #000; }
#hero-canvas { width: 100%; height: 100%; object-fit: cover; display: block; transform: translate3d(0,0,0); }
.hero-overlay { position: absolute; inset: 0; background: var(--hero-overlay); pointer-events: none; }
.hero-content::before { content: ''; position: absolute; inset: -80px -120px; background: radial-gradient(ellipse at center, hsla(225, 15%, 3%, 0.7) 0%, transparent 70%); z-index: -1; pointer-events: none; border-radius: 50%; }
.hero-content { position: absolute; top: 55%; left: 50%; transform: translate(-50%, -50%); text-align: center; width: 90%; max-width: 900px; z-index: 10; transition: top 0.3s ease; }
.hero-eyebrow { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--sp-3); opacity: 0; animation: fadeUp 0.8s 0.2s forwards; }
.hero-headline { font-family: var(--font-display); font-size: clamp(2.5rem, 10vw, 7rem); font-weight: 400; line-height: 0.95; letter-spacing: -0.04em; color: var(--text); margin-bottom: var(--sp-4); opacity: 0; animation: fadeUp 1s 0.4s var(--ease) forwards; text-shadow: 0 4px 24px hsla(0, 0%, 0%, 0.5); }
.hero-headline em { font-style: italic; color: var(--accent); }
.hero-sub { font-family: var(--font-body); font-size: clamp(0.95rem, 2.5vw, 1.35rem); color: var(--text-muted); max-width: 600px; margin: 0 auto; opacity: 0; animation: fadeUp 1s 0.6s var(--ease) forwards; line-height: 1.5; }
.hero-cta { display: flex; gap: var(--sp-2); justify-content: center; margin-top: var(--sp-4); pointer-events: auto; opacity: 0; animation: fadeUp 1s 0.8s var(--ease) forwards; }

/* ─── Buttons ─── */
.btn-primary { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; color: white; background: var(--accent); padding: 14px 28px; border-radius: var(--radius-full); text-decoration: none; transition: all var(--transition); box-shadow: 0 8px 24px var(--accent-glow); letter-spacing: 0.01em; }
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 16px 40px var(--accent-glow), var(--glow-accent); }
.btn-secondary { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; color: var(--text); background: var(--surface-2); padding: 14px 28px; border-radius: var(--radius-full); border: 1px solid var(--border); text-decoration: none; transition: all var(--transition); }
.btn-secondary:hover { border-color: var(--border-hover); background: var(--surface-3); transform: translateY(-2px); }
.btn-lg { font-size: 1rem; padding: var(--sp-2) var(--sp-6); }

/* ─── Loading Overlay ─── */
#loader { position: fixed; inset: 0; background: var(--bg); z-index: 10000; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity 0.4s var(--transition); }
#loader.hidden { opacity: 0; pointer-events: none; }
.loader-logo { font-family: var(--font-display); font-size: 2rem; font-style: italic; color: var(--text); margin-bottom: var(--sp-4); }
.loader-logo span { color: var(--accent); }
.loader-bar-wrap { width: 240px; height: 2px; background: var(--surface-2); border-radius: var(--radius-full); overflow: hidden; }
.loader-bar { height: 100%; width: 0%; background: var(--accent); transition: width 0.2s ease; }
.loader-pct { font-size: 0.8rem; color: var(--text-muted); margin-top: var(--sp-1); }

/* ─── Keyframes ─── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes rotateRing { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes slideOutLeft { to { transform: translateX(-120%) rotate(-8deg); opacity: 0; } }
@keyframes slideOutRight { to { transform: translateX(120%) rotate(8deg); opacity: 0; } }
@keyframes slideIn { from { transform: translateX(60px) rotate(3deg); opacity: 0; } to { transform: translateX(0) rotate(0deg); opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.7); } }

/* ─── Section Headers ─── */
.section-header { margin-bottom: var(--sp-10); max-width: 600px; }
.section-eyebrow { font-family: var(--font-body); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--sp-2); display: block; }
.section-title { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 400; line-height: 1.0; letter-spacing: -0.03em; color: var(--text); margin-bottom: var(--sp-3); }
.section-sub { font-size: 1.125rem; color: var(--text-muted); max-width: 480px; line-height: 1.6; }

/* ═══ WORKS ═══ */
#works { padding: 60px 24px 100px; border-top: 1px solid var(--border); max-width: 1200px; margin: 0 auto; }
.works-tabs { display: flex; gap: var(--sp-1); margin-bottom: var(--sp-8); padding: var(--sp-1); background: var(--surface-2); width: fit-content; border-radius: var(--radius-md); border: 1px solid var(--border); }
.works-tab { padding: 10px 24px; font-size: 0.875rem; font-weight: 600; color: var(--text-muted); cursor: pointer; background: transparent; border: none; border-radius: var(--radius-sm); transition: all var(--transition); white-space: nowrap; font-family: var(--font-body); }
.works-tab:hover { color: var(--text); }
.works-tab.active { color: var(--text); background: var(--surface); box-shadow: var(--card-shadow); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Poster Polaroid */
.poster-stage { position: relative; display: flex; flex-direction: column; align-items: center; min-height: 720px; padding-top: var(--sp-6); }
.poster-deck { position: relative; width: min(320px, 80vw); height: min(450px, 110vw); margin: 0 auto var(--sp-6); perspective: 1000px; touch-action: pan-y; }
.poster-deck::before, .poster-deck::after { content: ''; position: absolute; inset: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--card-shadow); }
.poster-deck::before { transform: translateZ(-20px) rotate(-4deg); opacity: 0.6; z-index: 1; }
.poster-deck::after { transform: translateZ(-10px) rotate(2deg); opacity: 0.8; z-index: 2; }
.polaroid { position: absolute; inset: 0; z-index: 3; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--card-shadow-hover); display: flex; flex-direction: column; padding: var(--sp-1) var(--sp-1) var(--sp-4); cursor: pointer; transition: all var(--transition); will-change: transform; }
.polaroid:hover { transform: scale(1.02) translateY(-8px); }
.polaroid.exit-left { animation: slideOutLeft 0.35s cubic-bezier(0.4,0,1,1) forwards; }
.polaroid.exit-right { animation: slideOutRight 0.35s cubic-bezier(0.4,0,1,1) forwards; }
.polaroid.enter { animation: slideIn 0.38s cubic-bezier(0,0,0.2,1) forwards; }
.poster-img-wrap { flex: 1; border-radius: 2px; overflow: hidden; background: #1a1a1a; display: flex; align-items: center; justify-content: center; }
.poster-img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.poster-aurak-badge { display: none; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 10; background: linear-gradient(90deg, #e63946, #c1121f); color: #fff; font-size: 0.65rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; white-space: nowrap; box-shadow: 0 4px 16px rgba(230,57,70,0.5); pointer-events: none; }
.poster-aurak-badge.visible { display: block; }
.polaroid-label { text-align: center; font-size: 0.8rem; font-weight: 500; color: var(--text-muted); padding-top: 10px; font-family: 'Courier New', monospace; letter-spacing: 0.02em; }
.poster-nav { display: flex; align-items: center; gap: 20px; }
.poster-nav-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background var(--transition), border-color var(--transition), transform 0.15s ease; font-size: 1rem; }
.poster-nav-btn:hover { background: var(--nav-hover); transform: scale(1.08); }
.poster-counter { font-size: 0.8rem; color: var(--text-muted); font-variant-numeric: tabular-nums; min-width: 48px; text-align: center; }
.poster-dots { display: flex; gap: 6px; margin-top: 18px; }
.poster-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border); cursor: pointer; transition: background var(--transition), transform 0.2s ease; }
.poster-dot.active { background: var(--accent); transform: scale(1.3); }

/* Websites Grid */
.websites-intro { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 32px; line-height: 1.6; }
.websites-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--sp-4); }
.site-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-4); transition: all var(--transition); box-shadow: var(--card-shadow); position: relative; }
.site-card::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; background: linear-gradient(135deg, transparent 40%, var(--accent-glow) 100%); z-index: -1; opacity: 0; transition: opacity var(--transition); }
.site-card:hover { border-color: var(--border-hover); transform: translateY(-6px); box-shadow: var(--card-shadow-hover), var(--glow-accent); }
.site-card:hover::before { opacity: 1; }
.site-icon { width: 56px; height: 56px; border-radius: var(--radius-md); background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; transition: all var(--transition); }
.site-icon img { width: 28px; height: 28px; object-fit: contain; display: block; }
.site-card:hover .site-icon { background: var(--accent-subtle); }
.site-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.site-name { font-family: var(--font-display); font-size: 1.75rem; font-weight: 400; color: var(--text); }
.site-desc { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.6; }
.site-link { margin-top: auto; font-size: 0.875rem; font-weight: 700; color: var(--accent); text-decoration: none; display: flex; align-items: center; gap: 4px; transition: all var(--transition); }
.site-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.site-tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--radius-full); background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); }
.favicon-fallback { font-size: 1.1rem; line-height: 1; }

.portfolio-group-title {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-2);
  border-bottom: 2px solid var(--accent-subtle);
  display: inline-block;
}

.other-ventures-card {
  margin-top: var(--sp-8);
  padding: var(--sp-4);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.other-ventures-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-3);
  transform: translateY(-4px);
}
.ov-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.ov-list {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.ov-item {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* SaaS */
.saas-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.saas-card { background: linear-gradient(145deg, var(--surface) 0%, var(--surface-2) 100%); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: var(--sp-10); position: relative; overflow: hidden; transition: all var(--transition); box-shadow: var(--card-shadow); }
.saas-card:hover { box-shadow: var(--card-shadow-hover), var(--glow-accent); transform: translateY(-6px); border-color: var(--border-hover); }
.saas-card::before { content: ''; position: absolute; top: -100px; right: -100px; width: 300px; height: 300px; background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%); pointer-events: none; }
.saas-badge { display: inline-flex; align-items: center; gap: var(--sp-1); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); background: var(--accent-subtle); border: 1px solid var(--accent-glow); padding: 6px 16px; border-radius: var(--radius-full); margin-bottom: var(--sp-4); }
.saas-name { font-family: var(--font-display); font-size: 3rem; font-weight: 400; letter-spacing: -0.04em; color: var(--text); margin-bottom: var(--sp-2); }
.saas-desc { font-size: 1.125rem; color: var(--text-muted); line-height: 1.6; margin-bottom: var(--sp-6); }
.saas-actions { display: flex; gap: var(--sp-2); }
.saas-info { display: flex; flex-direction: column; gap: var(--sp-2); }
.saas-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--sp-3) var(--sp-4); transition: all var(--transition); box-shadow: var(--card-shadow); }
.saas-stat:hover { border-color: var(--border-hover); transform: translateX(6px); box-shadow: var(--card-shadow-hover); }
.saas-stat-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.saas-stat-value { font-size: 1.25rem; font-weight: 700; color: var(--text); }

/* ═══ SERVICES ═══ */
#services-banner { background: var(--surface-2); padding: var(--sp-12) var(--sp-4); border-top: 1px solid var(--border); }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
.service-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-3); transition: all var(--transition); box-shadow: var(--card-shadow); position: relative; }
.service-card::after { content: ''; position: absolute; bottom: 0; left: var(--sp-6); right: var(--sp-6); height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 3px 3px 0 0; transform: scaleX(0); transition: transform var(--transition-bounce); }
.service-card:hover { border-color: var(--border-hover); transform: translateY(-8px); box-shadow: var(--card-shadow-hover), var(--glow-accent); }
.service-card:hover::after { transform: scaleX(1); }
.service-icon { font-size: 2rem; margin-bottom: var(--sp-1); }
.service-name { font-family: var(--font-body); font-size: 1.25rem; font-weight: 700; color: var(--text); }
.service-desc { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.6; }

/* Trust Bar */
.trust-bar { display: flex; justify-content: center; gap: var(--sp-8); flex-wrap: wrap; margin-top: var(--sp-10); padding-top: var(--sp-6); border-top: 1px solid var(--border); }
.trust-item { text-align: center; }
.trust-num { font-family: var(--font-display); font-size: 2.5rem; color: var(--accent); line-height: 1; }
.trust-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px; }

/* ═══ FLOATING SOCIAL BAR ═══ */
.social-bar { position: fixed; left: var(--sp-4); top: 50%; transform: translateY(-50%); z-index: 100; display: flex; flex-direction: column; gap: var(--sp-2); }
.social-bar::after { content: ''; display: block; width: 1px; height: 60px; background: var(--border); margin-top: 6px; transition: background var(--transition); }
.social-link { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: center; color: var(--text-muted); text-decoration: none; transition: background var(--transition), border-color var(--transition), color var(--transition), transform 0.2s ease, box-shadow 0.2s ease; }
.social-link img { width: 18px; height: 18px; object-fit: contain; }
.social-link:hover { transform: translateX(3px) scale(1.1); color: var(--text); border-color: var(--text-muted); box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.social-link.instagram:hover { color: #e1306c; border-color: #e1306c; box-shadow: 0 4px 16px rgba(225,48,108,0.25); }
.social-link.whatsapp:hover { color: #25d366; border-color: #25d366; box-shadow: 0 4px 16px rgba(37,211,102,0.25); }
.social-link.linkedin:hover { color: #0a66c2; border-color: #0a66c2; box-shadow: 0 4px 16px rgba(10,102,194,0.25); }
.social-link.github:hover { color: var(--text); border-color: var(--text); box-shadow: 0 4px 16px rgba(255,255,255,0.1); }

/* ═══ ABOUT ═══ */
#about { border-top: 1px solid var(--border); padding: 120px 24px 100px; }
.about-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 320px 1fr; gap: 80px; align-items: start; }
.about-photo-wrap { position: relative; width: 240px; height: 240px; margin: 0 auto var(--sp-6); }
.about-photo-wrap img { width: 100%; height: 100%; border-radius: var(--radius-lg); object-fit: cover; display: block; position: relative; z-index: 1; box-shadow: var(--card-shadow-hover); }
.about-photo-ring { position: absolute; inset: -12px; border-radius: var(--radius-xl); border: 1px solid var(--accent); opacity: 0.2; animation: rotateRing 10s linear infinite; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.about-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--sp-3); display: flex; flex-direction: column; gap: 4px; transition: all var(--transition); box-shadow: var(--card-shadow); }
.about-stat:hover { border-color: var(--border-hover); transform: translateY(-4px) scale(1.02); box-shadow: var(--card-shadow-hover), var(--glow-accent); }
.as-num { font-family: var(--font-display); font-size: 2rem; font-weight: 400; color: var(--accent); line-height: 1; }
.as-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.about-bio { display: flex; flex-direction: column; gap: 14px; margin-bottom: 48px; }
.about-bio p { font-size: 1rem; line-height: 1.75; color: var(--text-muted); }
.about-bio a { color: var(--accent); text-decoration: none; font-weight: 600; }
.about-bio a:hover { text-decoration: underline; }

/* Timeline */
.about-timeline { display: flex; flex-direction: column; position: relative; padding-left: var(--sp-8); }
.about-timeline::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; background: var(--surface-2); border-radius: var(--radius-full); }
.timeline-item { padding-bottom: var(--sp-10); position: relative; }
.timeline-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: -31px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); z-index: 1; transition: all var(--transition); }
.tl-dot-live { background: var(--accent); box-shadow: 0 0 0 6px var(--accent-glow); }
.timeline-item:hover .tl-dot { transform: scale(1.4); background: var(--accent); }
.tl-content { flex: 1; }
.tl-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.tl-badge-live { color: var(--accent); }
.tl-title { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); margin-bottom: 6px; }
.tl-desc { font-size: 0.84rem; color: var(--text-muted); line-height: 1.6; }
.tl-more { font-size: 0.8rem; font-weight: 700; color: var(--accent); margin-top: 10px; letter-spacing: 0.03em; opacity: 0.85; }
.tl-photos { display: flex; gap: 8px; overflow-x: auto; margin-top: 14px; padding-bottom: 6px; scrollbar-width: thin; scrollbar-color: var(--border) transparent; -webkit-overflow-scrolling: touch; }
.tl-photo { flex-shrink: 0; width: 100px; height: 76px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); cursor: pointer; transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; background: var(--surface); }
.tl-photo:hover { transform: scale(1.05); border-color: var(--accent); box-shadow: 0 4px 16px rgba(230,57,70,0.25); }
.tl-photo img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }

/* ═══ TESTIMONIALS ═══ */
#testimonials { border-top: 1px solid var(--border); padding: 120px 24px 100px; }
.t-featured { margin-top: var(--sp-8); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: var(--sp-8); position: relative; overflow: hidden; transition: all var(--transition); box-shadow: var(--card-shadow); }
.t-featured:hover { box-shadow: var(--card-shadow-hover), var(--glow-accent); border-color: var(--border-hover); }
.t-featured::after { content: ''; position: absolute; top: -100px; right: -100px; width: 300px; height: 300px; background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%); pointer-events: none; }
.t-month-badge { display: inline-flex; align-items: center; gap: var(--sp-1); padding: 6px 16px; background: var(--accent-subtle); border: 1px solid var(--accent-glow); border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; }
.t-quote-mark { font-family: var(--font-display); font-size: 8rem; color: var(--accent); opacity: 0.1; position: absolute; top: 40px; right: 40px; line-height: 1; }
.t-body p { font-family: var(--font-body); font-size: 1.25rem; line-height: 1.6; color: var(--text); margin-bottom: var(--sp-4); position: relative; }
.t-author { display: flex; align-items: center; gap: var(--sp-2); padding-top: var(--sp-4); border-top: 1px solid var(--border); }
.t-avatar { width: 56px; height: 56px; border-radius: var(--radius-full); background: linear-gradient(135deg, var(--accent) 0%, hsl(354, 78%, 40%) 100%); color: white; font-size: 1.25rem; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: var(--card-shadow); }
.t-author-info { flex: 1; }
.t-name { font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.t-role { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.t-verified { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 600; color: #2a9d8f; background: rgba(42, 157, 143, 0.1); border: 1px solid rgba(42, 157, 143, 0.25); padding: 5px 12px; border-radius: 999px; }

/* ═══ CONTACT ═══ */
#contact { border-top: 1px solid var(--border); padding: 120px 24px 60px; max-width: 1200px; margin: 0 auto; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; margin-bottom: 80px; }
.contact-title { font-family: var(--font-display); font-size: clamp(3rem, 8vw, 6rem); font-weight: 400; line-height: 1.0; letter-spacing: -0.04em; color: var(--text); margin-bottom: var(--sp-4); }
.contact-desc { font-size: 1.125rem; color: var(--text-muted); line-height: 1.6; max-width: 440px; margin-bottom: var(--sp-6); }
.contact-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-top: var(--sp-3); }
.whatsapp-note { font-size: 0.75rem; color: var(--accent); font-weight: 600; margin-top: 8px; opacity: 0.9; width: 100%; }
.contact-socials { display: flex; flex-direction: column; gap: var(--sp-2); }
.contact-social { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--sp-3) var(--sp-4); display: flex; align-items: center; gap: var(--sp-3); text-decoration: none; transition: all var(--transition); box-shadow: var(--card-shadow); }
.contact-social:hover { transform: translateX(8px) translateY(-3px); box-shadow: var(--card-shadow-hover), var(--glow-accent); border-color: var(--border-hover); }
.cs-icon { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--surface-2); display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.cs-icon img { width: 24px; height: 24px; object-fit: contain; }
.cs-info { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.cs-name { font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.cs-handle { font-size: 0.82rem; color: var(--text-muted); }

/* ═══ FOOTER ═══ */
#main-footer { padding: var(--sp-6) var(--sp-4); border-top: 1px solid var(--border); position: relative; }
#main-footer::before { content: ''; position: absolute; top: 0; left: 20%; right: 20%; height: 1px; background: linear-gradient(90deg, transparent, var(--accent-glow), transparent); }
.footer-bottom { text-align: center; color: var(--text-muted); font-size: 0.82rem; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.footer-bottom p + p { margin-top: 4px; font-size: 0.75rem; opacity: 0.7; }
.footer-socials { display: flex; gap: var(--sp-4); justify-content: center; margin-bottom: var(--sp-4); align-items: center; }
.footer-socials a { width: 28px; height: 28px; opacity: 0.8; transition: 0.3s; display: flex; align-items: center; justify-content: center; }
.footer-socials a img { width: 100%; height: 100%; object-fit: contain; }
[data-theme="dark"] .footer-socials a[aria-label="GitHub"] img,
[data-theme="dark"] .social-link.github img { filter: invert(1) brightness(0.9); }

/* Lightbox */
#lightbox { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); align-items: center; justify-content: center; padding: 24px; }
#lightbox.open { display: flex; }
#lightbox-img { max-width: min(90vw, 800px); max-height: 85vh; border-radius: 12px; object-fit: contain; box-shadow: 0 24px 80px rgba(0,0,0,0.6); }
.lb-close { position: absolute; top: 20px; right: 24px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s ease; }
.lb-close:hover { background: rgba(255,255,255,0.2); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s ease; user-select: none; }
.lb-nav:hover { background: rgba(255,255,255,0.2); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-caption { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); font-size: 0.78rem; color: rgba(255,255,255,0.6); letter-spacing: 0.06em; white-space: nowrap; }

/* Scroll reveal */
.reveal { opacity: 0.001; transform: translateY(32px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); will-change: opacity, transform; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; } .reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; } .reveal-d4 { transition-delay: 0.4s; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  header { position: fixed; padding: 0 var(--sp-4); min-height: 64px; height: 64px !important; backdrop-filter: blur(16px); background: var(--bg-glass); border-bottom: 1px solid var(--border); }
  header.scrolled { height: 64px !important; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
  nav { display: none; }
  .menu-toggle { display: flex; transform: scale(0.9); }
  .theme-toggle { transform: scale(0.9); margin-right: 4px; }
  .logo { font-size: 1.15rem; }
  .hero-content { top: 50%; width: 92%; max-width: 480px; }
  .hero-headline { font-size: clamp(2.25rem, 12vw, 3.5rem); line-height: 1.0; margin-bottom: 12px; }
  .hero-sub { font-size: 0.95rem; line-height: 1.5; max-width: 320px; margin: 0 auto; opacity: 0.9; }
  .hero-cta { flex-direction: column; width: 100%; max-width: 280px; margin: 32px auto 0; gap: 12px; }
  .hero-cta .btn-primary, .hero-cta .btn-secondary { width: 100%; text-align: center; padding: 16px; font-size: 0.9rem; justify-content: center; }
  .social-bar { display: none; }
  #works { padding: 50px 16px 50px; }
  .section-header { margin-bottom: 32px; text-align: center; }
  .section-eyebrow { font-size: 0.75rem; }
  .section-title { font-size: 1.85rem; }
  .section-sub { font-size: 0.95rem; margin: 0 auto; }
  .saas-wrapper { grid-template-columns: 1fr; gap: 40px; margin-top: 20px; }
  .saas-card { padding: 24px; border-radius: var(--radius-lg); }
  .saas-info { border-left: none; padding-left: 0; margin-left: 0; }
  .works-tabs {
    display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 4px;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-full);
    width: fit-content; max-width: 100%; margin: 0 auto; overflow-x: auto;
    scrollbar-width: none; -ms-overflow-style: none; padding: 8px 16px;
  }
  .works-tabs::-webkit-scrollbar { display: none; }
  .works-tab { white-space: nowrap; width: auto; padding: 8px 20px; background: transparent; border: none; font-size: 0.8rem; }
  .works-tab.active { background: var(--accent); color: white; border-radius: var(--radius-full); }
  .websites-grid { grid-template-columns: 1fr; gap: 24px; }
  .services-grid { grid-template-columns: 1fr; gap: 24px; }
  .service-card { text-align: center; padding: 32px 24px; }
  .service-icon { margin-bottom: 16px; font-size: 2.5rem; }
  .service-name { font-size: 1.15rem; }
  .trust-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; justify-content: center; }
  .trust-item:last-child { grid-column: span 2; }
  #services-banner { padding: 60px 16px; }
  #about { padding: 40px 16px; }
  .about-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .about-left { width: 100%; overflow: hidden; }
  .about-photo-wrap { margin: 0 auto 20px; width: 160px; height: 160px; }
  .about-stats { display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 280px; margin: 0 auto; }
  .about-stat { width: 100%; padding: 16px; }
  .as-num { font-size: 1.75rem; }
  .tl-photos { flex-wrap: wrap; justify-content: center; gap: 8px; overflow-x: visible; }
  .tl-photo { width: 100%; height: auto; max-width: 280px; aspect-ratio: 4/3; }
  #testimonials { padding: 60px 16px; }
  .t-featured { padding: 40px 24px; text-align: center; }
  .t-month-badge { margin-bottom: 16px; }
  .t-body p { font-size: 1rem; }
  .t-author { flex-direction: column; gap: 12px; text-align: center; }
  #contact { padding: 60px 16px 40px; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; margin-bottom: 40px; }
  .contact-title { font-size: clamp(2.5rem, 12vw, 3.5rem); }
  .contact-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; max-width: none; }
  .contact-socials { max-width: 100%; margin: 0 auto; }
  .cs-icon { width: 44px; height: 44px; border-radius: 12px; }
  .cs-icon img { width: 22px; height: 22px; }
}

/* TV / Large screens */
@media (min-width: 1920px) {
  .container { max-width: 1600px; }
  .hero-headline { font-size: 8rem; }
  .section-title { font-size: 5rem; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .websites-grid { grid-template-columns: repeat(3, 1fr); }
}
