* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}
html {
  font-size: 18px;
  overflow-x: hidden;
}
body {
  height: 100%;
  color: #fff;
  scroll-behavior: smooth;
  line-height: 1.6;
  overflow-x: hidden;
}
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
}

.video-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  overflow: hidden;
}
.video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-desktop { display: block; }
.video-mobile { display: none; }
@media (max-aspect-ratio: 9/16) {
  .video-desktop { display: none; }
  .video-mobile { display: block; }
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 40px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  backdrop-filter: blur(0px);
}
nav.scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  padding: 15px 40px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
.logo {
  width: 200px;
  height: auto;
  display: block;
  will-change: transform;
}
.logo:hover {
  transform: scale(1.02);
  transition: transform 0.2s ease;
}

/* Professional Hamburger Menu Icon */
.menu-toggle {
  display: none;
  width: 30px;
  height: 24px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}
.menu-toggle span {
  display: block;
  position: absolute;
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  left: 0;
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle span:nth-child(3) { bottom: 0; }

/* Hamburger to X animation */
.menu-toggle.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}
.menu-toggle:focus {
  outline: 2px solid #fff;
  outline-offset: 5px;
}

/* Navigation Links */
.nav-links {
  display: flex;
  gap: 35px;
  align-items: center;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1em;
  letter-spacing: 0.5px;
  position: relative;
  padding: 8px 0;
  transition: color 0.3s ease;
  text-transform: uppercase;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-links a:focus {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

/* Dropdown Menu */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  font-weight: 500;
  font-size: 1em;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.nav-dropdown-toggle::after {
  content: '▼';
  font-size: 0.6em;
  transition: transform 0.3s ease;
}
.nav-dropdown:hover .nav-dropdown-toggle::after {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  min-width: 220px;
  padding: 10px 0;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  text-transform: uppercase;
  font-size: 0.9em;
}
.nav-dropdown-menu a::after {
  display: none;
}
.nav-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile Navigation (hamburger up to 1100px: the full nav does not fit below that) */
@media (max-width: 1100px) {
  nav {
    padding: 15px 20px;
  }
  nav.scrolled {
    padding: 10px 20px;
  }
  .logo {
    width: 180px;
  }
  .menu-toggle {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 65%;
    max-width: 250px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 4px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 90px 25px 25px;
  }
  .nav-links.active {
    right: 0;
  }
  .nav-links a {
    font-size: 1.1em;
    padding: 10px 0;
    width: 100%;
  }
  .nav-dropdown-toggle {
    font-size: 1.1em;
    padding: 10px 0;
    width: 100%;
  }
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
    padding-left: 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-dropdown.open .nav-dropdown-menu {
    max-height: 300px;
  }
  .nav-dropdown-menu a {
    font-size: 1em;
    padding: 10px 0;
  }
}

/* Language Switcher */
.language-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.language-switch button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 8px 10px;
  font-size: 1em;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  text-transform: uppercase;
}
.language-switch button:hover {
  color: rgba(255, 255, 255, 0.9);
}
.language-switch button.active {
  color: #fff;
}
.language-switch button.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
}
.language-switch button:focus {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
.language-switch .separator {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
}
@media (max-width: 1100px) {
  .language-switch {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
  }
}

/* Landing Section */
.landing {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 60px;
}
.landing-content {
  max-width: 900px;
}
.landing-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
  overflow-wrap: break-word;
  hyphens: auto;
}
.landing-content p {
  font-size: 1.3rem;
  opacity: 0.95;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  max-width: 700px;
  margin: 0 auto;
  overflow-wrap: break-word;
  hyphens: auto;
}
@media (max-width: 768px) {
  .landing-content h1 {
    font-size: 2.2rem;
  }
  .landing-content p {
    font-size: 1.1rem;
  }
}

/* Main Content */
.content {
  background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.95) 100%);
  padding: 80px 40px;
}
@media (max-width: 768px) {
  .content {
    padding: 60px 20px;
  }
}

section {
  max-width: 900px;
  margin: 0 auto 80px;
}
section:last-child {
  margin-bottom: 0;
}
section h2 {
  font-size: 2.2rem;
  margin-bottom: 25px;
  font-weight: 600;
  overflow-wrap: break-word;
  hyphens: auto;
}
section p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 20px;
  overflow-wrap: break-word;
  hyphens: auto;
}
section ul {
  list-style: none;
  padding: 0;
}
section ul li {
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 1.05rem;
}
section ul li:last-child {
  border-bottom: none;
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.benefit-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  transition: transform 0.3s ease, background 0.3s ease;
}
.benefit-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
}
.benefit-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 600;
}
.benefit-card p {
  font-size: 1rem;
  opacity: 0.85;
  margin-bottom: 0;
}

/* Use Cases */
.use-cases {
  margin-top: 40px;
}
.use-case {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 25px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.use-case:last-child {
  border-bottom: none;
}
.use-case-icon {
  font-size: 2rem;
  flex-shrink: 0;
}
.use-case-content h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-weight: 600;
}
.use-case-content p {
  font-size: 1rem;
  opacity: 0.85;
  margin-bottom: 0;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 60px 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  margin-top: 60px;
}
.cta-section h2 {
  margin-bottom: 20px;
}
.cta-section p {
  max-width: 600px;
  margin: 0 auto 30px;
}
.cta-button {
  display: inline-block;
  background: #fff;
  color: #000;
  padding: 15px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}
.cta-button-wrap {
  text-align: center;
  margin: 10px 0 0;
}
.contact-quick {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
  padding: 15px 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: background 0.3s ease, transform 0.3s ease;
}
.contact-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
.contact-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
/* Keep the phone number on one line on small phones */
.contact-link span { white-space: nowrap; }
@media (max-width: 768px) {
  .cta-section { padding: 40px 16px; }
  .contact-link { padding: 14px 20px; }
}

/* Footer */
footer {
  background: #000;
  padding: 40px;
  text-align: center;
}
footer p {
  opacity: 0.7;
  font-size: 0.9rem;
}
footer a {
  color: #fff;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

/* Fade-in Animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* Inline link inserted by contact obfuscation script */
.contact-inline-link { color: #fff; text-decoration: underline; }

/* Keyboard access to the services dropdown (desktop) */
.nav-dropdown-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
@media (min-width: 1101px) {
  .nav-dropdown:focus-within .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-dropdown:focus-within .nav-dropdown-toggle::after { transform: rotate(180deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* Hero poster: shown until the video plays; only the matching image is loaded */
.video-bg { background: #000 url('../video-16x9-poster.webp') center / cover no-repeat; }
@media (max-aspect-ratio: 9/16) {
  .video-bg { background-image: url('../video-9x16-poster.webp'); }
}
