/* ============================================================
   BARREL CODERS NEXTGEN — GLOBAL CSS
   Design Tokens, Typography, Reset, Utilities
============================================================ */

:root {
  --c-bg-deep: #050816;
  --c-bg-mid: #081122;
  --c-bg-card: #0D1528;
  --c-bg-card2: #0A1020;
  --c-blue: #255bbd;
  --c-blue-light: #1E6DFF;
  --c-navy-1: #0A2540;
  --c-navy-2: #14213D;
  --c-navy-3: #1B1F3B;
  --c-cyan: #4CC9F0;
  --c-purple: #7B61FF;
  --c-highlight: #DCEBFF;
  --c-text-primary: #FFFFFF;
  --c-text-secondary: #D6E2FF;
  --c-text-muted: #AEB8D0;
  --c-border: rgba(255,255,255,0.06);
  --c-border-glow: rgba(0, 87, 255, 0.2);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-glow: 0 0 40px rgba(0, 87, 255, 0.15);
  --shadow-glow-lg: 0 0 80px rgba(0, 87, 255, 0.2);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-card-hover: 0 12px 48px rgba(0, 87, 255, 0.2);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--c-bg-deep);
  color: var(--c-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ──── NEURAL CANVAS ──── */
#neural-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ──── CONTAINER ──── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section-pad {
  padding: 120px 0;
  position: relative;
  z-index: 1;
}

/* ──── TYPOGRAPHY UTILITIES ──── */
.text-gradient {
  background: linear-gradient(135deg, var(--c-cyan) 0%, var(--c-blue) 50%, var(--c-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.headline-gradient {
  background: linear-gradient(135deg, #4CC9F0 0%, #255bbd 40%, #7B61FF 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ──── SECTION HEADER ──── */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 72px;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-cyan);
  padding: 6px 16px;
  border: 1px solid rgba(76, 201, 240, 0.25);
  border-radius: 100px;
  margin-bottom: 20px;
  background: rgba(76, 201, 240, 0.05);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--c-text-primary);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--c-text-muted);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* ──── BUTTONS ──── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--c-blue);
  color: white;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition);
}

.btn-primary:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 8px 24px rgba(0, 87, 255, 0.4); 
  background: var(--c-blue-light);
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--c-blue) 0%, #1E6DFF 100%);
  color: white;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 87, 255, 0.35);
}

.btn-hero-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: var(--transition);
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 87, 255, 0.5);
}
.btn-hero-primary:hover::after { opacity: 1; }

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: rgba(255,255,255,0.05);
  color: var(--c-text-secondary);
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(76, 201, 240, 0.3);
  color: var(--c-cyan);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--c-text-secondary);
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  transition: var(--transition);
}

.btn-outline:hover {
  border-color: var(--c-blue);
  color: white;
  background: rgba(0, 87, 255, 0.08);
}

/* ──── CUSTOM SCROLLBAR ──── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--c-bg-deep); }
::-webkit-scrollbar-thumb { background: rgba(0, 87, 255, 0.4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 87, 255, 0.6); }

/* ──── SELECTION ──── */
::selection { background: rgba(0, 87, 255, 0.25); color: white; }

/* ──── ANIMATIONS / REVEAL ──── */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up.visible, .reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

  z-index: 0;
  pointer-events: none;
}

/* ──── CONTAINER ──── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
/* ========================================================================= */
/* GLOBAL TYPOGRAPHY STANDARDIZATION (Excluding Navbar & Footer)             */
/* ========================================================================= */

/* Force Headings to Space Grotesk */
section:not(#x1):not(#x2):not(#x3) h1,
section:not(#x1):not(#x2):not(#x3) h2,
section:not(#x1):not(#x2):not(#x3) h3,
section:not(#x1):not(#x2):not(#x3) h4,
section:not(#x1):not(#x2):not(#x3) h5,
section:not(#x1):not(#x2):not(#x3) h6,
section:not(#x1):not(#x2):not(#x3) .heading {
  font-family: var(--font-heading), 'Space Grotesk', sans-serif !important;
}

/* Standardize h3 size specifically */
section:not(#x1):not(#x2):not(#x3) h3 {
  font-size: 2rem !important;
}

/* Apply to ALL text elements within sections */
section:not(#x1):not(#x2):not(#x3) p,
section:not(#x1):not(#x2):not(#x3) span,
section:not(#x1):not(#x2):not(#x3) div,
section:not(#x1):not(#x2):not(#x3) a,
section:not(#x1):not(#x2):not(#x3) li,
section:not(#x1):not(#x2):not(#x3) td,
section:not(#x1):not(#x2):not(#x3) th {
  font-family: var(--font-body), 'Inter', sans-serif !important;
  font-size: 1.5rem !important;
  line-height: 1.75 !important;
}

/* Margin only for p */
section:not(#x1):not(#x2):not(#x3) p {
  margin-bottom: 15px !important;
}




/* ============================================================
   GLOBAL MOBILE RESPONSIVENESS OVERRIDES
   Ensures consistent mobile layout without affecting desktop
   ============================================================ */
@media (max-width: 768px) {
  /* 1. HERO SECTIONS - Prevent floating images from overlapping text */
  .hero-img-box, 
  .hero-img-1, 
  .hero-img-2, 
  .pr-float-orb, 
  .deco-star, 
  .floating-stat, 
  .floating-card, 
  .bento-hero-grid,
  .hero-mockup-wrapper {
    display: none !important; /* Hide decorative elements on mobile */
  }

  .creative-hero, 
  .hero-section {
    padding: 60px 20px !important;
    border-radius: 16px !important;
    min-height: auto !important;
  }

  .massive-title-container {
    padding: 0 10px !important;
  }

  /* Prevent massive text from breaking viewport bounds */
  .massive-line {
    font-size: clamp(30px, 10vw, 50px) !important;
    line-height: 1.1 !important;
  }

  /* 2. GRID & BENTO BOX LAYOUTS - Force Single Column */
  .bento-grid, 
  .grid-2-col, 
  .grid-3-col, 
  .grid-4-col, 
  .service-grid, 
  .process-grid,
  .stats-grid,
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* 3. FLEX LAYOUTS - Force Vertical Stacking */
  .flex-container, 
  .flex-row, 
  .hero-content-wrapper, 
  .service-cards-wrapper,
  .footer-grid,
  .global-offices-section .offices-grid {
    flex-direction: column !important;
    gap: 20px !important;
  }

  .footer-grid {
    display: flex !important;
  }

  /* 4. REDUCE PADDING ON CARDS FOR MOBILE */
  .bento-box, 
  .glass-card, 
  .service-card, 
  .pricing-card,
  .global-offices-section,
  .glass-card-inner {
    padding: 20px 16px !important;
  }
}
