/* style.css - AMBIS 360™ Website */

:root {
  /* Color Palette */
  --deep-blue: #0a192f;
  --deep-blue-light: #112240;
  --teal-accent: #770000;
  --white: #ffffff;
  --light-gray: #ccd6f6;
  --dark-gray: #8892b0;

  /* Fonts */
  --font-primary: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Spacing */
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
  --spacing-xxl: 6rem;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--white);
  color: var(--deep-blue);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--deep-blue);
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}
h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  color: var(--dark-gray);
  margin-bottom: var(--spacing-md);
  font-size: 1.125rem;
}

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

a:hover {
  color: var(--light-gray);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: var(--spacing-md) 0;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  padding: var(--spacing-sm) 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--deep-blue);
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--teal-accent);
  /* Fallback color if on light bg */
  color: #00bfa5;
}

.nav-links {
  display: flex;
  gap: var(--spacing-lg);
  list-style: none;
}

.nav-links a {
  color: var(--deep-blue);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #770000;
  transition: width var(--transition-fast);
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--deep-blue);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: #770000; /* Darker teal for light background */
  color: var(--white);
  box-shadow: 0 4px 14px 0 rgba(119, 0, 0, 0.39);
}

.btn-primary:hover {
  background-color: #550000;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(119, 0, 0, 0.23);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  padding-top: 5rem; /* Account for navbar */
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-bg iframe {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(10, 25, 47, 0.9) 0%,
    rgba(10, 25, 47, 0.6) 100%
  );
  z-index: -1;
}

.hero-bg-light {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-image: url("images/light-cells-bg.png");
  background-size: cover;
  background-position: center;
  opacity: 0.6;
  animation: bgZoom 30s infinite alternate ease-in-out;
  pointer-events: none;
}

@keyframes bgZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

.hero-content,
.hero-image-container {
  position: relative;
  z-index: 1;
}

.hero-image-container {
  transition-delay: 0.2s;
  transform: translateX(3rem) !important;
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
}

.hero p {
  color: var(--light-gray);
  font-size: 1.25rem;
  max-width: 600px;
  margin-bottom: var(--spacing-lg);
}

.hero-actions {
  display: flex;
  gap: var(--spacing-md);
}

/* General Sections */
section {
  padding: var(--spacing-xxl) 0;
}

.section-alt {
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
}

.text-center {
  text-align: center;
}

.section-header {
  max-width: 800px;
  margin: 0 auto var(--spacing-xl);
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: 500px 500px;
  gap: var(--spacing-xl);
  align-items: center;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
}

/* Cards / Glassmorphism */
.card {
  background: var(--white);
  border-radius: 12px;
  padding: var(--spacing-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition:
    transform var(--transition-normal),
    box-shadow var(--transition-normal);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.card-alt {
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.connect-card {
  background: var(--white);
  border-left: 4px solid #770000;
  padding: 1.5rem 2rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-radius: 0 8px 8px 0;
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease;
}

.connect-card:hover {
  transform: translateX(10px);
  background: #f8fafc;
  border-left-color: var(--teal-accent);
}

/* Modern Product Tiers */
.product-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: var(--spacing-xl) 0;
}

.tier-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

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

.tier-card-featured {
  border-color: var(--teal-accent);
  border-width: 2px;
  box-shadow: 0 15px 35px rgba(0, 150, 136, 0.1);
}

.tier-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal-accent);
  color: var(--white);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.tier-title {
  color: var(--deep-blue);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.tier-use-case {
  text-align: center;
  color: var(--dark-gray);
  margin-bottom: 2rem;
  font-weight: 500;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.tier-use-case span {
  display: block;
  font-size: 0.9rem;
  color: #770000;
  margin-top: 0.5rem;
  font-weight: 700;
}

.tier-features {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}

.tier-features li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--dark-gray);
}

.tier-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal-accent);
  font-weight: bold;
}

.card-icon {
  font-size: 2.5rem;
  color: #770000;
  margin-bottom: var(--spacing-md);
}

.card-alt .card-icon {
  color: #770000;
}

/* Image styling */
.img-fluid {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Lists */
.feature-list {
  list-style: none;
}

.feature-list li {
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
  color: var(--dark-gray);
}

.section-alt .feature-list li {
  color: var(--dark-gray);
}

.feature-list li::before {
  content: "✓";
  color: #770000;
  font-weight: bold;
  margin-right: 10px;
}

/* Contact Form */
.contact-form {
  display: grid;
  gap: var(--spacing-md);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--deep-blue);
}

.form-control {
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: #770000;
  box-shadow: 0 0 0 3px rgba(119, 0, 0, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
footer {
  background-color: var(--white);
  color: var(--dark-gray);
  padding: var(--spacing-xl) 0 var(--spacing-md);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--spacing-xl);
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--deep-blue);
  margin-bottom: var(--spacing-md);
}

.footer-logo span {
  color: #770000;
}

.logo-img {
  height: 50px;
  object-fit: contain;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--dark-gray);
}

.footer-links a:hover {
  color: #770000;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.875rem;
}

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

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-dynamic-img {
  animation: floatImage 6s ease-in-out infinite;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  max-height: 60vh;
  width: auto;
  max-width: 100%;
}

@keyframes floatImage {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Hero Sequence Video Styles */
.hero-sequence-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.product-hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-sequence-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 23, 39, 0.4); /* Dark blue overlay */
  z-index: 2;
}

/* Contact Page Hero */
.contact-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  overflow: hidden;
}

.contact-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("images/contact_hero.jpg");
  background-size: cover;
  background-position: center;
  filter: brightness(0.65);
  z-index: 1;
}

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

/* Product Page Hero */
.product-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.product-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("images/product_new_hero.jpg");
  background-size: cover;
  background-position: center right;
  z-index: 1;
}

.product-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.85) 45%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 2;
}

.product-hero .container {
  position: relative;
  z-index: 3;
}

/* Responsive */
@media (max-width: 1100px) {
  .hero-image-container {
    transform: translateX(0) !important;
  }

  .grid-2 {
    grid-template-rows: 400px auto;
    grid-template-columns: none;
    gap: var(--spacing-sm);
  }
}
@media (max-width: 992px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: var(--spacing-lg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }

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

  .mobile-menu-btn {
    display: block;
  }

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

  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
