/* ============================================
   AIVO AGENCY — WORLD-CLASS STYLES 2026
   Inspired by Spline 3D · Awwwards · Figma
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ============ DESIGN TOKENS ============ */
:root {
  /* Brand Colors */
  --burgundy: #480c2d;
  --burgundy-dark: #2a071a;
  --burgundy-darkest: #1a0512;
  --rose: #a75c70;
  --rose-light: #d8899e;
  --rose-glow: rgba(167, 92, 112, 0.4);
  --white: #ffffff;
  --cream: #fdf6f9;

  /* Functional */
  --bg: var(--burgundy-darkest);
  --bg-soft: var(--burgundy-dark);
  --text: var(--white);
  --text-muted: rgba(255, 255, 255, 0.6);
  --text-dim: rgba(255, 255, 255, 0.4);
  --accent: var(--rose);
  --accent-light: var(--rose-light);

  /* Glass */
  --glass: rgba(255, 255, 255, 0.04);
  --glass-hover: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-hover: rgba(167, 92, 112, 0.5);
  --blur: 20px;

  /* Typography */
  --font-ar: 'IBM Plex Sans Arabic', sans-serif;
  --font-en: 'Space Grotesk', sans-serif;

  /* Layout */
  --container: 1280px;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============ RESET ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
*::selection { background: var(--rose); color: var(--white); }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ar);
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: font-family 0.3s ease;
}

body[dir="ltr"] { font-family: var(--font-en); }
body[dir="ltr"] h1, body[dir="ltr"] h2, body[dir="ltr"] h3 { font-family: var(--font-en); }

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

.container { max-width: var(--container); margin: 0 auto; padding: 0 2rem; }

/* ============ CUSTOM CURSOR ============ */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--white);
  transition: width 0.2s, height 0.2s;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid var(--rose-light);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s;
}
.cursor-ring.hovering {
  width: 64px; height: 64px;
  border-color: var(--rose);
  background: rgba(167, 92, 112, 0.1);
}
@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }

/* ============ PRELOADER ============ */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--burgundy-darkest);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2rem;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.loader-logo img {
  width: 90px; height: 90px;
  animation: pulseScale 1.5s ease-in-out infinite;
}
.loader-bar {
  width: 200px; height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px; overflow: hidden;
}
.loader-bar span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--rose), var(--rose-light));
  animation: loadProgress 1.8s ease-in-out infinite;
}
@keyframes pulseScale {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}
@keyframes loadProgress {
  0% { width: 0; }
  50% { width: 70%; }
  100% { width: 100%; }
}

/* ============ AMBIENT BACKGROUND ============ */
.bg-mesh {
  position: fixed; inset: 0; z-index: -3;
  overflow: hidden; pointer-events: none;
}
.mesh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  animation: floatOrb 25s infinite alternate ease-in-out;
}
.mesh-orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--burgundy) 0%, transparent 70%);
  top: -150px; left: -200px;
}
.mesh-orb-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--rose) 0%, transparent 70%);
  bottom: -200px; right: -150px;
  opacity: 0.35;
  animation-delay: -8s;
}
.mesh-orb-3 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--burgundy-dark) 0%, transparent 70%);
  top: 40%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -15s;
}
@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, -40px) scale(1.15); }
  100% { transform: translate(-40px, 50px) scale(0.9); }
}

/* Grid Overlay */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* Particle Canvas */
#particles {
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none;
}

/* Scroll Progress */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--rose), var(--rose-light));
  z-index: 1001;
  box-shadow: 0 0 10px var(--rose-glow);
  transition: width 0.1s linear;
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 1000; padding: 1.2rem 0;
  transition: all 0.4s var(--ease);
}
.navbar.scrolled {
  background: rgba(26, 5, 18, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.7rem 0;
}
.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-en); font-weight: 700;
  text-decoration: none;
}
.brand-logo {
  height: 65px; width: auto;
  filter: drop-shadow(0 4px 12px var(--rose-glow));
  transition: transform 0.4s var(--ease);
}
.logo:hover .brand-logo { transform: scale(1.08) rotate(-3deg); }

.nav-links {
  display: flex; gap: 2.2rem; list-style: none;
}
.nav-links a {
  font-size: 0.95rem; font-weight: 500;
  color: var(--text-muted);
  position: relative; padding: 6px 0;
  transition: color 0.3s ease;
}
.nav-links a::after {
  content: ''; position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--rose);
  border-radius: 2px;
  transition: width 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.lang-switch {
  display: flex; align-items: center; gap: 8px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--white);
  padding: 0.55rem 1rem;
  border-radius: 50px;
  font-weight: 600; font-size: 0.85rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.lang-switch:hover {
  background: var(--rose);
  border-color: var(--rose);
  transform: translateY(-2px);
}
.lang-globe i { font-size: 0.9rem; }

.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px;
}
.menu-toggle span {
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 0.95rem 2rem;
  border-radius: 50px;
  font-weight: 600; font-size: 1rem;
  text-decoration: none;
  transition: all 0.4s var(--ease);
  cursor: pointer; border: none;
  font-family: inherit;
  position: relative; overflow: hidden;
  white-space: nowrap;
}
.btn i { transition: transform 0.3s ease; }
.btn-primary {
  background: linear-gradient(135deg, var(--rose), var(--burgundy));
  color: var(--white);
  box-shadow: 0 8px 25px var(--rose-glow);
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--rose-light), var(--rose));
  opacity: 0; transition: opacity 0.4s ease;
}
.btn-primary span, .btn-primary i { position: relative; z-index: 1; }
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(167, 92, 112, 0.55);
}
.btn-primary:hover i { transform: translateX(-4px); }
body[dir="ltr"] .btn-primary:hover i { transform: translateX(4px); }

.btn-ghost {
  background: var(--glass);
  color: var(--white);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: var(--glass-hover);
  border-color: var(--rose);
  transform: translateY(-3px);
}

.nav-cta { padding: 0.7rem 1.5rem; font-size: 0.9rem; }

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 140px 0 80px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem; align-items: center;
}
.hero-text { position: relative; z-index: 2; }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1.1rem;
  border-radius: 50px;
  font-size: 0.85rem; font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}
.pulse-dot {
  width: 8px; height: 8px;
  background: var(--rose-light);
  border-radius: 50%;
  position: relative;
}
.pulse-dot::before {
  content: ''; position: absolute; inset: -4px;
  border-radius: 50%;
  background: var(--rose);
  opacity: 0.5;
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.8); opacity: 0; }
}

.hero-title {
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  display: flex; flex-direction: column;
  gap: 0.3rem;
}
.gradient-text {
  background: linear-gradient(135deg, var(--rose-light) 0%, var(--rose) 50%, var(--rose-light) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerText 5s linear infinite;
}
@keyframes shimmerText {
  to { background-position: 200% center; }
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex; align-items: center; gap: 1.5rem;
  flex-wrap: wrap;
}
.stat strong {
  display: block;
  font-family: var(--font-en);
  font-size: 2.2rem; font-weight: 700;
  background: linear-gradient(135deg, var(--white), var(--rose-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.stat span {
  font-size: 0.8rem; color: var(--text-dim);
  font-weight: 500;
}
.stat-divider {
  width: 1px; height: 40px;
  background: var(--glass-border);
}

/* ============ HERO 3D VISUAL ============ */
.hero-visual {
  position: relative;
  width: 100%; height: 500px;
  display: flex; align-items: center; justify-content: center;
  perspective: 1200px;
  transform-style: preserve-3d;
}
.float-card {
  position: absolute;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
  display: flex; flex-direction: column;
  align-items: center; gap: 0.8rem;
  transition: transform 0.3s var(--ease);
}
.fc-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--rose), var(--burgundy));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.3rem;
  box-shadow: 0 8px 20px var(--rose-glow);
}
.fc-label {
  font-size: 0.8rem; font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.fc-1 {
  width: 180px;
  transform: translate(-140px, -40px) translateZ(-80px) rotateY(15deg);
  animation: float1 8s infinite alternate ease-in-out;
}
.fc-2 {
  width: 200px;
  transform: translate(0, -120px) translateZ(40px);
  animation: float2 7s infinite alternate ease-in-out;
  z-index: 3;
  border-color: rgba(167, 92, 112, 0.4);
  box-shadow: 0 25px 50px rgba(0,0,0,0.5), 0 0 40px var(--rose-glow);
}
.fc-3 {
  width: 170px;
  transform: translate(150px, 20px) translateZ(-100px) rotateY(-18deg);
  animation: float3 9s infinite alternate ease-in-out;
}
.fc-4 {
  width: 160px;
  transform: translate(60px, 140px) translateZ(-50px);
  animation: float4 10s infinite alternate ease-in-out;
}

@keyframes float1 {
  0% { transform: translate(-140px, -40px) translateZ(-80px) rotateY(15deg) rotateX(5deg); }
  100% { transform: translate(-130px, -60px) translateZ(-70px) rotateY(20deg) rotateX(8deg); }
}
@keyframes float2 {
  0% { transform: translate(0, -120px) translateZ(40px) rotateZ(0deg); }
  100% { transform: translate(0, -135px) translateZ(50px) rotateZ(3deg); }
}
@keyframes float3 {
  0% { transform: translate(150px, 20px) translateZ(-100px) rotateY(-18deg) rotateX(0deg); }
  100% { transform: translate(160px, 0px) translateZ(-90px) rotateY(-12deg) rotateX(-5deg); }
}
@keyframes float4 {
  0% { transform: translate(60px, 140px) translateZ(-50px) rotateZ(0deg); }
  100% { transform: translate(70px, 155px) translateZ(-40px) rotateZ(-3deg); }
}

/* Card Content */
.fc-chart {
  display: flex; align-items: flex-end; gap: 6px;
  height: 50px; width: 100%;
}
.fc-chart .bar {
  flex: 1;
  background: linear-gradient(to top, var(--rose), var(--rose-light));
  border-radius: 3px 3px 0 0;
  animation: barRise 2s var(--ease) infinite alternate;
}
@keyframes barRise { from { height: 20%; } }

.fc-orb {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--rose), var(--rose-light), var(--burgundy), var(--rose));
  animation: spin 6s linear infinite;
  box-shadow: 0 0 30px var(--rose-glow);
  position: relative;
}
.fc-orb::after {
  content: ''; position: absolute; inset: 8px;
  background: var(--burgundy-darkest);
  border-radius: 50%;
}
@keyframes spin { to { transform: rotate(360deg); } }

.fc-code {
  display: flex; flex-direction: column; gap: 4px;
  font-family: var(--font-en); font-size: 0.75rem;
}
.code-line { color: var(--rose-light); font-weight: 600; }
.code-tag { color: var(--text-muted); }

.fc-ai {
  display: flex; gap: 8px;
}
.ai-node {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 10px var(--rose);
  animation: aiPulse 1.5s ease-in-out infinite;
}
.ai-node:nth-child(2) { animation-delay: 0.3s; }
.ai-node:nth-child(3) { animation-delay: 0.6s; }
@keyframes aiPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Orbit Ring */
.hero-ring {
  position: absolute;
  width: 380px; height: 380px;
  animation: spin 30s linear infinite;
  pointer-events: none;
  opacity: 0.5;
}
.hero-ring svg {
  width: 100%; height: 100%;
  fill: none;
}
.hero-ring svg circle {
  stroke: var(--rose);
  stroke-width: 0.5;
  stroke-dasharray: 4 8;
  opacity: 0.4;
}
.ring-text {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en);
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 3px;
  color: var(--text-dim);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute; bottom: 30px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
  color: var(--text-dim);
  font-size: 0.8rem;
  animation: bounceDown 2s ease-in-out infinite;
}
.mouse {
  width: 24px; height: 38px;
  border: 2px solid var(--text-dim);
  border-radius: 12px;
  position: relative;
}
.wheel {
  width: 4px; height: 8px;
  background: var(--rose-light);
  border-radius: 2px;
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  animation: wheelMove 1.5s ease-in-out infinite;
}
@keyframes wheelMove {
  0% { opacity: 1; top: 6px; }
  100% { opacity: 0; top: 18px; }
}
@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============ MARQUEE ============ */
.marquee {
  overflow: hidden;
  padding: 1.5rem 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(10px);
}
.marquee-track {
  display: flex; gap: 3rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}
body[dir="rtl"] .marquee-track { animation-direction: reverse; }
.mq-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.1rem; font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.mq-item i { color: var(--rose); font-size: 0.85rem; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============ SECTION HEAD ============ */
section { padding: 7rem 0; position: relative; z-index: 1; }
.section-head { max-width: 680px; margin: 0 auto 4rem; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.85rem; font-weight: 600;
  color: var(--rose-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.eyebrow.center { display: flex; justify-content: center; }
.eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--rose);
  border-radius: 50%;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
}

/* ============ SERVICES (BENTO) ============ */
.services-group-label {
  display: flex; align-items: center; gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.group-num {
  font-family: var(--font-en);
  font-size: 1rem; font-weight: 700;
  color: var(--rose);
}
.group-name {
  font-size: 1.3rem; font-weight: 700;
  white-space: nowrap;
}
.group-line {
  flex: 1; height: 1px;
  background: linear-gradient(to right, var(--rose), transparent);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 1.5rem;
  margin-bottom: 5rem;
}
.bento-card {
  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: all 0.5s var(--ease);
  transform-style: preserve-3d;
}
.bento-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at top right, var(--rose-glow), transparent 60%);
  opacity: 0; transition: opacity 0.4s ease;
}
.bento-card:hover {
  transform: translateY(-8px);
  border-color: var(--glass-border-hover);
  box-shadow: 0 25px 50px -15px var(--rose-glow);
}
.bento-card:hover::before { opacity: 1; }
.bento-card > * { position: relative; z-index: 1; }

.bento-lg { grid-column: span 2; }
.bento-tech .bento-feature { grid-column: span 2; }

.bc-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.2rem;
}
.bc-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(167,92,112,0.2), rgba(72,12,45,0.3));
  border: 1px solid rgba(167,92,112,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--rose-light);
  font-size: 1.5rem;
  transition: transform 0.4s var(--ease);
}
.bento-card:hover .bc-icon {
  transform: scale(1.1) rotate(-5deg);
  background: linear-gradient(135deg, var(--rose), var(--burgundy));
  color: var(--white);
}
.bc-num {
  font-family: var(--font-en);
  font-size: 0.9rem; font-weight: 600;
  color: var(--text-dim);
}
.bento-card h3 {
  font-size: 1.35rem; font-weight: 700;
  margin-bottom: 0.7rem;
}
.bento-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.bc-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 1.2rem;
}
.bc-tags li {
  font-size: 0.75rem; font-weight: 600;
  padding: 4px 12px;
  background: rgba(167,92,112,0.1);
  border: 1px solid rgba(167,92,112,0.2);
  border-radius: 50px;
  color: var(--rose-light);
}

/* ============ PORTFOLIO ============ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 1.5rem;
}
.work-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  transition: all 0.5s var(--ease);
}
.work-card:hover {
  transform: translateY(-6px);
  border-color: var(--rose);
  box-shadow: 0 25px 50px -15px rgba(0,0,0,0.5);
}
.work-lg { grid-column: span 2; grid-row: span 2; }
.work-img {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: rgba(255,255,255,0.2);
  transition: transform 0.6s var(--ease);
}
.work-card:hover .work-img { transform: scale(1.1); }
.work-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,5,18,0.95) 10%, rgba(26,5,18,0.4) 60%, transparent 100%);
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 1.8rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.work-card:hover .work-overlay { opacity: 1; }
.work-tag {
  display: inline-block; width: fit-content;
  font-size: 0.75rem; font-weight: 600;
  padding: 4px 12px;
  background: var(--rose);
  border-radius: 50px;
  color: var(--white);
  margin-bottom: 0.8rem;
}
.work-overlay h3 {
  font-size: 1.4rem; font-weight: 700;
  margin-bottom: 0.5rem;
}
.work-overlay p {
  color: var(--text-muted); font-size: 0.9rem;
  line-height: 1.6;
}

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 2rem;
}
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.mv-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.4s var(--ease);
}
.mv-card:hover {
  border-color: var(--rose);
  transform: translateY(-4px);
}
.mv-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--rose), var(--burgundy));
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  margin-bottom: 1rem;
}
.mv-card h4 {
  font-size: 1.1rem; font-weight: 700;
  margin-bottom: 0.5rem;
}
.mv-card p {
  color: var(--text-muted); font-size: 0.9rem;
  line-height: 1.6;
}

/* Process Timeline */
.process-timeline {
  position: relative;
  padding-inline-start: 2rem;
}
.timeline-line {
  position: absolute;
  inset-inline-start: 7px;
  top: 10px; bottom: 10px;
  width: 2px;
  background: linear-gradient(to bottom, var(--rose), transparent);
}
.timeline-item {
  position: relative;
  padding-bottom: 2rem;
  padding-inline-start: 2.5rem;
}
.timeline-node {
  position: absolute;
  inset-inline-start: -2rem;
  top: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--burgundy-darkest);
  border: 2px solid var(--rose);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en);
  font-size: 0.85rem; font-weight: 700;
  color: var(--rose-light);
  box-shadow: 0 0 15px var(--rose-glow);
}
.timeline-body h4 {
  font-size: 1.15rem; font-weight: 700;
  margin-bottom: 0.4rem;
}
.timeline-body p {
  color: var(--text-muted); font-size: 0.92rem;
  line-height: 1.6;
}

/* Team Section */
.team-section { margin-top: 5rem; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.team-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.4s var(--ease);
}
.team-card:hover {
  border-color: var(--rose);
  transform: translateY(-6px);
}
.team-card i {
  font-size: 2rem;
  color: var(--rose-light);
  margin-bottom: 1rem;
  display: block;
}
.team-card span {
  font-size: 0.95rem; font-weight: 600;
}

/* ============ TECH STACK ============ */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.stack-category {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.4s var(--ease);
}
.stack-category:hover {
  border-color: var(--rose);
  transform: translateY(-4px);
}
.stack-category h3 {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.1rem; font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
}
.stack-category h3 i { color: var(--rose-light); }
.stack-chips {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.stack-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 0.6rem 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  font-size: 0.85rem; font-weight: 500;
  color: var(--text-muted);
  transition: all 0.3s ease;
  cursor: pointer;
}
.stack-chip:hover {
  background: rgba(167,92,112,0.15);
  border-color: var(--rose);
  color: var(--white);
  transform: translateY(-2px);
}
.stack-chip i {
  font-size: 1.1rem;
  color: var(--rose-light);
}

/* ============ TESTIMONIALS ============ */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testi-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex; flex-direction: column; gap: 1.5rem;
  transition: all 0.4s var(--ease);
}
.testi-card:hover {
  border-color: var(--rose);
  transform: translateY(-6px);
}
.stars { color: #FFD700; display: flex; gap: 4px; }
.testi-card p {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.8;
  flex: 1;
}
.testi-who {
  display: flex; align-items: center; gap: 12px;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
}
.testi-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--white);
  font-size: 1.2rem;
}
.testi-who strong { display: block; font-size: 0.95rem; }
.testi-who span { color: var(--text-muted); font-size: 0.82rem; }

/* ============ CONTACT ============ */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-info { padding-top: 1rem; }
.contact-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}
.contact-item {
  display: flex; align-items: center; gap: 1.2rem;
  padding: 1.2rem;
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}
.contact-item:hover {
  background: var(--glass);
  border-color: var(--glass-border);
  transform: translateX(-8px);
}
body[dir="rtl"] .contact-item:hover { transform: translateX(8px); }
.contact-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--burgundy));
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 4px 15px var(--rose-glow);
}
.contact-item h4 {
  font-size: 1rem; font-weight: 600;
  margin-bottom: 2px;
}
.contact-item p { color: var(--text-muted); font-size: 0.85rem; }

/* Contact Form */
.contact-form { padding: 2.5rem; }
.form-group { margin-bottom: 1.3rem; }
.form-group label {
  display: block;
  font-size: 0.85rem; font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--rose-light);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--rose);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 3px var(--rose-glow);
}
.form-group textarea { resize: vertical; }
.form-group select option {
  background: var(--burgundy-dark);
  color: var(--white);
}

/* ============ FOOTER ============ */
footer {
  border-top: 1px solid var(--glass-border);
  background: rgba(0,0,0,0.3);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
  margin: 1rem 0;
}
.footer-social {
  display: flex; gap: 1rem;
}
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s ease;
}
.footer-social a:hover {
  background: var(--rose);
  color: var(--white);
  transform: translateY(-3px);
}
.footer-col h5 {
  font-size: 1rem; font-weight: 700;
  margin-bottom: 1.2rem;
}
.footer-col a, .footer-col span {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
  transition: color 0.3s ease;
}
.footer-col a:hover { color: var(--rose-light); }
.footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid var(--glass-border);
}
.footer-bottom .container {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { color: var(--text-dim); font-size: 0.85rem; }
.made-with { color: var(--rose-light) !important; }

/* ============ FLOATING WHATSAPP ============ */
.float-wa {
  position: fixed;
  bottom: 25px; inset-inline-end: 25px;
  z-index: 900;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 8px 25px rgba(37,211,102,0.4);
  transition: all 0.3s var(--ease-bounce);
  animation: waPulse 3s ease-in-out infinite;
}
.float-wa:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 12px 30px rgba(37,211,102,0.6);
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 8px 25px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 8px 25px rgba(37,211,102,0.4), 0 0 0 12px rgba(37,211,102,0.1); }
}

/* ============ REVEAL ANIMATION ============ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   EDITORIAL SERVICES — EXPANDING ORBIT ROWS
   ===================================================== */
.editorial-head { max-width: 760px; }

.orbit-group { margin-bottom: 4rem; }
.orbit-group:last-child { margin-bottom: 0; }
.orbit-group-label {
  display: flex; align-items: center; gap: 1.2rem;
  margin-bottom: 2rem;
}
.og-roman {
  font-family: var(--font-en);
  font-size: 1.1rem; font-weight: 700;
  color: var(--rose);
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--rose);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.og-name {
  font-size: 1.25rem; font-weight: 700;
  white-space: nowrap;
}
.og-line {
  flex: 1; height: 1px;
  background: linear-gradient(to right, var(--rose), transparent);
}

.orbit-list {
  border-top: 1px solid var(--glass-border);
}
.orbit-row {
  display: grid;
  grid-template-columns: 90px 1fr 50px;
  gap: 1.5rem;
  align-items: start;
  padding: 1.8rem 1rem;
  border-bottom: 1px solid var(--glass-border);
  cursor: pointer;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease);
  position: relative;
}
.orbit-row::before {
  content: '';
  position: absolute;
  inset-inline-start: 0; top: 0; bottom: 0;
  width: 0;
  background: linear-gradient(to bottom, var(--rose), transparent);
  transition: width 0.4s var(--ease);
}
.orbit-row:hover, .orbit-row.open {
  background: rgba(167, 92, 112, 0.04);
  padding-inline-start: 1.5rem;
}
.orbit-row:hover::before, .orbit-row.open::before {
  width: 3px;
}
.orbit-num {
  font-family: var(--font-en);
  font-size: 2.5rem; font-weight: 700;
  color: var(--text-dim);
  line-height: 1;
  transition: color 0.4s var(--ease);
}
.orbit-row:hover .orbit-num, .orbit-row.open .orbit-num {
  color: var(--rose);
  -webkit-text-stroke: 0;
}
.orbit-body h3 {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}
.orbit-row:hover .orbit-body h3, .orbit-row.open .orbit-body h3 {
  color: var(--rose-light);
}
.orbit-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s var(--ease), opacity 0.4s ease, margin-top 0.4s ease;
}
.orbit-row.open .orbit-detail {
  max-height: 300px;
  opacity: 1;
  margin-top: 1rem;
}
.orbit-detail p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  max-width: 60ch;
}
.orbit-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.orbit-tags span {
  font-size: 0.75rem; font-weight: 600;
  padding: 4px 12px;
  background: rgba(167, 92, 112, 0.1);
  border: 1px solid rgba(167, 92, 112, 0.2);
  border-radius: 50px;
  color: var(--rose-light);
}
.orbit-arrow {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  color: var(--rose);
  transition: all 0.4s var(--ease);
  font-size: 0.9rem;
}
.orbit-row:hover .orbit-arrow, .orbit-row.open .orbit-arrow {
  background: var(--rose);
  color: var(--white);
  border-color: var(--rose);
}
.orbit-row.open .orbit-arrow i { transform: rotate(45deg); }
.orbit-arrow i { transition: transform 0.4s var(--ease); }

/* Tech group accent */
.orbit-row-tech .orbit-num { font-style: italic; }

/* =====================================================
   WORK — HORIZONTAL FILMSTRIP
   ===================================================== */
.filmstrip-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 2rem 1rem;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: var(--rose) transparent;
}
.filmstrip-wrap::-webkit-scrollbar { height: 6px; }
.filmstrip-wrap::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }
.filmstrip-wrap::-webkit-scrollbar-thumb {
  background: var(--rose);
  border-radius: 3px;
}
.filmstrip-wrap.grabbing { cursor: grabbing; }

.filmstrip {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  padding: 1rem 0;
}
.film-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s var(--ease);
  display: flex; flex-direction: column;
}
.film-card:hover {
  transform: translateY(-8px);
  border-color: var(--rose);
  box-shadow: 0 25px 50px -15px rgba(0,0,0,0.5);
}
.film-visual {
  height: 200px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  color: rgba(255,255,255,0.25);
  transition: font-size 0.4s var(--ease);
}
.film-card:hover .film-visual { font-size: 4rem; color: rgba(255,255,255,0.4); }
.film-meta { padding: 1.5rem; }
.film-cat {
  display: inline-block;
  font-size: 0.72rem; font-weight: 600;
  padding: 4px 12px;
  background: rgba(167, 92, 112, 0.15);
  border-radius: 50px;
  color: var(--rose-light);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.film-meta h3 {
  font-size: 1.4rem; font-weight: 700;
  margin-bottom: 0.5rem;
}
.film-meta p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.film-cta {
  background: linear-gradient(135deg, rgba(167,92,112,0.15), rgba(72,12,45,0.3));
  border: 1px solid rgba(167,92,112,0.3);
  justify-content: center;
  text-align: center;
}
.film-cta h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--rose-light);
}
.filmstrip-hint {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 2px;
  font-family: var(--font-en);
}

/* =====================================================
   ABOUT — STICKY SCROLL STORYTELLING
   ===================================================== */
.story-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}
.story-sticky {
  position: sticky;
  top: 120px;
  height: fit-content;
}
.story-sticky-inner {
  padding: 2rem 0;
}
.story-headline {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.story-intro {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.9;
  margin-bottom: 2.5rem;
}
.story-mv {
  display: flex; flex-direction: column; gap: 1.5rem;
}
.story-mv-item {
  padding-inline-start: 1.2rem;
  border-inline-start: 2px solid var(--rose);
}
.smv-label {
  display: block;
  font-family: var(--font-en);
  font-size: 0.8rem; font-weight: 700;
  color: var(--rose);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}
.story-mv-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.story-chapters {
  display: flex; flex-direction: column;
  gap: 3rem;
}
.chapter {
  padding: 2rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: all 0.4s var(--ease);
}
.chapter:hover {
  border-color: var(--rose);
  transform: translateX(-6px);
}
body[dir="ltr"] .chapter:hover { transform: translateX(6px); }
.chapter-roman {
  font-family: var(--font-en);
  font-size: 2.5rem; font-weight: 700;
  font-style: italic;
  color: var(--rose);
  opacity: 0.5;
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.chapter h4 {
  font-size: 1.4rem; font-weight: 700;
  margin-bottom: 0.7rem;
}
.chapter p {
  color: var(--text-muted);
  line-height: 1.8;
}

/* =====================================================
   RESPONSIVE — MOBILE-FIRST PRECISION TUNING
   Breakpoints: 1024 · 768 · 600 · 480 · 375 · landscape
   ===================================================== */

/* ============ LARGE TABLETS / SMALL LAPTOPS (≤1024px) ============ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { height: 400px; order: -1; transform: scale(0.85); transform-origin: center; }
  .story-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .story-sticky { position: static; height: auto; }
  .story-sticky-inner { padding: 0 0 1rem 0; }
  .story-chapters { gap: 1.5rem; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-lg, .bento-tech .bento-feature { grid-column: span 2; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .contact-wrapper { gap: 3rem; }
}

/* ============ TABLETS / LARGE PHONES (≤768px) ============ */
@media (max-width: 768px) {
  :root { --blur: 14px; }

  .container { padding: 0 1.25rem; }

  /* Navbar → Hamburger */
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .nav-container { gap: 1rem; }
  .brand-logo { height: 50px; }
  .lang-switch { padding: 0.5rem 0.85rem; font-size: 0.8rem; }

  .nav-links.mobile-open {
    display: flex; flex-direction: column;
    position: fixed; top: 64px; inset-inline: 0;
    background: rgba(26, 5, 18, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    animation: menuSlide 0.3s var(--ease);
  }
  @keyframes menuSlide {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .nav-links.mobile-open a { font-size: 1.1rem; padding: 0.5rem 0; }

  /* Sections */
  section { padding: 4rem 0; }
  .section-head { margin-bottom: 2.5rem; }
  .section-title { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .section-desc { font-size: 1rem; }

  /* Hero */
  .hero { padding-top: 100px; min-height: auto; padding-bottom: 3rem; }
  .hero-visual { height: 340px; transform: scale(0.7); transform-origin: center; }
  .hero-title { font-size: clamp(2.2rem, 9vw, 3rem); gap: 0.2rem; margin-bottom: 1.2rem; }
  .hero-desc { font-size: 1.05rem; margin-bottom: 2rem; }
  .hero-cta { margin-bottom: 2.5rem; }

  /* Stats → horizontal wrap */
  .hero-stats { gap: 1rem 1.5rem; }
  .stat strong { font-size: 1.7rem; }
  .stat span { font-size: 0.75rem; }
  .stat-divider { display: none; }

  /* Services → single column */
  .services-group-label { gap: 1rem; margin-bottom: 1.8rem; }
  .group-name { font-size: 1.1rem; }
  .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 1rem; margin-bottom: 3.5rem; }
  .bento-lg, .bento-tech .bento-feature { grid-column: span 1; }
  .bento-card { padding: 1.5rem; }
  .bento-card h3 { font-size: 1.2rem; }
  .bento-card p { font-size: 0.9rem; }
  .bc-icon { width: 48px; height: 48px; font-size: 1.3rem; }

  /* Portfolio → single column */
  .portfolio-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; gap: 1rem; }
  .work-lg { grid-column: span 1; grid-row: span 1; }
  .work-overlay { padding: 1.3rem; }
  .work-overlay h3 { font-size: 1.2rem; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .mv-grid { grid-template-columns: 1fr; }
  .timeline-item { padding-bottom: 1.5rem; }

  /* Team → 2 cols */
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.5rem; }
  .team-card { padding: 1.5rem 1rem; }
  .team-card i { font-size: 1.7rem; }
  .team-card span { font-size: 0.82rem; }

  /* Tech Stack */
  .stack-category { padding: 1.5rem; }
  .stack-category h3 { font-size: 1rem; }

  /* Testimonials */
  .testi-card { padding: 1.5rem; gap: 1.2rem; }

  /* Contact */
  .contact-wrapper { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-form { padding: 1.75rem; }
  .contact-item { padding: 1rem; gap: 1rem; }
  .contact-icon { width: 44px; height: 44px; font-size: 1.1rem; }

  /* Footer */
  footer { padding: 3rem 0 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; padding-bottom: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: 100%; }
  .footer-bottom .container { flex-direction: column; text-align: center; gap: 0.5rem; }

  /* Floating WA */
  .float-wa { width: 52px; height: 52px; font-size: 1.5rem; bottom: 18px; inset-inline-end: 18px; }

  /* Hero cards scale down */
  .fc-1, .fc-2, .fc-3, .fc-4 { animation-duration: 9s; }

  /* Scroll indicator hidden on mobile */
  .scroll-indicator { display: none; }
}

/* ============ SMALL TABLETS (≤600px) ============ */
@media (max-width: 600px) {
  .container { padding: 0 1rem; }

  /* Hero CTA → stacked */
  .hero-cta { flex-direction: column; align-items: stretch; gap: 0.8rem; }
  .hero-cta .btn { width: 100%; justify-content: center; }

  /* Portfolio → single col, smaller */
  .portfolio-grid { grid-auto-rows: 200px; }

  /* Team → single column */
  .team-grid { grid-template-columns: 1fr; }
  .team-card { display: flex; flex-direction: row; align-items: center; gap: 1rem; text-align: start; padding: 1.2rem; }
  .team-card i { margin-bottom: 0; font-size: 1.5rem; }
  .team-card span { font-size: 0.9rem; }

  /* Contact form full width fields */
  .contact-form { padding: 1.5rem; }

  /* Stats wrap nicely */
  .hero-stats { gap: 1.2rem; }
  .stat { min-width: 80px; }

  /* Marquee smaller */
  .mq-item { font-size: 0.95rem; }
  .marquee-track { gap: 2rem; }
}

/* ============ PHONES (≤480px) ============ */
@media (max-width: 480px) {
  :root { --radius: 16px; --radius-lg: 22px; }

  .container { padding: 0 1rem; }

  /* Typography clamp for very small screens */
  .hero-title { font-size: 2rem; line-height: 1.15; }
  .section-title { font-size: 1.6rem; }
  .hero-desc { font-size: 0.98rem; line-height: 1.7; }
  .section-desc { font-size: 0.92rem; }
  .badge { font-size: 0.78rem; padding: 0.4rem 0.9rem; margin-bottom: 1.4rem; }

  /* Hero visual smaller */
  .hero-visual { height: 280px; margin: -1rem -1rem 0; transform: scale(0.65); transform-origin: center; }
  .hero-ring { width: 280px; height: 280px; }

  /* Hero stats → 2 per row, centered */
  .hero-stats { justify-content: center; gap: 1rem 1.2rem; }
  .stat { text-align: center; }
  .stat strong { font-size: 1.5rem; }

  /* Bento cards */
  .bento-card { padding: 1.3rem; }
  .bento-card h3 { font-size: 1.1rem; }
  .bc-tags li { font-size: 0.7rem; padding: 3px 10px; }

  /* Portfolio */
  .portfolio-grid { grid-auto-rows: 180px; }
  .work-overlay { padding: 1rem; }
  .work-overlay h3 { font-size: 1.05rem; }
  .work-overlay p { font-size: 0.82rem; }
  .work-tag { font-size: 0.7rem; }

  /* Process timeline compact */
  .process-timeline { padding-inline-start: 1.5rem; }
  .timeline-item { padding-inline-start: 2rem; padding-bottom: 1.2rem; }
  .timeline-node { width: 34px; height: 34px; font-size: 0.75rem; inset-inline-start: -1.5rem; }
  .timeline-body h4 { font-size: 1rem; }
  .timeline-body p { font-size: 0.85rem; }

  /* Contact */
  .contact-form { padding: 1.25rem; border-radius: var(--radius); }
  .form-group input,
  .form-group textarea,
  .form-group select { padding: 0.8rem 0.9rem; font-size: 0.9rem; }
  .contact-item h4 { font-size: 0.92rem; }
  .contact-item p { font-size: 0.8rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-social a { width: 38px; height: 38px; }
  .footer-bottom p { font-size: 0.78rem; }
  .made-with { font-size: 0.75rem !important; }

  /* Stack chips compact */
  .stack-chip { font-size: 0.78rem; padding: 0.5rem 0.85rem; gap: 6px; }
  .stack-chip i { font-size: 1rem; }

  /* Buttons */
  .btn { padding: 0.85rem 1.5rem; font-size: 0.92rem; }
  .lang-switch { padding: 0.45rem 0.75rem; }

  /* Testimonials */
  .testi-card p { font-size: 0.92rem; }
  .testi-who strong { font-size: 0.88rem; }

  /* WA button smaller */
  .float-wa { width: 48px; height: 48px; font-size: 1.35rem; bottom: 15px; inset-inline-end: 15px; }
}

/* ============ VERY SMALL PHONES (≤375px) ============ */
@media (max-width: 375px) {
  .hero-title { font-size: 1.75rem; }
  .section-title { font-size: 1.45rem; }
  .hero-desc { font-size: 0.9rem; }
  .badge { font-size: 0.72rem; }

  .hero-visual { height: 240px; transform: scale(0.55); transform-origin: center; }
  .hero-ring { width: 240px; height: 240px; }

  .bento-card { padding: 1.1rem; }
  .bento-card h3 { font-size: 1rem; }
  .bento-card p { font-size: 0.85rem; }

  .stat strong { font-size: 1.35rem; }
  .stat span { font-size: 0.7rem; }

  .brand-logo { height: 42px; }
  .btn { padding: 0.8rem 1.3rem; font-size: 0.85rem; }
}

/* ============ LANDSCAPE PHONES — fix short height ============ */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .hero { min-height: 100vh; padding-top: 80px; padding-bottom: 2rem; }
  .hero-visual { height: 220px; }
  .hero-grid { gap: 1.5rem; }
  .hero-title { font-size: 2.2rem; margin-bottom: 0.8rem; }
  .hero-desc { margin-bottom: 1.2rem; font-size: 0.95rem; }
  .hero-cta { margin-bottom: 1.5rem; }
  .scroll-indicator { display: none; }
  .nav-links.mobile-open { top: 60px; max-height: calc(100vh - 60px); overflow-y: auto; }
}

/* ============ SAFE AREA (notch / dynamic island) ============ */
@supports (padding: max(0px)) {
  .navbar { padding-top: max(1.2rem, env(safe-area-inset-top)); }
  .float-wa {
    bottom: max(18px, env(safe-area-inset-bottom));
    inset-inline-end: max(18px, env(safe-area-inset-right));
  }
  footer { padding-bottom: env(safe-area-inset-bottom); }
}

/* ============ TOUCH / REDUCED MOTION ============ */
@media (hover: none) {
  /* Disable cursor parallax on touch devices (already hidden via CSS) */
  [data-tilt] { transform: none !important; }
  .bento-card:hover { transform: translateY(-4px); }
  .work-card:hover .work-overlay { opacity: 1; }
  .work-overlay { opacity: 0.85; }
  /* Larger tap targets on mobile */
  .nav-links a, .btn, .lang-switch, .menu-toggle,
  .stack-chip, .footer-col a, .footer-social a,
  .contact-item, .mv-card, .team-card {
    min-height: 44px;
  }
}

/* iOS input zoom fix (keep font-size ≥ 16px on inputs) */
@supports (-webkit-touch-callout: none) {
  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .mesh-orb, .float-card, .fc-chart .bar, .fc-orb, .ai-node,
  .pulse-dot::before, .scroll-indicator, .float-wa { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
