/* ========================================
   CLOUDEPOK - AI Consulting Firm
   Premium Dark Theme Design System (2026)
   ======================================== */

/* ----------------------------------------
   CSS Variables & Design Tokens
   ---------------------------------------- */
:root {
  /* Background Palette */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-tertiary: #F1F5F9;
  --bg-card: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.7);

  /* Brand Colors */
  --brand-primary: #2563EB;
  --brand-secondary: #8B5CF6;
  --brand-accent: #F97316;
  --brand-glow: rgba(37, 99, 235, 0.2);

  /* Gradient Presets */
  --gradient-brand: linear-gradient(135deg, #2563EB 0%, #8B5CF6 50%, #F97316 100%);
  --gradient-hero: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  --gradient-card: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
  --gradient-text: linear-gradient(90deg, #1E40AF, #6D28D9, #C2410C);

  /* Text Colors */
  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-subtle: #94A3B8;

  /* Border & Effects */
  --border-color: rgba(99, 102, 241, 0.2);
  --border-hover: rgba(99, 102, 241, 0.4);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);

  /* Sizing */
  --container-max: 1280px;
  --section-padding: clamp(60px, 10vw, 120px);
  --border-radius: 16px;
  --border-radius-lg: 24px;
  --border-radius-xl: 32px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ----------------------------------------
   Reset & Base Styles
   ---------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ----------------------------------------
   Typography
   ---------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

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

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

h4 {
  font-size: 1.125rem;
}

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

.text-muted {
  color: var(--text-muted);
}

.text-accent {
  color: var(--brand-accent);
}

/* ----------------------------------------
   Layout
   ---------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

/* ----------------------------------------
   Animated Background
   ---------------------------------------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
    linear-gradient(to bottom, transparent 0%, var(--bg-primary) 100%);
  pointer-events: none;
}

.bg-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* Floating Orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--brand-primary);
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 350px;
  height: 350px;
  background: var(--brand-accent);
  top: 50%;
  right: -10%;
  animation-delay: -7s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: var(--brand-secondary);
  bottom: 10%;
  left: 30%;
  animation-delay: -14s;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

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

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

  75% {
    transform: translate(20px, 30px) scale(1.02);
  }
}

/* ----------------------------------------
   Header / Navigation
   ---------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition-base);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

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

.logo {
  font-size: 1.875rem;
  /* Slightly larger base */
  font-weight: 800;
  /* Extra bold for structure */
  display: flex;
  align-items: center;
  letter-spacing: -0.03em;
  /* Tighter tracking for wordmark feel */
  text-decoration: none;
}

/* Base "Cloud" styling */
.logo span {
  display: inline-block;
  line-height: 1;
}

/* First part "Cloud" */
.logo span:first-of-type {
  color: var(--text-primary);
  font-weight: 800;
}

/* Second part "epok" */
.logo span>span {
  color: var(--brand-primary);
  font-weight: 700;
  /* Slightly lighter weight than Cloud */
  position: relative;
}

/* Add a subtle underline decoration to the "epok" part to lock the mark */
.logo span>span::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-brand);
  border-radius: 2px;
  opacity: 0.8;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition-fast);
  position: relative;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  transition: var(--transition-base);
}

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

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-base);
}

/* ----------------------------------------
   Buttons
   ---------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-brand);
  color: var(--text-primary);
  box-shadow: var(--shadow-md), 0 0 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--brand-primary);
  background: rgba(99, 102, 241, 0.1);
}

.btn-icon {
  font-size: 1.1rem;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

/* ----------------------------------------
   Hero Section
   ---------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(37, 99, 235, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--brand-accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.1s forwards;
  opacity: 0;
}

.hero-description {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s forwards;
  opacity: 0;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ----------------------------------------
   Services Section (Tabs)
   ---------------------------------------- */
.services {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header p {
  color: var(--text-muted);
  margin-top: 16px;
  font-size: 1.125rem;
}

.service-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
}

.tab-btn:hover {
  border-color: var(--brand-primary);
  color: var(--text-primary);
}

.tab-btn.active {
  background: var(--gradient-brand);
  border-color: transparent;
  color: var(--text-primary);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.service-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.service-content.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.service-info h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.service-info p {
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.8;
}

.service-features {
  list-style: none;
  display: grid;
  gap: 16px;
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-secondary);
}

.service-features li::before {
  content: '✓';
  color: var(--brand-accent);
  font-weight: 700;
  flex-shrink: 0;
}

.service-visual {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  position: relative;
  overflow: hidden;
}

.service-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
}

.service-icon-large {
  font-size: 8rem;
  position: relative;
  z-index: 1;
}

/* ----------------------------------------
   SVG Illustrations
   ---------------------------------------- */
.svg-illustration {
  width: 100%;
  height: 100%;
  max-width: 300px;
  max-height: 300px;
  position: relative;
  z-index: 1;
}

/* Floating animation */
@keyframes floatAnim {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* Pulse animation */
@keyframes pulseAnim {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }

  100% {
    opacity: 0.6;
    transform: scale(1);
  }
}

/* Spin animation */
@keyframes spinAnim {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Dash animation for paths */
@keyframes dashAnim {
  to {
    stroke-dashoffset: 0;
  }
}

.anim-float {
  animation: floatAnim 4s ease-in-out infinite;
}

.anim-pulse {
  animation: pulseAnim 3s ease-in-out infinite;
}

.anim-spin {
  animation: spinAnim 12s linear infinite;
  transform-origin: center;
}

.anim-spin-reverse {
  animation: spinAnim 15s linear infinite reverse;
  transform-origin: center;
}

/* SVG Colors mapped to theme variables */
.svg-primary {
  fill: var(--brand-primary);
}

.svg-primary-stroke {
  stroke: var(--brand-primary);
}

.svg-secondary {
  fill: var(--brand-secondary);
}

.svg-secondary-stroke {
  stroke: var(--brand-secondary);
}

.svg-accent {
  fill: var(--brand-accent);
}

.svg-accent-stroke {
  stroke: var(--brand-accent);
}

.svg-gradient {
  fill: url(#brandGradient);
}

/* ----------------------------------------
   Features Grid
   ---------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.feature-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 32px;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transition: var(--transition-base);
}

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

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-brand);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* ----------------------------------------
   Why Choose Us / Stats
   ---------------------------------------- */
.why-section {
  background: var(--gradient-hero);
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-card {
  text-align: center;
  padding: 40px 24px;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: var(--transition-base);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

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

.stat-card .stat-value {
  font-size: 3rem;
  margin-bottom: 8px;
}

.stat-card .stat-label {
  font-size: 1rem;
}

/* ----------------------------------------
   Testimonials
   ---------------------------------------- */
.testimonials {
  background: var(--bg-secondary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 32px;
  position: relative;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.testimonial-card::before {
  content: '"';
  font-size: 6rem;
  font-family: Georgia, serif;
  position: absolute;
  top: -10px;
  left: 24px;
  color: var(--brand-primary);
  opacity: 0.3;
  line-height: 1;
}

.testimonial-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  background: var(--gradient-brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
}

.author-info strong {
  display: block;
  margin-bottom: 2px;
}

.author-info span {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ----------------------------------------
   Blog / Insights
   ---------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition-base);
}

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

.blog-image {
  height: 200px;
  background: var(--gradient-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.blog-content {
  padding: 24px;
}

.blog-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.blog-tag {
  color: var(--brand-accent);
}

.blog-card h3 {
  margin-bottom: 12px;
  transition: var(--transition-fast);
}

.blog-card:hover h3 {
  color: var(--brand-accent);
}

.blog-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ----------------------------------------
   Contact CTA
   ---------------------------------------- */
.contact-cta {
  background: var(--bg-secondary);
  text-align: center;
}

.cta-box {
  background: #1E293B;
  /* Dark box for contrast on light theme */
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-xl);
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
}

.cta-box h2 {
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
  color: #FFFFFF;
}

.cta-box p {
  position: relative;
  z-index: 1;
  color: #94A3B8;
  max-width: 500px;
  margin: 0 auto 32px;
  font-size: 1.125rem;
}

.cta-box .btn {
  position: relative;
  z-index: 1;
}

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

.contact-form {
  display: grid;
  gap: 20px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

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

/* ----------------------------------------
   Footer
   ---------------------------------------- */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand .logo {
  margin-bottom: 20px;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 300px;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  transition: var(--transition-base);
}

.social-link:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  transform: translateY(-2px);
}

.footer-column h4 {
  margin-bottom: 20px;
  color: var(--text-primary);
}

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

.footer-links a {
  color: var(--text-muted);
  transition: var(--transition-fast);
}

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

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--text-primary);
}

/* ----------------------------------------
   Animations
   ---------------------------------------- */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

/* Scroll Animation Classes */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ----------------------------------------
   Responsive Design
   ---------------------------------------- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-content.active {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .service-features {
    text-align: left;
  }

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

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

  .menu-toggle {
    display: flex;
  }

  .hero-stats {
    flex-direction: column;
    gap: 24px;
  }

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

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

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-brand p {
    max-width: 100%;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile Nav Menu */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-base);
}

.mobile-nav.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

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

/* ----------------------------------------
   Utility Classes
   ---------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}