/* InfiniDataLabs Global Design System
   A world-class, elegant design for enterprise excellence */

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
  /* Brand Colors from Guidelines */
  --brand-primary-blue: #0066FF;
  --brand-deep-navy: #0A1628;
  --brand-electric-cyan: #00D4FF;
  --brand-quantum-purple: #6B46C1;
  --brand-data-green: #00FF88;
  --brand-neutral-silver: #E8E9ED;
  --brand-tech-gray: #2C3E50;

  /* Primary Colors - Deep Tech Blue */
  --color-primary: #0A1628;
  --color-primary-light: #1a2a4a;
  --color-primary-dark: #050d18;

  /* Accent Colors - Electric Cyan */
  --color-accent: #00D4FF;
  --color-accent-light: #66e5ff;
  --color-accent-dark: #0066FF;
  --color-accent-glow: rgba(0, 212, 255, 0.3);

  /* Secondary Accent - Golden */
  --color-gold: #ffd700;
  --color-gold-light: #ffe866;
  --color-gold-dark: #ccac00;

  /* Neutral Colors */
  --color-white: #ffffff;
  --color-gray-50: #f8fafc;
  --color-gray-100: #f1f5f9;
  --color-gray-200: #e2e8f0;
  --color-gray-300: #cbd5e1;
  --color-gray-400: #94a3b8;
  --color-gray-500: #64748b;
  --color-gray-600: #475569;
  --color-gray-700: #334155;
  --color-gray-800: #1e293b;
  --color-gray-900: #0f172a;

  /* Semantic Colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;

  /* Typography */
  --font-primary: 'Sora', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Orbitron', 'Space Grotesk', var(--font-primary);
  --font-mono: 'Space Mono', 'JetBrains Mono', 'Fira Code', monospace;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;
  --text-8xl: 6rem;

  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-black: 900;

  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* Letter Spacing */
  --tracking-tighter: -0.05em;
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;

  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --space-40: 10rem;
  --space-48: 12rem;
  --space-64: 16rem;

  /* Border Radius */
  --radius-none: 0;
  --radius-sm: 0.125rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 40px var(--color-accent-glow);
  --shadow-glow-lg: 0 0 80px var(--color-accent-glow);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
  --transition-slower: 700ms ease;

  /* Z-Index Scale */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-gray-100);
  background-color: var(--color-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-white);
}

h1 {
  font-size: clamp(var(--text-4xl), 8vw, var(--text-8xl));
  font-weight: var(--font-black);
  letter-spacing: var(--tracking-tighter);
}

h2 {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-6xl));
}

h3 {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
}

h4 {
  font-size: clamp(var(--text-xl), 3vw, var(--text-3xl));
}

h5 {
  font-size: var(--text-xl);
}

h6 {
  font-size: var(--text-lg);
}

p {
  margin-bottom: var(--space-4);
  color: var(--color-gray-300);
}

.lead {
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
  color: var(--color-gray-200);
}

.text-gradient {
  background: linear-gradient(135deg, var(--brand-electric-cyan), var(--brand-primary-blue), var(--brand-quantum-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-gold {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-wide {
  max-width: 1600px;
}

.container-narrow {
  max-width: 900px;
}

.section {
  padding: var(--space-24) 0;
}

.section-lg {
  padding: var(--space-32) 0;
}

.section-xl {
  padding: var(--space-40) 0;
}

/* Flexbox Utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

.gap-8 {
  gap: var(--space-8);
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-8);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

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

@media (max-width: 1024px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   COMPONENTS
   ============================================ */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--transition-slow);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: var(--color-primary);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn-secondary:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}

.btn-gold {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: var(--color-primary);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.3);
}

.btn-lg {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-base);
}

.btn-xl {
  padding: var(--space-6) var(--space-12);
  font-size: var(--text-lg);
}

/* Cards */
.card {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all var(--transition-base);
}

.card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

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

.card-featured {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: var(--color-primary);
}

.card-featured h3,
.card-featured h4,
.card-featured p {
  color: var(--color-primary);
}

/* Stats */
.stat {
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--font-black);
  color: var(--color-accent);
  line-height: var(--leading-none);
}

.stat-label {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-gray-400);
  margin-top: var(--space-2);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  border-radius: var(--radius-full);
  background: rgba(0, 212, 255, 0.1);
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.badge-gold {
  background: rgba(255, 215, 0, 0.1);
  color: var(--color-gold);
  border-color: var(--color-gold);
}

/* Dividers */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  margin: var(--space-12) 0;
}

.divider-vertical {
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--color-accent), transparent);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  padding: var(--space-4) 0;
  background: rgba(10, 22, 40, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-base);
}

.nav-scrolled {
  padding: var(--space-3) 0;
  background: rgba(10, 22, 40, 0.98);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.nav-logo img,
.nav-logo svg {
  height: 72px;  /* Increased by 60% from 45px */
  width: auto;
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
  transition: all 0.3s ease;
}

.nav-logo:hover img,
.nav-logo:hover svg {
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5));
  transform: scale(1.05);
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-gray-300);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: var(--color-accent);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  padding: var(--space-3) var(--space-6);
}

/* Mobile Navigation */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  margin: 5px 0;
  transition: all var(--transition-fast);
}

@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  /* Responsive logo sizing for tablets */
  .nav-logo img,
  .nav-logo svg {
    height: 60px;  /* Slightly smaller on tablets */
  }
}

@media (max-width: 768px) {
  /* Reduce nav padding on mobile to minimize header height */
  .nav {
    padding: var(--space-2) 0;  /* 0.5rem (8px) instead of 1rem (16px) */
  }

  .nav-scrolled {
    padding: var(--space-1) 0;  /* 0.25rem (4px) when scrolled */
  }

  /* Responsive logo sizing for mobile - use !important to override inline styles */
  .nav-logo img,
  .nav-logo svg {
    height: 70px !important;  /* Larger logo for mobile, override inline height: auto */
    width: auto !important;
    opacity: 1 !important;
    filter: brightness(1.15) drop-shadow(0 0 15px rgba(0, 212, 255, 0.4)) !important;
  }

  .nav-logo-text {
    font-size: var(--text-lg);  /* Smaller text on mobile */
  }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--space-24);
}

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

.hero-background img,
.hero-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hero-background video {
  opacity: 0.5;
}

.hero-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 22, 40, 0.92) 0%,
    rgba(10, 22, 40, 0.75) 50%,
    rgba(10, 22, 40, 0.92) 100%
  );
}

.hero-content {
  max-width: 900px;
}

.hero-badge {
  margin-bottom: var(--space-6);
}

.hero-title {
  margin-bottom: var(--space-6);
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--color-gray-300);
  margin-bottom: var(--space-8);
  max-width: 600px;
}

.hero-ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-16);
  padding-top: var(--space-12);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Animated Background Elements */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 50%;
  opacity: 0.3;
  animation: float 20s infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-100vh) scale(1);
    opacity: 0;
  }
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-16);
}

.section-header .badge {
  margin-bottom: var(--space-4);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--color-gray-400);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-primary-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand {
  max-width: 300px;
}

.footer-brand img,
.footer-brand svg {
  height: 77px;  /* Increased by 60% from 48px */
  width: auto;
  margin-bottom: var(--space-4);
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.2));
  transition: all 0.3s ease;
}

.footer-brand:hover img,
.footer-brand:hover svg {
  filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.4));
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
}

.footer-column h4 {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-gray-400);
  margin-bottom: var(--space-4);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-2);
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-copyright {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
}

.footer-certifications {
  display: flex;
  gap: var(--space-4);
}

.footer-cert {
  font-size: var(--text-xs);
  color: var(--color-gray-600);
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--color-gray-700);
  border-radius: var(--radius-sm);
}

@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  /* Responsive footer logo sizing for mobile */
  .footer-brand img,
  .footer-brand svg {
    height: 60px;  /* More appropriate size for mobile */
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */

/* Hexagon Background Animation for Case Studies */
@keyframes floatHexagon {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 0.03;
  }
  25% {
    transform: translate(-50%, -48%) scale(1.1) rotate(45deg);
    opacity: 0.05;
  }
  50% {
    transform: translate(-50%, -52%) scale(1) rotate(90deg);
    opacity: 0.03;
  }
  75% {
    transform: translate(-50%, -48%) scale(1.05) rotate(135deg);
    opacity: 0.04;
  }
}

/* Infinity Background Animation for Mission Section */
@keyframes floatInfinity {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.04;
  }
  33% {
    transform: translate(-48%, -50%) scale(1.05);
    opacity: 0.06;
  }
  66% {
    transform: translate(-52%, -50%) scale(0.95);
    opacity: 0.04;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: var(--shadow-glow);
  }
  50% {
    box-shadow: var(--shadow-glow-lg);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.animate-slide-left {
  animation: slideInLeft 0.6s ease forwards;
}

.animate-slide-right {
  animation: slideInRight 0.6s ease forwards;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-glow {
  animation: glow 3s ease-in-out infinite;
}

/* Animation Delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }

.font-light { font-weight: var(--font-light); }
.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }
.font-black { font-weight: var(--font-black); }

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

.relative { position: relative; }
.absolute { position: absolute; }

.overflow-hidden { overflow: hidden; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.mx-auto { margin-left: auto; margin-right: auto; }

.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }

.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }

.pt-24 { padding-top: var(--space-24); }

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--color-gray-700);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gray-600);
}

/* ============================================
   SELECTION STYLING
   ============================================ */
::selection {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-gray-300);
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-4);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

/* ============================================
   SPECIAL SECTIONS
   ============================================ */

/* Gradient Backgrounds */
.bg-gradient-radial {
  background: radial-gradient(ellipse at center, var(--color-primary-light) 0%, var(--color-primary) 70%);
}

.bg-gradient-dark {
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

/* Tech Grid Background */
.tech-grid {
  position: relative;
}

.tech-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

/* Icon Styles */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: rgba(0, 212, 255, 0.1);
  color: var(--color-accent);
  font-size: var(--text-xl);
}

.icon-lg {
  width: 64px;
  height: 64px;
  font-size: var(--text-2xl);
}

.icon-gold {
  background: rgba(255, 215, 0, 0.1);
  color: var(--color-gold);
}

/* Testimonial Cards */
.testimonial {
  position: relative;
  padding-top: var(--space-8);
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.3;
}

.testimonial-text {
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-gray-300);
  margin-bottom: var(--space-6);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author-info {
  font-size: var(--text-sm);
}

.testimonial-author-name {
  font-weight: var(--font-semibold);
  color: var(--color-white);
}

.testimonial-author-title {
  color: var(--color-gray-500);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  text-align: center;
  padding: var(--space-16) var(--space-8);
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  border-radius: var(--radius-2xl);
  position: relative;
  z-index: 1;
}

.cta-section.visual-card {
  background: rgba(0, 212, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.cta-section.visual-card h2 {
  color: var(--color-white);
}

.cta-section.visual-card p {
  color: var(--color-gray-300);
}

.cta-section h2 {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  margin-bottom: var(--space-6);
  color: var(--color-primary);
}

.cta-section p {
  font-size: var(--text-xl);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: var(--color-primary);
}

/* ============================================
   VIDEO BACKGROUND SECTIONS
   ============================================ */
.video-section {
  position: relative;
  overflow: hidden;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.video-background video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%) scale(1.1);
  object-fit: cover;
}

.video-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 22, 40, 0.88) 0%,
    rgba(10, 22, 40, 0.65) 50%,
    rgba(10, 22, 40, 0.88) 100%
  );
}

/* Animated gradient overlays */
.gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(0, 212, 255, 0.03) 50%,
    transparent 100%
  );
  animation: gradientShift 15s ease infinite;
}

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

/* Enhanced card visuals */
.visual-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.visual-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.08) 0%,
    transparent 70%
  );
  animation: rotateGradient 20s linear infinite;
}

@keyframes rotateGradient {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Floating elements animation */
.floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.floating-element {
  position: absolute;
  background: radial-gradient(circle, var(--color-accent), transparent);
  border-radius: 50%;
  opacity: 0.1;
  animation: floatElement 20s infinite;
}

@keyframes floatElement {
  0%, 100% {
    transform: translate(0, 100vh) scale(0);
  }
  50% {
    transform: translate(100px, -100vh) scale(1);
  }
}

/* Image parallax sections */
.parallax-section {
  position: relative;
  overflow: hidden;
  min-height: 500px;
}

.parallax-bg {
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 120%;
  z-index: -1;
}

.parallax-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

/* ============================================
   ENHANCED SERVICE CARDS
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.service-card {
  padding: 2rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card.visual-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 212, 255, 0.15);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-white);
}

.service-card p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-capabilities {
  list-style: none;
  padding: 0;
}

.service-capabilities li {
  padding: 0.5rem 0;
  color: var(--color-gray-400);
  font-size: 0.875rem;
  position: relative;
  padding-left: 1.5rem;
}

.service-capabilities li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

/* ============================================
   ENHANCED CASE STUDY CARDS
   ============================================ */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.case-study-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

.case-study-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(255, 215, 0, 0.1);
  border-color: var(--color-gold);
}

.case-study-image {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  position: relative;
  overflow: hidden;
}

.case-study-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1), transparent);
  animation: pulse 4s ease infinite;
}

.case-study-content {
  padding: 2rem;
}

.case-study-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  display: inline-block;
}

.case-study-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.result-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1.2;
}

.result-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gray-500);
  margin-top: 0.25rem;
}

/* ============================================
   ENHANCED TECH CARDS
   ============================================ */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.tech-card {
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.tech-card.visual-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.tech-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.1);
}

.tech-card h4 {
  font-size: 1.125rem;
  margin: 1rem 0 0.5rem;
}

.tech-card p {
  font-size: 0.875rem;
  color: var(--color-gray-400);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.reveal:nth-child(3) {
  transition-delay: 0.2s;
}

.reveal:nth-child(4) {
  transition-delay: 0.3s;
}

.reveal:nth-child(5) {
  transition-delay: 0.4s;
}

.reveal:nth-child(6) {
  transition-delay: 0.5s;
}

/* ============================================
   ADDITIONAL STYLES FOR VERCEL DEPLOYMENT
   ============================================ */

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-primary);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu ul {
    list-style: none;
    text-align: center;
}

.mobile-menu li {
    margin: 1.5rem 0;
}

.mobile-menu a {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.2s ease;
}

.mobile-menu a:hover {
    color: var(--color-accent);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

body.menu-open {
    overflow: hidden;
}

/* Background variations */
.bg-dark {
    background: rgba(0, 0, 0, 0.3);
}

/* Case study image variations */
.case-study-image.gold {
    background: linear-gradient(135deg, var(--color-gold), #ccac00);
}

.case-study-image.green {
    background: linear-gradient(135deg, #10b981, #059669);
}

/* Testimonials grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* Dark button variant */
.btn-dark {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-dark:hover {
    background: var(--color-primary-dark);
}

/* Additional utility classes */
.mt-12 {
    margin-top: 3rem;
}

/* Page header for inner pages */
.page-header {
    padding: 10rem 0 4rem;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse at right, var(--color-accent-glow), transparent);
    opacity: 0.3;
}

.page-header h1 {
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.25rem;
    color: var(--color-gray-300);
    max-width: 600px;
}

/* Mobile page header - reduced padding for smaller header */
@media (max-width: 768px) {
    .page-header {
        padding: 6rem 0 3rem;  /* 96px top, 48px bottom - accounts for ~64px mobile header */
    }

    .page-header p {
        font-size: 1rem;
    }
}

/* Contact form styles */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Office cards */
.offices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.office-card {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.office-card:hover {
    border-color: var(--color-accent);
    background: rgba(0, 212, 255, 0.05);
}

.office-card h4 {
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.office-card p {
    font-size: 0.875rem;
    color: var(--color-gray-500);
    margin-bottom: 0.25rem;
}

/* Job listings */
.jobs-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.job-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.job-card:hover {
    border-color: var(--color-accent);
    transform: translateX(8px);
}

.job-info h4 {
    margin-bottom: 0.25rem;
}

.job-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--color-gray-500);
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Benefits grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.benefit-card {
    text-align: center;
    padding: 2rem;
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.benefit-card h4 {
    margin-bottom: 0.5rem;
}

.benefit-card p {
    font-size: 0.875rem;
    color: var(--color-gray-500);
}

/* Team grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.team-card {
    text-align: center;
    padding: 2rem;
}

.team-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 3px solid var(--color-accent);
}

.team-card h4 {
    margin-bottom: 0.25rem;
}

.team-card .title {
    color: var(--color-accent);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.team-card p {
    font-size: 0.875rem;
    color: var(--color-gray-500);
}

/* Industries grid */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.industry-card {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(26, 42, 74, 0.98), rgba(10, 22, 40, 0.98));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.industry-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-accent);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3), 0 4px 20px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, rgba(26, 42, 74, 1), rgba(10, 22, 40, 1));
}

.industry-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.industry-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.industry-card p {
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.industry-metrics {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.industry-metric {
    text-align: center;
    flex: 1;
}

.industry-metric .value {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-accent);
}

.industry-metric .label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gray-500);
}

/* Privacy policy */
.privacy-content {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-content h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--color-accent);
}

.privacy-content h3 {
    font-size: 1.125rem;
    margin: 1.5rem 0 0.75rem;
}

.privacy-content p {
    margin-bottom: 1rem;
}

.privacy-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.privacy-content li {
    margin-bottom: 0.5rem;
    color: var(--color-gray-400);
}

/* Calendly embed container */
.calendly-container {
    min-height: 700px;
    border-radius: 1rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.calendly-container iframe {
    width: 100%;
    height: 700px;
    border: none;
}

/* Values grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.value-card {
    padding: 1.5rem;
    border-left: 3px solid var(--color-accent);
    background: rgba(255, 255, 255, 0.02);
}

.value-card h4 {
    margin-bottom: 0.5rem;
}

.value-card p {
    font-size: 0.875rem;
    color: var(--color-gray-500);
}

/* Page transitions */
.page-transition {
    animation: pageIn 0.5s ease forwards;
}

@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   SVG ICON STYLES (No Emojis)
   ============================================ */

/* SVG icon container for service cards */
.card-icon-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.card-icon-svg svg {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
}

/* Text-based icons for case studies */
.case-icon {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-primary);
}

/* Text-based tech icons */
.tech-icon-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}
