/* ============================================
   STUDIO NOIR - visualstudo-mac.com
   Premium Creative Agency Design System
   ============================================ */

/* === FONTS === */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latinext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jetbrainsmono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jetbrainsmono-latinext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF;
}

/* === CSS CUSTOM PROPERTIES === */
:root {
  --bg-primary: #fafaf9;
  --bg-secondary: #f5f5f4;
  --bg-tertiary: #e7e5e4;
  --text-primary: #0c0a09;
  --text-secondary: #44403c;
  --text-muted: #78716c;
  --accent-coral: #f43f5e;
  --accent-coral-dark: #e11d48;
  --accent-blue: #3b82f6;
  --accent-blue-dark: #2563eb;
  --accent-gold: #eab308;
  --accent-gold-dark: #ca8a04;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: rgba(0, 0, 0, 0.08);
  --card-bg: #ffffff;
  --card-border: #e7e5e4;
  --card-hover-border: #f43f5e;
  --nav-bg: rgba(250, 250, 249, 0.85);
  --code-bg: #1e1e2e;
  --code-text: #cdd6f4;
  --gradient-coral: linear-gradient(135deg, #f43f5e, #e11d48);
  --gradient-blue: linear-gradient(135deg, #3b82f6, #2563eb);
  --gradient-coral-blue: linear-gradient(135deg, #f43f5e, #3b82f6);
  --gradient-gold: linear-gradient(135deg, #eab308, #f59e0b);
  --gradient-mesh: linear-gradient(135deg, #fafaf9 0%, #fef2f2 25%, #eff6ff 50%, #fefce8 75%, #fafaf9 100%);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --transition: 0.3s ease;
  --scrollbar-thumb: #f43f5e;
  --scrollbar-track: #f5f5f4;
}

[data-theme="dark"] {
  --bg-primary: #09090b;
  --bg-secondary: #18181b;
  --bg-tertiary: #27272a;
  --text-primary: #fafaf9;
  --text-secondary: #d4d4d8;
  --text-muted: #a1a1aa;
  --accent-coral: #fb7185;
  --accent-coral-dark: #f43f5e;
  --accent-blue: #60a5fa;
  --accent-blue-dark: #3b82f6;
  --accent-gold: #facc15;
  --accent-gold-dark: #eab308;
  --glass-bg: rgba(24, 24, 27, 0.7);
  --glass-border: rgba(63, 63, 70, 0.4);
  --glass-shadow: rgba(0, 0, 0, 0.3);
  --card-bg: #18181b;
  --card-border: #27272a;
  --card-hover-border: #fb7185;
  --nav-bg: rgba(9, 9, 11, 0.85);
  --code-bg: #0f0f12;
  --code-text: #cdd6f4;
  --gradient-coral: linear-gradient(135deg, #fb7185, #f43f5e);
  --gradient-blue: linear-gradient(135deg, #60a5fa, #3b82f6);
  --gradient-coral-blue: linear-gradient(135deg, #fb7185, #60a5fa);
  --gradient-gold: linear-gradient(135deg, #facc15, #fbbf24);
  --gradient-mesh: linear-gradient(135deg, #09090b 0%, #1a0a0f 25%, #0a1628 50%, #1a1a05 75%, #09090b 100%);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.5);
  --scrollbar-thumb: #fb7185;
  --scrollbar-track: #18181b;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}
a { color: var(--accent-coral); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-coral-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1.05rem, 2vw, 1.35rem); }
p { margin-bottom: 1rem; color: var(--text-secondary); }
strong { color: var(--text-primary); font-weight: 600; }
code { font-family: var(--font-mono); font-size: 0.9em; }

/* === STYLED SCROLLBAR === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-coral-dark); }
html { scrollbar-width: thin; scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track); }

/* === READING PROGRESS BAR === */
.reading-progress {
  position: fixed; top: 0; left: 0; width: 0%; height: 3px;
  background: var(--gradient-coral); z-index: 10001; transition: width 0.1s linear;
}

/* === CONTAINER === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 24px; }

/* === NAVIGATION === */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--nav-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: background var(--transition), box-shadow var(--transition);
}
.site-nav.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.nav-logo {
  font-size: 1.3rem; font-weight: 800; color: var(--text-primary);
  text-decoration: none; display: flex; align-items: center; gap: 10px;
}
.nav-logo svg { flex-shrink: 0; }
.nav-logo-text {
  background: var(--gradient-coral-blue);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  color: var(--text-secondary); padding: 8px 16px; border-radius: var(--radius-sm);
  font-weight: 500; font-size: 0.95rem; position: relative; text-decoration: none;
  transition: color var(--transition);
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 2px; left: 16px; right: 16px; height: 2px;
  background: var(--gradient-coral); border-radius: 1px;
  transform: scaleX(0); transform-origin: right; transition: transform 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }

/* Nav dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 4px; }
.dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: var(--glass-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all 0.25s ease; z-index: 100;
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
  display: block; padding: 10px 16px; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: 0.9rem;
}
.dropdown-menu a:hover { background: var(--bg-secondary); color: var(--text-primary); }
.dropdown-menu a::after { display: none; }

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  background: var(--bg-secondary); border: 1px solid var(--card-border); border-radius: 50%;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--transition); color: var(--text-secondary);
}
.theme-toggle:hover { border-color: var(--accent-coral); color: var(--accent-coral); }
.theme-toggle svg { width: 20px; height: 20px; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

.nav-cta {
  background: var(--gradient-coral); color: white; padding: 10px 24px;
  border-radius: var(--radius-sm); font-weight: 600; font-size: 0.9rem;
  text-decoration: none; transition: all var(--transition); border: none; cursor: pointer;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(244, 63, 94, 0.4); color: white; }

/* Mobile menu */
.mobile-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; align-items: center; justify-content: center; color: var(--text-primary);
}
.mobile-toggle svg { width: 24px; height: 24px; }
.mobile-menu {
  display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
  background: var(--bg-primary); padding: 24px; overflow-y: auto; z-index: 999;
}
.mobile-menu.active { display: block; }
.mobile-menu a {
  display: block; padding: 14px 0; color: var(--text-primary); font-size: 1.1rem;
  font-weight: 500; border-bottom: 1px solid var(--card-border); text-decoration: none;
}
.mobile-menu .mobile-dropdown-items a { padding-left: 20px; font-size: 1rem; color: var(--text-secondary); }

/* === HERO SECTION === */
.hero {
  position: relative; min-height: 90vh; display: flex; align-items: center;
  padding: 120px 0 80px; overflow: hidden;
}
.hero-mesh {
  position: absolute; inset: 0;
  background: var(--gradient-mesh); background-size: 400% 400%;
  animation: gradient-shift 15s ease infinite;
}
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Floating shapes */
.hero-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-shape {
  position: absolute; border-radius: 50%; opacity: 0.15;
  animation: float-shape 20s ease-in-out infinite;
}
.hero-shape-1 {
  width: 300px; height: 300px; background: var(--accent-coral);
  top: 10%; right: 10%; animation-delay: 0s; animation-duration: 18s;
}
.hero-shape-2 {
  width: 200px; height: 200px; background: var(--accent-blue);
  bottom: 20%; left: 5%; animation-delay: -5s; animation-duration: 22s;
}
.hero-shape-3 {
  width: 150px; height: 150px; background: var(--accent-gold);
  top: 40%; right: 30%; animation-delay: -10s; animation-duration: 25s;
}
.hero-shape-4 {
  width: 100px; height: 100px; background: var(--accent-coral);
  bottom: 30%; right: 20%; animation-delay: -7s; animation-duration: 20s;
}
@keyframes float-shape {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(15px, 35px) scale(1.02); }
}

.hero-content {
  position: relative; z-index: 2; max-width: 800px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--glass-bg); backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border); border-radius: 50px;
  padding: 8px 20px; margin-bottom: 24px; font-size: 0.9rem; font-weight: 500;
  color: var(--text-secondary);
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}
.hero h1 { margin-bottom: 20px; }
.gradient-text {
  background: var(--gradient-coral-blue);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--text-secondary);
  margin-bottom: 32px; line-height: 1.8; max-width: 600px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  background: var(--gradient-coral); color: white; padding: 14px 32px;
  border-radius: var(--radius-sm); font-weight: 600; font-size: 1rem;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: all var(--transition); border: none; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(244, 63, 94, 0.3); color: white; }
.btn-secondary {
  background: var(--glass-bg); backdrop-filter: blur(10px); color: var(--text-primary);
  padding: 14px 32px; border-radius: var(--radius-sm); font-weight: 600; font-size: 1rem;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--card-border); transition: all var(--transition); cursor: pointer;
}
.btn-secondary:hover { border-color: var(--accent-coral); color: var(--accent-coral); transform: translateY(-2px); }

/* === CSS MARQUEE TICKER === */
.ticker {
  background: var(--bg-secondary); border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border); overflow: hidden; padding: 14px 0;
}
.ticker-track {
  display: flex; gap: 32px; white-space: nowrap; width: max-content;
  animation: ticker-scroll 30s linear infinite;
}
.ticker-track span {
  font-size: 0.95rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 2px;
}
.ticker-track .ticker-dot { color: var(--accent-coral); }
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === SECTION STYLES === */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-secondary); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-label {
  display: inline-block; font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 3px; color: var(--accent-coral);
  margin-bottom: 12px;
}
.section-title { margin-bottom: 16px; }
.section-desc {
  font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto;
}

/* === WAVE DIVIDER === */
.wave-divider { position: relative; overflow: hidden; line-height: 0; }
.wave-divider svg { display: block; width: 100%; height: 60px; }
.wave-divider svg path { fill: var(--bg-secondary); }
.wave-divider-flip svg path { fill: var(--bg-primary); }

/* === GLASS CARD === */
.glass-card {
  background: var(--glass-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  padding: 32px; transition: all var(--transition);
}
.glass-card:hover {
  transform: translateY(-8px); box-shadow: var(--shadow-xl);
  border-color: var(--card-hover-border);
}

/* === GRADIENT BORDER CARD === */
.gradient-border-card {
  position: relative; border-radius: var(--radius-lg); padding: 2px;
  background: var(--gradient-coral-blue);
}
.gradient-border-card-inner {
  background: var(--card-bg); border-radius: calc(var(--radius-lg) - 2px);
  padding: 32px; height: 100%;
}

/* === BENTO GRID === */
.bento-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.bento-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 36px; transition: all var(--transition);
  position: relative; overflow: hidden;
}
.bento-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient-coral); opacity: 0; transition: opacity var(--transition);
}
.bento-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); border-color: var(--card-hover-border); }
.bento-card:hover::before { opacity: 1; }
.bento-icon {
  width: 56px; height: 56px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; background: var(--bg-secondary);
}
.bento-icon svg { width: 28px; height: 28px; color: var(--accent-coral); }
.bento-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.bento-card p { color: var(--text-muted); font-size: 0.95rem; }

/* === IMAGE PLACEHOLDER / SHIMMER === */
.img-placeholder {
  background: var(--bg-secondary); border-radius: var(--radius-md); overflow: hidden;
  position: relative; aspect-ratio: 16/10;
}
.img-placeholder::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, var(--glass-bg) 50%, transparent 100%);
  animation: shimmer 2s ease-in-out infinite; background-size: 200% 100%;
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* === CASE STUDY / PORTFOLIO CARDS === */
.portfolio-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 32px;
}
.portfolio-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition);
}
.portfolio-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); border-color: var(--card-hover-border); }
.portfolio-card-img { aspect-ratio: 16/10; position: relative; overflow: hidden; }
.portfolio-card-body { padding: 28px; }
.portfolio-card-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tag {
  font-size: 0.8rem; font-weight: 600; padding: 4px 12px;
  border-radius: 50px; background: var(--bg-secondary); color: var(--text-muted);
}
.tag-coral { background: rgba(244, 63, 94, 0.1); color: var(--accent-coral); }
.tag-blue { background: rgba(59, 130, 246, 0.1); color: var(--accent-blue); }
.tag-gold { background: rgba(234, 179, 8, 0.1); color: var(--accent-gold-dark); }
.portfolio-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.portfolio-card p { color: var(--text-muted); font-size: 0.95rem; }
.portfolio-metrics {
  display: flex; gap: 24px; margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--card-border);
}
.metric { text-align: center; }
.metric-value { font-size: 1.2rem; font-weight: 800; color: var(--accent-coral); }
.metric-label { font-size: 0.8rem; color: var(--text-muted); }

/* === STATS SECTION === */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.stat-card {
  text-align: center; padding: 40px 24px;
  background: var(--glass-bg); backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
}
.stat-number {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  background: var(--gradient-coral-blue);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.stat-label { font-size: 1rem; color: var(--text-muted); font-weight: 500; }

/* === TESTIMONIALS === */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.testimonial-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 36px; transition: all var(--transition);
  position: relative;
}
.testimonial-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.testimonial-quote-icon {
  width: 40px; height: 40px; color: var(--accent-coral); opacity: 0.3; margin-bottom: 16px;
}
.testimonial-text { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 48px; height: 48px; border-radius: 50%; background: var(--gradient-coral);
  display: flex; align-items: center; justify-content: center; color: white;
  font-weight: 700; font-size: 1.1rem;
}
.testimonial-info h4 { font-size: 0.95rem; margin-bottom: 2px; }
.testimonial-info p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* === ARTICLE CARDS === */
.articles-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.article-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition);
}
.article-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); border-color: var(--card-hover-border); }
.article-card-img { height: 200px; position: relative; overflow: hidden; }
.article-card-body { padding: 24px; }
.article-card-meta {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
  font-size: 0.85rem; color: var(--text-muted);
}
.article-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.article-card h3 a { color: var(--text-primary); text-decoration: none; }
.article-card h3 a:hover { color: var(--accent-coral); }
.article-card p { font-size: 0.9rem; color: var(--text-muted); }

/* === CTA SECTION === */
.cta-section {
  position: relative; padding: 100px 0; overflow: hidden;
}
.cta-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 30%, #3b82f6 70%, #2563eb 100%);
  background-size: 300% 300%; animation: gradient-shift 10s ease infinite;
}
[data-theme="dark"] .cta-bg {
  background: linear-gradient(135deg, #881337 0%, #9f1239 30%, #1e3a5f 70%, #1e40af 100%);
  background-size: 300% 300%;
}
.cta-content {
  position: relative; z-index: 2; text-align: center; color: white;
}
.cta-content h2 { color: white; margin-bottom: 16px; }
.cta-content p { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 500px; margin: 0 auto 32px; }
.btn-white {
  background: white; color: #e11d48; padding: 14px 36px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 1rem; text-decoration: none; display: inline-flex;
  align-items: center; gap: 8px; transition: all var(--transition);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); color: #e11d48; }

/* === FOOTER === */
.site-footer {
  background: var(--bg-secondary); border-top: 1px solid var(--card-border); padding: 60px 0 30px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px;
}
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 12px; line-height: 1.7; }
.footer-heading {
  font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: var(--text-primary); margin-bottom: 16px;
}
.footer-links a {
  display: block; color: var(--text-muted); padding: 6px 0; font-size: 0.9rem; text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent-coral); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 10px; }
.footer-contact-item svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: var(--accent-coral); }
.footer-bottom {
  border-top: 1px solid var(--card-border); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); margin: 0; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 0.8rem; color: var(--text-muted); text-decoration: none; }
.footer-legal a:hover { color: var(--accent-coral); }
.footer-corporate {
  text-align: center; margin-top: 20px; padding-top: 20px;
  border-top: 1px solid var(--card-border);
}
.footer-corporate p { font-size: 0.75rem; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* === GUIDE / ARTICLE LAYOUT === */
.guide-hero {
  position: relative; padding: 140px 0 60px; overflow: hidden;
}
.guide-hero-bg {
  position: absolute; inset: 0;
  background: var(--gradient-mesh); background-size: 400% 400%;
  animation: gradient-shift 15s ease infinite;
}
.guide-hero-content { position: relative; z-index: 2; max-width: 800px; }
.guide-hero-label {
  display: inline-block; font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 3px; color: var(--accent-coral); margin-bottom: 16px;
}
.guide-hero h1 { margin-bottom: 16px; }
.guide-hero-meta {
  display: flex; align-items: center; gap: 20px; color: var(--text-muted); font-size: 0.9rem;
}
.guide-hero-meta span { display: flex; align-items: center; gap: 6px; }

.guide-layout {
  display: grid; grid-template-columns: 1fr 280px; gap: 60px;
  max-width: 1200px; margin: 0 auto; padding: 60px 24px;
}

/* Guide content */
.guide-content { min-width: 0; }
.guide-content h2 {
  font-size: 1.75rem; margin-top: 48px; margin-bottom: 20px;
  padding-bottom: 12px; border-bottom: 2px solid var(--card-border);
}
.guide-content h3 {
  font-size: 1.35rem; margin-top: 36px; margin-bottom: 16px; color: var(--accent-coral);
}
.guide-content h4 { font-size: 1.1rem; margin-top: 28px; margin-bottom: 12px; }
.guide-content p { font-size: 1.05rem; line-height: 1.85; margin-bottom: 1.2rem; }
.guide-content ul, .guide-content ol {
  margin-bottom: 1.2rem; padding-left: 24px;
}
.guide-content ul { list-style: disc; }
.guide-content ol { list-style: decimal; }
.guide-content li {
  font-size: 1.05rem; line-height: 1.8; margin-bottom: 8px; color: var(--text-secondary);
}
.guide-content blockquote {
  border-left: 4px solid var(--accent-coral); padding: 20px 24px;
  background: var(--bg-secondary); border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 24px 0; font-style: italic; color: var(--text-secondary);
}
.guide-content code {
  background: var(--bg-secondary); padding: 2px 8px; border-radius: 4px;
  font-size: 0.9em; color: var(--accent-coral);
}
.guide-content pre {
  background: var(--code-bg); color: var(--code-text); padding: 24px;
  border-radius: var(--radius-md); overflow-x: auto; margin: 24px 0;
  font-size: 0.9rem; line-height: 1.6; position: relative;
}
.guide-content pre code {
  background: none; padding: 0; color: inherit; font-size: inherit;
}
.copy-btn {
  position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.7); padding: 6px 10px; font-size: 0.8rem;
  cursor: pointer; transition: all var(--transition); font-family: var(--font-sans);
}
.copy-btn:hover { background: rgba(255,255,255,0.2); color: white; }

/* Info/tip boxes */
.info-box {
  padding: 24px; border-radius: var(--radius-md); margin: 24px 0;
  border-left: 4px solid var(--accent-blue);
  background: rgba(59, 130, 246, 0.05);
}
.info-box-title { font-weight: 700; color: var(--accent-blue); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.tip-box {
  padding: 24px; border-radius: var(--radius-md); margin: 24px 0;
  border-left: 4px solid var(--accent-gold);
  background: rgba(234, 179, 8, 0.05);
}
.tip-box-title { font-weight: 700; color: var(--accent-gold-dark); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.warning-box {
  padding: 24px; border-radius: var(--radius-md); margin: 24px 0;
  border-left: 4px solid var(--accent-coral);
  background: rgba(244, 63, 94, 0.05);
}
.warning-box-title { font-weight: 700; color: var(--accent-coral); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }

/* Floating TOC */
.floating-toc {
  position: sticky; top: 100px; align-self: start;
}
.toc-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 24px;
}
.toc-card h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px; color: var(--text-muted); }
.toc-card a {
  display: block; padding: 8px 12px; color: var(--text-muted); font-size: 0.9rem;
  text-decoration: none; border-left: 2px solid transparent;
  transition: all var(--transition); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.toc-card a:hover, .toc-card a.active {
  color: var(--accent-coral); border-left-color: var(--accent-coral);
  background: rgba(244, 63, 94, 0.05);
}

/* === PAGE HEADER (for non-guide pages) === */
.page-header {
  position: relative; padding: 140px 0 60px; overflow: hidden;
}
.page-header-bg {
  position: absolute; inset: 0;
  background: var(--gradient-mesh); background-size: 400% 400%;
  animation: gradient-shift 15s ease infinite;
}
.page-header-content { position: relative; z-index: 2; text-align: center; }
.page-header h1 { margin-bottom: 16px; }
.page-header p { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* === SERVICES PAGE === */
.process-timeline { position: relative; padding: 40px 0; }
.process-step {
  display: flex; gap: 32px; margin-bottom: 48px; align-items: flex-start;
}
.process-number {
  width: 60px; height: 60px; border-radius: 50%; background: var(--gradient-coral);
  color: white; font-size: 1.5rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.process-content h3 { margin-bottom: 8px; }
.process-content p { color: var(--text-muted); }

.service-detail-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 40px; margin-bottom: 32px;
  transition: all var(--transition);
}
.service-detail-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-detail-card h3 {
  font-size: 1.5rem; margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.service-detail-card h3 svg { color: var(--accent-coral); width: 28px; height: 28px; }
.deliverables-list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 16px;
}
.deliverables-list li {
  display: flex; align-items: center; gap: 8px; color: var(--text-muted);
  font-size: 0.95rem; padding: 4px 0;
}
.deliverables-list li svg { width: 16px; height: 16px; color: #22c55e; flex-shrink: 0; }

/* === CONTACT PAGE === */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-weight: 600; font-size: 0.9rem; color: var(--text-primary);
}
.form-group input, .form-group textarea, .form-group select {
  padding: 14px 18px; border: 1px solid var(--card-border); border-radius: var(--radius-sm);
  background: var(--bg-primary); color: var(--text-primary); font-family: var(--font-sans);
  font-size: 1rem; transition: all var(--transition); outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--accent-coral); box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.1);
}
.form-group textarea { min-height: 150px; resize: vertical; }

/* === FAQ ACCORDION === */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--card-border); border-radius: var(--radius-md);
  margin-bottom: 12px; overflow: hidden; background: var(--card-bg);
  transition: all var(--transition);
}
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; cursor: pointer; font-weight: 600; color: var(--text-primary);
  background: none; border: none; width: 100%; text-align: left; font-family: var(--font-sans);
  font-size: 1rem; transition: color var(--transition);
}
.faq-question:hover { color: var(--accent-coral); }
.faq-question svg { width: 20px; height: 20px; transition: transform 0.3s ease; flex-shrink: 0; color: var(--text-muted); }
.faq-item.active .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.active .faq-answer { max-height: 500px; }
.faq-answer-inner { padding: 0 24px 20px; color: var(--text-muted); line-height: 1.7; }

/* === BACK TO TOP === */
.back-to-top {
  position: fixed; bottom: 30px; right: 30px; width: 48px; height: 48px;
  background: var(--gradient-coral); color: white; border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; visibility: hidden; transition: all var(--transition);
  z-index: 999; box-shadow: var(--shadow-lg);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(244, 63, 94, 0.4); }
.back-to-top svg { width: 24px; height: 24px; }

/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 10000;
  background: var(--card-bg); border-top: 1px solid var(--card-border);
  padding: 20px; box-shadow: 0 -4px 20px rgba(0,0,0,0.1); display: none;
}
.cookie-banner.active { display: block; }
.cookie-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.cookie-inner p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.cookie-inner a { color: var(--accent-coral); }
.cookie-actions { display: flex; gap: 12px; }
.cookie-accept {
  background: var(--gradient-coral); color: white; border: none; padding: 10px 24px;
  border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; font-family: var(--font-sans);
  transition: all var(--transition);
}
.cookie-decline {
  background: var(--bg-secondary); color: var(--text-secondary); border: 1px solid var(--card-border);
  padding: 10px 24px; border-radius: var(--radius-sm); font-weight: 600; cursor: pointer;
  font-family: var(--font-sans); transition: all var(--transition);
}

/* === ABOUT PAGE === */
.team-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.team-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 36px; text-align: center;
  transition: all var(--transition);
}
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.team-avatar {
  width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 20px;
  background: var(--gradient-coral-blue);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 2rem; font-weight: 800;
}
.team-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.team-card .team-role { color: var(--accent-coral); font-weight: 600; font-size: 0.9rem; margin-bottom: 12px; }
.team-card p { font-size: 0.9rem; color: var(--text-muted); }

/* === LEGAL PAGES === */
.legal-content { max-width: 800px; margin: 0 auto; padding: 60px 24px; }
.legal-content h2 { font-size: 1.5rem; margin-top: 40px; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--card-border); }
.legal-content h3 { font-size: 1.2rem; margin-top: 28px; margin-bottom: 12px; }
.legal-content p { font-size: 1rem; line-height: 1.8; margin-bottom: 1rem; color: var(--text-secondary); }
.legal-content ul, .legal-content ol { margin-bottom: 1rem; padding-left: 24px; }
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content li { font-size: 1rem; line-height: 1.8; margin-bottom: 6px; color: var(--text-secondary); }
.legal-content table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.legal-content th, .legal-content td {
  padding: 12px 16px; border: 1px solid var(--card-border); text-align: left;
  font-size: 0.95rem;
}
.legal-content th { background: var(--bg-secondary); font-weight: 700; }
.legal-meta { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 32px; }

/* === BEFORE/AFTER SLIDER (CSS-only) === */
.ba-slider {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  aspect-ratio: 16/9; background: var(--bg-secondary);
}
.ba-before, .ba-after {
  position: absolute; top: 0; bottom: 0; overflow: hidden;
}
.ba-before {
  left: 0; width: 50%; z-index: 2;
  border-right: 3px solid white;
  background: var(--accent-coral); opacity: 0.15;
}
.ba-after {
  right: 0; left: 0; z-index: 1;
  background: var(--accent-blue); opacity: 0.15;
}
.ba-label {
  position: absolute; top: 12px; padding: 4px 12px;
  background: rgba(0,0,0,0.6); color: white; border-radius: 4px;
  font-size: 0.8rem; font-weight: 600;
}
.ba-before .ba-label { right: 12px; }
.ba-after .ba-label { left: 12px; }

/* === CSS-only counters for stats === */
.counter-animate {
  font-variant-numeric: tabular-nums;
}

/* === PARALLAX SECTIONS === */
.parallax-section {
  position: relative;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

/* === FILTER TABS (CSS radio) === */
.filter-tabs {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px;
}
.filter-tabs input[type="radio"] { display: none; }
.filter-tabs label {
  padding: 10px 24px; border-radius: 50px; border: 1px solid var(--card-border);
  font-weight: 600; font-size: 0.9rem; cursor: pointer; color: var(--text-muted);
  transition: all var(--transition); background: var(--card-bg);
}
.filter-tabs input[type="radio"]:checked + label {
  background: var(--gradient-coral); color: white; border-color: transparent;
}

/* === RESPONSE TIME BADGES === */
.response-badges {
  display: flex; gap: 16px; flex-wrap: wrap; margin: 24px 0;
}
.response-badge {
  display: flex; align-items: center; gap: 8px; padding: 12px 20px;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-md); font-size: 0.9rem; font-weight: 500;
}
.response-badge svg { color: var(--accent-coral); width: 20px; height: 20px; }

/* === MASONRY-LIKE GRID === */
.masonry-grid {
  columns: 3; column-gap: 24px;
}
.masonry-grid > * {
  break-inside: avoid; margin-bottom: 24px;
}

/* === FONT PAIRING EXAMPLES === */
.font-pair-example {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 32px; margin: 24px 0;
  transition: all var(--transition);
}
.font-pair-example:hover { box-shadow: var(--shadow-lg); }
.font-pair-heading { font-size: 1.5rem; margin-bottom: 8px; }
.font-pair-body { font-size: 1rem; color: var(--text-muted); line-height: 1.7; }
.font-pair-label { font-size: 0.8rem; color: var(--accent-coral); font-weight: 600; margin-bottom: 12px; }

/* === COLOR SWATCHES === */
.color-swatches {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 16px; margin: 24px 0;
}
.color-swatch {
  border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--card-border);
}
.color-swatch-preview { height: 80px; }
.color-swatch-info { padding: 10px; text-align: center; }
.color-swatch-info span { display: block; font-size: 0.8rem; color: var(--text-muted); font-family: var(--font-mono); }

/* === MAP PLACEHOLDER === */
.map-placeholder {
  background: var(--bg-secondary); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); height: 300px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 1rem;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .articles-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-layout { grid-template-columns: 1fr; }
  .floating-toc { display: none; }
  .masonry-grid { columns: 2; }
  .contact-grid { grid-template-columns: 1fr; }
  .deliverables-list { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .mobile-toggle { display: flex; }
  .hero { min-height: 70vh; padding: 100px 0 60px; }
  .bento-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero-actions { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .masonry-grid { columns: 1; }
  .process-step { flex-direction: column; gap: 16px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.75rem; }
  .container { padding: 0 16px; }
}

/* === PRINT === */
@media print {
  .site-nav, .back-to-top, .cookie-banner, .reading-progress, .floating-toc { display: none; }
  body { color: #000; background: #fff; }
  .hero { min-height: auto; padding: 20px 0; }
  .section { padding: 20px 0; }
}
