/* ========================================
   IOTMEX — Design System & Styles
   ======================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap');

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

/* --- Design Tokens --- */
:root {
  /* Colors */
  --surface: #f8f9ff;
  --surface-dim: #cbdbf5;
  --surface-container: #e5eeff;
  --surface-container-high: #dce9ff;
  --surface-container-highest: #d3e4fe;
  --on-surface: #0b1c30;
  --on-surface-variant: #44474c;
  --inverse-surface: #213145;
  --inverse-on-surface: #eaf1ff;
  --outline: #75777d;
  --outline-variant: #c5c6cd;
  --primary: #000000;
  --on-primary: #ffffff;
  --primary-container: #0e1c2f;
  --on-primary-container: #77849c;
  --secondary: #5b5f61;
  --secondary-container: #e0e3e6;
  --tertiary-container: #2a1702;
  --error: #ba1a1a;
  --accent: #00D2C4;
  --accent-dark: #00b3a6;
  --background: #f8f9ff;
  --on-background: #0b1c30;

  /* Typography */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --space-base: 4px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 96px;
  --gutter: 24px;
  --margin-mobile: 16px;
  --margin-desktop: 48px;

  /* Radius */
  --radius-sm: 2px;
  --radius: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-1: 0 1px 3px rgba(11,28,48,0.06), 0 1px 2px rgba(11,28,48,0.04);
  --shadow-2: 0 4px 8px rgba(11,28,48,0.08), 0 2px 4px rgba(11,28,48,0.04);
  --shadow-3: 0 16px 32px rgba(11,28,48,0.12), 0 2px 4px rgba(11,28,48,0.06);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  color: var(--on-surface);
  background-color: var(--background);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

/* --- Typography --- */
.display-lg {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  line-height: 56px;
  letter-spacing: -0.02em;
  color: var(--on-surface);
}

.headline-lg {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 50px;
  letter-spacing: -0.015em;
}

.headline-md {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
}

.body-lg {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
}

.body-md {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.body-sm {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.label-md {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--margin-desktop);
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: rgba(248, 249, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: rgba(248, 249, 255, 0.95);
  border-bottom-color: var(--outline-variant);
  box-shadow: var(--shadow-1);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: 1440px;
}

.navbar-logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--on-surface);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ffffff;
  display: inline-block;
}

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

.navbar-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--on-surface-variant);
  position: relative;
  padding: 4px 0;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--on-surface);
  transition: width var(--transition-base);
}

.navbar-links a:hover {
  color: var(--on-surface);
}

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

.navbar-cta {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  background: var(--on-surface);
  color: var(--on-primary);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.navbar-cta:hover {
  background: var(--primary-container);
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--on-surface);
  border-radius: 2px;
  transition: all var(--transition-base);
}

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

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

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

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  padding: 0;
  background-color: var(--surface-container);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Glassmorphism Animated Blobs */
.hero-bg-blobs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: float 20s infinite alternate;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: rgba(0, 210, 196, 0.15); /* Accent color */
  top: -100px;
  left: -200px;
  animation-delay: 0s;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: rgba(11, 28, 48, 0.1); /* Primary/Dark Blue */
  bottom: -150px;
  right: -100px;
  animation-duration: 25s;
  animation-delay: -5s;
}

.blob-3 {
  width: 400px;
  height: 400px;
  background: rgba(229, 238, 255, 0.5); /* Surface Container */
  top: 30%;
  left: 40%;
  animation-duration: 18s;
  animation-delay: -2s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 60px;
  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--on-surface);
  color: var(--on-primary);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: var(--space-md);
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  line-height: 66px;
  letter-spacing: -0.025em;
  color: var(--on-surface);
  margin-bottom: var(--space-md);
}

.hero-description {
  font-size: 18px;
  line-height: 30px;
  color: var(--on-surface-variant);
  margin-bottom: var(--space-lg);
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--accent);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 210, 196, 0.25);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border: 1.5px solid var(--on-surface);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--on-surface);
  color: var(--on-primary);
  transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 620px;
}

.hero-image-wrapper img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-3);
}

.hero-status-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
  z-index: 3;
}

.hero-status-icon {
  width: 40px;
  height: 40px;
  background: var(--surface-container);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-status-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.hero-status-text .label {
  font-size: 11px;
  font-weight: 500;
  color: var(--outline);
  letter-spacing: 0.03em;
}

.hero-status-text .value {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--on-surface);
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services {
  padding: 140px 0;
  background: var(--background);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header .headline-lg {
  margin-bottom: 12px;
}

.section-header p {
  color: var(--on-surface-variant);
  font-size: 18px;
  line-height: 28px;
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--on-surface);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.service-card:hover {
  border-color: var(--on-surface);
  box-shadow: var(--shadow-2);
  transform: translateY(-4px);
}

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

.service-icon {
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.service-icon svg {
  width: 22px;
  height: 22px;
  color: var(--on-surface);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--on-surface);
}

.service-card p {
  font-size: 15px;
  line-height: 24px;
  color: var(--on-surface-variant);
}

/* ========================================
   PROCESS SECTION
   ======================================== */
.process {
  padding: 140px 0;
  background: var(--surface-container);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.process-card {
  background: #ffffff;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  transition: all var(--transition-base);
}

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

.process-number {
  width: 52px;
  height: 52px;
  background: var(--on-surface);
  color: var(--on-primary);
  border-radius: var(--radius-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.process-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--on-surface);
}

.process-card p {
  font-size: 14px;
  line-height: 22px;
  color: var(--on-surface-variant);
}

/* ========================================
   INFRASTRUCTURE SECTION
   ======================================== */
.infrastructure {
  padding: 140px 0;
  background: var(--on-surface);
  color: var(--on-primary);
}

.infrastructure .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.infra-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.infra-badge svg {
  width: 16px;
  height: 16px;
}

.infra-content h2 {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  line-height: 52px;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
  color: #ffffff;
}

.infra-content > p {
  font-size: 16px;
  line-height: 26px;
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--space-lg);
}

.infra-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.infra-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}

.infra-feature-item svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

.infra-visuals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.infra-visuals img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  transition: transform var(--transition-base);
}

.infra-visuals img:hover {
  transform: scale(1.03);
}

.infra-visuals img:first-child {
  margin-top: 24px;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  padding: 140px 0;
  background: var(--background);
  text-align: center;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 700;
  line-height: 56px;
  letter-spacing: -0.025em;
  color: var(--on-surface);
  margin-bottom: var(--space-md);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section > .container > p {
  font-size: 17px;
  line-height: 28px;
  color: var(--on-surface-variant);
  max-width: 520px;
  margin: 0 auto var(--space-lg);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--on-surface);
  color: var(--on-primary);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-cta:hover {
  background: var(--primary-container);
  transform: translateY(-2px);
  box-shadow: var(--shadow-3);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  padding: 32px 0;
  background: var(--surface-container);
  border-top: 1px solid var(--outline-variant);
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--on-surface);
}

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

.footer-links a {
  font-size: 13px;
  color: var(--outline);
  transition: color var(--transition-fast);
}

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

.footer-copy {
  font-size: 13px;
  color: var(--outline);
}

/* ========================================
   SCROLL REVEAL ANIMATIONS
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .hero-visual {
    order: 2;
  }

  .hero-content {
    order: 1;
  }

  .hero-image-wrapper {
    max-width: 480px;
    margin: 0 auto;
  }

  .hero-title {
    font-size: 40px;
    line-height: 48px;
  }

  .infrastructure .container {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .infra-visuals {
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--margin-mobile);
  }

  .navbar .container {
    height: 64px;
  }

  .navbar.menu-open {
    background: #F8F9FF !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    height: 100vh;
    border-bottom: none;
  }

  .navbar-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100vh - 64px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 24px 24px 32px;
    gap: 16px;
    background: #F8F9FF !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    overflow-y: auto;
    z-index: 9999;
  }

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

  .navbar-links a {
    font-size: 18px;
    font-weight: 600;
    color: var(--on-surface);
    width: 100%;
    text-align: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
  }

  .navbar-links .navbar-cta {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    margin-top: 12px;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: 0;
    min-height: auto;
  }

  .hero .container {
    padding-top: 100px;
    padding-bottom: 40px;
  }

  .hero-title {
    font-size: 32px;
    line-height: 40px;
  }

  .hero-description {
    font-size: 15px;
    line-height: 24px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    justify-content: center;
    width: 100%;
  }

  .hero-status-badge {
    right: 8px;
    bottom: -12px;
    padding: 10px 16px;
  }

  .services, .process, .infrastructure, .cta-section, .why-us, .projects, .about, .faq, .articles {
    padding: 64px 0;
    scroll-margin-top: 64px;
  }

  /* --- Premium Compact List View --- */
  .services-grid,
  .process-grid,
  .projects-grid,
  .why-grid,
  .articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card,
  .why-card {
    display: grid;
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto;
    column-gap: 16px;
    row-gap: 4px;
    align-items: start;
    padding: 20px 0;
    border: none;
    border-bottom: 1px solid var(--outline-variant);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .service-card:hover,
  .why-card:hover {
    transform: none;
    box-shadow: none;
  }

  .service-icon,
  .why-icon {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    width: 48px;
    height: 48px;
    margin-bottom: 0;
  }

  .service-card h3,
  .why-card h3 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    margin-bottom: 0;
    font-size: 18px;
    line-height: 24px;
  }

  .service-card p,
  .why-card p {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    font-size: 14px;
    line-height: 20px;
    color: var(--on-surface-variant);
  }

  .process-card,
  .project-card,
  .article-card {
    padding: 24px;
  }

  /* --- Article Typography --- */
  .article-header .headline-xl {
    font-size: 32px !important;
    line-height: 40px !important;
  }
  
  .article-content p {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }

  .section-header .headline-lg {
    font-size: 28px;
    line-height: 36px;
  }

  .infra-content h2 {
    font-size: 28px;
    line-height: 36px;
  }

  .infra-visuals {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .infra-visuals img:first-child {
    margin-top: 0;
  }

  .cta-section h2 {
    font-size: 28px;
    line-height: 36px;
  }

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

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
    line-height: 36px;
  }

  .service-card, .process-card, .why-card, .project-info, .article-content {
    padding: 24px 20px;
  }
}

/* Ultra-wide screens */
@media (min-width: 1600px) {
  .container {
    max-width: 1440px;
  }

  .hero-title {
    font-size: 64px;
    line-height: 74px;
  }

  .hero-description {
    font-size: 20px;
    line-height: 32px;
  }

  .headline-lg {
    font-size: 44px;
    line-height: 54px;
  }
}

/* ======================== STATS BAR ======================== */
.stats-bar {
  background-color: var(--surface-container);
  padding: 40px 0;
  border-bottom: 1px solid var(--outline-variant);
}

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

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.stat-number,
.stat-number-static {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--on-surface);
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  margin-top: 8px;
  font-size: 15px;
  color: var(--on-surface-variant);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ======================== TECH LOGOS ======================== */
.tech-logos {
  padding: 60px 0;
  background-color: #fff;
  overflow: hidden;
  border-bottom: 1px solid var(--outline-variant);
}

.tech-logos-label {
  text-align: center;
  font-size: 14px;
  color: var(--on-surface-variant);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 32px;
  font-weight: 600;
}

.tech-logos-track {
  display: flex;
  width: max-content;
  animation: scroll-left 40s linear infinite;
}

.tech-logos-slide {
  display: flex;
  gap: 80px;
  padding: 0 40px;
}

.tech-logos-slide span {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--on-surface-variant);
  opacity: 0.4;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.tech-logos-slide span:hover {
  color: var(--on-surface);
  opacity: 1;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ======================== NIYE BIZ ======================== */
.why-us {
  padding: 120px 0;
  background-color: var(--surface);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 64px;
}

.why-card {
  background-color: #fff;
  border-radius: 16px;
  padding: 40px;
  border: 1px solid var(--outline-variant);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(11, 28, 48, 0.08);
  border-color: rgba(0, 210, 196, 0.3);
}

.why-icon {
  width: 56px;
  height: 56px;
  background-color: var(--surface-container);
  color: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.why-card:hover .why-icon {
  background-color: var(--accent);
  color: #fff;
}

.why-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--on-surface);
}

.why-card p {
  color: var(--on-surface-variant);
  line-height: 1.6;
}

/* ======================== PROJECTS ======================== */
.projects {
  padding: 120px 0;
  background-color: var(--surface-container);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
}

.project-card {
  background-color: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--outline-variant);
  transition: all 0.4s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(11, 28, 48, 0.1);
}

.project-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
  border-bottom: 1px solid var(--outline-variant);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-info {
  padding: 32px;
}

.project-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
  background-color: var(--surface-container-high);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.project-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--on-surface);
}

.project-card p {
  color: var(--on-surface-variant);
  line-height: 1.6;
  font-size: 15px;
}

/* ======================== ABOUT ======================== */
.about {
  padding: 120px 0;
  background-color: #fff;
}

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

.about-content h2 {
  font-size: 40px;
  line-height: 48px;
  margin: 24px 0;
  color: var(--on-surface);
}

.about-content p {
  font-size: 18px;
  color: var(--on-surface-variant);
  line-height: 1.7;
  margin-bottom: 24px;
}

.about-values {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-value {
  display: flex;
  flex-direction: column;
  padding-left: 24px;
  border-left: 3px solid var(--accent);
}

.about-value strong {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--on-surface);
  margin-bottom: 4px;
}

.about-value span {
  color: var(--on-surface-variant);
  font-size: 15px;
}

.about-visual {
  position: relative;
}

.about-stats-card {
  background-color: var(--on-surface);
  border-radius: 24px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  box-shadow: 0 30px 60px rgba(11, 28, 48, 0.15);
}

.about-stat {
  display: flex;
  flex-direction: column;
}

.about-stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.about-stat-lbl {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 500;
}

/* ======================== ARTICLES (BLOG) ======================== */
.articles {
  padding: 120px 0;
  background-color: var(--surface-container);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
}

.article-card {
  background-color: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--outline-variant);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  height: 100%;
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(11, 28, 48, 0.1);
  border-color: rgba(0, 210, 196, 0.4);
}

.article-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-bottom: 1px solid var(--outline-variant);
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.article-card:hover .article-image img {
  transform: scale(1.05);
}

.article-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 12px;
  display: block;
}

.article-card h3 {
  font-size: 20px;
  line-height: 28px;
  margin-bottom: 16px;
  color: var(--on-surface);
  transition: color 0.3s ease;
}

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

.article-card p {
  color: var(--on-surface-variant);
  line-height: 1.6;
  font-size: 15px;
  margin-bottom: 24px;
  flex-grow: 1;
}

.article-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--on-surface);
  transition: color 0.3s ease;
}

.article-read-more svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.article-card:hover .article-read-more {
  color: var(--accent-dark);
}

.article-card:hover .article-read-more svg {
  transform: translateX(4px);
}

/* ======================== FAQ ======================== */
.faq {
  padding: 120px 0;
  background-color: var(--surface);
}

.faq-list {
  max-width: 800px;
  margin: 64px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: #fff;
  border: 1px solid var(--outline-variant);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active {
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(11, 28, 48, 0.05);
}

.faq-question {
  width: 100%;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--on-surface);
  cursor: pointer;
  text-align: left;
  transition: all 0.3s ease;
}

.faq-question svg {
  width: 24px;
  height: 24px;
  color: var(--on-surface-variant);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 32px 32px;
}

.faq-answer p {
  color: var(--on-surface-variant);
  line-height: 1.6;
  font-size: 16px;
}

/* ======================== FOOTER RICH ======================== */
.footer-rich {
  background-color: var(--on-surface);
  color: #fff;
  padding: 80px 0 60px;
}

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

.footer-desc {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 24px;
  line-height: 1.6;
  font-size: 15px;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
  color: #fff;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
  font-size: 15px;
  transition: color 0.3s ease;
  text-decoration: none;
}

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

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

.footer-legal a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin-left: 24px;
  transition: color 0.3s ease;
  text-decoration: none;
}

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

/* ======================== WHATSAPP FLOAT ======================== */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.3);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

/* ========================================
   RESPONSIVE — New Sections (Mobile)
   ======================================== */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

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

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

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

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

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

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

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

@media (max-width: 768px) {
  .stats-bar {
    padding: 32px 0;
  }

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

  .stat-number,
  .stat-number-static,
  .stat-suffix {
    font-size: 36px;
  }

  .stat-label {
    font-size: 12px;
    letter-spacing: 0.5px;
  }

  .tech-logos {
    padding: 40px 0;
  }

  .tech-logos-slide {
    gap: 40px;
    padding: 0 20px;
  }

  .tech-logos-slide span {
    font-size: 18px;
  }

  .services,
  .process,
  .infrastructure,
  .why-us,
  .projects,
  .about,
  .faq,
  .articles {
    padding: 64px 0;
  }

  .services-grid,
  .process-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
  }

  .why-card {
    padding: 28px;
  }

  .why-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
  }

  .why-card h3 {
    font-size: 18px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
  }

  .project-image {
    height: 200px;
  }

  .project-info {
    padding: 24px;
  }

  .project-card h3 {
    font-size: 18px;
  }

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

  .about-content h2 {
    font-size: 28px;
    line-height: 36px;
  }

  .about-content p {
    font-size: 16px;
  }

  .about-stats-card {
    padding: 32px;
    gap: 24px;
  }

  .about-stat-num {
    font-size: 28px;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
  }

  .article-image {
    height: 200px;
  }

  .article-content {
    padding: 24px;
  }

  .faq-list {
    margin-top: 40px;
  }

  .faq-question {
    padding: 20px 24px;
    font-size: 16px;
  }

  .faq-item.active .faq-answer {
    padding: 0 24px 24px;
  }

  .footer-rich {
    padding: 60px 0 40px;
  }

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

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

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

  .footer-legal a {
    margin-left: 0;
  }

  /* Hero blobs — smaller on mobile */
  .blob-1 {
    width: 300px;
    height: 300px;
    top: -50px;
    left: -100px;
  }

  .blob-2 {
    width: 250px;
    height: 250px;
  }

  .blob-3 {
    width: 200px;
    height: 200px;
  }

  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 24px;
    right: 24px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

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

  .stat-number,
  .stat-number-static,
  .stat-suffix {
    font-size: 28px;
  }

  .stat-label {
    font-size: 11px;
  }

  .why-card {
    padding: 24px 20px;
  }

  .project-image {
    height: 180px;
  }

  .about-stats-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px;
  }

  .article-card h3 {
    font-size: 17px;
  }
}

/* ========================================
   Ultra-wide — New Sections
   ======================================== */
@media (min-width: 1600px) {
  .services, .process, .infrastructure, .cta-section, .why-us, .projects, .about, .faq, .articles {
    padding: 160px 0;
    scroll-margin-top: 100px;
  }

  .cta-section h2 {
    font-size: 52px;
    line-height: 62px;
  }

  .infra-content h2 {
    font-size: 48px;
    line-height: 58px;
  }
}

/* ========================================
   MOBILE TOGGLE BUTTONS (Hidden on Desktop)
   ======================================== */
.mobile-toggle-btn {
  display: none; /* Hidden by default (desktop) */
}

/* ========================================
   CAROUSEL DOTS (Hidden on Desktop)
   ======================================== */
.carousel-dots {
  display: none; /* Hidden by default (desktop) */
}

/* ========================================
   MOBILE-ONLY OPTIMIZATIONS
   ======================================== */
@media (max-width: 768px) {

  /* --- Mobile Toggle Buttons --- */
  .mobile-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--accent-dark);
    transition: all var(--transition-base);
  }

  .mobile-toggle-btn:hover,
  .mobile-toggle-btn:active {
    color: var(--accent);
  }

  .mobile-toggle-btn svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-base);
  }

  .mobile-toggle-btn.expanded svg {
    transform: rotate(-90deg);
  }

  .mobile-toggle-btn.expanded span {
    display: none;
  }

  .mobile-toggle-btn.expanded::after {
    content: 'Daha Az';
  }

  /* --- Services: Show first 3, hide rest --- */
  .services-grid .service-card:nth-child(n+4) {
    display: none;
  }

  .services-grid.expanded .service-card:nth-child(n+4) {
    display: grid;
    animation: fadeSlideIn 0.4s ease forwards;
  }

  /* --- Why Us: Show first 2, hide rest --- */
  .why-grid .why-card:nth-child(n+3) {
    display: none;
  }

  .why-grid.expanded .why-card:nth-child(n+3) {
    display: flex;
    animation: fadeSlideIn 0.4s ease forwards;
  }

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

  /* --- Prevent Hover Jumps on Touch --- */
  .service-card:hover,
  .why-card:hover,
  .process-card:hover,
  .project-card:hover,
  .article-card:hover {
    transform: none !important;
  }

  /* --- Process Carousel --- */
  .process-grid {
    display: flex !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .process-grid::-webkit-scrollbar {
    display: none;
  }

  .process-card {
    flex: 0 0 78%;
    scroll-snap-align: start;
    min-width: 0;
  }

  /* --- Projects Carousel --- */
  .projects-grid {
    display: flex !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-bottom: 8px;
    margin-top: 40px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .projects-grid::-webkit-scrollbar {
    display: none;
  }

  .project-card {
    flex: 0 0 85%;
    scroll-snap-align: start;
    min-width: 0;
  }

  /* --- Articles Carousel --- */
  .articles-grid {
    display: flex !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-bottom: 8px;
    margin-top: 40px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .articles-grid::-webkit-scrollbar {
    display: none;
  }

  .article-card {
    flex: 0 0 85%;
    scroll-snap-align: start;
    min-width: 0;
  }

  /* --- Carousel Dots --- */
  .carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding-top: 16px;
  }

  .carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--outline-variant);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all var(--transition-base);
  }

  .carousel-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--on-surface);
  }

  /* --- Tech Logos Compact --- */
  .tech-logos {
    padding: 32px 0;
  }

  .tech-logos-label {
    margin-bottom: 20px;
    font-size: 12px;
  }

  /* --- Footer Compact 2-Column --- */
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
    margin-bottom: 32px !important;
  }

  .footer-col:first-child {
    grid-column: 1 / -1;
  }

  .footer-desc {
    max-width: 100%;
  }

  .footer-col h4 {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .footer-col a {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .footer-rich {
    padding: 48px 0 32px;
  }

  /* --- About Stats 2x2 on all mobile --- */
  .about-stats-card {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 480px) {
  /* Keep about-stats 2x2 even on smallest screens */
  .about-stats-card {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px;
    padding: 24px;
  }

  .about-stat-num {
    font-size: 24px;
  }

  .about-stat-lbl {
    font-size: 13px;
  }

  /* Carousel cards slightly wider on small screens */
  .process-card {
    flex: 0 0 82%;
  }

  .project-card,
  .article-card {
    flex: 0 0 88%;
  }
}
