:root {
  --primary: #ff1e1e;
  --primary-mid: #c40000;
  --primary-dark: #7a0000;
  --primary-glow: rgba(255, 30, 30, 0.4);
  --bg-deep: #0b0b0b;
  --bg-dark: #111111;
  --bg-card: rgba(20, 20, 20, 0.85);
  --text-main: #ffffff;
  --text-dim: #b0b0b0;
  --border-glass: rgba(255, 255, 255, 0.05);
  --font-main: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-cinematic: 'Playfair Display', serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --transition: all 0.6s var(--ease);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none !important;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--bg-deep);
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

section {
  position: relative;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-main);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ── Grain Texture ── */
.grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://grainy-gradients.vercel.app/noise.svg');
  opacity: 0.03;
  pointer-events: none;
  z-index: 9999;
}

/* ── Scroll Progress ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--primary);
  width: 0%;
  z-index: 10000;
  box-shadow: 0 0 10px var(--primary);
}

/* ── Custom Cursor ── */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
}

.cursor-ring {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1px solid var(--primary-glow);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, width 0.3s ease, height 0.3s ease;
}

/* ── Reveal Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveals for grids */
.srv-grid .srv-card:nth-child(2) { transition-delay: 0.1s; }
.srv-grid .srv-card:nth-child(3) { transition-delay: 0.2s; }
.srv-grid .srv-card:nth-child(4) { transition-delay: 0.3s; }
.port-mosaic .mosaic-item:nth-child(2) { transition-delay: 0.1s; }
.port-mosaic .mosaic-item:nth-child(3) { transition-delay: 0.2s; }
.port-mosaic .mosaic-item:nth-child(4) { transition-delay: 0.3s; }

/* ── Cinematic Text Mask ── */
.reveal-text {
  overflow: hidden;
  display: block;
}

.reveal-text span {
  display: block;
  transform: translateY(100%);
  transition: transform 1.5s var(--ease);
}

.reveal-text.visible span {
  transform: translateY(0);
}

/* ── Spotlight Background ── */
.spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255, 0, 0, 0.03) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
}

/* ── Trust Bar ── */
.trust {
  padding: 60px 0;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border-glass);
  overflow: hidden;
  text-align: center;
}

.trust-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--text-dim);
  margin-bottom: 30px;
  font-weight: 700;
  opacity: 0.6;
}

.marquee-wrap {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
}

.marquee-track {
  display: flex;
  gap: 80px;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

.marquee-track img {
  height: 25px;
  width: auto;
  opacity: 0.3;
  filter: grayscale(1);
  transition: var(--transition);
}

.marquee-track img:hover {
  opacity: 1;
  filter: grayscale(0);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Preloader ── */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20000;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  text-align: center;
}

.preloader-logo {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 20px;
  letter-spacing: -2px;
}

.preloader-bar {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.preloader-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--primary);
  transition: width 0.4s ease;
}

/* ── Typography ── */
em {
  font-style: italic;
  font-weight: 300;
  color: var(--primary);
}

.wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 5px 0;
  z-index: 1000;
  transition: var(--transition);
}

.nav.scrolled {
  padding: 8px 0;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
}

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

.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 15px;
  perspective: 1000px;
}

.brand img {
  height: 80px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 15px rgba(255, 30, 30, 0.2));
  animation: logo-float 4s ease-in-out infinite, logo-glow 3s ease-in-out infinite alternate;
  transition: transform 0.4s var(--ease), filter 0.4s var(--ease);
  transform-style: preserve-3d;
}

.preloader-logo img {
  height: 110px;
}

.footer-brand img {
  height: 90px;
}

.brand:hover img {
  transform: rotateY(15deg) rotateX(10deg) scale(1.1);
  filter: drop-shadow(0 0 25px var(--primary-glow));
  animation: logo-glitch 0.2s linear infinite alternate;
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0) rotateZ(0deg); }
  50% { transform: translateY(-8px) rotateZ(1deg); }
}

@keyframes logo-glow {
  from { filter: drop-shadow(0 0 10px rgba(255, 30, 30, 0.2)); }
  to { filter: drop-shadow(0 0 25px rgba(255, 30, 30, 0.6)); }
}

@keyframes logo-glitch {
  0% { transform: translate(0) rotateY(15deg); }
  50% { transform: translate(-2px, 1px) rotateY(17deg); }
  100% { transform: translate(2px, -1px) rotateY(13deg); }
}

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

.nav-links.active {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.98);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: menuFadeIn 0.5s var(--ease) forwards;
}

.nav-links.active a {
  font-size: 2rem;
  margin: 15px 0;
  opacity: 0;
  transform: translateY(30px);
  animation: linkSlideUp 0.5s var(--ease) forwards;
}

.nav-links.active a:nth-child(1) { animation-delay: 0.1s; }
.nav-links.active a:nth-child(2) { animation-delay: 0.2s; }
.nav-links.active a:nth-child(3) { animation-delay: 0.3s; }
.nav-links.active a:nth-child(4) { animation-delay: 0.4s; }
.nav-links.active a:nth-child(5) { animation-delay: 0.5s; }

@keyframes menuFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes linkSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-btn {
  background: var(--primary);
  color: #000 !important;
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: 700 !important;
  box-shadow: 0 0 20px var(--primary-glow);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 10px;
}

.burger span {
  display: block;
  width: 25px;
  height: 2px;
  background: #fff;
  transition: var(--transition);
}

.burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ── Hero Section ── */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-vid {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) saturate(0.8);
}

.mute-toggle {
  position: absolute;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 100;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.mute-toggle:hover {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
  transform: scale(1.1);
}

.hero-mesh {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 2px 2px, rgba(255, 30, 30, 0.1) 1px, transparent 0);
  background-size: 50px 50px;
  z-index: 1;
  pointer-events: none;
  perspective: 1000px;
  transform: rotateX(60deg) translateY(-200px);
  opacity: 0.3;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, var(--bg-deep) 0%, transparent 50%);
  z-index: 3;
}

.cinematic-grading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(122, 0, 0, 0.08);
  mix-blend-mode: color;
  pointer-events: none;
  z-index: 3;
}

.light-flash {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  opacity: 0;
  z-index: 100;
  pointer-events: none;
}

.light-flash.active {
  animation: flashCut 0.6s var(--ease-in-out) forwards;
}

@keyframes flashCut {
  0% { opacity: 0; }
  30% { opacity: 0.8; }
  100% { opacity: 0; }
}

.lens-flare {
  position: absolute;
  top: 50%;
  left: -20%;
  width: 140%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  filter: blur(8px);
  opacity: 0.15;
  z-index: 4;
  transform: translateY(-50%);
  pointer-events: none;
}

.hero-body {
  max-width: 1200px;
  padding: 0 40px;
  z-index: 10;
  position: relative;
}

.hero-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 30px;
  display: inline-block;
  background: rgba(255, 30, 30, 0.1);
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid rgba(255, 30, 30, 0.2);
}

.hero-h1 {
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  line-height: 1;
  margin-bottom: 40px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff;
}

.hero-h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
  display: block;
  margin-top: 10px;
}

.hero-sub {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-dim);
  max-width: 700px;
  margin: 0 auto 50px;
  line-height: 1.6;
  font-family: var(--font-body);
}

.cinematic-text {
  font-family: var(--font-cinematic);
  font-style: italic;
  font-weight: 300;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s var(--ease);
}

.scene.active .cinematic-text {
  opacity: 1;
  transform: translateY(0);
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* ── Buttons ── */
.btn-glow {
  background: var(--primary);
  color: #000;
  padding: 18px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  transition: var(--transition);
  box-shadow: 0 0 30px var(--primary-glow);
}

.btn-glow:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 0 50px var(--primary);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  padding: 18px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #fff;
  transform: translateY(-5px);
}

/* ── Trust Marquee ── */
.trust {
  padding: 80px 0;
  border-bottom: 1px solid var(--border-glass);
}

.trust-label {
  text-align: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--text-dim);
  margin-bottom: 40px;
}

.marquee-wrap {
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 40s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-track img {
  height: 120px;
  width: auto;
  max-width: 250px;
  margin: 0 80px;
  object-fit: contain;
  filter: grayscale(1) brightness(3);
  opacity: 0.6;
  transition: var(--transition);
}

.marquee-track img:hover {
  filter: grayscale(0) brightness(1);
  opacity: 1;
  transform: scale(1.15) translateY(-10px);
}

.dot {
  color: var(--primary) !important;
}

/* ── Stats Bar ── */
.stats-bar {
  padding: 100px 0;
  background: var(--bg-dark);
}

.stats-bar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.s-item {
  text-align: center;
}

.s-item strong {
  display: block;
  font-size: 3.5rem;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 10px;
  text-shadow: 0 0 20px var(--primary-glow);
}

.s-item span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dim);
}

.s-divider {
  width: 1px;
  height: 60px;
  background: var(--border-glass);
}

/* ── Sections Common ── */
.sec-head {
  margin-bottom: 120px;
  text-align: center;
}

.sec-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 15px;
}

.sec-head h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
}

.sec-head h2 span {
  color: var(--text-dim);
}

/* ── Services ── */
.services {
  padding: 220px 0;
}

.srv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.srv-card {
  position: relative;
  background: var(--bg-card);
  padding: 60px 40px;
  border-radius: 24px;
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(20px);
  transition: transform 0.1s ease-out, border-color 0.6s var(--ease), box-shadow 0.6s var(--ease);
  overflow: visible; /* Changed from hidden to allow 3D elements to pop */
  transform-style: preserve-3d;
}

.srv-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
}

.srv-num {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 3rem;
  font-weight: 900;
  opacity: 0.05;
  color: var(--primary);
  transform: translateZ(60px);
}

.srv-ico {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 30px;
  transform: translateZ(30px);
}

.srv-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  transform: translateZ(20px);
}

.srv-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 25px;
}

.srv-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  font-weight: 700;
}

.srv-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, var(--primary-glow), transparent 70%);
  opacity: 0.1;
  transition: var(--transition);
  pointer-events: none;
  animation: glow-pulse 4s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  from { opacity: 0.05; transform: scale(1); }
  to { opacity: 0.2; transform: scale(1.1); }
}

.srv-card:hover .srv-glow {
  opacity: 0.3;
  animation: none;
}

.srv-card.highlight-card {
  border-color: var(--primary-glow);
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.95) 0%, rgba(255, 30, 30, 0.05) 100%);
}

.srv-card.highlight-card h3 {
  color: var(--primary);
}

/* ── Portfolio ── */
.portfolio {
  padding: 220px 0;
  background: #000;
}

/* ── Portfolio Mosaic ── */
.port-mosaic {
  column-count: 3;
  column-gap: 20px;
  margin-bottom: 80px;
  width: 100%;
}

.mosaic-item {
  position: relative;
  display: inline-block;
  width: 100%;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  break-inside: avoid;
}

.mosaic-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s var(--ease);
}

.mosaic-item.crop-watermark img {
  transform: scale(1.18);
  transform-origin: 30% 30%; /* Focus more on the face/neck, push bottom-right away */
}

.mosaic-item.crop-watermark:hover img {
  transform: scale(1.22);
}

/* Removed fixed grid spans to allow original sizes */
.mosaic-item.tall, .mosaic-item.wide {
  grid-row: auto;
  grid-column: auto;
}

.mosaic-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, transparent 100%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
}

.mosaic-overlay span {
  font-family: var(--font-main);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
}

.mosaic-item:hover img {
  transform: scale(1.1);
}

.mosaic-item:hover .mosaic-overlay {
  opacity: 1;
}

@media (max-width: 1024px) {
  .port-mosaic {
    column-count: 2;
  }
}

@media (max-width: 768px) {
  .port-mosaic {
    column-count: 1;
  }
}

.port-badge {
  background: rgba(255, 30, 30, 0.15);
  color: var(--primary);
  padding: 6px 15px;
  border-radius: 50px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  display: inline-block;
  border: 1px solid var(--primary-glow);
  backdrop-filter: blur(5px);
}

.port-info h4 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.port-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

.port-card {
  position: relative;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  transition: var(--transition);
}

.port-card.original-size {
  height: auto;
  grid-column: 1 / -1; /* Make it full width to show original size properly */
  background: none;
  border: none;
}

.port-card:hover {
  transform: scale(1.02);
  border-color: var(--primary);
}

.port-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.port-card.original-size video {
  height: auto;
  object-fit: contain;
  border-radius: 20px;
  border: 1px solid var(--border-glass);
}

.port-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

/* ── Case Studies ── */
.cases {
  padding: 220px 0;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 40px;
}

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 30px;
  padding: 60px;
  transition: var(--transition);
}

.case-tag {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 20px;
}

.case-flow {
  margin: 40px 0;
}

.cf-step span {
  display: block;
  font-size: 0.7rem;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.cf-arrow {
  padding: 20px 0;
  color: var(--primary);
  opacity: 0.5;
}

.case-metrics {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border-glass);
}

.case-metrics strong {
  display: block;
  font-size: 2rem;
  color: var(--primary);
}

/* ── Testimonials ── */
.testi {
  padding: 220px 0;
  background: #000;
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 60px;
  border-radius: 30px;
  transition: var(--transition);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.testi-card:hover {
  border-color: var(--primary-glow);
  transform: translateY(-15px);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.testi-quote {
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 25px;
  opacity: 0.6;
}

.testi-card p {
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 30px;
  font-style: italic;
  font-family: var(--font-body);
}

.testi-auth {
  display: flex;
  align-items: center;
  gap: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 25px;
}

.testi-av {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #000;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.testi-auth strong {
  display: block;
  font-size: 1rem;
  color: #fff;
}

.testi-auth span {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.testi-stars {
  color: #FFD700;
  font-size: 0.9rem;
  margin-top: 15px;
  letter-spacing: 2px;
}

/* ── Comparison Table ── */
.compare-table {
  background: var(--bg-card);
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.ct-head,
.ct-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  padding: 30px 40px;
  border-bottom: 1px solid var(--border-glass);
}

.ct-col-label {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.neon {
  color: var(--primary) !important;
}

.ct-feature {
  font-weight: 700;
}

/* ── Process ── */
.process {
  padding: 220px 0;
}

.proc-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
}

.proc-step {
  position: relative;
  text-align: center;
}

.proc-node {
  width: 60px;
  height: 60px;
  background: var(--bg-deep);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  font-weight: 900;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 20px var(--primary-glow);
}

.proc-body {
  padding: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
}

/* ── Before After ── */
.ba-section {
  padding: 220px 0;
}

.ba-slider {
  position: relative;
  width: 100%;
  height: 600px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.ba-before,
.ba-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ba-before img,
.ba-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-after {
  width: 50%;
  border-right: 2px solid var(--primary);
  z-index: 2;
}

.ba-handle {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: 2px;
  background: var(--primary);
  z-index: 3;
}

.ba-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  box-shadow: 0 0 20px var(--primary-glow);
}

/* ── CTA ── */
.cta-sec {
  padding: 180px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #1a0000 0%, #000 100%);
}

.cta-inner {
  position: relative;
  z-index: 2;
}

.cta-sec h2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 30px;
  line-height: 1.1;
}

.cta-sub {
  color: var(--text-dim);
  font-size: 1.2rem;
  margin-bottom: 50px;
}

.cta-trust {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.cta-trust span {
  font-size: 0.9rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 10px;
}

.cta-trust i {
  color: var(--primary);
}

/* ── Contact ── */
.contact {
  padding: 220px 0;
  background: var(--bg-deep);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-left h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin: 20px 0 30px;
}

.contact-desc {
  color: var(--text-dim);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 50px;
}

.contact-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: var(--transition);
}

.contact-links a:hover {
  color: var(--primary);
  transform: translateX(10px);
}

.contact-links i {
  color: var(--primary);
  width: 24px;
}

.contact-proof {
  display: flex;
  gap: 50px;
  border-top: 1px solid var(--border-glass);
  padding-top: 40px;
  flex-wrap: wrap;
}

.contact-proof div {
  flex: 1;
  min-width: 120px;
}

.contact-proof div strong {
  display: block;
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 8px;
  font-family: var(--font-main);
}

.contact-proof div span {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-form {
  background: rgba(255, 255, 255, 0.02);
  padding: 60px;
  border-radius: 30px;
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(20px);
}

.f-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

input,
select,
textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  padding: 20px;
  border-radius: 15px;
  color: #fff;
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 16px;
  padding-right: 50px;
  margin-bottom: 20px;
}

select option {
  background-color: #111;
  color: #fff;
  padding: 15px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
}

.w-full {
  width: 100%;
}

/* ── Footer ── */
footer {
  padding: 100px 0 50px;
  border-top: 1px solid var(--border-glass);
  position: relative;
  overflow: hidden;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
}

.footer-socials {
  display: flex;
  gap: 20px;
}

.footer-socials a {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
  text-decoration: none;
}

.footer-socials a:hover {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--primary-glow);
}

.footer-nav {
  display: flex;
  gap: 40px;
  margin-bottom: 60px;
  justify-content: center;
}

.footer-nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
}

/* ── FAQ ── */
.faq-sec {
  padding: 150px 0;
  background: var(--bg-deep);
}

.faq-grid {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-q {
  padding: 30px 40px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.faq-q i {
  font-size: 0.9rem;
  color: var(--primary);
  transition: transform 0.4s var(--ease);
}

.faq-a {
  padding: 0 40px;
  max-height: 0;
  overflow: hidden;
  color: var(--text-dim);
  line-height: 1.8;
  transition: all 0.5s var(--ease);
  opacity: 0;
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: 0 10px 40px rgba(255, 30, 30, 0.1);
}

.faq-item.active .faq-q {
  color: var(--primary);
}

.faq-item.active .faq-q i {
  transform: rotate(45deg);
}

.faq-item.active .faq-a {
  padding: 0 40px 40px;
  max-height: 200px;
  opacity: 1;
}

/* ── Footer Newsletter ── */
.footer-newsletter {
  text-align: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 60px;
}

.footer-newsletter h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.footer-newsletter p {
  color: var(--text-dim);
  margin-bottom: 30px;
}

.news-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 15px;
}

.news-form input {
  flex: 1;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Media Queries ── */

/* Tablets & Small Desktops */
@media (max-width: 1024px) {
  .srv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .port-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-grid {
    gap: 40px;
  }
}

/* Mobile Devices */
@media (max-width: 768px) {
  .wrap {
    padding: 0 20px;
  }

  /* Typography */
  .hero-h1 {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
    line-height: 1.1;
  }

  .hero-tag {
    font-size: 0.7rem;
    padding: 6px 15px;
    letter-spacing: 3px;
  }

  .sec-head h2 {
    font-size: 2.2rem;
  }

  .sec-head {
    margin-bottom: 60px;
  }

  section {
    padding: 80px 0 !important;
  }

  .hero {
    padding: 120px 0 60px !important;
  }

  /* Navigation */
  .nav {
    padding: 15px 0;
  }
  
  .nav.scrolled {
    padding: 10px 0;
  }

  .nav-links {
    display: none; /* Handled by burger menu in main.js */
  }

  .burger {
    display: flex;
  }

  /* Hero */
  .hero {
    height: auto;
    padding: 150px 0 100px;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .hero-actions .btn-glow, 
  .hero-actions .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  /* Service Grid */
  .srv-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Portfolio Mosaic */
  .port-mosaic {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .mosaic-item, .mosaic-item.wide, .mosaic-item.tall {
    grid-column: span 1;
    grid-row: span 1;
    height: auto;
    aspect-ratio: 1/1;
  }

  /* Portfolio Grid */
  .port-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Compare Table */
  .compare-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .ct-head, .ct-row {
    min-width: 600px; /* Force scroll for legibility */
  }

  /* Process steps */
  .proc-line {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .proc-line::before {
    display: none;
  }

  /* Stats Bar */
  .stats-bar .wrap {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .s-divider {
    display: none;
  }

  /* Contact */
  .contact {
    padding: 100px 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .contact-form {
    padding: 30px;
  }

  .f-group {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-top {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

/* Very Small Devices */
@media (max-width: 480px) {
  .hero-h1 {
    font-size: 2.2rem;
  }
  
  .brand img {
    height: 45px;
  }

  .ba-slider {
    aspect-ratio: 1/1;
  }

  .ba-label {
    font-size: 0.7rem;
    padding: 5px 12px;
  }

  .marquee-track img {
    height: 60px;
    margin: 0 30px;
  }

  .srv-card {
    padding: 30px 20px;
  }

  .contact-proof, .cta-trust {
    justify-content: center;
    gap: 30px;
  }

  .news-form {
    flex-direction: column;
  }
}

/* ── Floating WhatsApp ── */
.floating-wa {
  position: fixed;
  bottom: 40px;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  z-index: 10000;
  transition: var(--transition);
}

.wa-label {
  background: rgba(255, 255, 255, 0.95);
  color: #000;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: translateX(20px);
  opacity: 0;
  transition: var(--transition);
}

.floating-wa:hover .wa-label {
  transform: translateX(0);
  opacity: 1;
}

.wa-icon {
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3), 0 0 20px rgba(37, 211, 102, 0.5);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  animation: wa-pulse 2s infinite;
}

.wa-icon::after {
  content: '';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 10px;
  height: 10px;
  background: #ff3b30;
  border-radius: 50%;
  border: 2px solid #25d366;
  z-index: 1;
}

/* Shine effect */
.wa-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 45%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.1) 55%,
    transparent 100%
  );
  transform: rotate(45deg);
  animation: wa-shine 3s infinite;
}

@keyframes wa-shine {
  0% { transform: translateX(-100%) rotate(45deg); }
  20%, 100% { transform: translateX(100%) rotate(45deg); }
}

@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.floating-wa:hover .wa-icon {
  transform: scale(1.1);
  animation: none;
}

@media (max-width: 768px) {
  .floating-wa {
    bottom: 20px;
    right: 20px;
  }
  .wa-label {
    display: none;
  }
}