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

/* ============================================
   V2 ULTRA-PREMIUM DESIGN SYSTEM
   Inspired by Linear, Stripe, Apple, Framer
   ============================================ */

:root {
  /* Color Palette */
  --bg-base: #000000;
  --bg-surface: #0a0a0a;
  --bg-surface-elevated: #111111;
  --bg-surface-hover: #1a1a1a;

  --accent-primary: #FF5E00;
  --accent-primary-glow: rgba(255, 94, 0, 0.2);
  --accent-primary-subtle: rgba(255, 94, 0, 0.08);
  --accent-secondary: #7C3AED;
  --accent-secondary-glow: rgba(124, 58, 237, 0.2);

  --text-primary: #FAFAFA;
  --text-secondary: #888888;
  --text-tertiary: #555555;

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-highlight: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(255, 94, 0, 0.3);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Motion — Premium Spring Curves */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.2s var(--ease-out-expo);
  --transition-smooth: 0.4s var(--ease-out-expo);
  --transition-slow: 0.8s var(--ease-out-expo);
  --transition-spring: 0.5s var(--ease-spring);
}

/* ============================================
   PAGE LOAD ANIMATION
   ============================================ */
@keyframes pageReveal {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  animation: pageReveal 0.8s var(--ease-out-expo) forwards;
}

/* Linear-style Grid Background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}

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

h1 { font-size: clamp(3.2rem, 7vw, 6rem); font-weight: 900; }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); font-weight: 800; }
h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h4 { font-size: clamp(1.15rem, 2vw, 1.5rem); }

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

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

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 8rem 0;
  position: relative;
  z-index: 1;
}

.bg-darker { background-color: var(--bg-surface); }
.bg-base { background-color: var(--bg-base); }
.relative { position: relative; }
.z-10 { z-index: 10; }

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-orange { color: var(--accent-primary); }
.text-white { color: var(--text-primary); }
.text-muted { color: var(--text-secondary); }
.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; }
.fw-900 { font-weight: 900; }
.fw-bold { font-weight: 700; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

/* Inline Outline Text (for hero AUDIENCE) */
.outline-text-inline {
  color: transparent;
  -webkit-text-stroke: 2px var(--accent-primary);
}

/* Gradient Text */
.text-gradient {
  background: linear-gradient(135deg, #fff 0%, #888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-orange {
  background: linear-gradient(135deg, #FF8533 0%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Watermark Outline Text */
.outline-text {
  font-family: var(--font-heading);
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06);
  font-size: clamp(4rem, 10vw, 10rem);
  position: absolute;
  top: -5%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
  white-space: nowrap;
  pointer-events: none;
  font-weight: 900;
  opacity: 0.5;
}
.outline-text.left {
  left: 0;
  transform: none;
}

/* ============================================
   GLASSMORPHISM CARDS — with animated glow border
   ============================================ */
.glass-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 3rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease-spring), border-color 0.4s ease, box-shadow 0.4s ease;
}
/* Spotlight overlay — positioned by JS */
.glass-card .card-spotlight {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  border-radius: inherit;
}
.glass-card:hover .card-spotlight {
  opacity: 1;
}
.glass-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
  box-shadow: 0 20px 60px -15px rgba(0,0,0,0.6), 0 0 30px var(--accent-primary-glow);
}

/* ============================================
   BUTTONS — Apple-tier precision
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.btn-primary {
  background: var(--text-primary);
  color: var(--bg-base);
  border-radius: var(--radius-pill);
}
.btn-primary:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 30px rgba(255,255,255,0.15);
}
.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-pill);
}
.btn-outline:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}
.btn-orange {
  background: var(--accent-primary);
  color: #000;
  border-radius: 0;
  font-weight: 800;
  letter-spacing: 2px;
}
.btn-orange:hover {
  background: #fff;
  color: #000;
  transform: scale(1.03);
  box-shadow: 0 0 25px var(--accent-primary-glow);
}

/* ============================================
   NAVIGATION — Sticky Frosted Glass
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.25rem 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.4s ease, padding 0.4s ease, backdrop-filter 0.4s ease;
}
.navbar.scrolled {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 0;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-fast);
}
.logo-img:hover {
  transform: scale(1.05);
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  position: relative;
  padding: 0.4rem 0;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}
.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-primary);
  transition: width 0.3s var(--ease-out-expo);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  color: var(--text-primary);
  z-index: 1001;
}

/* ============================================
   GLOW ORBS — Ambient Background Lighting
   ============================================ */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
  transition: transform 0.3s ease;
}
.glow-orb.primary {
  background: var(--accent-primary-glow);
  width: 550px;
  height: 550px;
  top: -80px;
  right: -80px;
}
.glow-orb.secondary {
  background: var(--accent-secondary-glow);
  width: 450px;
  height: 450px;
  bottom: 10%;
  left: -80px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
  background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.92)), url('assets/hero_bg_1778743467240.png') center/cover;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}
.tag-line {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  background: var(--accent-primary-subtle);
  border: 1px solid rgba(255, 94, 0, 0.15);
  color: var(--accent-primary);
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* ============================================
   SPLIT LAYOUT — Asymmetric Modern
   ============================================ */
.modern-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-bottom: 7rem;
}
.modern-split:nth-child(even) .split-content {
  order: -1;
}
.split-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}
.split-img-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
}
.split-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s var(--ease-out-expo);
}
.split-img-wrapper:hover img {
  transform: scale(1.06);
}
.split-content {
  position: relative;
  z-index: 2;
}

/* ============================================
   SERVICES PAGE CUSTOM
   ============================================ */
.service-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: var(--transition-smooth);
}
.service-box:hover {
  border-color: var(--border-highlight);
  transform: translateY(-4px);
}
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.capability-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-smooth);
}
.capability-card:hover {
  border-color: var(--accent-primary-subtle);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}
.capability-card .card-img img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  opacity: 0.7;
  transition: var(--transition-smooth);
}
.capability-card:hover .card-img img {
  opacity: 1;
}
.capability-card .card-content {
  padding: 2rem 1.5rem;
}
.compact-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.compact-list li:last-child {
  border-bottom: none;
}
.compact-list li i {
  color: var(--accent-primary);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-right: 0.5rem;
}

/* ============================================
   BENTO GRID — Interactive Mosaic
   ============================================ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
  auto-rows: minmax(280px, auto);
}
.bento-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  transition: transform 0.5s var(--ease-spring), border-color 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}
.bento-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 3;
}
.bento-item:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: var(--border-glow);
  box-shadow: 0 25px 50px rgba(0,0,0,0.5), 0 0 40px var(--accent-primary-glow);
}
.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: opacity 0.6s ease, transform 1.2s var(--ease-out-expo);
}
.bento-item:hover img {
  opacity: 0.75;
  transform: scale(1.08);
}
.bento-content {
  position: absolute;
  inset: 0;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.3) 45%, transparent 100%);
  z-index: 2;
}

/* ============================================
   MARQUEE — Infinite Client Logos
   ============================================ */
.marquee-wrapper {
  overflow: hidden;
  padding: 4rem 0;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee {
  display: flex;
  width: max-content;
  animation: marquee 35s linear infinite;
  align-items: center;
  gap: 5rem;
}
.marquee img {
  height: 45px;
  opacity: 0.4;
  filter: grayscale(100%) brightness(1.5);
  transition: all 0.4s var(--ease-out-expo);
}
.marquee img:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.1);
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   PREMIUM LISTS
   ============================================ */
.premium-list {
  list-style: none;
  margin-top: 1.5rem;
}
.premium-list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-secondary);
  transition: all 0.3s var(--ease-spring);
}
.premium-list li:last-child { border-bottom: none; }
.premium-list li i {
  color: var(--accent-primary);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.premium-list li:hover {
  color: var(--text-primary);
  transform: translateX(8px);
}

/* ============================================
   CONTACT FORM
   ============================================ */
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}
.form-control {
  width: 100%;
  padding: 1.1rem 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}
.form-control:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-primary-glow), 0 0 20px var(--accent-primary-glow);
}
textarea.form-control {
  resize: vertical;
  min-height: 130px;
}

/* ============================================
   FOOTER — Mega Premium
   ============================================ */
footer {
  background-color: #000;
  padding: 7rem 0 2rem;
  border-top: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 5rem;
}
.footer-col h4 {
  margin-bottom: 1.5rem;
  font-size: 1.15rem;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 0.85rem;
}
.footer-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: all 0.3s var(--ease-spring);
}
.footer-links a:hover {
  color: var(--accent-primary);
  padding-left: 6px;
}
.social-icons {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}
.social-icons a {
  width: 44px;
  height: 44px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s var(--ease-spring);
}
.social-icons a:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #000;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 20px var(--accent-primary-glow);
}
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-tertiary);
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
  will-change: opacity, transform;
}
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
  will-change: opacity, transform;
}
.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
  will-change: opacity, transform;
}
.reveal.active, .reveal-left.active, .reveal-right.active {
  opacity: 1;
  transform: translate(0, 0);
}

/* Staggered children inside bento grid */
.bento-grid .bento-item:nth-child(1) { transition-delay: 0s; }
.bento-grid .bento-item:nth-child(2) { transition-delay: 0.08s; }
.bento-grid .bento-item:nth-child(3) { transition-delay: 0.16s; }
.bento-grid .bento-item:nth-child(4) { transition-delay: 0.24s; }
.bento-grid .bento-item:nth-child(5) { transition-delay: 0.32s; }
.bento-grid .bento-item:nth-child(6) { transition-delay: 0.40s; }
.bento-grid .bento-item:nth-child(7) { transition-delay: 0.48s; }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .bento-item { min-height: 240px; }
  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 100%; height: 100vh;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.5s var(--ease-out-expo);
    z-index: 1000;
    gap: 2rem;
  }
  .nav-links a { font-size: 1.2rem; }
  .nav-links.active { right: 0; }

  .modern-split {
    grid-template-columns: 1fr !important;
    gap: 3rem;
  }
  .modern-split:nth-child(even) .split-content { order: 0; }
  .split-img-wrapper {
    aspect-ratio: 16/9;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  section { padding: 5rem 0; }
  .container { padding: 0 1.25rem; }
  h1 { font-size: clamp(2.5rem, 10vw, 3.5rem); }
  .outline-text { font-size: 3rem; top: -15px; }
  .glass-card { padding: 2rem; }
  .service-box { padding: 2rem; }
  .bento-grid { grid-template-columns: 1fr; gap: 1rem; }
  .capabilities-grid { grid-template-columns: 1fr; }
  .bento-item { min-height: 220px; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .hero { min-height: 90vh; }
  .outline-text-inline { -webkit-text-stroke-width: 1.5px; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .glass-card { padding: 1.5rem; }
  .btn { padding: 0.8rem 1.8rem; font-size: 0.8rem; }
}