/* ===== DESIGN SYSTEM ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #192A41;
  --primary-dark: #0F1A2A;
  --primary-light: #2A4060;
  --secondary: #4A6D8C;
  --accent: #00C2A8;
  --accent-light: #00E5C7;
  --highlight: #FF8A3D;
  --bg: #F7F9FC;
  --bg-soft: #EEF2FF;
  --bg-warm: #FFF8F3;
  --card: #FFFFFF;
  --text: #1F2937;
  --text-secondary: #6B7280;
  --text-light: #9CA3AF;
  --border: #E2E8F0;
  --dark: #0F172A;
  --dark-card: #1E293B;

  --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
  --gradient-accent: linear-gradient(135deg, var(--accent), var(--accent-light));
  --gradient-warm: linear-gradient(135deg, var(--highlight), #FF6B6B);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --section-py: 120px;
  --container-px: 24px;
  --container-max: 1200px;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 50px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 20px 60px rgba(91, 108, 255, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-elevated: 0 25px 80px rgba(91, 108, 255, 0.2);
  --shadow-nav: 0 4px 30px rgba(0, 0, 0, 0.08);

  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* must sit on html as well as body — overflow-x on body alone still
     propagates to the viewport, so the page scrolls sideways anyway */
  overflow-x: hidden;
  max-width: 100%;
}

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

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

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

ul {
  list-style: none;
}

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 38px;
  border: none;
  border-radius: var(--radius-xl);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

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

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 6px 24px rgba(91, 108, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(91, 108, 255, 0.5);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-4px) scale(1.02);
}

.btn-accent {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 6px 24px rgba(0, 194, 168, 0.35);
}

.btn-accent:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 194, 168, 0.5);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

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

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-soft);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 10px 22px;
  border-radius: var(--radius-xl);
  margin-bottom: 24px;
  border: 1px solid rgba(91, 108, 255, 0.1);
}

.section-label i {
  font-size: 0.7rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}

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

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.stagger-1 {
  transition-delay: 0.1s;
}

.stagger-2 {
  transition-delay: 0.2s;
}

.stagger-3 {
  transition-delay: 0.3s;
}

.stagger-4 {
  transition-delay: 0.4s;
}

.stagger-5 {
  transition-delay: 0.5s;
}

.stagger-6 {
  transition-delay: 0.6s;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 10px 0;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--shadow-nav);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--shadow-nav);
  padding: 10px 0;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

.nav-logo img {
  height: 42px;
  width: auto;
}

.nav-logo span {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.navbar.scrolled .nav-logo span {
  color: var(--text);
}

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

.nav-links a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
  position: relative;
  padding: 4px 0;
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-links a:not(.nav-cta):hover::after {
  width: 100%;
}

.navbar.scrolled .nav-links a:not(.nav-cta) {
  color: var(--text);
}

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

.navbar.scrolled .nav-links a:not(.nav-cta):hover {
  color: var(--primary);
}

.nav-cta {
  padding: 11px 26px !important;
  font-size: 0.82rem !important;
  border-radius: var(--radius-xl) !important;
  color: #ffffff !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
  z-index: 1001;
}

.navbar.scrolled .nav-toggle {
  color: var(--text);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0a0a1a;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}


.hero .container {
  position: relative;
  z-index: 3;
  text-align: center;
  padding-top: 140px;
  padding-bottom: 100px;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 28px;
  border-radius: var(--radius-xl);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 36px;
  letter-spacing: 0.03em;
}

.hero-badge i {
  color: var(--highlight);
  font-size: 1rem;
}

.hero h1 {
  font-size: 4.2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 28px;
  letter-spacing: -0.04em;
}

.hero h1 span {
  display: block;
}

.hero-line-1 {
  color: #fff;
}

.hero-line-2 {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(200, 210, 255, 0.95));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 0.85em;
}

.hero h1 .typed-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-light), #7DFFC0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 580px;
  margin: 0 auto 44px;
  line-height: 1.8;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  font-weight: 500;
}

.hero-trust-item i {
  color: var(--accent);
  font-size: 1rem;
}

.hero-trust-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.12);
}




/* Glowing orbs */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 2;
  pointer-events: none;
}

.hero-glow-1 {
  width: 400px;
  height: 400px;
  background: rgba(91, 108, 255, 0.15);
  top: 10%;
  right: -5%;
  animation: glowPulse 6s ease-in-out infinite;
}

.hero-glow-2 {
  width: 300px;
  height: 300px;
  background: rgba(0, 194, 168, 0.1);
  bottom: 15%;
  left: -5%;
  animation: glowPulse 8s ease-in-out infinite reverse;
}

@keyframes glowPulse {

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

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

/* ===== ABOUT ===== */
.about {
  padding: var(--section-py) 0;
  background: var(--card);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image .carousel-container {
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
  overflow: hidden;
}

.about-image .carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out, transform 1.5s ease-in-out;
  transform: scale(1.05);
}

.about-image .carousel-slide.active {
  opacity: 1;
  transform: scale(1);
}

/* Decorative frame */
.about-image::before {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  right: 16px;
  bottom: 16px;
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  opacity: 0.15;
  z-index: -1;
}

.about-image-badge {
  position: absolute;
  bottom: -20px;
  right: 24px;
  background: var(--gradient-primary);
  color: #fff;
  padding: 18px 28px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: var(--shadow-elevated);
}

.about-image-badge i {
  font-size: 1.4rem;
}

.about-content .section-label {
  margin-bottom: 16px;
}

.about-content .section-title {
  text-align: left;
  font-size: 2.6rem;
  margin-bottom: 24px;
}

.about-content>p {
  color: var(--text-secondary);
  margin-bottom: 36px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.about-feature:hover {
  border-color: var(--primary-light);
  box-shadow: 0 4px 16px rgba(91, 108, 255, 0.08);
  transform: translateY(-2px);
}

.about-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
}

.about-feature h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.about-feature p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.4;
}

/* ===== SERVICES ===== */
.services {
  padding: var(--section-py) 0;
  background: var(--bg);
  position: relative;
}

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

.service-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 40px 28px 32px;
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(91, 108, 255, 0.15);
}

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

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin: 0 auto 28px;
  transition: var(--transition);
  position: relative;
}

.service-card:hover .service-icon {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(91, 108, 255, 0.25);
  transform: scale(1.05);
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text);
}

.service-card>p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.65;
}

.service-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.service-checklist li i {
  color: var(--accent);
  font-size: 0.7rem;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 194, 168, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 700;
  transition: var(--transition);
  margin-top: auto;
}

.service-link:hover {
  gap: 14px;
  color: var(--secondary);
}

/* ===== PORTFOLIO ===== */
.portfolio {
  padding: var(--section-py) 0;
  background: var(--card);
}

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

.portfolio-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.3) 40%, transparent 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay h4 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  transform: translateY(12px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item:hover .portfolio-overlay h4 {
  transform: translateY(0);
}

.portfolio-overlay span {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  transform: translateY(12px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
}

.portfolio-item:hover .portfolio-overlay span {
  transform: translateY(0);
}

.portfolio-item.wide {
  grid-column: span 2;
  aspect-ratio: 2/1;
}

/* ===== INDUSTRIES ===== */
.industries {
  padding: var(--section-py) 0;
  background: var(--bg-soft);
  position: relative;
}

.industries::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 0% 50%, rgba(91, 108, 255, 0.05), transparent),
    radial-gradient(ellipse 50% 80% at 100% 50%, rgba(124, 77, 255, 0.04), transparent);
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
  z-index: 1;
}

.industry-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 16px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.industry-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
  z-index: 0;
}

.industry-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
  border-color: transparent;
}

.industry-card:hover::after {
  opacity: 1;
}

.industry-card:hover .industry-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.industry-card:hover h4 {
  color: #fff;
}

.industry-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.industry-card h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

/* ===== PROCESS ===== */
.process {
  padding: var(--section-py) 0;
  background: var(--card);
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 44px;
  left: 15%;
  right: 15%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  z-index: 0;
  border-radius: 3px;
  opacity: 0.3;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 16px;
}

.process-step-number {
  width: 80px;
  height: 80px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 36px rgba(91, 108, 255, 0.3);
  position: relative;
  transition: var(--transition);
}

.process-step:hover .process-step-number {
  transform: scale(1.1);
  box-shadow: 0 16px 48px rgba(91, 108, 255, 0.4);
}

/* Pulse ring */
.process-step-number::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  opacity: 0.15;
}

.process-step h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text);
}

.process-step p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 200px;
  margin: 0 auto;
}

/* ===== STATS ===== */
.stats {
  padding: 90px 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 20% 50%, rgba(91, 108, 255, 0.2), transparent),
    radial-gradient(ellipse 50% 70% at 80% 50%, rgba(124, 77, 255, 0.15), transparent);
}

.stats::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 50px 50px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 24px 0;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.stat-number span {
  color: var(--accent);
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== CTA ===== */
.cta-section {
  padding: 110px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--dark);
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(91, 108, 255, 0.35), transparent),
    radial-gradient(ellipse 50% 80% at 20% 80%, rgba(0, 194, 168, 0.15), transparent),
    radial-gradient(ellipse 50% 80% at 80% 20%, rgba(124, 77, 255, 0.2), transparent);
}

.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 50px 50px;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.cta-content p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 44px;
  line-height: 1.8;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-trust-row {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.cta-trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
  font-weight: 600;
}

.cta-trust-badge i {
  color: var(--accent);
}

/* ===== CONTACT ===== */
.contact {
  padding: var(--section-py) 0;
  background: var(--card);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-form {
  background: var(--bg);
  padding: 44px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

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

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 15px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.92rem;
  background: var(--card);
  color: var(--text);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(91, 108, 255, 0.08);
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 28px 24px;
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.contact-info-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-card);
  border-color: rgba(91, 108, 255, 0.15);
}

.contact-info-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.contact-info-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-info-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-info-card p a {
  color: inherit;
  transition: var(--transition);
}

.contact-info-card p a:hover {
  color: var(--primary, #5B6CFF);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 80px 0 0;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(91, 108, 255, 0.3), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand img {
  height: 44px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.45);
}

.footer-contact {
  margin-bottom: 24px;
}

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact p i {
  color: var(--accent, #2DD4BF);
  width: 16px;
  text-align: center;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.footer-contact a:hover {
  color: #fff;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition);
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-socials a:hover {
  background: var(--gradient-primary);
  color: #fff;
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(91, 108, 255, 0.3);
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.footer-col ul li a:hover {
  color: var(--accent);
  gap: 4px;
}

.footer-col ul li a::before {
  content: '';
  display: inline-block;
  width: 0;
  transition: var(--transition);
}

.footer-col ul li a:hover::before {
  content: '→';
  width: auto;
  margin-right: 4px;
}

.footer-newsletter p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 20px;
  line-height: 1.6;
}

.footer-newsletter-form {
  display: flex;
  gap: 6px;
}

.footer-newsletter-form input {
  flex: 1;
  padding: 13px 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-family: var(--font);
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition);
}

.footer-newsletter-form input:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.06);
}

.footer-newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.footer-newsletter-form button {
  padding: 13px 24px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  color: #fff;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.footer-newsletter-form button:hover {
  box-shadow: 0 6px 24px rgba(91, 108, 255, 0.4);
  transform: translateY(-2px);
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.3);
}

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

.footer-bottom-links a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.3);
  transition: var(--transition);
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

  .section-title {
    font-size: 2.4rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-py: 80px;
  }

  /* the 60px pre-reveal offsets overflow a phone viewport (content already
     spans full width), so slide a shorter distance on small screens */
  .reveal-left {
    transform: translateX(-24px);
  }

  .reveal-right {
    transform: translateX(24px);
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* fully opaque: at 0.98 the hero headline showed through behind the links */
    background: #fff;
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 1001;
  }

  .nav-links.active {
    display: flex;
  }

  /* plain links only — the CTA keeps its own white-on-gradient styling */
  .nav-links a:not(.nav-cta) {
    color: var(--text) !important;
    font-size: 1.2rem;
    font-weight: 700;
  }

  .nav-links .nav-cta {
    color: #fff !important;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 14px 32px;
    margin-top: 8px;
  }

  .nav-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-trust {
    flex-direction: column;
    gap: 12px;
  }

  .hero-trust-divider {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-image::before {
    display: none;
  }

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

  .about-content .section-title {
    text-align: center;
  }

  .about-content .section-label {
    display: flex;
    justify-content: center;
  }

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

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

  .portfolio-item.wide {
    grid-column: span 1;
    aspect-ratio: 1;
  }

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

  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .process-timeline::before {
    display: none;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

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

  .section-title {
    font-size: 2rem;
  }

  .cta-content h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.7rem;
  }

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

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

  .process-timeline {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .contact-form {
    padding: 28px 20px;
  }
}

/* ===== PAGE LOADER ===== */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* freeze all loader animations once dismissed — no background CPU cost */
.page-loader.loaded,
.page-loader.loaded * {
  animation-play-state: paused;
}

/* --- 3D printer loader animation ---
   One loop = 7 passes of the nozzle: 6 printing passes (one per text layer,
   revealed bottom-up via stepped clip-path) + 1 "print complete" glow beat.
   Timings: --pl-pass (one carriage sweep) × 7 = --pl-total (full loop).
   Layer boundaries sit at multiples of 100/7 ≈ 14.285%. */
.printer-loader {
  --pl-w: min(180px, 58vw);
  --pl-pass: 0.55s;
  --pl-total: 3.85s;
  --pl-travel: calc(var(--pl-w) - 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.print-area {
  position: relative;
  width: var(--pl-w);
  display: flex;
  justify-content: center;
  font-size: clamp(3rem, 14vw, 4.5rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
}

.print-text-ghost {
  color: rgba(255, 255, 255, 0.05);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.12);
}

.print-text-fill {
  position: absolute;
  inset: 0;
  text-align: center;
  color: var(--accent);
  clip-path: inset(100% 0 0 0);
  animation: plReveal var(--pl-total) linear infinite,
    plComplete var(--pl-total) ease-in-out infinite;
}

/* horizontal striations over the glyphs — reads as printed layer lines */
.print-layer-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg,
      transparent 0,
      transparent calc(16.667% - 1px),
      rgba(15, 23, 42, 0.5) calc(16.667% - 1px),
      rgba(15, 23, 42, 0.5) 16.667%);
}

/* gantry line: steps up one layer (0.2em = 1.2em line-height / 6) per pass */
.print-head {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.2em;
  height: 0;
  animation: plHeadY var(--pl-total) linear infinite,
    plHeadFade var(--pl-total) linear infinite;
}

/* filament being laid down across the current pass */
.print-line {
  position: absolute;
  left: 0;
  bottom: -1.5px;
  width: calc(100% - 12px);
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(0, 194, 168, 0.3), var(--accent));
  box-shadow: 0 0 8px rgba(0, 229, 199, 0.4);
  transform-origin: left center;
  transform: scaleX(0);
  animation: plLine var(--pl-pass) infinite;
}

/* carriage sweeps across the print area, one pass per layer */
.print-carriage {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 36px;
  animation: plCarriage var(--pl-pass) infinite;
}

.print-nozzle {
  display: block;
}

.pn-filament {
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 3 3;
  animation: plFeed 0.35s linear infinite;
}

.pn-fin {
  fill: var(--secondary);
}

.pn-block {
  fill: var(--primary-light);
}

.pn-tip {
  fill: #8FA6BC;
}

.print-glow {
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 16px;
  height: 16px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(0, 229, 199, 0.95),
      rgba(0, 229, 199, 0.35) 45%,
      transparent 70%);
  filter: blur(1px);
  animation: plGlow var(--pl-pass) linear infinite;
}

.print-bed {
  width: calc(var(--pl-w) + 16px);
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--dark-card), var(--primary-light), var(--dark-card));
  box-shadow: 0 6px 20px rgba(0, 194, 168, 0.15);
}

.loader-dots span {
  animation: plDots 1.4s infinite both;
}

.loader-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.loader-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

/* carriage sweeps right while printing (0–78%), quick flyback (78–100%) */
/* carriage sweeps left to right, then snaps back for the next layer */
@keyframes plCarriage {
  0% {
    transform: translateX(0);
    animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
  }

  78% {
    transform: translateX(var(--pl-travel));
    animation-timing-function: cubic-bezier(0.5, 0, 0.6, 1);
  }

  100% {
    transform: translateX(0);
  }
}

/* bead draws across behind the nozzle, then clears for the next pass */
@keyframes plLine {
  0% {
    transform: scaleX(0);
    opacity: 1;
    animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
  }

  78% {
    transform: scaleX(1);
    opacity: 1;
  }

  84% {
    opacity: 0;
  }

  100% {
    transform: scaleX(0);
    opacity: 0;
  }
}

@keyframes plGlow {
  0% {
    opacity: 0;
  }

  8% {
    opacity: 0.9;
  }

  30% {
    opacity: 0.7;
  }

  55% {
    opacity: 1;
  }

  78% {
    opacity: 0.9;
  }

  86%,
  100% {
    opacity: 0;
  }
}

@keyframes plFeed {
  to {
    stroke-dashoffset: -6;
  }
}

/* head jumps up one layer between passes, holding level during each sweep */
@keyframes plHeadY {

  0%,
  14.28% {
    transform: translateY(0);
  }

  14.29%,
  28.57% {
    transform: translateY(-0.2em);
  }

  28.58%,
  42.85% {
    transform: translateY(-0.4em);
  }

  42.86%,
  57.14% {
    transform: translateY(-0.6em);
  }

  57.15%,
  71.42% {
    transform: translateY(-0.8em);
  }

  71.43%,
  85.71% {
    transform: translateY(-1em);
  }

  85.72%,
  100% {
    transform: translateY(-1.2em);
  }
}

/* hide the head during the "print complete" beat, back for the next loop */
@keyframes plHeadFade {

  0%,
  85.71% {
    opacity: 1;
  }

  88%,
  99.99% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* text builds bottom-up, one slice per pass */
/* glyph gains one finished layer per completed pass */
@keyframes plReveal {

  0%,
  14.28% {
    clip-path: inset(100% 0 0 0);
  }

  14.29%,
  28.57% {
    clip-path: inset(83.34% 0 0 0);
  }

  28.58%,
  42.85% {
    clip-path: inset(66.67% 0 0 0);
  }

  42.86%,
  57.14% {
    clip-path: inset(50% 0 0 0);
  }

  57.15%,
  71.42% {
    clip-path: inset(33.34% 0 0 0);
  }

  71.43%,
  85.71% {
    clip-path: inset(16.67% 0 0 0);
  }

  85.72%,
  100% {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes plComplete {

  0%,
  85.71% {
    text-shadow: 0 0 14px rgba(0, 194, 168, 0.25);
  }

  92% {
    text-shadow: 0 0 26px rgba(0, 229, 199, 0.65), 0 0 60px rgba(0, 194, 168, 0.35);
  }

  100% {
    text-shadow: 0 0 14px rgba(0, 194, 168, 0.25);
  }
}

@keyframes plDots {

  0%,
  60%,
  100% {
    opacity: 0.2;
  }

  30% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {

  .printer-loader,
  .printer-loader * {
    animation: none !important;
  }

  .print-text-fill {
    clip-path: none;
  }

  .print-head {
    display: none;
  }
}

.loader-text {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 8px 30px rgba(91, 108, 255, 0.4);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 12px 40px rgba(91, 108, 255, 0.6);
}

/* ===== WHATSAPP BUTTON ===== */
.whatsapp-btn {
  position: fixed;
  bottom: 32px;
  left: 32px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  z-index: 998;
  transition: var(--transition);
  animation: whatsappPulse 3s ease-in-out infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 36px rgba(37, 211, 102, 0.6);
}

@keyframes whatsappPulse {

  0%,
  100% {
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  }

  50% {
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4), 0 0 0 12px rgba(37, 211, 102, 0.08);
  }
}

/* ===== SECTION WAVE DIVIDERS ===== */
.wave-divider {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: auto;
}

.wave-divider-top {
  margin-bottom: -2px;
}

.wave-divider-bottom {
  margin-top: -2px;
}

/* ===== TYPED CURSOR ===== */
.typed-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--accent);
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: cursorBlink 0.8s step-end infinite;
}

@keyframes cursorBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* ===== PORTFOLIO LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  cursor: pointer;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 85%;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 28px;
  right: 36px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.lightbox-caption {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  pointer-events: none;
}

/* ===== ACTIVE NAV LINK ===== */
.nav-links a.active::after {
  width: 100%;
  background: var(--accent);
}

.navbar.scrolled .nav-links a.active {
  color: var(--primary);
}

/* ===== HERO TYPING GRADIENT ===== */
.hero h1 .typed-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-light), #7DFFC0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== SMOOTH PARALLAX EFFECT ON ABOUT IMAGE ===== */
.about-image {
  transition: transform 0.3s ease;
}

/* ===== IMPROVED SECTION MARKERS ===== */
.section-marker {
  width: 60px;
  height: 4px;
  border-radius: 4px;
  background: var(--gradient-primary);
  margin: 0 auto 24px;
}

/* ===== HOVER GLOW FOR BUTTONS ===== */
.btn-accent::after,
.btn-primary::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-xl);
  background: inherit;
  filter: blur(12px);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.btn-accent:hover::after,
.btn-primary:hover::after {
  opacity: 0.4;
}

/* ===== NAVBAR PROGRESS BAR ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-accent);
  z-index: 1001;
  transition: width 0.1s linear;
  border-radius: 0 3px 3px 0;
}

/* ===== DETAILED SERVICES ===== */
.detailed-services {
  padding: var(--section-py) 0;
  background: var(--bg);
}
.detailed-services-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.detailed-service-item {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  gap: 28px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.detailed-service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.detailed-service-item:hover::before {
  transform: scaleY(1);
}
.detailed-service-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(91, 108, 255, 0.15);
}
.detailed-service-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  box-shadow: 0 10px 30px rgba(91, 108, 255, 0.2);
  transition: var(--transition);
}
.detailed-service-item:hover .detailed-service-icon {
  transform: scale(1.05) rotate(5deg);
}
.detailed-service-content {
  flex-grow: 1;
}
.detailed-service-content h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text);
}
.detailed-service-content h4 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 10px;
  font-weight: 600;
}
.detailed-service-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 16px;
}
.detailed-service-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.detailed-service-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}
.detailed-service-features li i {
  color: var(--accent);
  background: rgba(0, 194, 168, 0.1);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}
@media (max-width: 992px) {
  .detailed-service-item {
    flex-direction: column;
    padding: 32px;
    gap: 24px;
    align-items: flex-start;
  }
}

/* ===== MATERIALS PAGE ===== */
.material-selector {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-top: -60px;
  position: relative;
  z-index: 10;
}
.material-filters {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 30px;
}
.filter-btn {
  padding: 12px 24px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--bg);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(91, 108, 255, 0.2);
}
.selector-output {
  text-align: center;
  padding: 24px;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  border: 1px dashed rgba(91, 108, 255, 0.3);
  transition: var(--transition);
}

.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  background: var(--card);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}
.comparison-table th, .comparison-table td {
  padding: 20px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.comparison-table th {
  background: var(--bg-soft);
  font-weight: 800;
  color: var(--text);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.comparison-table tr:hover td {
  background: rgba(91, 108, 255, 0.02);
}
.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}
.badge-low { background: rgba(16, 185, 129, 0.1); color: #059669; }
.badge-med { background: rgba(245, 158, 11, 0.1); color: #D97706; }
.badge-high { background: rgba(239, 68, 68, 0.1); color: #DC2626; }

.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.chart-card {
  background: var(--card);
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.chart-card h3 {
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.material-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}
.mat-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.mat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(91, 108, 255, 0.2);
}
.mat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.mat-card h3 {
  font-size: 1.6rem;
  font-weight: 800;
}
.mat-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-soft);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.mat-card h4 {
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 20px;
}
.mat-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}
.mat-list-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 12px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mat-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.mat-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.mat-list li.pro i { color: #10B981; }
.mat-list li.con i { color: #EF4444; }

.examples-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.example-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.example-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: var(--transition);
}
.example-card:hover img {
  transform: scale(1.05);
}
.example-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.9) 0%, rgba(15,23,42,0.4) 60%, transparent);
  padding: 24px;
  color: #fff;
}
.example-overlay span {
  display: inline-block;
  background: var(--accent);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.example-overlay h4 {
  font-size: 1.1rem;
  font-weight: 700;
}
@media (max-width: 992px) {
  .charts-grid { grid-template-columns: 1fr; }
  .examples-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .examples-grid { grid-template-columns: 1fr; }
}