/* 1. GLOBAL STYLES & VARIABLES */
:root {
  /* 2026 Elite High-Contrast Light Palette */
  --bg-main: #ffffff;
  --bg-soft: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.9);

  --accent-primary: #0284c7; /* Saturated Sky Blue */
  --accent-secondary: #4f46e5; /* Sharp Indigo */
  --accent-glow: rgba(2, 132, 199, 0.18);

  --text-main: #020617; /* Maximum Contrast Navy */
  --text-muted: #334155; /* Higher Visibility Slate */
  --text-dark: #020617;

  --border-color: rgba(15, 23, 42, 0.12);
  --glass-border: rgba(15, 23, 42, 0.1);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-glow: 0 4px 20px rgba(2, 132, 199, 0.1);
}

/* Global Glass Class */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.04),
    0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

/* Custom Selection */
::selection {
  background: var(--accent-primary);
  color: white;
}

html {
  scroll-behavior: smooth;
  /* Fix: Anchor links stop below header */
  scroll-padding-top: 90px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-soft);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
  border: 2px solid var(--bg-soft);
}
::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

body {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  background-color: var(--bg-main);
  background-image:
    radial-gradient(at 0% 0%, rgba(2, 132, 199, 0.05) 0, transparent 50%),
    radial-gradient(at 100% 0%, rgba(79, 70, 229, 0.05) 0, transparent 50%);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Premium Noise Grain */
.noise-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url('data:image/svg+xml,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)"/></svg>');
}

section {
  padding: 100px 0;
}

/* 2. UTILITY CLASSES */
.btn,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn {
  background: linear-gradient(
    90deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  color: #ffffff;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.08);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 15px -3px rgba(79, 70, 229, 0.4),
    0 4px 6px -2px rgba(79, 70, 229, 0.2);
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-color);
  color: #020617;
}
.btn-outline:hover {
  background: rgba(2, 132, 199, 0.08);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}
.btn--full {
  width: 100%;
}

.gradient {
  background: linear-gradient(90deg, var(--text-main), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-tag {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 6px 14px;
  border: 1px solid rgba(2, 132, 199, 0.2);
  background: rgba(2, 132, 199, 0.08);
  border-radius: 999px;
  color: #0284c7;
  font-size: 0.875rem;
  font-weight: 600;
}
.section-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1rem;
}
.section-subtitle {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1rem;
}

/* 3. HEADER & NAVIGATION */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  padding: 1.25rem 0;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}
.header.scrolled {
  padding: 0.75rem 0;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
  overflow: hidden;
}
.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.logo-text-main {
  color: var(--text-main);
  font-weight: 600;
  font-size: 1.125rem;
}
.logo-text-sub {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-links a {
  color: #020617;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: var(--transition);
  border-radius: var(--radius-full);
}
.nav-links a:hover {
  color: var(--accent-primary);
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background: var(--bg-soft);
  z-index: 102;
  transition: right 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  box-shadow: -10px 0px 30px rgba(0, 0, 0, 0.2);
}
.mobile-nav.open {
  right: 0;
}
.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.nav-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}
.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex-grow: 1;
}
.mobile-nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 1.1rem;
  font-weight: 500;
}
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 101;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
  backdrop-filter: blur(4px);
}
.overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* 4. HERO SECTION */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 60px;
  padding-bottom: 40px;
}
#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.6;
}
.hero-container {
  position: relative;
  z-index: 10;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: rgba(34, 211, 238, 0.05);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: var(--radius-full);
  color: var(--accent-primary);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-main);
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}
.gradient {
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
}
.gradient::after {
  content: "";
  position: absolute;
  bottom: 12%;
  left: 0;
  width: 100%;
  height: 0.25em;
  background: var(--accent-primary);
  opacity: 0.25;
  z-index: -1;
  border-radius: var(--radius-sm);
  filter: blur(8px);
}
.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 2.5rem auto;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* 5. CLIENTS SECTION (Infinite Marquee) */
.clients {
  background: var(--bg-soft);
  padding: 40px 0;
  overflow: hidden;
}
.clients-title {
  text-align: center;
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 2.5rem;
}
.marquee-wrapper {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}
.marquee-track {
  display: flex;
  gap: 4rem;
  width: max-content;
  animation: scroll 30s linear infinite;
}
.marquee-track:hover {
  animation-play-state: paused;
}
.client-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
  width: 150px;
}
.client-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
  opacity: 0.8;
  transition:
    transform 0.3s ease,
    filter 0.3s ease,
    opacity 0.3s;
}
.client-logo img:hover {
  transform: scale(1.1);
  opacity: 1;
  filter: drop-shadow(0 0 15px rgba(79, 70, 229, 0.5));
}
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* 6. SERVICES SECTION */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.service-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  padding: 3rem;
  border-radius: var(--radius-lg);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow:
    0 20px 40px -20px rgba(0, 0, 0, 0.5),
    var(--shadow-glow);
}
.service-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  color: white;
  margin-bottom: 1.5rem;
}
.service-title {
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}
.service-desc {
  color: var(--text-muted);
}

/* 6.1 WHY CHOOSE US SECTION */
.why-choose-us {
  background: var(--bg-soft);
  position: relative;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}
.why-card {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.why-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}
.why-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.why-title {
  font-size: 1.5rem;
  color: var(--text-main);
  letter-spacing: -0.01em;
}
.why-text {
  color: var(--text-muted);
  line-height: 1.7;
}

/* 7. TECH STACK */
.tech-stack-section {
  background: var(--bg-main);
  position: relative;
  overflow: hidden;
}
.tech-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}
.tech-category {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}
.tech-category:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow:
    0 15px 30px -10px rgba(0, 0, 0, 0.3),
    var(--shadow-glow);
}
.tech-cat-title {
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.tech-tag {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dark);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  cursor: default;
}
.highlight-tags .tech-tag {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.3);
  color: var(--accent-secondary);
}
.tech-tag:hover {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}
.tech-cta {
  text-align: center;
  margin-top: 3rem;
  font-size: 1.2rem;
  color: var(--text-muted);
}
.tech-cta strong {
  color: var(--text-main);
  background: linear-gradient(
    90deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 8. PORTFOLIO SECTION */
#portfolio {
  background: var(--bg-soft);
}
.portfolio-grid {
  display: grid;
  gap: 4rem;
}
.case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}
.case:hover {
  border-color: rgba(34, 211, 238, 0.2);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
}
.case:nth-child(even) .case-visual {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}
.case:nth-child(even) .case-content {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}
.case-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  aspect-ratio: 16 / 9;
}
.case-visual img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  transition: transform 0.4s, box-shadow 0.3s;
  display: block;
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 50%;
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.12),
    0 4px 8px rgba(0, 0, 0, 0.08),
    inset 0 0 0 3px rgba(2, 132, 199, 0.1);
  border: 3px solid rgba(2, 132, 199, 0.15);
}
.case-visual:hover img {
  transform: scale(1.08);
  box-shadow: 
    0 12px 32px rgba(2, 132, 199, 0.2),
    0 6px 12px rgba(0, 0, 0, 0.1),
    inset 0 0 0 3px rgba(2, 132, 199, 0.2);
}
.case-label {
  color: var(--accent-secondary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}
.case-title {
  font-size: 1.75rem;
  color: var(--text-main);
  margin-bottom: 1rem;
}
.case-desc {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* 9. INSIGHTS SECTION */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}
.insight-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.insight-card:hover {
  transform: translateY(-10px);
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow:
    0 20px 40px -20px rgba(0, 0, 0, 0.5),
    var(--shadow-glow);
}

/* 7.1 TESTIMONIALS SECTION */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}
.testimonial-card {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  transition: var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}
.testimonial-content {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-main);
  font-style: italic;
  position: relative;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.author-info strong {
  display: block;
  color: var(--accent-primary);
  font-size: 1rem;
}
.author-info span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* 7.2 FAQ SECTION */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}
.faq-question {
  width: 100%;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
  padding: 0 2rem;
  color: var(--text-muted);
}
.faq-item.active .faq-answer {
  max-height: 500px;
  transition: max-height 0.4s cubic-bezier(1, 0, 1, 0);
  padding-bottom: 1.5rem;
}
.faq-item.active {
  border-color: var(--accent-primary);
}
.faq-icon {
  font-size: 1.5rem;
  color: var(--accent-primary);
  transition: transform 0.3s;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}
.insight-image {
  height: 200px;
  overflow: hidden;
  padding: 2rem;
  background: rgba(15, 23, 42, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
}
.insight-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s;
}
.insight-card:hover .insight-image img {
  transform: scale(1.1);
}
.insight-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.insight-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent-secondary);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}
.insight-title {
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.insight-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.insight-link {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.insight-link:hover {
  color: var(--accent-secondary);
}
.insight-link::after {
  content: "→";
  transition: transform 0.2s;
}
.insight-link:hover::after {
  transform: translateX(4px);
}

/* 9. PROCESS SECTION */
.process-section {
  padding: 8rem 0;
  background: var(--bg-soft);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 4rem;
}
.process-item {
  position: relative;
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.process-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}
.process-number {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 1.5rem;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.15;
}
.process-item-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
}
.process-item-text {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .process-item {
    padding: 2rem;
  }
}

/* 9.1 CONTACT CARD */
.contact-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(34, 211, 238, 0.05),
    transparent 70%
  );
  pointer-events: none;
}
.contact-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1rem;
}
.contact-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 2rem;
}
.contact-info-block {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}
/* New Copy Email Styles */
.email-copy-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}
.email-link {
  color: var(--accent-primary);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.5rem;
}
.copy-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}
.copy-btn:hover {
  color: var(--text-main);
}
.copy-feedback {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #10b981; /* Green */
  opacity: 0;
  transition: opacity 0.3s;
  height: 0; /* Changed from 1.25rem */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}
.copy-feedback.active {
  opacity: 1;
  height: 1.25rem;
}

/* 11. DISCOVERY TOOL */
.discovery-section {
  padding: 8rem 0;
  background: var(--bg-main);
  position: relative;
  overflow: hidden;
}
.discovery-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 3.5rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
  text-align: center;
}
.discovery-steps {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.step-content {
  display: none;
  animation: fadeIn 0.5s ease;
}
.step-content.active {
  display: block;
}
.discovery-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.option-card {
  padding: 1.5rem;
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.option-card:hover {
  border-color: var(--accent-primary);
  background: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.1);
}
.option-card.selected {
  border-color: var(--accent-primary);
  background: rgba(2, 132, 199, 0.05);
  color: var(--accent-primary);
}
.discovery-result {
  margin-top: 2.5rem;
  padding: 2.5rem;
  background: white;
  border-radius: var(--radius-md);
  border-left: 5px solid var(--accent-primary);
  text-align: left;
  display: none;
  animation: slideInUp 0.6s ease;
}
.result-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  color: var(--accent-primary);
  font-weight: 800;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.result-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.stack-tag {
  padding: 6px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}
.result-why {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .discovery-card {
    padding: 2rem 1.5rem;
  }
  .discovery-options {
    grid-template-columns: 1fr;
  }
}

/* 12. FOOTER */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 0;
}
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 3rem;
}
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.footer-about {
  max-width: 320px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.footer-copyright {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.footer-right {
  display: flex;
  align-items: flex-start;
  gap: 4rem;
}
.footer-links-col h4 {
  color: var(--text-main);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-links a {
  text-decoration: none;
  color: #475569;
  font-weight: 500;
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--accent-primary);
}

/* Footer Social Media */
.footer-socials {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  transition: var(--transition);
}
.social-link:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
  transform: translateY(-3px);
}
.social-link svg {
  width: 18px;
  height: 18px;
}

/* 11. ANIMATIONS & EFFECTS */
/* Cursor Spotlight */
.cursor-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(14, 165, 233, 0.05) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  z-index: 2000;
  transition: width 0.1s ease-out;
}
body:not(.show-spotlight) .cursor-spotlight {
  opacity: 0;
}

/* Interactive Card Glow */
.interactive-card {
  position: relative;
  overflow: hidden;
}

.interactive-card::before {
  content: "";
  position: absolute;
  left: var(--mouse-x, 0);
  top: var(--mouse-y, 0);
  width: 0;
  height: 0;
  background: radial-gradient(
    circle closest-side,
    rgba(99, 102, 241, 0.2),
    transparent
  );
  transform: translate(-50%, -50%);
  opacity: 0;
  transition:
    width 0.3s,
    height 0.3s,
    opacity 0.3s;
  pointer-events: none;
  z-index: 0;
}
.interactive-card:hover::before {
  --size: 400px;
  width: var(--size);
  height: var(--size);
  opacity: 0.1;
}

/* Fade-in Animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
  transition-delay: var(--delay, 0s);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 12. RESPONSIVE DESIGN */

/* Tablet Breakpoint */
@media (max-width: 1024px) {
  section {
    padding: 80px 0;
  }
  .nav-links {
    gap: 1.5rem;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-item:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }
  .portfolio-grid {
    gap: 3rem;
  }
  .case {
    gap: 2rem;
    padding: 1.5rem;
  }
  .case-visual {
    padding: 2rem;
  }
  .discovery-options {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  /* Hero - Tablet */
  .hero {
    padding-top: 100px;
    padding-bottom: 50px;
  }
  .eyebrow {
    font-size: 0.75rem;
    padding: 6px 14px;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .hero-actions {
    gap: 0.75rem;
  }
  .hero-actions .btn,
  .hero-actions .btn-outline {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
  
  /* Grids - Tablet */
  .tech-container {
    grid-template-columns: 1fr;
  }
  .case {
    grid-template-columns: 1fr;
  }
  .case:nth-child(even) .case-visual {
    grid-column: 1;
    grid-row: 1;
  }
  .case:nth-child(even) .case-content {
    grid-column: 1;
    grid-row: 2;
  }
  .process-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .process-item:last-child {
    max-width: 100%;
  }
  .discovery-card {
    padding: 2.5rem 1.5rem;
  }
  .nav-menu,
  .nav-actions .btn-outline {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
  /* Global Mobile Reset */
  section {
    padding: 40px 0;
  }
  .container {
    padding: 0 1rem;
  }
  
  /* Navigation */
  .nav-menu,
  .nav-actions .btn-outline {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  
  /* Hero Section - Production-Ready Mobile */
  .hero {
    padding-top: 90px; /* More space from header */
    min-height: auto;
    padding-bottom: 30px;
  }
  .hero-container {
    padding: 0 0.5rem;
  }
  .eyebrow {
    font-size: 0.6rem;
    padding: 5px 10px;
    margin-bottom: 0.75rem;
    letter-spacing: 0.03em;
  }
  .hero-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.2;
  }
  .hero-subtitle {
    font-size: 0.8rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
    padding: 0 0.5rem;
  }
  .hero-actions {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
  .hero-actions .btn,
  .hero-actions .btn-outline {
    width: 100%;
    text-align: center;
    padding: 8px 14px;
    font-size: 0.8rem;
    border-radius: 6px;
  }
  
  /* Section Headers - Compact */
  .section-header {
    margin-bottom: 1.5rem;
  }
  .section-tag {
    font-size: 0.7rem;
    padding: 4px 10px;
    margin-bottom: 0.5rem;
  }
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  .section-subtitle {
    font-size: 0.85rem;
  }
  
  /* Client Logos - Smaller */
  .clients {
    padding: 30px 0;
  }
  .clients-title {
    font-size: 0.8rem;
    margin-bottom: 1rem;
  }
  .client-logo {
    min-width: 80px;
    padding: 0 0.75rem;
  }
  .client-logo img {
    max-width: 70px;
    max-height: 35px;
  }
  
  /* Service Cards - Compact */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .service-card {
    padding: 1.5rem;
  }
  .service-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.75rem;
  }
  .service-icon svg {
    width: 20px;
    height: 20px;
  }
  .service-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  .service-desc {
    font-size: 0.85rem;
  }
  
  /* Why Choose Us - Compact */
  .why-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .why-card {
    padding: 1.5rem;
    gap: 0.75rem;
  }
  .why-icon {
    font-size: 1.5rem;
    margin-bottom: 0;
  }
  .why-title {
    font-size: 1.1rem;
  }
  .why-text {
    font-size: 0.85rem;
  }
  
  /* Tech Stack - Compact */
  .tech-container {
    gap: 1.5rem;
  }
  .tech-category {
    padding: 1.25rem;
  }
  .tech-cat-title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }
  .tech-tags {
    gap: 0.5rem;
    justify-content: center;
  }
  .tech-tag {
    font-size: 0.75rem;
    padding: 4px 10px;
  }
  .tech-cta {
    font-size: 0.9rem;
    margin-top: 1.5rem;
  }
  
  /* Discovery Tool - Compact */
  .discovery-card {
    padding: 1.5rem;
  }
  .discovery-step-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  .discovery-options {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .option-card {
    flex-direction: row;
    justify-content: flex-start;
    padding: 1rem;
    gap: 0.75rem;
  }
  .option-icon {
    font-size: 1.25rem;
  }
  .option-card span {
    font-size: 0.9rem;
  }
  
  /* Portfolio - Compact */
  .portfolio-grid {
    gap: 1.5rem;
  }
  .case {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }
  .case-visual {
    padding: 1.5rem;
    aspect-ratio: 16 / 10;
  }
  .case-label {
    font-size: 0.75rem;
  }
  .case-title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
  }
  .case-desc {
    font-size: 0.85rem;
  }
  
  /* Testimonials - Compact */
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .testimonial-card {
    padding: 1.25rem;
  }
  .testimonial-content {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  .author-info strong {
    font-size: 0.85rem;
  }
  .author-info span {
    font-size: 0.75rem;
  }
  
  /* FAQ - Compact */
  .faq-accordion {
    gap: 0.75rem;
  }
  .faq-question {
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
  }
  .faq-answer {
    padding: 0 1rem 1rem;
    font-size: 0.85rem;
  }
  
  /* Insights - Compact */
  .insights-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .insight-card {
    padding: 1rem;
  }
  .insight-title {
    font-size: 1rem;
  }
  .insight-excerpt {
    font-size: 0.85rem;
  }
  
  /* Process - Compact */
  .process-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .process-item {
    padding: 1.5rem;
    text-align: center;
  }
  .process-number {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  .process-item-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  .process-item-text {
    font-size: 0.85rem;
  }
  
  /* Contact - Compact */
  .contact-card {
    padding: 1.5rem;
  }
  .contact-title {
    font-size: 1.5rem;
  }
  .contact-subtitle {
    font-size: 0.9rem;
  }
  .email-copy-wrapper {
    flex-direction: column;
    gap: 0.75rem;
  }
  .email-link {
    font-size: 1rem;
  }
  
  /* Footer - Compact */
  .footer {
    padding: 30px 0 20px;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 1.5rem;
  }
  .footer-left {
    gap: 0.75rem;
    align-items: center;
  }
  .footer-about {
    font-size: 0.8rem;
    max-width: 100%;
    line-height: 1.5;
  }
  .footer-copyright {
    font-size: 0.7rem;
    line-height: 1.4;
  }
  .footer-socials {
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  .social-link {
    width: 32px;
    height: 32px;
  }
  .social-link svg {
    width: 14px;
    height: 14px;
  }
  .footer-right {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 100%;
  }
  .footer-links-col {
    text-align: center;
  }
  .footer-links-col h4 {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
  }
  .footer-links {
    gap: 0.35rem;
  }
  .footer-links a {
    font-size: 0.75rem;
  }
  
  /* Buttons - Mobile Optimized */
  .btn,
  .btn-outline {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
}

/* Extra Small Mobile */
@media (max-width: 375px) {
  .hero-title {
    font-size: 1.5rem;
  }
  .section-title {
    font-size: 1.35rem;
  }
  .client-logo img {
    max-width: 60px;
  }
}

/* Touch Device Optimization */
@media (pointer: coarse) {
  .cursor-spotlight,
  .interactive-card::before {
    display: none;
  }
  .btn,
  .btn-outline {
    min-height: 44px;
  }
}

.contact-content {
  position: relative;
  z-index: 2;
}
