:root {
  --primary: #facc15;
  --primary-dark: #eab308;
  --primary-light: #fef08d;
  --primary-soft: #fde047;
  --text-dark: #1a1a1a;
  --text-muted: #4a4a4a;
  --bg-light: #fafafa;
  --bg-white: #ffffff;
  --overlay: rgba(0, 0, 0, 0.51);
  --shadow: rgba(0, 0, 0, 0.13);
  --shadow-strong: rgba(0, 0, 0, 0.2);
  --font: 'Poppins', sans-serif;
  --container: 1200px;
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--primary);
  color: var(--text-dark);
  padding: 0.5rem 1rem;
  z-index: 9999;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.color-primary { color: var(--primary); }
.color-light { color: #fff; }
.color-default { color: var(--text-dark); }

/* ===== BANNER / HERO ===== */
.banner {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.banner-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1677442136019-21780ecad995?w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  will-change: transform;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  z-index: 1;
}

.menu-wrapper {
  position: relative;
  z-index: 10;
  padding: 1.5rem 0;
}

.menu-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo-text {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.logo-text strong { font-weight: 700; color: var(--primary); }

.logo .logo-text { font-size: clamp(1.25rem, 2.5vw, 1.65rem); }

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.75rem;
}
.nav-menu a {
  color: #fff;
  font-weight: 400;
  font-size: 0.95rem;
  text-transform: capitalize;
}
.nav-menu a:hover { color: var(--primary); }

.menu-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(0,0,0,0.35);
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(250, 204, 21, 0.4);
}

.lang-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  transition: color var(--transition);
}
.lang-btn:hover,
.lang-btn.active {
  color: var(--primary);
}
.lang-divider { color: rgba(255,255,255,0.4); font-size: 0.75rem; }

.header-icons {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.header-icon {
  display: flex;
  align-items: center;
  transition: opacity var(--transition);
}
.header-icon:hover { opacity: 0.85; }

.header-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--primary);
}

.menu-trigger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.menu-trigger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.banner-content {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 1.5rem 6rem;
}

.hero-line {
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  text-transform: none;
  margin-bottom: 0.25rem;
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 1.5s ease, transform 1.5s ease;
}
.hero-line.visible {
  opacity: 1;
  transform: translateX(0);
}

.spacer-sm { height: 25px; }

.cta-button {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: transparent;
  color: #fff;
  border: none;
  border-left: 3px solid var(--primary);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 1.5s ease, transform 1.5s ease, background var(--transition), color var(--transition);
}
.cta-button.visible {
  opacity: 1;
  transform: translateX(0);
}
.cta-button:hover {
  background: var(--primary);
  color: var(--text-dark);
}

/* ===== SEPARATORS ===== */
.separator {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 100px;
  margin-top: -1px;
}
.separator svg { width: 100%; height: 100%; display: block; }
.separator .path1 { fill: var(--bg-white); }
.separator .path2 { fill: var(--primary-light); opacity: 0.6; }
.separator .path3 { fill: var(--primary-soft); opacity: 0.4; }

.separator-reverse { transform: rotate(180deg); }
.separator-diagonal.bottom { margin-top: 0; }

.section-parallax .separator .path1 { fill: var(--bg-white); }

/* ===== SECTIONS ===== */
.section {
  padding: 5rem 0;
  background: var(--bg-white);
}

.two-columns .columns-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}
.two-columns h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
}
.two-columns p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 1rem;
}

/* Parallax section headers */
.section-parallax {
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  will-change: transform;
}

.services-bg {
  background-image: url('https://images.unsplash.com/photo-1620712943543-bcc4688e7485?w=1920&q=80');
}
.platform-bg {
  background-image: url('https://images.unsplash.com/photo-1633356122544-f134324a6cee?w=1920&q=80');
}
.team-bg {
  background-image: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=1920&q=80');
}
.contact-bg {
  background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1920&q=80');
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  z-index: 1;
}

.section-title-center {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 3rem 0 4rem;
}
.section-title-center h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-transform: capitalize;
}

.section-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-transform: none;
}

/* Service boxes */
.boxes-section { padding: 4rem 0 5rem; background: var(--bg-light); }

.boxes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-box {
  background: var(--bg-white);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow) 5px 5px 20px 0;
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong) 5px 8px 25px 0;
}
.service-box.featured {
  border-bottom: 2px solid var(--primary);
}
.service-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1rem 0;
  letter-spacing: 0.05em;
}
.service-box p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.box-icon svg {
  width: 48px;
  height: 48px;
  fill: var(--primary);
  margin: 0 auto;
}

/* Platform features */
.platform-content { padding: 4rem 0; }

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
  box-shadow: var(--shadow-strong) 5px 5px 20px 0;
  padding: 2rem;
  background: var(--bg-white);
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }

.feature-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 4px;
}

.feature-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.feature-text p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.feature-text .feature-highlight {
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-top: 0.5rem;
}

.traffic-list {
  list-style: none;
  margin-top: 1rem;
}
.traffic-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot.green { background: #22c55e; }
.dot.yellow { background: var(--primary); }
.dot.red { background: #ef4444; }

/* Use cases */
.use-cases { background: var(--bg-light); }

.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.case-card {
  background: var(--bg-white);
  padding: 2rem;
  border-left: 3px solid var(--primary);
  box-shadow: var(--shadow) 3px 3px 15px 0;
  transition: transform var(--transition);
}
.case-card:hover { transform: translateX(4px); }

.case-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-light);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.case-card h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}
.case-card p { color: var(--text-muted); font-size: 0.95rem; }

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 2.5rem;
  border-radius: 4px;
  text-align: center;
}
.stat-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark) !important;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--text-dark);
  opacity: 0.85;
}

/* Team */
.team-section { padding: 4rem 0 5rem; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.team-card {
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-strong) 5px 5px 20px 0;
  background: var(--bg-white);
  transition: transform var(--transition);
}
.team-card:hover { transform: translateY(-6px); }

.team-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center top;
}
.team-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: capitalize;
  margin: 1.25rem 0 0.5rem;
  padding: 0 1rem;
}
.team-card p {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Contact */
.contact-section { padding: 4rem 0 5rem; background: var(--bg-light); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-info > p { color: var(--text-muted); margin-bottom: 1.5rem; }

.contact-details {
  list-style: none;
  margin-bottom: 1.5rem;
}
.contact-details li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}
.contact-details a { color: var(--primary-dark); font-weight: 600; }

.contact-features p {
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--bg-white);
  padding: 2rem;
  box-shadow: var(--shadow-strong) 5px 5px 20px 0;
}

.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.75rem;
}

.form-field-checkbox {
  margin-bottom: 1rem;
}

.field-error {
  display: block;
  min-height: 1.25rem;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #dc2626;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #ddd;
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  border-left-width: 3px;
}

.contact-form input.invalid,
.contact-form textarea.invalid {
  border-color: #dc2626;
  border-left-width: 3px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
}
.checkbox-label a { color: var(--primary-dark); text-decoration: underline; }

.contact-form .cta-button {
  opacity: 1;
  transform: none;
  align-self: flex-start;
  border: 2px solid var(--primary);
  background: var(--primary);
  color: var(--text-dark);
  font-weight: 600;
}
.contact-form .cta-button:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.contact-form .cta-button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.form-error-banner {
  display: none;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  background: #fef2f2;
  border-left: 4px solid #dc2626;
  color: #991b1b;
  font-size: 0.9rem;
  border-radius: 4px;
}

.form-error-banner.visible {
  display: block;
}

.form-success {
  display: none;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-soft) 100%);
  border-left: 4px solid var(--primary-dark);
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 4px;
}

.form-success.visible {
  display: block;
  animation: fadeInSuccess 0.4s ease;
}

@keyframes fadeInSuccess {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: #ccc;
  padding: 0 0 2rem;
  position: relative;
}
.footer-sep { margin-bottom: -1px; }
.footer-sep .path1 { fill: var(--bg-light); }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 3rem 0 2rem;
}
.footer-logo {
  display: block;
  margin-bottom: 1rem;
  color: #fff !important;
  font-size: 1.35rem;
}
.footer-logo strong { color: var(--primary); }

.footer-links, .footer-nav {
  list-style: none;
}
.footer-links li, .footer-nav li { margin-bottom: 0.4rem; }
.footer-links a, .footer-nav a {
  color: #aaa;
  font-size: 0.9rem;
}
.footer-links a:hover, .footer-nav a:hover { color: var(--primary); }

.footer-col h4 {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}
.footer-col p { font-size: 0.9rem; line-height: 1.6; }

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid #333;
  font-size: 0.85rem;
  color: #888;
}

/* Animations */
.anim-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.anim-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile menu */
body.menu-open { overflow: hidden; }
body.menu-open .nav-menu {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.95);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  z-index: 100;
}
body.menu-open .nav-menu a { font-size: 1.5rem; }
body.menu-open .menu-trigger span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
body.menu-open .menu-trigger span:nth-child(2) { opacity: 0; }
body.menu-open .menu-trigger span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Responsive */
@media (max-width: 975px) {
  .banner-bg, .parallax-bg { background-attachment: scroll; }
  .two-columns .columns-grid { grid-template-columns: 1fr; }
  .boxes-grid { grid-template-columns: 1fr; }
  .feature-row, .feature-row.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .cases-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .menu-trigger { display: flex; }
  .lang-switcher { order: -1; }
}

@media (max-width: 480px) {
  .stats-bar { grid-template-columns: 1fr; }
  .hero-line { font-size: 1.75rem; }
}
