/* ==========================================================================
   1. Design Tokens & Variables
   ========================================================================== */
:root {
  /* Color Palette - Deep Slate & Cyan Theme */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-light: #ffffff;
  --bg-light-alt: #f8fafc;

  --accent-primary: #0ea5e9;
  --accent-secondary: #3b82f6;
  --accent-tertiary: #a855f7;
  --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  --accent-gradient-wide: linear-gradient(135deg, #06b6d4, #3b82f6, #8b5cf6);
  --accent-glow: rgba(14, 165, 233, 0.3);

  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-dark-primary: #0f172a;
  --text-dark-secondary: #475569;

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

  /* Layout & Spacing */
  --container-width: 1280px;
  --section-padding: 6rem 0;

  /* UI Elements */
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-radius-pill: 99px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --glass-bg: rgba(15, 23, 42, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   2. Base Styles & Resets
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

/* ==========================================================================
   3. Typography
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

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

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

.gradient-text {
  background: var(--accent-gradient-wide);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 1rem auto 0;
}

/* Accent label / eyebrow text */
.label-accent {
  color: var(--accent-primary);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-block;
  margin-bottom: 1rem;
}

/* ==========================================================================
   4. Animated Gradient Mesh Background
   ========================================================================== */
.gradient-mesh {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.gradient-mesh .mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  animation: meshFloat 12s ease-in-out infinite alternate;
}

.gradient-mesh .mesh-blob:nth-child(1) {
  width: 600px;
  height: 600px;
  background: var(--accent-primary);
  top: -15%;
  left: -5%;
  animation-duration: 14s;
}

.gradient-mesh .mesh-blob:nth-child(2) {
  width: 500px;
  height: 500px;
  background: var(--accent-secondary);
  bottom: -20%;
  right: -10%;
  animation-duration: 18s;
  animation-delay: -4s;
}

.gradient-mesh .mesh-blob:nth-child(3) {
  width: 400px;
  height: 400px;
  background: var(--accent-tertiary);
  top: 40%;
  right: 20%;
  animation-duration: 16s;
  animation-delay: -8s;
  opacity: 0.15;
}

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

  33% {
    transform: translate(30px, -40px) scale(1.05);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }

  100% {
    transform: translate(10px, -10px) scale(1.02);
  }
}

/* Fine grid overlay */
.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
  pointer-events: none;
}

/* ==========================================================================
   5. UI Components & Nav
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
}

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
  transform: scale(2.8);
  transform-origin: left center;
}

.footer-brand .logo-img {
  height: 80px;
  transform: scale(2.5);
  transform-origin: left center;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  color: var(--text-secondary);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--border-radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  outline: none;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.4);
}

/* Shimmer */
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  animation: shimmer 4s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  25% {
    left: 200%;
  }

  100% {
    left: 200%;
  }
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

/* ==========================================================================
   6. Marquee / Infinite Scroll Strip
   ========================================================================== */
.marquee-strip {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 1.5rem 0;
  background: var(--bg-secondary);
}

.marquee-track {
  display: inline-flex;
  animation: marquee 30s linear infinite;
}

.marquee-item {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0 3rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.marquee-item .dot {
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
  flex-shrink: 0;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   7. Floating Shapes & Effects
   ========================================================================== */
.shape-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  border: 1px solid var(--glass-border);
  opacity: 0.2;
}

.shape-circle {
  border-radius: 50%;
}

.shape-square {
  border-radius: 12px;
  transform: rotate(45deg);
}

.shape-line {
  width: 100px;
  height: 1px;
  background: var(--glass-border);
  border: none;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  opacity: 0.25;
  pointer-events: none;
}

.orb-primary {
  background: var(--accent-primary);
}

.orb-secondary {
  background: var(--accent-secondary);
}

.orb-tertiary {
  background: var(--accent-tertiary);
}

@keyframes float1 {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-25px) rotate(8deg);
  }

  100% {
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes float2 {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(30px) rotate(-12deg);
  }

  100% {
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes float3 {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(15px, -15px) rotate(6deg);
  }

  66% {
    transform: translate(-10px, 10px) rotate(-4deg);
  }

  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

.float-1 {
  animation: float1 8s ease-in-out infinite;
}

.float-2 {
  animation: float2 12s ease-in-out infinite;
}

.float-3 {
  animation: float3 10s ease-in-out infinite;
}

/* ==========================================================================
   8. Horizontal Rule Divider
   ========================================================================== */
.section-divider {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-divider hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, #e2e8f0, transparent);
}

/* ==========================================================================
   9. Footer
   ========================================================================== */
.footer {
  background-color: var(--bg-primary);
  padding: 5rem 0 2rem;
  border-top: 1px solid var(--glass-border);
}

.footer-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-secondary);
  max-width: 300px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-heading {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

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

.footer-bottom {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  border-top: 1px solid var(--glass-border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-links {
  display: flex;
  gap: 0.8rem;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.social-link:hover {
  background: var(--accent-gradient);
  border-color: transparent;
  color: white;
  transform: translateY(-3px);
}

/* ==========================================================================
   10. Theme Utilities (Dark to Light Flow)
   ========================================================================== */
.section-light {
  background-color: var(--bg-light);
  color: var(--text-dark-primary);
}

.section-light-alt {
  background-color: var(--bg-light-alt);
  color: var(--text-dark-primary);
}

.section-light h2,
.section-light-alt h2,
.section-light h3,
.section-light-alt h3,
.section-light .section-title,
.section-light-alt .section-title {
  color: var(--text-dark-primary);
}

.section-light p,
.section-light-alt p,
.section-light .section-subtitle,
.section-light-alt .section-subtitle {
  color: var(--text-dark-secondary);
}

.section-light .btn-outline,
.section-light-alt .btn-outline {
  border-color: #cbd5e1;
  color: var(--text-dark-primary);
  background: transparent;
}

.section-light .btn-outline:hover,
.section-light-alt .btn-outline:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

/* Light Card */
.card-light {
  background: var(--bg-light);
  border: 1px solid #e2e8f0;
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: var(--transition-smooth);
  position: relative;
}

.card-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient-wide);
  border-radius: 24px 24px 0 0;
  opacity: 0;
  transition: var(--transition-smooth);
}

.card-light:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(14, 165, 233, 0.2);
}

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

/* ==========================================================================
   11. Counters / Stats
   ========================================================================== */
.stats-row {
  display: flex;
  gap: 4rem;
  justify-content: center;
  flex-wrap: wrap;
}

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

.stat-value {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  background: var(--accent-gradient-wide);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 0.5rem;
}

/* ==========================================================================
   12. Mobile Responsiveness
   ========================================================================== */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--bg-primary);
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
    transition: var(--transition-smooth);
  }

  .nav-links.active {
    left: 0;
  }

  .menu-toggle {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand p {
    margin: 0 auto;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
  }

  .stats-row {
    gap: 2rem;
  }

  .stat-value {
    font-size: 2.2rem;
  }
}