/* ═══════════════════════════════════════════════════════════════
   XYRIS TECHNOLOGIES — Premium Design System
   Elite SaaS-Grade CSS Architecture
   ═══════════════════════════════════════════════════════════════ */

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

/* ── CSS Variables ── */
:root {
  --dark: #120505;
  --dark-2: #1a0808;
  --dark-3: #220c0c;
  --primary: #DC2626;
  --primary-light: #EF4444;
  --primary-glow: rgba(220, 38, 38, 0.4);
  --white: #fafafa;
  --white-60: rgba(250, 250, 250, 0.6);
  --white-40: rgba(250, 250, 250, 0.4);
  --white-20: rgba(250, 250, 250, 0.2);
  --white-10: rgba(250, 250, 250, 0.1);
  --white-05: rgba(250, 250, 250, 0.05);
  --white-03: rgba(250, 250, 250, 0.03);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--dark);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--dark);
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ── Typography ── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.heading-xl {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.heading-lg {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.heading-md {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-body {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--white-60);
}

.text-body-lg {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--white-60);
  max-width: 600px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, #ff6b6b 50%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-lg {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 128px 0;
  /* py-32 equivalent */
  position: relative;
  will-change: transform, opacity;
}

.section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 0, 0, 0.15),
    transparent
  );
  pointer-events: none;
}

/* ── Glassmorphism ── */
.glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
}

.glass-subtle {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
}

.glass-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 40px;
  transition: all 0.5s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  will-change: transform, opacity;
}

/* Background Texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  pointer-events: none;
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.glass-card:hover {
  border-color: rgba(220, 38, 38, 0.4);
  transform: translateY(-10px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 50px rgba(220, 38, 38, 0.1);
}

.glass-card:hover::before {
  opacity: 1;
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 48px);
  max-width: 1100px;
}

.navbar-inner {
  background: rgba(18, 5, 5, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--white-10);
  border-radius: 999px;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.4s var(--ease-out-expo);
}

.navbar.scrolled .navbar-inner {
  padding: 10px 28px;
  background: rgba(18, 5, 5, 0.92);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav-logo-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.3s var(--ease-out-expo);
}

.nav-logo:hover .nav-logo-img {
  transform: rotate(-5deg) scale(1.1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white-60);
  border-radius: 999px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: var(--white-05);
}

.nav-links a.active {
  background: var(--primary);
  color: white;
}

.nav-cta {
  padding: 10px 24px;
  background: var(--primary);
  color: white;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s var(--ease-out-expo);
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
  border: none;
  cursor: pointer;
}

.nav-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(220, 38, 38, 0.5);
  background: var(--primary-light);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 24px;
  right: 24px;
  z-index: 999;
  background: rgba(18, 5, 5, 0.95);
  backdrop-filter: blur(24px);
  border: 1px solid var(--white-10);
  border-radius: 24px;
  padding: 32px;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--white-60);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.mobile-menu a:hover {
  color: var(--white);
  background: var(--white-05);
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--primary);
  color: white;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  filter: blur(16px);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 40px rgba(220, 38, 38, 0.5);
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--white-05);
  border: 1px solid var(--white-10);
  color: var(--white);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.4s var(--ease-out-expo);
}

.btn-glass:hover {
  background: var(--white-10);
  border-color: var(--white-20);
  transform: translateY(-2px);
}

/* ── Hero ── */
.hero {
  padding: 160px 0 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg .glow-1 {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.12) 0%, transparent 70%);
  filter: blur(80px);
  animation: floatGlow 8s ease-in-out infinite alternate;
}

.hero-bg .glow-2 {
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.08) 0%, transparent 70%);
  filter: blur(60px);
  animation: floatGlow 10s ease-in-out infinite alternate-reverse;
}

.hero-bg .grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--white-03) 1px, transparent 1px),
    linear-gradient(90deg, var(--white-03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
}

@keyframes floatGlow {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(30px, -20px) scale(1.1);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--white-05);
  border: 1px solid var(--white-10);
  margin-bottom: 40px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--white-60);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.hero-title {
  margin-bottom: 32px;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--white-40);
  max-width: 600px;
  margin: 0 auto 48px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Social Float Widget ── */
@keyframes socialSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.88);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pillPulse {

  0%,
  100% {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14), 0 0 0 0 rgba(220, 38, 38, 0.35);
  }

  60% {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14), 0 0 0 10px rgba(220, 38, 38, 0);
  }
}

/* Pill container */
.social-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 10000;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: #ffffff;
  border-radius: 999px;
  padding: 8px 18px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity;
  transform: translateZ(0);
}

.social-float:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 25px rgba(220, 38, 38, 0.3);
}

/* Thin red divider between icons */
.social-float-btn.whatsapp {
  border-right: 1px solid rgba(220, 38, 38, 0.15);
  padding-right: 12px;
  margin-right: 12px;
}

/* Individual icon buttons — transparent, icon inherits red */
.social-float-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--primary);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s var(--ease-out-expo),
    background 0.25s ease;
}

.social-float-btn:hover {
  transform: scale(1.22);
  background: rgba(220, 38, 38, 0.08);
}

.social-float-btn svg {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  fill: var(--primary);
  transition: transform 0.25s var(--ease-out-expo);
}

.social-float-btn:hover svg {
  transform: scale(1.08);
}

/* Tooltip — appears above each icon */
.social-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(10, 2, 2, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 6px 13px;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s var(--ease-out-expo);
}

.social-float-btn:hover .social-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.footer {
  border-top: 1px solid var(--white-05);
  padding: 120px 0;
  background: linear-gradient(to bottom, transparent, rgba(220, 38, 38, 0.02));
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 80px;
}

.footer-brand {
  flex: 1;
  text-align: left;
}

.footer-brand p {
  color: var(--white-40);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 300px;
  margin-top: 24px;
}

.footer-links-group {
  flex: 2;
  display: flex;
  justify-content: flex-end; /* Align to right */
  gap: 80px;
}

.footer-col {
  min-width: 140px;
  text-align: right; /* End aligned */
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 28px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col ul a {
  font-size: 1rem;
  color: var(--white-40);
  transition: all 0.3s ease;
}

.footer-col ul a:hover {
  color: #ff2e2e;
  transform: translateX(-4px); /* Slide left since aligned right */
}

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid var(--white-05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--white-20);
  font-size: 0.85rem;
}

/* ── Services Page: Horizontal Scroll ── */
.services-intro {
  padding: 128px 0 60px;
  text-align: center;
}

.horizontal-section {
  position: relative;
  overflow: hidden;
  height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--dark);
  /* Keep stable background */
}

.horizontal-track {
  display: flex;
  gap: 40px;
  /* Left/Right padding perfectly centers the first and last cards */
  padding: 0 calc((100vw - 600px) / 2);
  will-change: transform;
}

.h-card {
  flex-shrink: 0;
  width: 600px;
  min-height: 520px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid var(--white-10);
  border-radius: 32px;
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: border-color 0.5s ease;
}

.h-card:hover {
  border-color: rgba(220, 38, 38, 0.3);
}

.h-card .card-number {
  font-size: 8rem;
  font-weight: 900;
  position: absolute;
  top: -10px;
  right: 24px;
  color: var(--white-03);
  line-height: 1;
  user-select: none;
}

.h-card h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.h-card .card-desc {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--white-40);
  margin-bottom: 32px;
  max-width: 440px;
  position: relative;
  z-index: 1;
}

.h-card .card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.h-card .card-features li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white-60);
  font-size: 1rem;
}

.h-card .card-features li .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.h-card .card-footer {
  margin-top: auto;
  padding-top: 32px;
  border-top: 1px solid var(--white-10);
  position: relative;
  z-index: 1;
}

.h-card .card-footer span {
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s ease;
}

.h-card:hover .card-footer span {
  gap: 16px;
}

/* ── About Page: Split Sticky (Refined) ── */
.about-split {
  display: flex;
  min-height: 100vh;
  gap: 0;
}

.about-split.reverse {
  flex-direction: row-reverse;
}

.about-scroll-side {
  width: 50%;
  padding: 120px 80px;
  display: flex;
  flex-direction: column;
  gap: 60px; /* Spacing between sections */
}

.about-sticky-side {
  width: 50%;
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px; 
  z-index: 5;
}

.sticky-visual-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 0;
  max-width: 540px; /* Reduced width for better readability */
}

.section-hook {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 24px;
  color: var(--white);
  letter-spacing: -0.03em;
}

.section-desc {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--white-40);
  margin-bottom: 36px;
}

.section-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white-80);
}

.bullet-icon {
  color: var(--primary);
  flex-shrink: 0;
  font-size: 1.1rem;
}

/* Scroll indicator under hero */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--white));
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.7);
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* Contact grid */
.contact-grid {
  display: flex;
  justify-content: space-between;
  align-items: center; /* Vertical alignment balance */
  gap: 80px;
}

.contact-left {
  flex: 1;
  max-width: 520px;
  text-align: left;
}

.contact-right-side {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.contact-label {
  font-size: 0.75rem;
  color: #ff2e2e;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 6px;
}

.contact-value {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  transition: color 0.3s ease;
}

.contact-value:hover {
  color: #ff2e2e;
}

.contact-block {
  display: flex;
  align-items: center;
  gap: 24px;
}

.contact-icon-box {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(255, 46, 46, 0.05);
  border: 1px solid rgba(255, 46, 46, 0.15);
  font-size: 1.4rem;
  transition: all 0.4s var(--ease-out-expo);
}

.contact-block:hover .contact-icon-box {
  background: rgba(255, 46, 46, 0.1);
  transform: translateY(-5px) rotate(-8deg);
  border-color: #ff2e2e;
}

/* About full-page section override */
.about-page-section {
  padding: 160px 0 80px;
}

.sticky-visual-card {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05); /* Increased visibility */
  border: 1px solid rgba(220, 38, 38, 0.2); /* Red tint border */
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

.sticky-visual-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(18,5,5,0.95) 0%,
    rgba(18,5,5,0.2) 50%,
    transparent 100%
  );
  z-index: 1; /* BELOW IMAGE */
  pointer-events: none;
}

.visual-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 90%;
  height: 90%;
  object-fit: contain;
  opacity: 1; /* Initial state */
  z-index: 10;
  border-radius: 32px;
  box-shadow:
    0 0 80px rgba(220,38,38,0.25),
    0 40px 120px rgba(0,0,0,0.8);
  /* RELEVANT: No opacity transition here to avoid conflict with GSAP */
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-visual-card.active .visual-img {
  transform: translate(-50%, -50%) scale(1.05); /* Zoom on scroll */
}

.visual-number {
  position: absolute;
  bottom: 40px;
  left: 40px;
  font-size: 8rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  z-index: 3;
  opacity: 0.1;
  font-family: 'Inter', sans-serif;
  pointer-events: none;
}


/* ── Contact Form ── */
.form-input {
  width: 100%;
  padding: 16px 24px;
  background: var(--white-03);
  border: 1px solid var(--white-10);
  border-radius: 16px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-input::placeholder {
  color: var(--white-20);
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white-40);
  margin-bottom: 8px;
  padding-left: 4px;
}

.form-select {
  width: 100%;
  padding: 16px 24px;
  background: var(--dark-2);
  border: 1px solid var(--white-10);
  border-radius: 16px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
  appearance: none;
  cursor: pointer;
}

.form-select:focus {
  border-color: var(--primary);
}

/* ── Responsive ── */
@media screen and (max-width: 768px) {
  /* ── Layout Fixes ── */
  .section {
    padding: 60px 20px !important;
  }

  .container, .container-lg {
    padding: 0 20px !important;
  }

  /* ── Text Scaling ── */
  h1, .heading-xl {
    font-size: 32px !important;
    line-height: 1.2 !important;
  }

  h2, .heading-lg {
    font-size: 26px !important;
    line-height: 1.3 !important;
  }

  h3, .heading-md {
    font-size: 24px !important;
    line-height: 1.3 !important;
  }

  p, .text-body, .text-body-lg, .section-desc {
    font-size: 15px !important;
    line-height: 1.6 !important;
    max-width: 100% !important;
  }

  /* ── Navbar ── */
  .navbar {
    top: 15px !important;
    width: calc(100% - 30px) !important;
  }

  .navbar-inner {
    padding: 10px 20px !important;
    border-radius: 20px !important;
  }

  .nav-links, .nav-cta {
    display: none !important;
  }

  .mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  /* ── Hero Adjustment ── */
  .hero {
    padding: 120px 0 60px !important;
    text-align: center !important;
  }

  .hero-badge {
    margin-bottom: 24px !important;
    font-size: 0.7rem !important;
  }

  .hero-buttons {
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .hero-buttons > * {
    width: 100% !important;
  }

  /* ── Two-Column Sections to Single Column ── */
  .about-split {
    flex-direction: column !important;
    gap: 40px !important;
  }

  .about-sticky-side {
    position: relative !important;
    top: 0 !important;
    height: auto !important;
    width: 100% !important;
    order: 2; /* Image after text */
  }

  .about-scroll-side {
    width: 100% !important;
    padding: 0 !important;
    order: 1;
  }

  .about-section {
    margin-bottom: 40px !important;
    padding: 0 !important;
  }

  .sticky-visual-wrapper {
    height: 300px !important;
    width: 100% !important;
  }
  
  .sticky-visual-card {
    border-radius: 20px !important;
  }

  /* ── Services Section (Horizontal to Vertical Stack) ── */
  .horizontal-section {
    height: auto !important;
    overflow: visible !important;
  }

  .horizontal-track {
    flex-direction: column !important;
    padding: 0 20px !important;
    gap: 20px !important;
    transform: none !important; /* Disable GSAP motion if it fires */
  }

  .h-card {
    width: 100% !important;
    min-height: auto !important;
    padding: 30px !important;
    border-radius: 24px !important;
    opacity: 1 !important;
    transform: none !important;
    scale: 1 !important;
    filter: none !important;
  }
  
  .card-features {
    gap: 12px !important;
  }

  .services-intro {
    padding: 60px 20px 30px !important;
  }

  .services-intro div[style*="animation: floatDecor"] {
    display: none !important;
  }

  /* ── Contact Section ── */
  #contact {
    padding: 60px 20px 100px !important;
  }

  .contact-grid {
    flex-direction: column !important;
    gap: 40px !important;
    display: flex !important;
  }

  .contact-left {
    text-align: center !important;
    max-width: 100% !important;
  }

  .contact-right-side {
    width: 100% !important;
    justify-content: center !important;
  }

  .contact-right-side .glass {
    padding: 30px 20px !important;
    border-radius: 24px !important;
    max-width: 100% !important;
  }

  .contact-block {
    justify-content: center !important;
    text-align: left !important;
  }

  .contact-value {
    font-size: 1rem !important;
  }

  /* ── Form Styling ── */
  form {
    gap: 15px !important;
  }

  form div[style*="display:grid"] {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }

  .form-input, .form-select {
    padding: 12px 18px !important;
    font-size: 14px !important;
    width: 100% !important;
  }

  /* ── Footer ── */
  .footer {
    padding: 60px 20px !important;
  }

  .footer-main {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 48px !important;
  }

  .footer-brand {
    align-items: center !important;
    text-align: center !important;
  }

  .footer-brand p {
    margin: 16px auto 0 !important;
  }

  .footer-links-group {
    flex-direction: column !important;
    align-items: center !important;
    gap: 40px !important;
    width: 100% !important;
  }

  .footer-col {
    text-align: center !important;
    width: 100% !important;
  }

  .footer-col ul {
    align-items: center !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    gap: 20px !important;
    text-align: center !important;
  }

  /* ── Image & Overflow Fixes ── */
  img {
    max-width: 100% !important;
    height: auto !important;
  }

  body, html {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative !important;
  }

  * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Remove excessive margins */
  .section-hook {
    font-size: 18px !important;
    margin-bottom: 20px !important;
  }

  .divider {
    width: 85% !important;
    margin: 40px auto !important;
  }

  /* ── Social Float ── */
  .social-float {
    bottom: 20px !important;
    right: 16px !important;
    padding: 12px 20px !important;
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    padding: 10px 18px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
    gap: 0 !important;
  }

  .social-float-btn {
    width: 44px !important;
    height: 44px !important;
  }

  .social-float-btn svg {
    width: 24px !important;
    height: 24px !important;
  }

  .social-float-btn.whatsapp {
    margin-right: 14px !important;
    padding-right: 14px !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
  }


  .social-tooltip {
    display: none !important;
  }
}