:root {
  --bg: #030303;
  --bg-rgb: 3, 3, 3;
  --text: #f9f9f9;
  --muted: #a5a5a5;
  --accent: #ff5500;
  --accent-rgb: 255, 85, 0;
  --accent-hover: #ff7733;
  --border: #141414;
  --card-bg: #0d0d0d;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-height: 1.6;
}

@keyframes shiftBg {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: rgba(var(--accent-rgb), 0.25);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--accent-rgb), 0.5);
}

/* Global Cursor Glow */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.04) 0%, rgba(var(--accent-rgb), 0) 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  contain: layout paint;
  transform: translateZ(0);
}

/* 1. Hero / Text Mask Reveal */
.mask-section {
  position: relative;
  min-height: 400vh;
}
.mask-sticky {
  position: sticky; top: 0;
  min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.mask-video {
  position: absolute; inset: 0;
  opacity: 0.85;
  background: linear-gradient(135deg, #030303 0%, #150303 30%, #030303 60%, #080000 100%);
  background-size: 400% 400%;
  animation: shiftBg 20s ease infinite;
  transform-origin: center;
  will-change: transform;
  backface-visibility: hidden;
}
.hero-layout-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90%;
  max-width: 1000px;
  position: relative;
  z-index: 2;
  text-align: center;
  will-change: transform, opacity;
}
.mask-text-wrapper {
  position: relative;
  width: 100%;
  will-change: transform, opacity;
  backface-visibility: hidden;
}
.mask-text-placeholder {
  font-size: clamp(90px, 16vw, 240px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.85;
  text-transform: uppercase;
  color: transparent;
  pointer-events: none;
  visibility: hidden;
  user-select: none;
}
.mask-overlay, .mask-reveal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  pointer-events: none;
}
.mask-overlay {
  z-index: 2;
}
.mask-reveal {
  z-index: 3;
  clip-path: inset(100% 0 0 0);
  will-change: clip-path;
}
.mask-text,
.mask-reveal .mask-text-filled {
  font-size: clamp(90px, 16vw, 240px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.85;
  text-align: center;
  text-transform: uppercase;
  color: transparent;
  width: 100%;
}
.mask-text {
  background: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
  text-shadow: 0 0 50px rgba(0, 0, 0, 0.6);
}
.mask-reveal .mask-text-filled {
  -webkit-background-clip: text;
  background-clip: text;
  background-image: linear-gradient(135deg, #ff3300 0%, #ff5500 45%, #ff8833 100%);
  color: transparent;
  background-color: transparent;
}
.mask-subtext {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 4;
  width: 90%;
  max-width: 1000px;
  will-change: opacity, transform;
}
.mask-subtext p {
  line-height: 1.2;
}
.mask-subtext .sub-block {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.mask-subtext .sub-block-inner {
  display: inline-block;
  opacity: 0;
  will-change: transform;
}
.mask-subtext .highlight {
  color: var(--text);
  font-size: clamp(32px, 5.5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0;
  display: block;
  line-height: 1.1;
}
.mask-subtext .highlight.last-line {
  margin-bottom: 0;
}


/* Floating Tech Graphic for Tagline Section Header */
.floating-tech-wrapper {
  display: inline-block;
  pointer-events: none;
  z-index: 1;
  width: clamp(160px, 18vw, 240px); /* Expanded for bold central presence */
  height: clamp(114px, 13vw, 171px); /* Matches 1.4 aspect ratio */
  margin-bottom: clamp(24px, 5vh, 48px);
  opacity: 0; /* Managed by GSAP timeline */
}
.floating-tech-card {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.6)) drop-shadow(0 4px 16px rgba(255, 85, 0, 0.08));
}

/* 2. Services / Spotlight Border Cards */
.grid-section {
  padding: 140px 24px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}
.section-label {
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 80px;
  font-weight: 600;
}
.spot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 24px;
}
.spot-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 56px 40px;
  position: relative;
  overflow: hidden;
  cursor: default;
  transform: translateZ(0);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease,
    box-shadow 0.3s ease;
  contain: paint;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  z-index: 1;
}

/* Inner Background Spotlight Layer */
.spot-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: radial-gradient(
    circle 300px at var(--mx, 50%) var(--my, 50%),
    rgba(255, 85, 0, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: -1;
}

.spot-card:hover {
  transform: translateY(-4px) translateZ(0);
  border-color: rgba(255, 85, 0, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 16px rgba(255, 85, 0, 0.1);
}

.spot-card:hover::after {
  opacity: 1;
}

.spot-card .icon-container {
  width: 56px; height: 56px;
  border-radius: 14px;
  background-color: rgba(255, 85, 0, 0.04);
  border: 1px solid rgba(255, 85, 0, 0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 32px;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.3s ease;
  will-change: transform;
}
.spot-card:hover .icon-container {
  transform: scale(1.06);
  background-color: rgba(255, 85, 0, 0.12);
  border-color: rgba(255, 85, 0, 0.4);
  box-shadow: 0 0 16px rgba(255, 85, 0, 0.15);
}
.spot-card .icon-container svg {
  width: 26px; height: 26px;
  stroke-width: 1.5px;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.25s ease;
}
.spot-card:hover .icon-container svg {
  transform: scale(1.08);
  filter: drop-shadow(0 0 8px rgba(255, 85, 0, 0.6));
}

.spot-card h3 {
  font-size: 24px; font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.spot-card p {
  font-size: 16px; color: var(--muted); line-height: 1.7;
}

/* 3. Custom Solutions / Curtain Reveal */
.curtain-section {
  position: relative;
  height: 250vh;
  z-index: 10;
}
.curtain-sticky {
  position: sticky; top: 0;
  height: 100dvh;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.curtain-left, .curtain-right {
  position: absolute; top: 0; bottom: 0; width: 50%;
  background: var(--bg); z-index: 2;
  display: flex; align-items: center;
  will-change: transform;
  backface-visibility: hidden;
}
.curtain-left { 
  left: 0; justify-content: flex-end; padding-right: 40px; 
  width: calc(50% + 1px);
  z-index: 3;
}
.curtain-left::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent 0%, var(--accent) 30%, var(--accent-hover) 70%, transparent 100%);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.4);
  z-index: 5;
  pointer-events: none;
}
.curtain-right { 
  right: 0; justify-content: flex-start; padding-left: 40px; 
}
.curtain-right::after {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent 0%, var(--accent) 30%, var(--accent-hover) 70%, transparent 100%);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.4);
  z-index: 5;
  pointer-events: none;
}
.curtain-left .curtain-text,
.curtain-right .curtain-text {
  font-size: clamp(40px, 10vw, 120px);
  font-weight: 800;
  letter-spacing: -0.04em; line-height: 0.95;
  color: var(--text);
}
.curtain-content {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  background: var(--bg);
  padding: 40px;
}
.curtain-content::before {
  content: '';
  position: absolute; inset: 0;
  background: 
    radial-gradient(circle at 30% 30%, rgba(255, 85, 0, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(255, 30, 0, 0.05) 0%, transparent 50%);
  pointer-events: none;
  filter: blur(40px);
}
.curtain-content h2 {
  font-size: clamp(32px, 5vw, 64px); font-weight: 800;
  letter-spacing: -0.02em; margin-bottom: 24px;
  background: linear-gradient(90deg, #fff, #aaa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  z-index: 2;
}
.curtain-content p {
  font-size: 18px; color: var(--muted);
  max-width: 60ch; line-height: 1.7; margin-bottom: 48px;
  position: relative;
  z-index: 2;
}
.magnetic-btn {
  display: inline-block;
  padding: 18px 48px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #fff;
  border-radius: 100px;
  text-decoration: none;
  font-size: 16px; font-weight: 700;
  letter-spacing: 0.02em;
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(255, 85, 0, 0.1);
  will-change: transform;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.magnetic-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transform: translateX(-150%) skewX(-20deg);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}
.magnetic-btn:hover::before {
  transform: translateX(150%) skewX(-20deg);
}
.magnetic-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(255, 85, 0, 0.25);
  background: linear-gradient(135deg, #ff6611 0%, #ff8844 100%);
  border-color: rgba(255, 255, 255, 0.2);
}
.magnetic-btn:active {
  transform: scale(0.97) translateY(0);
  transition-duration: 0.08s;
}

/* 4. Contact & Footer / Magnetic Icons */
.contact-section {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  background: var(--bg);
  position: relative;
  z-index: 11;
}
.contact-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 80px 24px 40px;
}
.contact-container h2 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800; margin-bottom: 64px;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #fff, #aaa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.contact-icons {
  display: flex; gap: 32px; justify-content: center;
}
.magnetic-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.3s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.01);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}
.magnetic-icon i, .magnetic-icon svg {
  width: 32px; height: 32px;
  stroke-width: 1.5px;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), color 0.25s;
}
.magnetic-icon:hover i, .magnetic-icon:hover svg {
  transform: scale(1.15);
}
.magnetic-icon:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 85, 0, 0.3);
  background-color: rgba(255, 85, 0, 0.03);
  color: var(--accent);
  box-shadow: 0 12px 32px rgba(255, 85, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}
.magnetic-icon[aria-label="Contact us on WhatsApp"]:hover {
  border-color: rgba(37, 211, 102, 0.3);
  background-color: rgba(37, 211, 102, 0.03);
  color: #25D366;
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}
.magnetic-icon[aria-label="Email Us"]:hover {
  border-color: rgba(0, 123, 255, 0.3);
  background-color: rgba(0, 123, 255, 0.03);
  color: #0078D4;
  box-shadow: 0 12px 32px rgba(0, 123, 255, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}
footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px;
  text-align: center;
  font-size: 14px; color: var(--muted);
  letter-spacing: 0.05em;
  background: var(--bg);
  position: relative;
  z-index: 11;
}

body.motion-static .mask-section {
  min-height: 100dvh;
}

body.motion-static .mask-sticky,
body.motion-static .curtain-sticky {
  position: relative;
  height: auto;
  min-height: 100dvh;
}

body.motion-static .hero-layout-container {
  gap: clamp(24px, 5vh, 48px);
  padding: 80px 0;
}

body.motion-static .mask-reveal {
  clip-path: inset(0% 0 0 0);
}

body.motion-static .mask-subtext {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
}

body.motion-static .mask-subtext .sub-block-inner {
  opacity: 1;
  transform: none;
}

body.motion-static .curtain-section {
  height: auto;
}

body.motion-static .curtain-left,
body.motion-static .curtain-right {
  display: none;
}

body.motion-static .curtain-content {
  position: relative;
}

@media (max-width: 768px) {
  .cursor-glow { display: none; }
  .curtain-left { padding-right: 15px; }
  .curtain-right { padding-left: 15px; }
  .curtain-left .curtain-text,
  .curtain-right .curtain-text {
    padding: 0 5px;
    font-size: clamp(36px, 9vw, 64px);
  }
  .mask-section { min-height: 320vh; }
  .curtain-section { height: 200vh; }
  .spot-grid { grid-template-columns: 1fr; }

  /* Mobile Responsive Upgrades */
  .mask-text,
  .mask-reveal .mask-text-filled,
  .mask-text-placeholder {
    font-size: clamp(72px, 16vw, 240px);
  }

  .grid-section {
    padding: 80px 20px;
  }
  .section-label {
    margin-bottom: 40px;
  }

  .spot-card {
    padding: 32px 20px;
  }
  .spot-card .icon-container {
    margin-bottom: 20px;
  }
  .spot-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
  }
  .spot-card p {
    font-size: 14px;
    line-height: 1.6;
  }

  .curtain-content {
    padding: 24px;
  }
  .curtain-content h2 {
    font-size: clamp(24px, 6vw, 40px);
    margin-bottom: 16px;
  }
  .curtain-content p {
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.6;
  }
  .magnetic-btn {
    padding: 14px 32px;
    font-size: 15px;
  }

  .contact-section {
    padding: 0;
  }
  .contact-container {
    padding: 60px 20px 30px;
  }
  .contact-container h2 {
    font-size: clamp(32px, 7vw, 48px);
    margin-bottom: 36px;
  }
  .contact-icons {
    gap: 20px;
  }
  .magnetic-icon {
    width: 60px;
    height: 60px;
  }
  .magnetic-icon i,
  .magnetic-icon svg {
    width: 24px;
    height: 24px;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .cursor-glow { display: none; }
  .mask-video { animation: none; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
