/* ===================================================
   TOYOSOFT — MAIN STYLES
   =================================================== */

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

/* ===================================================
   CSS CUSTOM PROPERTIES (LIGHT MODE DEFAULT)
   =================================================== */
:root {
  /* Colors */
  --bg-primary:    #ffffff;
  --bg-secondary:  #f4f6fb;
  --bg-tertiary:   #e8ecf4;
  --text-primary:  #0a0f1e;
  --text-secondary:#4a5568;
  --text-muted:    #8896a8;
  --border-color:  rgba(0,0,0,0.08);

  --accent-blue:   #4f6ef7;
  --accent-purple: #8b5cf6;
  --accent-grad:   linear-gradient(135deg, #4f6ef7 0%, #8b5cf6 100%);
  --accent-glow:   rgba(79, 110, 247, 0.25);

  /* Cards / Glass */
  --card-bg:       rgba(255,255,255,0.8);
  --card-border:   rgba(255,255,255,0.6);
  --glass-bg:      rgba(255,255,255,0.55);
  --glass-border:  rgba(255,255,255,0.4);

  /* Nav */
  --nav-bg:        rgba(255,255,255,0.92);
  --nav-shadow:    0 1px 0 rgba(0,0,0,0.06);

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.09);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.12);
  --shadow-glow:0 0 40px var(--accent-glow);

  /* Spacing & Radius */
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --section-py: 100px;

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* DARK MODE */
[data-theme="dark"] {
  --bg-primary:    #06090f;
  --bg-secondary:  #0d1221;
  --bg-tertiary:   #111827;
  --text-primary:  #f0f4ff;
  --text-secondary:#94a3b8;
  --text-muted:    #64748b;
  --border-color:  rgba(255,255,255,0.07);

  --card-bg:       rgba(17,24,39,0.8);
  --card-border:   rgba(255,255,255,0.07);
  --glass-bg:      rgba(13,18,33,0.65);
  --glass-border:  rgba(255,255,255,0.08);

  --nav-bg:        rgba(6,9,15,0.92);
  --nav-shadow:    0 1px 0 rgba(255,255,255,0.05);

  --shadow-sm:  0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.5);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.6);
}

/* ===================================================
   RESET & BASE
   =================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  transition: background-color var(--transition), color var(--transition);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===================================================
   TYPOGRAPHY
   =================================================== */
h1,h2,h3,h4,h5,h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-family: 'Syne', sans-serif; font-size: clamp(2.6rem, 5.5vw, 4.8rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { color: var(--text-secondary); font-size: 1.05rem; }

.gradient-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  width: 20px; height: 2px;
  background: var(--accent-grad);
  border-radius: 2px;
}

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

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

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 70px;
}
.section-header p { margin-top: 1rem; font-size: 1.1rem; }

/* ===================================================
   NAVIGATION
   =================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--nav-shadow);
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.12);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
  line-height: 1;
}

.nav-logo img {
  height: 38px;
  width: auto;
  display: block;
  border-radius: 6px;
  padding: 4px 8px;
  background: rgba(255,255,255,1);
  transition: opacity var(--transition);
}

.nav-logo:hover img { opacity: 0.88; }

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

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.nav-links a.active { color: var(--accent-blue); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Dark Mode Toggle */
.theme-toggle {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all var(--transition);
  font-size: 1.1rem;
}
.theme-toggle:hover { background: var(--bg-tertiary); color: var(--accent-blue); }

/* CTA Button in Nav */
.btn-nav-cta {
  padding: 9px 22px;
  border-radius: var(--radius-sm);
  background: var(--accent-grad);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 15px var(--accent-glow);
}
.btn-nav-cta:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 6px 20px var(--accent-glow); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.35s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 20px 24px 28px;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--border-color);
  z-index: 999;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.mobile-menu a:hover, .mobile-menu a.active { background: var(--bg-secondary); color: var(--accent-blue); }
.mobile-menu .btn-nav-cta { text-align: center; margin-top: 8px; }

/* Page offset for fixed nav */
.page-content { padding-top: 72px; }

/* ===================================================
   BUTTONS
   =================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--accent-glow); opacity: 0.92; }

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover { background: var(--bg-tertiary); transform: translateY(-2px); }

.btn-ghost {
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  background: transparent;
}
.btn-ghost:hover { background: var(--bg-secondary); border-color: var(--accent-blue); color: var(--accent-blue); }

/* ===================================================
   HERO (HOME)
   =================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--bg-primary);
  z-index: 0;
}

/* Animated gradient orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: orb-float 8s ease-in-out infinite;
}
.hero-orb-1 {
  width: 550px; height: 550px;
  background: radial-gradient(circle, #4f6ef7, transparent 70%);
  top: -100px; right: -100px;
  animation-delay: 0s;
}
.hero-orb-2 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, #8b5cf6, transparent 70%);
  bottom: -50px; left: -80px;
  animation-delay: -4s;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #06b6d4, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  animation-delay: -2s;
  opacity: 0.15;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -25px) scale(1.05); }
  66%       { transform: translate(-20px, 20px) scale(0.95); }
}

/* Grid overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
  opacity: 0.5;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.hero-badge-dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-title {
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero-desc {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
}

.hero-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  display: block;
}
.hero-stat-label { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; margin-top: 2px; }

/* Hero Visual */
.hero-visual {
  position: relative;
}

.hero-card-main {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-lg), 0 0 80px var(--accent-glow);
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.hero-card-dots { display: flex; gap: 6px; }
.hero-card-dot { width: 12px; height: 12px; border-radius: 50%; }
.hero-card-dot:nth-child(1) { background: #ff5f57; }
.hero-card-dot:nth-child(2) { background: #febc2e; }
.hero-card-dot:nth-child(3) { background: #28c840; }

.code-block {
  font-family: 'Menlo', 'Consolas', monospace;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--text-secondary);
}
.code-block .kw  { color: #8b5cf6; }
.code-block .fn  { color: #4f6ef7; }
.code-block .str { color: #22c55e; }
.code-block .cm  { color: var(--text-muted); }
.code-block .num { color: #f59e0b; }

/* Floating cards on hero visual */
.hero-float-card {
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  animation: float-card 5s ease-in-out infinite;
}
.hero-float-card-1 { top: -24px; right: 20px; animation-delay: 0s; }
.hero-float-card-2 { bottom: -20px; left: -10px; animation-delay: -2.5s; }

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

.hero-float-label { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.hero-float-value { font-size: 1.4rem; font-weight: 800; color: var(--text-primary); margin-top: 4px; }
.hero-float-sub   { font-size: 0.75rem; color: #22c55e; font-weight: 600; margin-top: 2px; }

/* ===================================================
   PAGE HERO (inner pages)
   =================================================== */
.page-hero {
  padding: 100px 0 70px;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  z-index: 0;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: 1rem; }
.page-hero p  { font-size: 1.15rem; max-width: 600px; margin: 0 auto; }

/* ===================================================
   STATS / COUNTERS SECTION
   =================================================== */
.stats-section {
  padding: 70px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-item {
  background: var(--bg-primary);
  padding: 44px 32px;
  text-align: center;
}

.stat-value {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 900;
  font-family: 'Syne', sans-serif;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  display: block;
}

.stat-suffix {
  font-size: 1.8rem;
  font-weight: 900;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label { font-size: 0.9rem; color: var(--text-muted); margin-top: 8px; font-weight: 500; }

/* ===================================================
   CARDS (Services, Projects, etc.)
   =================================================== */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(79,110,247,0.3);
}

/* Service Card */
.service-card .card-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  background: var(--accent-grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.service-card h3 { margin-bottom: 12px; }
.service-card p  { font-size: 0.95rem; line-height: 1.7; }

.service-card .card-features {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-card .card-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.service-card .card-feature::before {
  content: '✓';
  width: 18px; height: 18px;
  background: var(--accent-grad);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Project Card */
.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.project-card-img {
  height: 200px;
  position: relative;
  overflow: hidden;
}
.project-card-img .img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  transition: transform var(--transition);
}
.project-card:hover .img-placeholder { transform: scale(1.05); }

.project-card-body { padding: 24px; }
.project-card-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.project-card-body p  { font-size: 0.88rem; line-height: 1.6; }

.project-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-secondary);
  color: var(--accent-blue);
  border: 1px solid rgba(79,110,247,0.25);
  margin-bottom: 12px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Project Placeholder colors */
.proj-bg-1 { background: linear-gradient(135deg, #0f172a, #1e3a5f); }
.proj-bg-2 { background: linear-gradient(135deg, #1e0f3a, #3a1f5f); }
.proj-bg-3 { background: linear-gradient(135deg, #0f2a1a, #1f5f3a); }
.proj-bg-4 { background: linear-gradient(135deg, #2a1a0f, #5f3a1f); }
.proj-bg-5 { background: linear-gradient(135deg, #0f1a2a, #1f3a5f); }
.proj-bg-6 { background: linear-gradient(135deg, #1a0f2a, #5f1f5f); }

/* ===================================================
   FILTER TABS (Projects)
   =================================================== */
.filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 22px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  transition: all var(--transition);
}
.filter-btn:hover { color: var(--accent-blue); border-color: rgba(79,110,247,0.4); }
.filter-btn.active {
  background: var(--accent-grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px var(--accent-glow);
}

/* ===================================================
   TECH STACK LOGOS
   =================================================== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.tech-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  transition: all var(--transition);
}
.tech-item:hover { border-color: rgba(79,110,247,0.4); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tech-item .tech-icon { font-size: 2rem; margin-bottom: 8px; }
.tech-item .tech-name { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); }

/* ===================================================
   PROCESS STEPS
   =================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.process-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 2px;
  background: var(--accent-grad);
  opacity: 0.3;
}

.process-step {
  text-align: center;
  padding: 32px 24px;
}
.process-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent-grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 20px;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.process-step h4 { margin-bottom: 10px; }
.process-step p  { font-size: 0.88rem; }

/* ===================================================
   CTA BANNER
   =================================================== */
.cta-banner {
  background: var(--accent-grad);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; margin-bottom: 16px; font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
.cta-banner p  { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 36px; }
.btn-cta-white {
  background: #fff;
  color: var(--accent-blue);
  padding: 15px 34px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.btn-cta-white:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.3); }

/* ===================================================
   TESTIMONIALS
   =================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.testimonial-stars { color: #f59e0b; font-size: 1rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-quote { font-size: 0.95rem; line-height: 1.8; margin-bottom: 24px; color: var(--text-secondary); font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}
.av-1 { background: linear-gradient(135deg, #4f6ef7, #8b5cf6); }
.av-2 { background: linear-gradient(135deg, #06b6d4, #4f6ef7); }
.av-3 { background: linear-gradient(135deg, #22c55e, #06b6d4); }
.testimonial-name  { font-weight: 700; font-size: 0.92rem; }
.testimonial-title { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

/* ===================================================
   ABOUT PAGE
   =================================================== */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-image-block {
  position: relative;
}
.about-image-main {
  width: 100%;
  border-radius: var(--radius-xl);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  overflow: hidden;
}
.about-image-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--accent-grad);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.about-image-badge .badge-num { font-size: 2rem; font-weight: 900; display: block; }
.about-image-badge .badge-lbl { font-size: 0.78rem; opacity: 0.85; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.value-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: all var(--transition);
}
.value-card:hover { border-color: rgba(79,110,247,0.3); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-icon { font-size: 2rem; margin-bottom: 14px; }
.value-card h4 { margin-bottom: 8px; }
.value-card p  { font-size: 0.85rem; }

/* Timeline */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 14px; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent-grad);
  opacity: 0.3;
}
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent-grad);
  box-shadow: 0 0 12px var(--accent-glow);
}
.timeline-year { font-size: 0.8rem; font-weight: 700; color: var(--accent-blue); margin-bottom: 4px; }
.timeline-item h4 { margin-bottom: 6px; }
.timeline-item p { font-size: 0.9rem; }

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: all var(--transition);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
}
.team-card h4 { font-size: 1rem; margin-bottom: 4px; }
.team-card .team-role { font-size: 0.82rem; color: var(--accent-blue); font-weight: 600; margin-bottom: 12px; }
.team-card p { font-size: 0.82rem; }

/* ===================================================
   CAREERS PAGE
   =================================================== */
.job-list { display: flex; flex-direction: column; gap: 16px; }

.job-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: all var(--transition);
  cursor: pointer;
}
.job-card:hover { border-color: rgba(79,110,247,0.4); box-shadow: var(--shadow-md); transform: translateX(4px); }

.job-info h3 { font-size: 1.1rem; margin-bottom: 8px; }
.job-meta { display: flex; gap: 16px; flex-wrap: wrap; }
.job-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; color: var(--text-muted); font-weight: 500;
}

.job-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.job-type-badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge-full { background: rgba(34,197,94,0.15); color: #22c55e; border: 1px solid rgba(34,197,94,0.3); }
.badge-remote { background: rgba(79,110,247,0.12); color: var(--accent-blue); border: 1px solid rgba(79,110,247,0.25); }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.benefit-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}
.benefit-card:hover { border-color: rgba(79,110,247,0.3); transform: translateY(-4px); }
.benefit-icon { font-size: 1.8rem; margin-bottom: 14px; }
.benefit-card h4 { margin-bottom: 8px; }
.benefit-card p  { font-size: 0.88rem; }

/* ===================================================
   CONTACT PAGE
   =================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 { font-size: 2rem; margin-bottom: 16px; }
.contact-info p  { margin-bottom: 36px; }

.contact-info-cards { display: flex; flex-direction: column; gap: 16px; }

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.contact-info-card:hover { border-color: rgba(79,110,247,0.3); }
.contact-info-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--accent-grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px var(--accent-glow);
}
.contact-info-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 4px; }
.contact-info-value { font-weight: 600; color: var(--text-primary); font-size: 0.95rem; }

/* Contact Form */
.contact-form-wrapper {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-lg);
}

.form-title { font-size: 1.5rem; margin-bottom: 6px; }
.form-subtitle { font-size: 0.9rem; margin-bottom: 32px; }

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

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 7px;
}
.form-group label span { color: #ef4444; margin-left: 2px; }

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(79,110,247,0.15);
}
.form-control.error { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.12); }
.form-control::placeholder { color: var(--text-muted); }

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

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238896a8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.field-error { display: block; font-size: 0.78rem; color: #ef4444; margin-top: 5px; min-height: 16px; }

/* Honeypot */
.hp-field { position: absolute; opacity: 0; pointer-events: none; height: 0; }

.btn-submit {
  width: 100%;
  padding: 15px;
  border-radius: var(--radius-md);
  background: var(--accent-grad);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all var(--transition);
  box-shadow: 0 4px 20px var(--accent-glow);
  margin-top: 8px;
}
.btn-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 30px var(--accent-glow); }
.btn-submit:disabled { opacity: 0.65; cursor: not-allowed; }

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success.show { display: block; }
.success-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(34,197,94,0.12);
  border: 2px solid rgba(34,197,94,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
  animation: pop-in 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes pop-in { 0% { transform: scale(0); opacity:0; } 100% { transform: scale(1); opacity:1; } }
.form-success h3 { margin-bottom: 10px; color: #22c55e; }
.form-success p  { color: var(--text-muted); font-size: 0.95rem; }

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 70px 0 0;
}

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

.footer-brand p { font-size: 0.9rem; line-height: 1.8; margin-top: 16px; margin-bottom: 24px; }

.social-links { display: flex; gap: 10px; }
.social-link {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
  color: var(--text-muted);
}
.social-link:hover { background: var(--accent-blue); color: #fff; border-color: transparent; transform: translateY(-2px); }

.footer-col h5 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.9rem; color: var(--text-secondary); transition: color var(--transition); }
.footer-col a:hover { color: var(--accent-blue); }

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.85rem; color: var(--text-muted); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 0.82rem; color: var(--text-muted); transition: color var(--transition); }
.footer-legal a:hover { color: var(--accent-blue); }

/* ===================================================
   FEATURED SECTION (Home)
   =================================================== */
.featured-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }

/* ===================================================
   SCROLL ANIMATIONS
   =================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.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; }
.reveal.delay-5 { transition-delay: 0.5s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left  { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right { opacity: 0; transform: translateX(40px);  transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ===================================================
   MISC HELPERS
   =================================================== */
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }

/* Spinner */
.spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.btn-submit.loading .spinner { display: block; }
.btn-submit.loading .btn-text { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Divider */
.divider { height: 1px; background: var(--border-color); margin: 0; }
