/* Global Styles */
:root {
  --primary-color: #d4af37;      /* Lighter Gold */
  --secondary-color: #b8860b;    /* Slightly darker than primary */
  --accent-color: #3cb371;       /* Lighter Seagreen */
  --text-color: #1f2937;
  --light-text: #6b7280;
  --background: #ffffff;
  --light-bg: #f9fafb;
  --surface: #ffffff;            /* Elevated surfaces/panels */
  --surface-muted: #f3f4f6;      /* Inputs, subtle panels */
  --border-color: #e5e7eb;
  --success-color: #10b981;
  --error-color: #ef4444;
  --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --transition: all 0.3s ease;

  /* Spacing scale */
  --space-0: 0;
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */

  /* Semantic layout tokens */
  --layout-stack-gap: var(--space-4);
  --footer-margin-top: 0;
}

/* Dark theme overrides */
.dark {
  --text-color: #e5e7eb;
  --light-text: #9ca3af;
  --background: #0a0a0a;         /* near-neutral-950 */
  --light-bg: #0f172a;           /* slate-900-like */
  --surface: #111827;            /* gray-900 */
  --surface-muted: #0b1220;      /* darker input/surface */
  --border-color: #334155;       /* slate-700 */
  --box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background);
  overflow-x: hidden;
  /* account for fixed navbar and iOS safe-area notch */
  padding-top: calc(80px + env(safe-area-inset-top));
  padding-bottom: env(safe-area-inset-bottom);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-color);
}

p {
  margin-bottom: 1rem;
  color: var(--light-text);
}

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

a:hover {
  color: var(--secondary-color);
}

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: calc(1.5rem + env(safe-area-inset-left));
  padding-right: calc(1.5rem + env(safe-area-inset-right));
}

.section-title {
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
  text-transform: uppercase;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: 1px solid var(--primary-color);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  color: white;
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--surface);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  padding: calc(1rem + env(safe-area-inset-top)) 0 calc(1rem + env(safe-area-inset-top)) 0;
  transition: var(--transition);
  /* Expose an approximate navbar height for dependent UI (e.g., mobile menu offset) */
  --navbar-height: 80px;
  /* Ensure pseudo-elements overlay children for shadow when menu is open */
  isolation: isolate;
}

/* Shadow overlay that appears over the menu when it is open (toggled via .menu-open) */
.navbar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%; /* position below the navbar */
  transform: translateY(var(--menu-shadow-offset, 0));
  height: 16px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
  background: linear-gradient(to bottom, rgba(0,0,0,0.14), rgba(0,0,0,0.06) 8px, rgba(0,0,0,0) 16px);
  z-index: 2;
}
.dark .navbar::after {
  background: linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.18) 8px, rgba(0,0,0,0) 16px);
}
.navbar.menu-open { --menu-shadow-offset: var(--space-5); }
.navbar.menu-open::after { opacity: 1; }

/* Logo theme switching: show light by default, dark when .dark on html */
.logo .logo-img { display: block; height: 40px; width: auto; }
.logo .logo-dark { display: none; }
.dark .logo .logo-light { display: none; }
.dark .logo .logo-dark { display: block; }

.navbar.scrolled {
  padding: calc(0.5rem + env(safe-area-inset-top)) 0 calc(0.5rem + env(safe-area-inset-top)) 0;
  background-color: var(--surface);
  backdrop-filter: blur(10px);
  /* Slightly smaller apparent height when scrolled */
  --navbar-height: 64px;
}

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

.logo h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-color);
  margin: 0;
}

.logo span {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

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

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

.nav-links .btn {
  margin-left: 1rem;
  padding: 0.5rem 1.25rem;
}

/* Language switcher */
.lang-switcher {
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  background: var(--surface);
  color: var(--text-color);
  font-weight: 600;
  cursor: pointer;
}

.lang-switcher:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, #faf8f0 0%, #f5f0e0 100%);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Dark hero background */
.dark .hero {
  background: linear-gradient(135deg, #0b1220 0%, #0f172a 100%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
}

/* Decorative elements */
.hero-decor { position: absolute; inset: 0; pointer-events: none; }
.hero-decor .orb {
  position: absolute; width: 520px; height: 520px; border-radius: 50%;
  left: -120px; top: -120px;
  background: radial-gradient(closest-side, rgba(255,215,160,0.35), rgba(255,215,160,0.12), rgba(255,215,160,0));
  filter: blur(2px);
  animation: pulseGlow 8s ease-in-out infinite;
}
.dark .hero-decor .orb {
  background: radial-gradient(closest-side, rgba(34,197,94,0.25), rgba(34,197,94,0.08), rgba(34,197,94,0));
}
.hero-decor .ring {
  position: absolute; border-radius: 50%; border: 1px dashed rgba(0,0,0,0.08);
  animation: rotateSlow linear infinite;
}
.dark .hero-decor .ring { border-color: rgba(255,255,255,0.08); }
.hero-decor .ring-1 { width: 360px; height: 360px; left: 20%; top: 10%; animation-duration: 28s; }
.hero-decor .ring-2 { width: 520px; height: 520px; left: 14%; top: 0%; animation-duration: 40s; animation-direction: reverse; }
.hero-decor .dot { position: absolute; width: 8px; height: 8px; border-radius: 9999px; background: #0ea5e9; opacity: .6; }
.dark .hero-decor .dot { background: #22c55e; opacity: .7; }
.hero-decor .d1 { left: 8%; top: 64%; animation: floatY 10s ease-in-out infinite; }
.hero-decor .d2 { left: 44%; top: 16%; animation: floatX 12s ease-in-out infinite; }
.hero-decor .d3 { left: 78%; top: 28%; animation: floatY 14s ease-in-out infinite; }

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  color: var(--light-text);
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Credibility badges */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}
.hero-badges li {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .95rem; color: var(--text-color);
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 9999px; padding: .5rem .9rem;
  backdrop-filter: blur(6px);
  transform: translateZ(0);
  animation: float 9s ease-in-out infinite;
}
.dark .hero-badges li {
  background: rgba(17,24,39,.55);
  border-color: rgba(255,255,255,.08);
  color: #e5e7eb;
}
.hero-badges li:nth-child(2) { animation-duration: 11s; }
.hero-badges li:nth-child(3) { animation-duration: 13s; }
.hero-badges li:nth-child(4) { animation-duration: 15s; }
.badge-icon { font-size: 1.1rem; opacity: .9; }

.hero-image { position: relative; }
.hero-image img {
  max-width: 100%;
  animation: float 6s ease-in-out infinite;
}
/* Additional floating technologies strip */
.tech-strip {
  position: absolute; bottom: -10px; right: 6%; max-width: 60%;
  opacity: .9; filter: drop-shadow(0 8px 24px rgba(0,0,0,.12));
  animation: floatX 10s ease-in-out infinite;
}
.dark .tech-strip { opacity: .85; }

/* Hero illustration theme switching: light by default, dark when .dark on html */
.hero-image .hero-illustration-dark { display: none; }
.dark .hero-image .hero-illustration-light { display: none; }
.dark .hero-image .hero-illustration-dark { display: block; }

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-16px); }
  100% { transform: translateY(0px); }
}
@keyframes floatX {
  0% { transform: translateX(0px); }
  50% { transform: translateX(12px); }
  100% { transform: translateX(0px); }
}
@keyframes floatY {
  0% { transform: translateY(0px); }
  50% { transform: translateY(10px); }
  100% { transform: translateY(0px); }
}
@keyframes rotateSlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes pulseGlow {
  0%,100% { opacity: .45; transform: scale(1); }
  50% { opacity: .8; transform: scale(1.04); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-image img,
  .tech-strip,
  .hero-badges li,
  .hero-decor .ring,
  .hero-decor .dot,
  .hero-decor .orb {
    animation: none !important;
  }
}

/* Services Section */
.services {
  padding: 6rem 0;
  background-color: var(--light-bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 320px));
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.service-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.service-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* About Section */
.about {
  padding: 6rem 0;
  background-color: var(--background);
}

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

.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.expertise {
  text-align: left;
  max-width: 700px;
  margin: 0 auto 3rem;
  background: var(--light-bg);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.expertise h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 1.5rem;
}

.expertise ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.expertise li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.8rem;
  color: var(--text-color);
  font-size: 1.05rem;
}

.expertise li:before {
  content: '✓';
  color: var(--accent-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 4rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  padding: 0 1.5rem;
  position: relative;
}

.stat-item:not(:last-child):after {
  content: '';
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: #e5e7eb;
}

.stat-item h3 {
  font-size: 2.8rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.stat-item p {
  color: var(--light-text);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .expertise ul {
    grid-template-columns: 1fr;
  }
  
  .stats {
    gap: 2rem;
  }
  
  .stat-item {
    padding: 0 1rem;
  }
  
  .stat-item:not(:last-child):after {
    display: none;
  }
}

/* Contact Section */
.contact {
  padding: 6rem 0;
  background-color: var(--light-bg);
  position: relative;
  overflow: visible;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2333a06f' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
}

.contact .container {
  position: relative;
  z-index: 1;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3.5rem;
  margin-top: 3rem;
  background: var(--surface);
  padding: 3.5rem;
  border-radius: 16px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: visible; /* allow dropdown overlays to escape clipping */
  border: 1px solid var(--border-color);
}

.contact-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
}

@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
    padding: 2.5rem;
  }
  
  .contact-container::before {
    width: 100%;
    height: 5px;
  }
}

/* Fine-tuned mobile layout for the "Get a quote" (contact) section */
@media (max-width: 520px) {
  .contact {
    padding: 3.5rem 0;
  }
  .contact-container {
    gap: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
  }
  .contact-info {
    padding: 0.75rem !important;
    border-radius: 10px;
    width: 100%;
    max-width: 100%;
  }
  .contact-info h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
  }
  .contact-details {
    margin-top: 1.25rem;
  }
  .contact-form {
    padding: 0;
  }
  .contact-form .form-group {
    margin-bottom: 1rem;
  }
  .contact-form textarea {
    min-height: 120px;
  }
  .contact-form button {
    padding: 0.95rem 1.25rem;
    font-size: 1rem;
  }
}

/* Slightly larger small phones */
@media (max-width: 768px) and (min-width: 521px) {
  .contact-container {
    padding: 1.5rem 1.75rem;
  }
  .contact-info {
    padding: 1.75rem 1.5rem !important;
  }
}

.contact-info {
  padding: 3rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

.contact-info h3 {
  font-size: 1.9rem;
  margin-bottom: 2rem;
  color: #ffffff;
  position: relative;
  padding-bottom: 1rem;
  line-height: 1.3;
}

.contact-info h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 4px;
}

.contact-details {
  margin-top: 2.5rem;
}

.contact-details p {
  margin: 1.5rem 0;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
  transition: all 0.3s ease;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--accent-color);
}

.contact-details p:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(5px);
}

.contact-details i {
  color: #ffffff;
  font-size: 1.1rem;
  margin-top: 0.2rem;
  min-width: 24px;
  text-align: center;
}

/* Copy button styling inside contact details */
.contact-details .copy-btn {
  margin-left: auto;
  background: transparent;
  color: #ffffff;
  border: none;
  border-radius: 0;
  padding: 0;
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}
.contact-details .copy-btn i {
  font-size: 16px;
  line-height: 1;
  pointer-events: none;
}
.contact-details .copy-btn:hover {
  color: var(--accent-color);
  transform: translateY(-1px);
}
.contact-details .copy-btn:focus-visible {
  outline: none;
  color: var(--accent-color);
}
.contact-details .copy-btn.copied {
  color: var(--accent-color);
}
.contact-details .copy-value {
  color: #ffffff;
  word-break: break-word;
}
.contact-details a.copy-value:visited {
  color: #ffffff;
}
.contact-details a.copy-value:hover,
.contact-details a.copy-value:focus {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

 /* Clear visual feedback when a value is copied */
 .contact-details p.copied {
  background: rgba(255, 255, 255, 0.25);
  animation: copiedFlash 0.6s ease;
 }
 .contact-details p.copied .copy-value {
  color: #ffffff;
 }
 .contact-details .copy-btn.copied {
  color: var(--accent-color);
  transform: scale(1.15);
 }
 @keyframes copiedFlash {
  0% { background: rgba(255, 255, 255, 0.08); }
  30% { background: rgba(255, 255, 255, 0.35); }
  100% { background: rgba(255, 255, 255, 0.08); }
 }

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: white;
  color: var(--primary-color);
  transform: translateY(-3px);
}

/* Social icon styled to follow currentColor using mask for external SVGs */
.social-links a .icon {
  width: 20px;
  height: 20px;
  display: block;
  background-color: currentColor;
  -webkit-mask: url('/icons/linkedin.svg') no-repeat center / contain;
  mask: url('/icons/linkedin.svg') no-repeat center / contain;
}

/* Ensure readable text on gradient panel */
.contact-info p {
  color: rgba(255, 255, 255, 0.9);
}

.contact-form {
  position: relative;
  padding: 0.5rem 0;
  z-index: 10; /* ensure overlay children can stack above neighbors */
  overflow: visible; /* prevent local clipping of absolute dropdown */
}

.contact-form .form-group {
  margin-bottom: 1.8rem;
  position: relative;
  z-index: 1; /* default below */
}

/* Bring the active field above neighbors (e.g., when input/select is focused or dropdown open) */
.contact-form .form-group:focus-within {
  z-index: 100;
}

.contact-form label {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--text-color);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 1.1rem 1.4rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: var(--surface-muted);
  color: var(--text-color);
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(60, 179, 113, 0.15);
  background-color: var(--surface);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9ca3af;
  font-weight: 400;
  opacity: 1;
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.6;
  padding: 1.2rem 1.4rem;
}

.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 12px;
  padding-right: 3rem;
  cursor: pointer;
}

.contact-form button {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  border: none;
  padding: 1.1rem 2.5rem;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
  margin-top: 0.5rem;
  box-shadow: 0 4px 15px rgba(60, 179, 113, 0.2);
}

.contact-form button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  z-index: -1;
  opacity: 0;
  transition: all 0.4s ease;
}

.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(60, 179, 113, 0.3);
}

.contact-form button:hover::before {
  opacity: 1;
}

.contact-form button i {
  transition: transform 0.3s ease;
}

.contact-form button:hover i {
  transform: translateX(3px);
}

/* Privacy Notice Styles */
.privacy-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin: 1.5rem 0 1rem;
  font-size: 0.9rem;
  color: var(--light-text);
  line-height: 1.6;
}

.privacy-notice input[type="checkbox"] {
  margin-top: 0.25rem;
  width: auto;
  min-width: 18px;
  height: 18px;
  accent-color: var(--accent-color);
  cursor: pointer;
}

.privacy-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.privacy-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Form Status Message */
.form-status {
  margin-top: 1.2rem;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  text-align: center;
  display: none;
}

.form-status.success {
  background-color: rgba(34, 197, 94, 0.1);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.2);
  display: block;
}

.form-status.error {
  background-color: rgba(239, 68, 68, 0.1);
  color: #991b1b;
  border: 1px solid rgba(239, 68, 68, 0.2);
  display: block;
}

/* Footer */
.footer {
  background-color: var(--surface);
  color: var(--light-text);
  padding: 2rem 0 0;
  margin-top: var(--footer-margin-top);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-about h3 {
  color: var(--text-color);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-about p {
  color: var(--light-text);
  margin-bottom: 1.5rem;
}

.footer h4 {
  color: var(--text-color);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links ul li,
.footer-services ul li {
  margin-bottom: 0.75rem;
}

.footer-links a,
.footer-services a {
  color: var(--light-text);
  transition: var(--transition);
}

.footer-links a:hover,
.footer-services a:hover {
  color: var(--text-color);
  padding-left: 5px;
}

.newsletter-form {
  display: flex;
  margin-top: 1.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem 0 0 0.375rem;
  background-color: var(--surface-muted);
  color: var(--text-color);
  font-family: inherit;
}

.newsletter-form button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0 1.25rem;
  border-radius: 0 0.375rem 0.375rem 0;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background-color: var(--secondary-color);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-bottom p {
  margin: 0;
  color: var(--light-text);
}

.legal-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.legal-links a {
  color: var(--light-text);
  transition: var(--transition);
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  /* Bring hero content closer to top on tablets and small laptops */
  .hero {
    align-items: flex-start;
    padding: calc(var(--navbar-height, 64px) + 2rem) 0 3rem;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-content {
    order: 2;
  }
  
  .hero-image {
    order: 1;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .cta-buttons {
    justify-content: center;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Bring hero content up on mobile/tablet */
  .hero {
    align-items: flex-start;
    padding: calc(var(--navbar-height, 64px) + 1.25rem) 0 3rem;
  }

  .hamburger {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    height: 100dvh;
    background-color: var(--surface);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links li {
    margin: 1rem 0;
  }
  
  .nav-links .btn {
    margin: 1rem 0 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .stats {
    gap: 2rem;
  }
  
  .stat-item h3 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero {
    align-items: flex-start;
    padding: calc(var(--navbar-height, 64px) + 0.75rem) 0 3rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .cta-buttons .btn {
    width: 100%;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .legal-links {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cookie-consent.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.cookie-consent__panel {
  width: 100%;
  max-width: 960px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  transform: translateY(20px);
  transition: transform 0.25s ease;
  overflow: hidden;
}

.cookie-consent.is-visible .cookie-consent__panel {
  transform: translateY(0);
}

.cookie-consent__header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.cookie-consent__body {
  padding: 1.25rem 1.5rem 0.5rem;
}

/* Top legal links under header */
.cookie-consent__legal {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.cookie-consent__legal--top {
  margin-bottom: 0.75rem;
  color: var(--light-text);
}

.cookie-consent__legal a {
  color: var(--primary-color);
  text-decoration: none;
}

.cookie-consent__legal a:hover { text-decoration: underline; }
.cookie-consent__legal .separator { color: var(--light-text); }

.cookie-consent__message {
  margin-bottom: 1.25rem;
}

.cookie-consent__controls {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cookie-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px dashed var(--border-color);
}

.cookie-toggle .desc {
  margin: 0.25rem 0 0;
  color: var(--light-text);
  font-size: 0.95rem;
}

/* Floating translucent sticky footer */
.cookie-consent__footer {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem 1.25rem;
  background: var(--surface);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -8px 24px rgba(0,0,0,0.08);
}

.cookie-consent__links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  white-space: nowrap;
  order: 2;
}

.cookie-consent__links a {
  color: var(--primary-color);
  text-decoration: none;
}

.cookie-consent__links a:hover {
  text-decoration: underline;
}

.cookie-consent__actions {
  display: flex;
  gap: 0.75rem;
  order: 1;
}

/* Bottom legal links under buttons */
.cookie-consent__legal--bottom {
  margin-top: 0.5rem;
  color: var(--light-text);
  display: block;
  width: 100%;
  text-align: right;
}

/* Tabs */
/* Top pill tabs */
.cookie-tabs [role="tablist"][data-cookie-tabs] {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.25rem;
  background: var(--surface-muted);
  border-radius: 9999px;
}

.cookie-tabs [role="tab"] {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  padding: 0.5rem 0.9rem;
  font-weight: 500;
  color: var(--light-text);
  border-radius: 9999px;
  cursor: pointer;
  position: relative;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}

.cookie-tabs [role="tab"]:hover {
  color: var(--text-color);
  background: var(--surface);
  border-color: var(--border-color);
}

.cookie-tabs [role="tab"][aria-selected="true"] {
  color: var(--text-color);
  background: var(--surface);
  border-color: var(--primary-color);
  box-shadow: inset 0 -2px 0 var(--primary-color);
}

.cookie-tabs [role="tabpanel"][data-cookie-panel] {
  padding-bottom: 0.75rem;
}

/* Accordion (tabless) layout */
.cookie-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cookie-accordion details {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.cookie-accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  font-weight: 600;
}

.cookie-accordion summary::-webkit-details-marker {
  display: none;
}

.cookie-accordion summary:after {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--light-text);
  border-bottom: 2px solid var(--light-text);
  transform: rotate(-45deg);
  transition: transform .2s ease;
  margin-left: auto;
}

.cookie-accordion details[open] summary:after {
  transform: rotate(45deg);
}

.cookie-accordion__panel {
  padding: 0.75rem 1rem 1rem;
  border-top: 1px dashed var(--border-color);
}

/* Mobile app friendly modal behavior */
@media (max-width: 520px) {
  .cookie-consent {
    align-items: flex-end; /* bottom sheet */
    padding: 0.5rem;
  }
  .cookie-consent__panel {
    max-width: none;
    width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .cookie-consent__body {
    padding: 1rem 1rem 0.25rem;
    overflow: auto;
  }
}

/* --- Sidebar two-column layout (desktop) --- */
.cookie-consent__panel {
  display: flex;
  flex-direction: column;
}

.cookie-consent__body .cookie-consent__columns {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1rem;
}

.cookie-consent__sidebar {
  border-right: 1px solid var(--border-color);
  padding-right: 1rem;
}

.cookie-consent__sidebar [role="tablist"][data-cookie-tabs] {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border: 0;
  margin: 0;
}

.cookie-consent__sidebar [role="tab"] {
  justify-content: flex-start;
  text-align: left;
  width: 100%;
  padding: 0.625rem 0.75rem;
  border-left: 3px solid transparent;
  border-bottom: 0;
  border-radius: 8px;
}

.cookie-consent__sidebar [role="tab"][aria-selected="true"] {
  background: var(--surface-muted);
  color: var(--text-color);
  border-left-color: var(--primary-color);
}

.cookie-consent__content {
  min-height: 200px;
  max-height: 50vh;
  overflow: auto;
  padding-bottom: 0.5rem;
}

.cookie-consent__footer {
  margin-top: auto; /* stick to bottom */
  border-top: 1px solid var(--border-color);
}

/* Keep original top-tab style on small screens */
@media (max-width: 768px) {
  .cookie-consent__body .cookie-consent__columns {
    display: block;
  }
  .cookie-consent__sidebar {
    border-right: 0;
    padding-right: 0;
  }
  .cookie-consent__sidebar [role="tablist"][data-cookie-tabs] {
    flex-direction: row;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
  }
  .cookie-consent__sidebar [role="tab"] {
    border-left: 0;
    border-bottom: 2px solid transparent;
    border-radius: 6px 6px 0 0;
  }
  .cookie-consent__sidebar [role="tab"][aria-selected="true"] {
    background: transparent;
    border-bottom-color: var(--primary-color);
  }
  .cookie-consent__content {
    max-height: none;
  }
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e5e7eb;
  transition: 0.2s;
  border-radius: 9999px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  top: 3px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

input:checked + .slider {
  background-color: var(--primary-color);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

input:disabled + .slider {
  background-color: #cbd5e1;
  cursor: not-allowed;
}

@media (max-width: 520px) {
  .cookie-consent__footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .cookie-consent__legal--top {
    justify-content: center;
  }
  .cookie-consent__links {
    justify-content: center;
    order: 2;
  }
  .cookie-consent__actions {
    justify-content: stretch;
    order: 1;
  }
  .cookie-consent__legal--bottom {
    text-align: center;
    width: 100%;
  }
  .cookie-consent__panel {
    border-radius: 12px;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

delayed-animation {
  animation-delay: 0.3s;
  opacity: 0;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }


/* Dropdown (language/theme) component styles aligned with site variables */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 96px;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  background: var(--surface);
  color: var(--text-color);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.dropdown-toggle:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.dropdown-chevron {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

/* Menu opens upward in footer context */
.dropdown-menu {
  position: absolute;
  right: 0;
  bottom: 100%;
  margin-bottom: 0.25rem;
  min-width: 8rem;
  background: var(--surface);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  box-shadow: var(--box-shadow);
  z-index: 1000;
  padding: 0.25rem 0;
}

.dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.75rem;
  background: transparent;
  color: var(--text-color);
  border: none;
  cursor: pointer;
  font: inherit;
}

.dropdown-item:hover {
  background: var(--surface-muted);
}

.dropdown-item[aria-selected="true"] {
  font-weight: 700;
}

/* Footer legal row alignment: links left, controls right */
.legal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Override centering when inside the row */
.legal-row .legal-links {
  justify-content: flex-start;
}

.footer-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto; /* push to right if space allows */
}

@media (max-width: 768px) {
  .legal-row {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  .legal-row .legal-links {
    justify-content: center;
  }
  .footer-controls {
    margin-left: 0;
  }
}


/* --- Page-specific and utility styles for Terms, Sitemap, and Service detail pages --- */
.prose h1,
.prose h2,
.prose h3 {
  margin-top: 1.5rem;
}
.prose p {
  margin-bottom: 1rem;
}
.prose ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}
.prose li {
  margin-bottom: 0.25rem;
}

/* Generic list utility to re-enable bullets (ul { list-style: none } is global) */
.list {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

/* Service detail pages */
.service-detail {
  padding: 4rem 0;
  background-color: var(--background);
}
.service-hero {
  margin-bottom: 1.5rem;
}
.service-hero h1 {
  font-size: 2rem;
}
.lead {
  font-size: 1.125rem;
  color: var(--light-text);
}
.service-content h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
}
.cta {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}


/* Light theme specific tweaks */
/* Ensure the footer has a distinct background in light theme so its edge remains visible on content-heavy pages (e.g., Terms) */
html:not(.dark) .footer,
body:not(.dark) .footer {
  background-color: var(--light-bg);
}


/* Partners Section */
.partners {
  padding: 2rem 0 4rem;
  background-color: var(--light-bg);
}

.partners .container {
  display: flex;
  flex-direction: column;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  align-items: center;
  justify-items: center;
  margin-top: 1rem;
}

.partner-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  min-height: 84px;
  width: 100%;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  flex-direction: column;
  gap: 0.5rem;
}

.partner-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.partner-link img {
  height: 36px;
  width: auto;
  filter: grayscale(100%) contrast(85%);
  opacity: 0.9;
  transition: var(--transition);
}

 .partner-link:hover img {
  filter: none;
  opacity: 1;
}

/* Partner name text */
.partner-name {
  font-size: 0.9rem;
  line-height: 1;
  color: var(--light-text);
  text-align: center;
}

@media (min-width: 1024px) {
  .partners {
    padding: 3rem 0 6rem;
  }
  .partners-grid {
    gap: 1.25rem;
  }
}


/* Partners Marquee Animation */
.partners-marquee {
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
}

/* Optional edge fade for nicer appearance */
.partners-marquee::before,
.partners-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  pointer-events: none;
  z-index: 1;
}
.partners-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--light-bg), transparent);
}
.partners-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--light-bg), transparent);
}

.partners-track {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  will-change: transform;
  animation: partners-scroll 30s linear infinite;
}

/* Ensure partner tiles size nicely in the horizontal track */
.partners-track .partner-link {
  flex: 0 0 auto;
  width: 200px; /* consistent tile width for smooth scrolling */
}

/* Pause animation on hover for user control */
.partners-marquee:hover .partners-track {
  animation-play-state: paused;
}

@keyframes partners-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Respect users that prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .partners-track {
    animation: none !important;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 1rem;
  }
  .partners-marquee::before,
  .partners-marquee::after {
    display: none;
  }
}


/* Customers Section */
.customers {
  padding: 4rem 0;
}

@media (min-width: 1024px) {
  .customers {
    padding: 6rem 0;
  }
}


/* Partner description text */
.partner-desc {
  font-size: 0.85rem;
  line-height: 1.2;
  color: var(--light-text);
  text-align: center;
}

/* Tech Expertise Section Animations */
#tech-expertise .partners-grid .partner-link {
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  animation: tech-fade-up 0.6s ease-out forwards;
}

/* Staggered entrance delays for icons */
#tech-expertise .partners-grid .partner-link:nth-child(1) { animation-delay: 0.02s; }
#tech-expertise .partners-grid .partner-link:nth-child(2) { animation-delay: 0.06s; }
#tech-expertise .partners-grid .partner-link:nth-child(3) { animation-delay: 0.10s; }
#tech-expertise .partners-grid .partner-link:nth-child(4) { animation-delay: 0.14s; }
#tech-expertise .partners-grid .partner-link:nth-child(5) { animation-delay: 0.18s; }
#tech-expertise .partners-grid .partner-link:nth-child(6) { animation-delay: 0.22s; }
#tech-expertise .partners-grid .partner-link:nth-child(7) { animation-delay: 0.26s; }
#tech-expertise .partners-grid .partner-link:nth-child(8) { animation-delay: 0.30s; }
#tech-expertise .partners-grid .partner-link:nth-child(9) { animation-delay: 0.34s; }
#tech-expertise .partners-grid .partner-link:nth-child(10) { animation-delay: 0.38s; }
#tech-expertise .partners-grid .partner-link:nth-child(11) { animation-delay: 0.42s; }
#tech-expertise .partners-grid .partner-link:nth-child(12) { animation-delay: 0.46s; }
#tech-expertise .partners-grid .partner-link:nth-child(13) { animation-delay: 0.50s; }
#tech-expertise .partners-grid .partner-link:nth-child(14) { animation-delay: 0.54s; }
#tech-expertise .partners-grid .partner-link:nth-child(15) { animation-delay: 0.58s; }
#tech-expertise .partners-grid .partner-link:nth-child(16) { animation-delay: 0.62s; }
#tech-expertise .partners-grid .partner-link:nth-child(17) { animation-delay: 0.66s; }
#tech-expertise .partners-grid .partner-link:nth-child(18) { animation-delay: 0.70s; }
#tech-expertise .partners-grid .partner-link:nth-child(19) { animation-delay: 0.74s; }
#tech-expertise .partners-grid .partner-link:nth-child(20) { animation-delay: 0.78s; }
#tech-expertise .partners-grid .partner-link:nth-child(21) { animation-delay: 0.82s; }
#tech-expertise .partners-grid .partner-link:nth-child(22) { animation-delay: 0.86s; }
#tech-expertise .partners-grid .partner-link:nth-child(23) { animation-delay: 0.90s; }
#tech-expertise .partners-grid .partner-link:nth-child(24) { animation-delay: 0.94s; }
#tech-expertise .partners-grid .partner-link:nth-child(25) { animation-delay: 0.98s; }
#tech-expertise .partners-grid .partner-link:nth-child(26) { animation-delay: 1.02s; }
#tech-expertise .partners-grid .partner-link:nth-child(27) { animation-delay: 1.06s; }
#tech-expertise .partners-grid .partner-link:nth-child(28) { animation-delay: 1.10s; }
#tech-expertise .partners-grid .partner-link:nth-child(29) { animation-delay: 1.14s; }
#tech-expertise .partners-grid .partner-link:nth-child(30) { animation-delay: 1.18s; }
#tech-expertise .partners-grid .partner-link:nth-child(31) { animation-delay: 1.22s; }
#tech-expertise .partners-grid .partner-link:nth-child(32) { animation-delay: 1.26s; }
#tech-expertise .partners-grid .partner-link:nth-child(33) { animation-delay: 1.30s; }
#tech-expertise .partners-grid .partner-link:nth-child(34) { animation-delay: 1.34s; }
#tech-expertise .partners-grid .partner-link:nth-child(35) { animation-delay: 1.38s; }
#tech-expertise .partners-grid .partner-link:nth-child(36) { animation-delay: 1.42s; }
#tech-expertise .partners-grid .partner-link:nth-child(37) { animation-delay: 1.46s; }
#tech-expertise .partners-grid .partner-link:nth-child(38) { animation-delay: 1.50s; }

/* Enhance hover specifically for Tech Expertise tiles (does not affect other sections) */
#tech-expertise .partner-link:hover {
  transform: translateY(-4px) scale(1.03) rotate(0.2deg);
}
#tech-expertise .partner-link:hover img {
  animation: tech-icon-pop 300ms ease-out;
}

/* Banner slight fade-in for technologies.svg */
#tech-expertise img[alt="Technologies and tools"] {
  opacity: 0;
  transform: translateY(6px);
  animation: tech-fade-in 0.8s ease-out 0.12s forwards;
}

@keyframes tech-fade-up {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes tech-icon-pop {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.05); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes tech-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  #tech-expertise .partners-grid .partner-link,
  #tech-expertise img[alt="Technologies and tools"] {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Form-specific overrides: make custom service dropdown look like inputs */
.contact-form .lang-switcher {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem; /* match .contact-form input padding */
  border: 1px solid var(--border-color);
  border-radius: 10px; /* match inputs */
  background-color: var(--surface-muted);
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.contact-form .lang-switcher:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(60, 179, 113, 0.15);
  background-color: var(--surface);
}

/* Chevron inside the form selector should resemble native caret */
.contact-form .lang-switcher .dropdown-chevron {
  width: 20px;
  height: 20px;
  color: #6b7280; /* similar to placeholder gray */
  transition: transform .2s ease;
}
/* Rotate chevron when open */
.contact-form .select-trigger[aria-expanded="true"] .dropdown-chevron,
.contact-form .lang-switcher[aria-expanded="true"] .dropdown-chevron {
  transform: rotate(180deg);
}

/* Alternative elevated select design */
.contact-form .select-trigger {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.05rem 1.2rem;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.06);
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.86));
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.6);
  transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
  backdrop-filter: saturate(1.2) blur(2px);
}
.dark .contact-form .select-trigger {
  border-color: rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(17,24,39,0.9), rgba(17,24,39,0.88));
  box-shadow: 0 16px 40px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.03);
}
.contact-form .select-trigger:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.65);
}
.dark .contact-form .select-trigger:hover {
  box-shadow: 0 18px 48px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
}
.contact-form .select-trigger:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(60, 179, 113, 0.15), 0 10px 28px rgba(0,0,0,0.08);
}
.dark .contact-form .select-trigger:focus {
  box-shadow: 0 0 0 3px rgba(60, 179, 113, 0.15), 0 18px 48px rgba(0,0,0,0.5);
}
.contact-form .select-trigger .dropdown-chevron {
  width: 20px;
  height: 20px;
  color: #8b8f98;
}

/* Dropdown panel absolute overlay positioning so it does not shift layout */
.contact-form .select-dropdown {
  position: absolute;
  z-index: 9999; /* ensure it overlays all local UI elements */
  top: calc(100% + 0.5rem); /* similar to mt-2 */
  left: 0;
  right: 0;
  max-height: 15rem; /* ~ max-h-60 */
  overflow: auto;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--surface);
  box-shadow: var(--box-shadow);
  outline: none;
  padding: var(--space-1); /* inner padding around items */
}

/* Elevated visual treatment (kept as an additive class) */
.contact-form .select-dropdown.select-panel {
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.06);
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(0,0,0,0.12);
}
.dark .contact-form .select-dropdown.select-panel {
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 24px 64px rgba(0,0,0,0.55);
}

/* Keep item hover transitions */
.contact-form .select-dropdown li {
  display: block;
  padding: var(--space-3) var(--space-4); /* vertical and horizontal padding for each item */
  line-height: 1.45;
  border-radius: 8px; /* nicer hover pill shape within panel padding */
  transition: background-color .12s ease, color .12s ease, transform .08s ease;
  cursor: pointer;
  outline: none;
}
.contact-form .select-dropdown li:hover {
  background-color: var(--surface-muted);
}
.contact-form .select-dropdown li.is-active {
  background-color: var(--surface-muted);
}

/* Selected state: gold background per design */
.contact-form .select-dropdown li[aria-selected="true"] {
  background-color: var(--primary-color);
  color: #ffffff;
}
/* Ensure check icon and text are readable on gold */
.contact-form .select-dropdown li[aria-selected="true"] svg {
  color: #ffffff;
  fill: currentColor;
}


/* Keep trigger border/ring consistent with inputs when dropdown is open */
.contact-form .select-trigger[aria-expanded="true"],
.contact-form .lang-switcher[aria-expanded="true"] {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(60, 179, 113, 0.15), 0 10px 28px rgba(0,0,0,0.08);
  background-color: var(--surface);
}
.dark .contact-form .select-trigger[aria-expanded="true"],
.dark .contact-form .lang-switcher[aria-expanded="true"] {
  box-shadow: 0 0 0 3px rgba(60, 179, 113, 0.15), 0 18px 48px rgba(0,0,0,0.5);
}


/* Mobile/Tablet navigation improvements */
/* Morph hamburger into a cross when menu is open */
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1024px) {
  /* Ensure hamburger is visible on tablets too */
  .hamburger { display: flex; }

  /* Make the mobile/tablet menu full-width and centered, opening like an accordion under the logo bar */
  .nav-links {
    position: fixed;
    top: var(--navbar-offset, calc(var(--navbar-height) + env(safe-area-inset-top)));
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    height: auto; /* override earlier mobile height rules */
    /* Accordion-style container: collapsed by default */
    --menu-max-height: calc(100dvh - var(--navbar-offset, calc(var(--navbar-height) + env(safe-area-inset-top))));
    max-height: 0;
    background-color: var(--surface);
    flex-direction: column;
    justify-content: flex-start; /* start content directly under the logo bar */
    align-items: stretch; /* let items take full width nicely */
    transition: max-height .28s ease, opacity .22s ease, transform .28s ease;
    box-shadow: none;
    z-index: 1000;
    padding: var(--space-3) 1.25rem calc(2rem + env(safe-area-inset-bottom)); /* small top padding for symmetric spacing under logo */
    gap: 0.5rem; /* tighter default gap between items */
    /* Scrolling and mobile ergonomics */
    overflow: hidden; /* clip during collapse */
    overflow-y: auto; /* enable inner scroll when expanded */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    /* subtle, professional open/close transitions */
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
  }

  .nav-links.active {
    max-height: var(--menu-max-height);
    min-height: var(--menu-max-height);
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  /* Tighter, fancier item layout with subtle dividers */
  .nav-links li { margin: 0; width: 100%; }

  .nav-links li + li { border-top: 1px solid var(--border-color); }
  .nav-links a { display: block; padding: 0.5rem 0.25rem; }
  .nav-links .btn { margin-top: 0.75rem; }
}


/* Ensure symmetric breathing space below the logo bar only when menu is open (mobile/tablet) */
@media (max-width: 1024px) {
  .navbar.menu-open .nav-links {
    /* Increase top padding slightly when open for better visual balance under the shadow */
    padding-top: var(--space-5);
  }
}


/* Tech Expertise section distinct background to differ from footer on both themes */
#tech-expertise.services {
  background-color: var(--surface-muted);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
