/* ============================================
   FG GRAFIK - Dual Theme Portfolio
   Dark Theme (default) + Light Theme
   Auto-detect via prefers-color-scheme
   Manual toggle available
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* ===== THEME SYSTEM ===== */
:root {
  /* Accent colors (same for both themes) */
  --accent: #7c5cfc;
  --accent-light: #a78bfa;
  --accent-blue: #5b8def;
  --accent-pink: #ec4899;
  --accent-gradient: linear-gradient(135deg, #7c5cfc 0%, #5b8def 50%, #ec4899 100%);
  --accent-glow: rgba(124, 92, 252, 0.4);
  --radius: 16px;
  --radius-lg: 24px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* DARK THEME (default) */
:root, [data-theme="dark"] {
  --bg: #06040a;
  --bg-elevated: #0c0a12;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-bg-hover: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(124, 92, 252, 0.25);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --glass-shadow-hover: 0 20px 60px rgba(124, 92, 252, 0.15);
  --text-primary: #f0edff;
  --text-secondary: rgba(240, 237, 255, 0.65);
  --text-muted: rgba(240, 237, 255, 0.4);
  --text-faint: rgba(240, 237, 255, 0.2);
  --border-color: rgba(255, 255, 255, 0.06);
  --hero-gradient: radial-gradient(ellipse at 30% 20%, rgba(124, 92, 252, 0.15) 0%, transparent 50%),
                     radial-gradient(ellipse at 70% 80%, rgba(91, 141, 239, 0.1) 0%, transparent 50%),
                     linear-gradient(180deg, #06040a 0%, #0a0818 100%);
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --input-bg: rgba(255, 255, 255, 0.04);
  --overlay-bg: rgba(6, 4, 10, 0.9);
  --gradient-text: linear-gradient(135deg, #f0edff 0%, #7c5cfc 50%, #5b8def 100%);
  --btn-primary-bg: linear-gradient(135deg, #7c5cfc 0%, #5b8def 100%);
  --btn-primary-shadow: 0 4px 20px rgba(124, 92, 252, 0.4);
  --logo-brightness: 1;
}

/* LIGHT THEME */
[data-theme="light"] {
  --bg: #f8f6ff;
  --bg-elevated: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-card-hover: rgba(255, 255, 255, 0.9);
  --glass-bg: rgba(255, 255, 255, 0.5);
  --glass-bg-hover: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(124, 92, 252, 0.12);
  --glass-border-hover: rgba(124, 92, 252, 0.3);
  --glass-shadow: 0 8px 32px rgba(124, 92, 252, 0.08);
  --glass-shadow-hover: 0 20px 60px rgba(124, 92, 252, 0.15);
  --text-primary: #1a1525;
  --text-secondary: rgba(26, 21, 37, 0.6);
  --text-muted: rgba(26, 21, 37, 0.4);
  --text-faint: rgba(26, 21, 37, 0.15);
  --border-color: rgba(124, 92, 252, 0.1);
  --hero-gradient: radial-gradient(ellipse at 30% 20%, rgba(124, 92, 252, 0.08) 0%, transparent 50%),
                     radial-gradient(ellipse at 70% 80%, rgba(91, 141, 239, 0.05) 0%, transparent 50%),
                     linear-gradient(180deg, #f8f6ff 0%, #ffffff 100%);
  --card-shadow: 0 4px 24px rgba(124, 92, 252, 0.06);
  --input-bg: rgba(124, 92, 252, 0.04);
  --overlay-bg: rgba(248, 246, 255, 0.95);
  --gradient-text: linear-gradient(135deg, #1a1525 0%, #7c5cfc 60%, #5b8def 100%);
  --btn-primary-bg: linear-gradient(135deg, #7c5cfc 0%, #5b8def 100%);
  --btn-primary-shadow: 0 4px 20px rgba(124, 92, 252, 0.3);
  --logo-brightness: 0.15;
}

/* Auto-detect via browser preference */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f8f6ff;
    --bg-elevated: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-card-hover: rgba(255, 255, 255, 0.9);
    --glass-bg: rgba(255, 255, 255, 0.5);
    --glass-bg-hover: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(124, 92, 252, 0.12);
    --glass-border-hover: rgba(124, 92, 252, 0.3);
    --glass-shadow: 0 8px 32px rgba(124, 92, 252, 0.08);
    --glass-shadow-hover: 0 20px 60px rgba(124, 92, 252, 0.15);
    --text-primary: #1a1525;
    --text-secondary: rgba(26, 21, 37, 0.6);
    --text-muted: rgba(26, 21, 37, 0.4);
    --text-faint: rgba(26, 21, 37, 0.15);
    --border-color: rgba(124, 92, 252, 0.1);
    --hero-gradient: radial-gradient(ellipse at 30% 20%, rgba(124, 92, 252, 0.08) 0%, transparent 50%),
                       radial-gradient(ellipse at 70% 80%, rgba(91, 141, 239, 0.05) 0%, transparent 50%),
                       linear-gradient(180deg, #f8f6ff 0%, #ffffff 100%);
    --card-shadow: 0 4px 24px rgba(124, 92, 252, 0.06);
    --input-bg: rgba(124, 92, 252, 0.04);
    --overlay-bg: rgba(248, 246, 255, 0.95);
    --gradient-text: linear-gradient(135deg, #1a1525 0%, #7c5cfc 60%, #5b8def 100%);
    --btn-primary-bg: linear-gradient(135deg, #7c5cfc 0%, #5b8def 100%);
    --btn-primary-shadow: 0 4px 20px rgba(124, 92, 252, 0.3);
    --logo-brightness: 0.15;
  }
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.5s ease, color 0.5s ease;
}
::selection { background: rgba(124, 92, 252, 0.25); color: var(--text-primary); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== GLASS COMPONENTS ===== */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.glass:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-shadow-hover);
  transform: translateY(-3px);
}
.glass-static {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}

/* ===== BUTTONS ===== */
.btn-gradient {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px;
  background: var(--btn-primary-bg);
  color: #fff;
  font-family: var(--font); font-size: 14px; font-weight: 600;
  letter-spacing: 0.02em; border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: var(--btn-primary-shadow);
  transition: var(--transition);
}
.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(124, 92, 252, 0.5);
}
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px;
  background: var(--glass-bg);
  color: var(--text-primary);
  font-family: var(--font); font-size: 14px; font-weight: 600;
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}
.btn-ghost:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
}

/* ===== TYPOGRAPHY ===== */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.section-title {
  font-size: clamp(32px, 5vw, 52px); font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.15; color: var(--text-primary); margin-bottom: 16px;
}
.section-subtitle {
  font-size: 18px; color: var(--text-secondary); max-width: 540px; line-height: 1.7;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  padding: 12px 0;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}
.nav-container {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 20px; letter-spacing: -0.02em;
  color: var(--text-primary);
}
.nav-logo img { height: 36px; width: auto; }
.nav-links {
  display: flex; align-items: center; gap: 32px; list-style: none;
}
.nav-links a {
  font-size: 14px; font-weight: 500;
  color: var(--text-secondary); transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-right {
  display: flex; align-items: center; gap: 16px;
}

/* Theme Toggle */
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid var(--glass-border);
  background: var(--glass-bg); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); transition: var(--transition);
}
.theme-toggle:hover {
  background: var(--glass-bg-hover); color: var(--text-primary);
  border-color: var(--glass-border-hover);
}

/* Mobile Menu */
.menu-toggle {
  display: none; background: none; border: none;
  color: var(--text-primary); cursor: pointer; padding: 4px;
}
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: var(--overlay-bg);
  backdrop-filter: blur(30px); flex-direction: column;
  align-items: center; justify-content: center; gap: 32px;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.mobile-menu.active { display: flex; opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-size: 28px; font-weight: 700; color: var(--text-primary);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--accent); }
.menu-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none; color: var(--text-primary);
  cursor: pointer;
}

/* ===== HERO (100vh) ===== */
.hero {
  min-height: 100vh; min-height: 100dvh;
  background: var(--hero-gradient);
  display: flex; align-items: center;
  padding: 100px 24px 60px;
  position: relative;
}
.hero-container {
  max-width: 1280px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.hero-content-left { display: flex; flex-direction: column; }
.hero-title {
  font-size: clamp(36px, 4.5vw, 58px); font-weight: 800;
  line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 16px;
}
.hero-subtitle {
  font-size: clamp(16px, 2vw, 22px); font-weight: 500;
  color: var(--accent); margin-bottom: 16px; letter-spacing: 0.02em;
}
.hero-desc { font-size: 16px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; max-width: 520px; }
.hero-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 50px; font-size: 13px; font-weight: 600;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  color: var(--text-secondary); backdrop-filter: blur(12px);
}
.hero-stats-row {
  display: flex; align-items: center; gap: 20px; margin: 24px 0;
}
.hero-stat-item { display: flex; flex-direction: column; align-items: flex-start; }
.hero-stat-num { font-size: 28px; font-weight: 800; color: var(--accent); line-height: 1; }
.hero-stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; font-weight: 500; }
.hero-stat-divider { width: 1px; height: 36px; background: var(--glass-border); }
@media (min-width: 1440px) {
  .hero-container { max-width: 1400px; gap: 60px; }
  .hero-title { font-size: clamp(44px, 4.2vw, 64px) !important; }
  .hero-subtitle { font-size: 20px !important; }
  .hero-mockup-container { max-width: 600px !important; }
}
@media (min-width: 1800px) {
  .hero-container { max-width: 1600px; gap: 80px; }
  .hero-title { font-size: 68px !important; }
  .hero-mockup-container { max-width: 680px !important; }
}
.hero-title .gradient { background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc { font-size: 17px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 32px; max-width: 480px; }
.hero-tags { font-size: 11px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 32px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-trusted { margin-top: 48px; }
.hero-trusted span { font-size: 11px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); }
.hero-trusted-logos { display: flex; gap: 24px; margin-top: 12px; align-items: center; flex-wrap: wrap; }
.hero-trusted-logos span { font-size: 16px; font-weight: 700; color: var(--text-faint); letter-spacing: 0; text-transform: none; }
.hero-visual {
  position: relative; display: flex; justify-content: center; align-items: center;
}
.hero-mockup-container {
  position: relative; width: 100%; max-width: 560px; aspect-ratio: 4/3;
  display: flex; justify-content: center; align-items: center;
}
.mockup-glow {
  position: absolute; width: 80%; height: 80%;
  background: radial-gradient(circle, rgba(124, 92, 252, 0.2) 0%, transparent 70%);
  border-radius: 50%; filter: blur(60px);
}
.mockup-browser {
  position: relative; width: 90%;
  background: var(--glass-bg);
  backdrop-filter: blur(20px); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--glass-shadow);
}
.mockup-bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  border-bottom: 1px solid var(--glass-border);
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dot.r { background: #ff5f56; }
.mockup-dot.y { background: #ffbd2e; }
.mockup-dot.g { background: #27c93f; }
.mockup-content { padding: 24px; min-height: 240px; }
.mockup-inner-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 20px; margin-bottom: 12px;
  display: flex; align-items: center; gap: 16px;
}
.mockup-icon { width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0; }
.mockup-chart { height: 80px; border-radius: var(--radius); margin-top: 16px; display: flex; align-items: flex-end; gap: 6px; padding: 12px; }
.mockup-bar-chart { flex: 1; border-radius: 4px; background: var(--accent-gradient); opacity: 0.5; }
.mockup-bar-chart:nth-child(2) { height: 60%; opacity: 0.7; }
.mockup-bar-chart:nth-child(3) { height: 85%; opacity: 0.9; }
.mockup-bar-chart:nth-child(4) { height: 45%; opacity: 0.5; }
.mockup-bar-chart:nth-child(5) { height: 70%; opacity: 0.8; }
.mockup-phone {
  position: absolute; bottom: -20px; right: -20px;
  width: 140px; height: 280px;
  background: var(--glass-bg); backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border); border-radius: 24px;
  box-shadow: var(--glass-shadow); padding: 12px;
}
.mockup-phone-screen {
  width: 100%; height: 100%; border-radius: 16px;
  background: var(--bg-elevated); overflow: hidden; padding: 12px;
}

/* ===== SECTIONS ===== */
.section { padding: 100px 24px; }
.section-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 1440px) { .section-container { max-width: 1400px; } }
@media (min-width: 1800px) { .section-container { max-width: 1600px; } }
.section-bordered { border-top: 1px solid var(--border-color); }
.section-header { margin-bottom: 56px; }
.section-header-flex {
  display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 56px; flex-wrap: wrap; gap: 16px;
}
.section-header-flex .section-title { margin-bottom: 0; }

/* ===== SERVICES ===== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.service-card { padding: 36px 28px; display: flex; flex-direction: column; gap: 16px; }
.service-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(124, 92, 252, 0.12);
}
.service-icon svg { color: var(--accent); }
.service-title { font-size: 18px; font-weight: 700; }
.service-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; flex: 1; }
.service-link { font-size: 13px; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 4px; transition: gap 0.2s; }
.service-link:hover { gap: 8px; }

/* ===== PORTFOLIO ===== */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.portfolio-card {
  overflow: hidden; cursor: pointer;
}
.portfolio-card-img {
  position: relative; aspect-ratio: 16/10; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.portfolio-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.portfolio-card:hover .portfolio-card-img img { transform: scale(1.05); }
.portfolio-card-overlay {
  position: absolute; inset: 0;
  background: rgba(6, 4, 10, 0.7); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}
[data-theme="light"] .portfolio-card-overlay { background: rgba(248, 246, 255, 0.8); }
.portfolio-card:hover .portfolio-card-overlay { opacity: 1; }
.portfolio-card-info { padding: 24px; }
.portfolio-card-tag {
  display: inline-block; font-size: 11px; font-weight: 600;
  padding: 4px 12px; border-radius: 50px; margin-bottom: 12px;
  background: rgba(124, 92, 252, 0.1); color: var(--accent);
}
.portfolio-card-title { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.portfolio-card-desc { font-size: 14px; color: var(--text-secondary); }

/* Portfolio tabs */
.portfolio-tabs { display: flex; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; }
.tab-btn {
  padding: 10px 22px; border-radius: 50px; font-size: 14px; font-weight: 500;
  background: transparent; border: 1px solid transparent;
  color: var(--text-secondary); cursor: pointer;
  transition: var(--transition);
}
.tab-btn:hover { color: var(--text-primary); background: var(--glass-bg); }
.tab-btn.active { background: var(--glass-bg); border-color: var(--glass-border-hover); color: var(--text-primary); }

/* ===== STATS ===== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-card { padding: 40px 24px; text-align: center; }
.stat-icon { width: 48px; height: 48px; margin: 0 auto 16px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: rgba(124, 92, 252, 0.1); }
.stat-icon svg { color: var(--accent); }
.stat-number { font-size: 40px; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-label { font-size: 14px; color: var(--text-secondary); margin-top: 8px; font-weight: 500; }

/* ===== WHY US ===== */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.why-items { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.why-item { display: flex; gap: 16px; }
.why-item-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(124, 92, 252, 0.1); flex-shrink: 0; }
.why-item-icon svg { color: var(--accent); }
.why-item-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.why-item-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ===== TESTIMONIALS ===== */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card { padding: 32px 28px; }
.testimonial-text { font-size: 15px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 24px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-gradient); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; color: #fff; }
.testimonial-name { font-size: 15px; font-weight: 700; }
.testimonial-role { font-size: 13px; color: var(--text-muted); }

/* ===== PROCESS ===== */
.process-steps { display: flex; justify-content: space-between; gap: 20px; position: relative; }
.process-steps::before {
  content: ''; position: absolute; top: 28px; left: 3%; right: 3%; height: 2px;
  background: var(--border-color); z-index: 0;
}
.process-step { text-align: center; position: relative; z-index: 1; flex: 1; min-width: 0; }
.process-step-num {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: var(--accent);
  background: var(--bg-elevated); border: 2px solid var(--border-color);
}
.process-step-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.process-step-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ===== CTA ===== */
.cta-section {
  padding: 80px 24px;
}
.cta-box {
  max-width: 1280px; margin: 0 auto;
  background: var(--accent-gradient);
  border-radius: var(--radius-lg);
  padding: 60px;
  display: flex; justify-content: space-between; align-items: center; gap: 40px;
  position: relative; overflow: hidden;
}
.cta-box::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 500px; height: 500px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); filter: blur(80px);
}
.cta-title { font-size: 32px; font-weight: 700; color: #fff; margin-bottom: 12px; position: relative; }
.cta-desc { font-size: 16px; color: rgba(255, 255, 255, 0.8); position: relative; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px; background: #fff; color: var(--accent);
  font-family: var(--font); font-size: 14px; font-weight: 700;
  border: none; border-radius: 50px; cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: var(--transition); flex-shrink: 0; position: relative;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3); }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 64px; align-items: start; }
.about-text { font-size: 17px; line-height: 1.9; color: var(--text-secondary); }
.about-text strong { color: var(--text-primary); }
.about-stats-inline { display: flex; gap: 32px; margin-top: 32px; }
.about-stat-inline { text-align: center; }
.about-stat-num { font-size: 32px; font-weight: 800; color: var(--accent); }
.about-stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 0.42fr; gap: 48px; }
.contact-form-card { padding: 48px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 8px; display: block; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 14px 18px;
  background: var(--input-bg); border: 1px solid var(--glass-border);
  border-radius: 12px; color: var(--text-primary);
  font-family: var(--font); font-size: 15px; outline: none;
  transition: var(--transition);
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--text-muted); }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); }
.contact-info { display: flex; flex-direction: column; gap: 32px; padding-top: 16px; }
.contact-block-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 8px; }
.contact-block-value { font-size: 16px; font-weight: 600; color: var(--text-primary); }
.contact-block-value a { transition: color 0.2s; }
.contact-block-value a:hover { color: var(--accent); }
.social-links { display: flex; gap: 14px; }
.social-link {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  color: var(--text-secondary); transition: var(--transition);
}
.social-link:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-3px); }

/* ===== FOOTER ===== */
.footer { border-top: 1px solid var(--border-color); padding: 60px 24px 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr; gap: 40px; max-width: 1280px; margin: 0 auto; }
.footer-brand-desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-top: 16px; }
.footer-heading { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-secondary); margin-bottom: 20px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 14px; color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-socials { display: flex; gap: 10px; margin-top: 16px; }
.footer-social {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  color: var(--text-muted); transition: var(--transition);
}
.footer-social:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.footer-bottom {
  max-width: 1280px; margin: 40px auto 0; padding-top: 24px;
  border-top: 1px solid var(--border-color);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--text-muted);
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== RESPONSIVE ===== */
@media (min-width: 1440px) {
  .section { padding: 120px 40px; }
  .section-container { padding: 0; }
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(4, 1fr); }
  .testimonials-grid { gap: 32px; }
}
@media (min-width: 1800px) {
  .section { padding: 140px 60px; }
  .hero { padding: 140px 60px 100px; }
}
@media (max-width: 1280px) {
  .process-steps { flex-wrap: wrap; }
  .process-step { flex: 1 1 30%; }
  .process-steps::before { display: none; }
}
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .hero-mockup-container { max-width: 480px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .process-step { flex: 1 1 30%; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .section { padding: 60px 20px; }
  .hero { padding: 100px 20px 60px; }
  .hero-title { font-size: 36px; }
  .hero-mockup-container { max-width: 100%; }
  .mockup-phone { display: none; }
  .section-title { font-size: 28px; }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-card { padding: 28px 16px; }
  .stat-number { font-size: 28px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .why-items { grid-template-columns: 1fr; }
  .process-step { flex: 1 1 45%; }
  .cta-box { flex-direction: column; padding: 40px 28px; text-align: center; }
  .cta-box::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .about-stats-inline { gap: 20px; }
  .contact-form-card { padding: 32px; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; width: 100%; }
  .hero-buttons .btn-gradient, .hero-buttons .btn-ghost { width: 100%; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .process-step { flex: 1 1 100%; }
  .portfolio-tabs { gap: 6px; }
  .tab-btn { padding: 8px 16px; font-size: 13px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-line { width: 1px; height: 40px; background: var(--text-faint); position: relative; overflow: hidden; }
.scroll-dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
  position: absolute; top: 0; left: 50%; margin-left: -2.5px;
  animation: scrollBounce 1.8s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(34px); opacity: 0.3; }
}

/* ===== LANGUAGE DROPDOWN ===== */
.lang-dropdown { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 50px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  color: var(--text-secondary); font-family: var(--font); font-size: 13px;
  font-weight: 600; cursor: pointer; transition: var(--transition);
}
.lang-btn:hover {
  background: var(--glass-bg-hover); border-color: var(--glass-border-hover);
  color: var(--text-primary); box-shadow: 0 2px 12px rgba(124, 92, 252, 0.15);
}
.lang-btn:active { transform: scale(0.96); }
.lang-btn .flag { font-size: 16px; }
.lang-btn svg { transition: transform 0.3s ease; }
.lang-menu.open + .lang-btn svg,
.lang-menu[style*="display: flex"] ~ .lang-btn svg,
#langMenu.open ~ .lang-btn svg { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 185px; padding: 8px;
  background: var(--glass-bg); backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border-hover);
  border-radius: 16px; box-shadow: var(--glass-shadow-hover);
  display: none; flex-direction: column; gap: 2px; z-index: 200;
}
.lang-menu.open { display: flex; animation: langFadeIn 0.2s ease; }
@keyframes langFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.lang-option {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 12px;
  color: var(--text-secondary); font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all 0.2s ease;
  border: none; background: none; width: 100%; text-align: left;
  font-family: var(--font);
}
.lang-option:hover {
  background: rgba(124, 92, 252, 0.1);
  color: var(--text-primary);
}
.lang-option.active {
  color: var(--accent);
  background: rgba(124, 92, 252, 0.12);
  font-weight: 600;
}
.lang-option.active::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}
.lang-option:not(.active)::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: transparent; flex-shrink: 0;
}
.lang-option .flag { font-size: 18px; }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 3000;
  padding: 16px 28px; border-radius: 14px;
  background: var(--accent); color: #fff;
  font-weight: 600; font-size: 14px;
  box-shadow: 0 8px 32px rgba(124, 92, 252, 0.3);
  transform: translateY(100px); opacity: 0;
  transition: all 0.4s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ===== PORTFOLIO CATEGORY PAGE ===== */
.portfolio-page-hero {
  padding: 140px 24px 60px;
  background: var(--hero-gradient);
  text-align: center;
}
.portfolio-page-title { font-size: clamp(36px, 6vw, 56px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 16px; }
.portfolio-page-desc { font-size: 18px; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--text-muted); margin-bottom: 24px; transition: color 0.2s; }
.back-link:hover { color: var(--accent); }
