/* =========================================================
   Global Styles — Enhanced, Modern, Responsive, Attractive
   Color Scheme: Glassy water bubble (blues, transparencies, blur effects, bubbly rounds)
   Fixes: Removed yellow, corrected margin-left overuse, refined typography, ensured logo visibility
   Added: Dark mode, 3D effects for showcase, CSS carousel for testimonials, smooth animations, accessibility focus states
   Removed: Video (.video-intro) and chatbot (.chatbot-container) styles
   ========================================================= */

/* Define variables for light and dark modes */
:root {
  --blue-primary: #007bff; /* Water blue */
  --blue-light: #a5d8ff;
  --glass-bg: rgba(255, 255, 255, 0.1); /* Semi-transparent for glassmorphism */
  --blur: blur(10px);
  --black: #111111;
  --white: #ffffff;
  --text: #222222;
  --muted: #6b7280;
  --card: rgba(255, 255, 255, 0.8); /* Glassy card background */
  --shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  --radius: 24px; /* Bubbly rounded corners */
  --gradient: linear-gradient(to left,#0160fa, #0058fff5); /* Watery gradient */
}

/* Dark mode variables */
.dark-mode {
  --blue-primary: #0056b3;
  --blue-light: #339af0;
  --glass-bg: rgba(0, 0, 0, 0.3);
  --black: #ffffff;
  --white: #1a1a1a;
  --text: #dddddd;
  --muted: #a0a0a0;
  --card: rgba(0, 0, 0, 0.5);
  --gradient: linear-gradient(to left, #0056b3, #007bff);
}

/* Global reset and smooth transitions */
* {
  box-sizing: border-box;
  transition: all 0.3s ease; /* Added for smooth animations */
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  /* Removed margin-left: 20px for cleaner layout */
}

/* Images with hover effect */
img {
  max-width: 100%;
  display: block;
  /* Added hover scale effect */
  &:hover {
    transform: scale(1.05);
  }
}

/* Containers */
.container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* Sections */
.section {
  scroll-margin-top: 120px; /* Matches header height */
}

.section.alt {
  background: var(--card);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.02);
}

/* Header */
.site-header {
  background: var(--gradient); /* Replaced with watery gradient */
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  /* Removed margin-left: -20px */
}

/* Nav wrapper */
.nav-wrap {
  display: flex;
  align-items: center;
  padding: 0;
}

/* Logo */
.header__logo {
  display: block;
  margin: 0;
  padding: 0px 0; /* Add padding for spacing */
  height: 70px;
  max-width: 287px;
 object-fit: contain;
 margin-left: -34px;
}

/* Mobile logo adjustments */
@media (max-width: 900px) {
  .header__logo {
    height: 50px; /* Smaller height on mobile */
    max-width: 120px; /* Reduce width to prevent spanning */
    margin: 0 auto; /* Center logo */
  }
}

/* Desktop nav */
.nav {
  display: block;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 10px;
  display: flex;
  gap: 40px; /* Reduced gap for better spacing */
  align-items: center;
}

.menu > li > a {
  text-decoration: none;
  color: var(--white);
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 1rem;
}

.menu > li > a:hover {
  background: var(--blue-primary); /* Replaced yellow with blue */
  color: var(--white);
}

/* Dropdowns (desktop) */
.has-sub {
  position: relative;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--card); /* Glassy background */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 10px;
  display: none;
  opacity: 0;
  transform: translateY(10px);
}

.has-sub:hover .submenu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.submenu li {
  list-style: none;
}

.submenu a {
  display: block;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--text);
  border-radius: 10px;
  font-size: 0.95rem;
}

.submenu a:hover {
  background: var(--glass-bg);
  backdrop-filter: var(--blur); /* Glassy hover effect */
}

/* Mobile navigation */
.burger {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  margin-right: 77px;
}

.burger span {
  display: block;
  width: 28px;
  height: 3px;
  margin: 6px 0;
  background: var(--white);
}

@media (max-width: 900px) {
  .burger {
    display: block;
  }
  .nav {
    position: fixed;
    background: var(--gradient);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    padding: 20px 24px 48px;
    overflow: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .desktop-only {
    display: none;
  }
  .mobile-only {
    display: inline-flex;
  }
}

/* Mobile submenus */
.mobile-only {
  display: none;
}

@media (max-width: 900px) {
  .has-sub {
    width: 100%;
  }
  .has-sub .sub-toggle {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 14px;
    border-radius: 12px;
    font: inherit;
    cursor: pointer;
    color: var(--white);
    font-size: 1rem;
  }
  .has-sub .submenu {
    position: static;
    border: 0;
    box-shadow: none;
    padding: 8px 0 0;
    display: none;
    background: transparent;
  }
  .has-sub.sub-open .submenu {
    display: block;
  }
  .submenu a {
    padding: 12px 12px 12px 16px;
    border-radius: 10px;
    color: var(--white);
    font-size: 0.95rem;
  }
  .submenu a:hover {
    background: rgba(255, 255, 255, 0.1);
  }
}

/* Dark/Light Mode Toggle */
.mode-toggle {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  cursor: pointer;
}

.mode-toggle:hover {
  background: var(--blue-primary);
  color: var(--white);
}

/* Home Section: Full-screen with parallax and glassy overlay */
.home-section.full-hero {
  min-height: 100vh; /* Changed from height to prevent content clipping */
  background: var(--gradient) url('hero-bg.jpg') no-repeat center/cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 80px; /* Added to account for sticky header */
}

/* Reduced opacity and blur for better text visibility */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(4px);
  border-radius: var(--radius);
  z-index: 1;
  opacity: 0.6;
}

/* Added flex-wrap and adjusted padding for mobile */
.home-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  max-width: 1280px;
  width: 100%;
  padding: 20px;
}

.home-text {
  flex: 1;
  z-index: 3;
  color: #ffffff; /* Fixed to pure white for high contrast in both modes */
  text-align: left;
  overflow-wrap: break-word; /* Prevent text clipping */
  word-break: break-word;
}

.home-text h1 {
  font-size: 3rem;
  color: var(--blue-primary);
  animation: fadeInUp 1s ease-out;
  margin: 0 0 20px;
}

.home-text p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 20px;
  animation: fadeInUp 1.2s ease-out;
color: var(--blue-primary);
  overflow-wrap: break-word; /* Prevent text clipping */
  word-break: break-word;
}

.home-image {
  flex: 1;
  max-width: 50%;
}

.home-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: contain;
}

/* Responsive home section */
@media (max-width: 768px) {
  .home-wrap {
    flex-direction: column;
    text-align: center;
    padding: 10px;
  }
  .home-text {
    text-align: center;
    max-width: 100%;
  }
  .home-image {
    max-width: 70%; /* Reduced to prevent overlap */
  }
  .home-text h1 {
    font-size: 1.6rem; /* Reduced for mobile */
  }
  .home-text p {
    font-size: 1rem; /* Reduced for mobile */
  }
}

/* Data Quality Section */
.quality-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.quality-text {
  flex: 1;
}

.quality-image {
  flex: 1;
}

.quality-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (max-width: 768px) {
  .quality-wrap {
    flex-direction: column;
    text-align: center;
  }
  .quality-text, .quality-image {
    flex: unset;
    width: 100%;
  }
}

/* Two-column layout */
.two-col {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid var(--blue-primary); /* Replaced yellow */
  font-size: 1rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4); /* Blue shadow */
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  border-color: var(--blue-primary);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}

.btn-outline:hover {
  background: var(--card);
}

/* Cards and Grids */
.grid {
  display: grid;
  gap: 20px;
}

.cards {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--card);
  backdrop-filter: var(--blur); /* Glassy effect */
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 20px;
  border-radius: var(--radius);
  /* Removed margin-left: 20px */
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 8px;
  color: var(--text);
  font-size: 1.25rem;
  /* Removed margin-left: 20px */
}

/* Showcase Section (3D Effects) */
.showcase-grid {
  perspective: 1000px; /* Added for 3D effect */
}

.showcase-card[data-3d] {
  transform-style: preserve-3d;
  transition: transform 0.5s;
}

.showcase-card:hover {
  transform: rotateY(10deg) rotateX(5deg); /* 3D tilt */
}

/* Testimonials Carousel */
.carousel {
  overflow: hidden;
  position: relative;
}

.carousel-inner {
  display: flex;
  animation: slide 20s infinite;
}

.carousel-item {
  min-width: 100%;
  text-align: center;
  padding: 20px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@keyframes slide {
  0% { transform: translateX(0); }
  33% { transform: translateX(-100%); }
  66% { transform: translateX(-200%); }
  100% { transform: translateX(0); } /* Loops back */
}

/* Tags */
.tags {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.tag {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px dashed var(--blue-primary);
  font-weight: 600;
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  font-size: 0.95rem;
  position: relative;
  cursor: pointer;
}

.tag:hover {
  background: var(--blue-primary);
  color: var(--white);
  transform: scale(1.05);
}


/* Contact Form */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 16px;
  /* Removed margin-left: 20px */
}

.contact-form .form-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form label {
  font-weight: 700;
  color: var(--text);
  font-size: 1rem;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--muted);
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  outline: none;
  background: var(--white);
  /* Removed margin-left: 20px */
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 6px;
}

@media (max-width: 900px) {
  .contact-form {
    grid-template-columns: 1fr;
  }
}

/* CTA After */
.cta-after {
  margin-top: 32px;
  padding: 20px;
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.cta-after:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Notices */
.notice {
  border-radius: 14px;
  padding: 14px 16px;
  margin: 12px 0 18px;
  font-weight: 600;
  font-size: 1rem;
}

.notice.success {
  background: #ecfdf5;
  border: 1px solid #10b98133;
  color: #065f46;
}

.notice.error {
  background: #fff4f4;
  border: 1px solid #ef44441f;
  color: #b91c1c;
}

/* Footer */
.footer {
  background: var(--card);
  border-top: 1px solid var(--muted);
  padding: 24px 0;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer .to-top {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
}

.footer .to-top:hover {
  color: var(--blue-primary);
}

/* Typography */
h2 {
  font-size: 24px;
  margin: 0 0 14px;
  color: var(--text);
  letter-spacing: -0.5px;
  /* Removed margin-left: 20px */
}

h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1.3rem;
  /* Removed margin-left: 20px */
}

p {
  margin: 0 0 12px;
  font-size: 1.1rem;
  /* Removed margin-left: 20px */
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Accessibility focus states */
a,
button,
input,
textarea {
  transition: box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.4); /* Blue focus ring */
}

/* Animation for fade-in */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Additional responsive tweaks */
@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .home-text h1 {
    font-size: 1.8rem;
  }
}

/* Footer */
.footer {
  background: var(--card);
  border-top: 1px solid var(--muted);
  padding: 24px 0;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Footer Address */
.footer-address {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px; /* Space between symbol, label, and address */
}

.address-label {
  font-weight: 700; /* Bold for the "Address:" label */
  color: var(--text); /* Matches body text for contrast */
  white-space: nowrap; /* Prevents wrapping */
}

.location-symbol {
  font-size: 1.1em; /* Slightly larger than text for emphasis */
  line-height: 1; /* Ensures vertical alignment */
}

.footer .to-top {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
}

.footer .to-top:hover {
  color: var(--blue-primary);
}

.quick-email-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #0066ff;
  color: #fff;
  padding: 10px 15px;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  z-index: 999;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}
.quick-email-btn:hover {
  background: #004bbd;
}
