/* Enhanced Base Styles - Universal Cross Browser */
body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #0f2a2f 0%, #1a4a4a 50%, #2d8a7a 100%);
  color: #111827;
  overflow-x: hidden;
  /* Performance optimizations */
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  overflow-x: hidden;
}

/* Hero Video and Overlay - Optimized for LCP */
#hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* Performance optimizations */
  will-change: opacity;
  transform: translateZ(0);
}

/* Hero content optimization for LCP */
.hero-wrapper {
  /* Ensure content is visible immediately */
  opacity: 1 !important;
  transform: none !important;
}

.hero-wrapper h1 {
  /* Critical content - ensure it's visible */
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

/* Hero Overlay - Universal Cross Browser */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 10;
}

/* Fixed Navigation */
.nav-glass {
  background: rgba(15, 42, 47, 0.95);
  border-bottom: 1px solid rgba(104, 219, 184, 0.2);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
  transform: translateZ(0);
  will-change: transform;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Add padding to body to account for fixed navbar */
body {
  padding-top: 80px; /* Adjust based on navbar height */
}

/* Enhanced navigation link animations */
.nav-glass a[href^="#"] {
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateZ(0);
}

.nav-glass a[href^="#"]::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #33a1b5, #68dbb8);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 1px;
}

.nav-glass a[href^="#"]:hover::before {
  width: 100%;
}

.nav-glass a[href^="#"]:hover {
  transform: translateY(-1px);
  text-shadow: 0 2px 8px rgba(104, 219, 184, 0.3);
}

.nav-glass a[href^="#"]:active {
  transform: translateY(0) scale(0.95);
}

/* Smooth scroll behavior for the entire page */
html {
  scroll-behavior: smooth;
}

/* Enhanced section transitions */
section {
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Active navigation state */
.nav-glass a[href^="#"].active {
  color: #68dbb8 !important;
}

.nav-glass a[href^="#"].active::before {
  width: 100%;
}

.nav-glass.scrolled {
  background: rgba(15, 42, 47, 0.98);
  box-shadow: 0 8px 32px 0 rgba(15, 42, 47, 0.8);
  animation: slideDown 0.8s ease-out forwards;
}

/* CTA Button */
.cta-button {
  background: linear-gradient(135deg, #33a1b5 0%, #4bb3c7 50%, #68dbb8 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(51, 161, 181, 0.4);
  transform: translateZ(0);
  appearance: none;
  min-height: 44px;
  min-width: 44px;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(51, 161, 181, 0.6);
  background: linear-gradient(135deg, #2d8a7a 0%, #33a1b5 50%, #4bb3c7 100%);
}

.cta-button:active {
  transform: translateY(0);
}

/* Animations */
.fade-in {
  animation: fadeInUp 1.2s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.float {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { 
    transform: translateY(0px);
  }
  50% { 
    transform: translateY(-20px);
  }
}

/* Gradient Text - Universal */
.gradient-text {
  background: linear-gradient(135deg, #33a1b5 0%, #4bb3c7 50%, #68dbb8 100%);
  background-clip: text;
  color: transparent;
}

/* Card Effects */
.hover-card {
  transition: all 0.3s ease;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transform: translateZ(0);
  will-change: transform;
  position: relative;
  overflow: hidden;
}

.hover-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(104, 219, 184, 0.1), transparent);
  transition: left 0.5s ease;
}

.hover-card:hover::before {
  left: 100%;
}

.hover-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(15, 42, 47, 0.3);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(104, 219, 184, 0.3);
}

/* Social Icons */
.social-icon {
  transition: all 0.3s ease;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  transform: translateZ(0);
  position: relative;
  overflow: hidden;
}

.social-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.3s ease;
  transform: translate(-50%, -50%);
}

.social-icon:hover::before {
  width: 100%;
  height: 100%;
}

.social-icon:hover {
  transform: translateY(-3px) scale(1.1);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
}

/* Demo Form */
.demo-form {
  background: rgba(15, 42, 47, 0.8);
  border: 1px solid rgba(104, 219, 184, 0.2);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(15, 42, 47, 0.3);
  position: relative;
  overflow: hidden;
}

.demo-input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 12px 16px;
  color: white;
  font-size: 16px;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.demo-input:focus {
  outline: none;
  border-color: #68dbb8;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(104, 219, 184, 0.1);
}

.demo-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* Particles */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  background: rgba(104, 219, 184, 0.3);
  border-radius: 50%;
  animation: particleFloat 8s infinite linear;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* Parallax Sections */
.parallax-section {
  position: relative;
  overflow: hidden;
}

.parallax-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: inherit;
  transform: translateZ(0);
  will-change: transform;
}

.parallax-section > * {
  position: relative;
  z-index: 2;
}

/* Section Spacing */
section {
  position: relative;
  z-index: 1;
}

.dark-section .hover-card {
  background: rgba(255, 255, 255, 0.05);
}

.dark-section .hover-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Enhanced Mobile Responsive */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  /* Mobile Typography */
  h1 {
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
  }

  h2 {
    font-size: 2rem !important;
    line-height: 1.3 !important;
  }

  h3 {
    font-size: 1.5rem !important;
  }

  p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }

  /* Mobile Spacing */
  section {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .py-24, .py-28, .py-32 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .mb-16, .mb-8, .mb-6, .mb-4 {
    margin-bottom: 1.5rem !important;
  }

  .mt-16, .mt-10, .mt-8, .mt-6 {
    margin-top: 1.5rem !important;
  }

  /* Mobile Navigation */
  .nav-glass {
    padding: 0.75rem 1rem !important;
    background: rgba(15, 42, 47, 0.98) !important;
  }
  
  /* Adjust body padding for mobile */
  body {
    padding-top: 70px !important; /* Smaller padding for mobile */
  }
  
  /* Mobile navigation enhancements */
  .nav-glass a[href^="#"] {
    font-size: 0.9rem !important;
    padding: 0.5rem 0.75rem !important;
  }
  
  .nav-glass a[href^="#"]::before {
    bottom: -1px !important;
    height: 1px !important;
  }
  
  .nav-glass a[href^="#"]:hover {
    transform: translateY(0) !important;
  }
  
  .nav-glass .max-w-7xl {
    padding-left: 0 !important;
    padding-right: 0 !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
  
  .nav-glass img {
    height: 2rem !important;
  }
  
  .nav-glass a img {
    height: 2rem !important;
  }
  
  /* Mobile Menu */
  #mobileMenu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 100% !important;
    background: rgba(15, 42, 47, 0.98) !important;
    z-index: 1000 !important;
    transform: translateY(-100%) !important;
    opacity: 0 !important;
    transition: all 0.3s ease !important;
    visibility: hidden !important;
  }
  
  #mobileMenu.active {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  #mobileMenu nav {
    padding: 1.5rem !important;
  }
  
  #mobileMenu a {
    display: block !important;
    padding: 1rem 1.5rem !important;
    color: white !important;
    text-decoration: none !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    margin-bottom: 0.5rem !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.025em !important;
  }
  
  #mobileMenu a:hover {
    background: rgba(104, 219, 184, 0.1) !important;
    color: #68dbb8 !important;
    transform: translateX(4px) !important;
  }
  
  #mobileMenu a:last-child {
    margin-bottom: 0 !important;
  }

  /* Mobile Buttons */
  .cta-button {
    padding: 12px 24px !important;
    font-size: 16px !important;
    border-radius: 12px !important;
  }

  /* Mobile Cards */
  .hover-card {
    padding: 1.5rem !important;
    border-radius: 16px !important;
  }

  .rounded-3xl, .rounded-2xl {
    border-radius: 16px !important;
  }

  /* Mobile Forms */
  .demo-input {
    padding: 12px 16px !important;
    font-size: 16px !important;
    border-radius: 12px !important;
  }

  /* Mobile Grid Layouts */
  .grid {
    gap: 1.5rem !important;
  }

  .md\:grid-cols-2, .md\:grid-cols-3, .md\:grid-cols-4 {
    grid-template-columns: 1fr !important;
  }

  /* Mobile Flex Layouts */
  .flex {
    flex-direction: column !important;
  }

  .md\:flex-row {
    flex-direction: column !important;
  }

  .items-center {
    align-items: center !important;
  }

  .justify-center {
    justify-content: center !important;
  }

  /* Mobile Images */
  img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Mobile Hero Section */
  .hero-content {
    padding: 2rem 1rem !important;
  }

  .hero-content h1 {
    font-size: 2.5rem !important;
  }

  .hero-content p {
    font-size: 1.1rem !important;
  }

  /* Mobile Trust Indicators */
  .trust-indicators {
    flex-wrap: wrap !important;
    gap: 1rem !important;
  }

  .trust-indicators > div {
    flex: 1 1 auto !important;
    min-width: 120px !important;
    text-align: center !important;
  }

  /* Mobile Footer */
  .footer-cols {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .footer-cols > div {
    text-align: center !important;
  }

  .footer-cols .social-icon {
    margin: 0 auto !important;
  }

  /* Mobile Footer Social Icons */
  .social-icon {
    width: 2.5rem !important;
    height: 2.5rem !important;
    font-size: 1rem !important;
  }

  /* Mobile Contact Info */
  .contact-info {
    grid-template-columns: 1fr !important;
  }

  .contact-info > div {
    text-align: center !important;
    padding: 1rem !important;
  }

  /* Mobile FAQ */
  .faq-item {
    margin-bottom: 1rem !important;
  }

  .faq-item button {
    padding: 1rem !important;
    font-size: 1rem !important;
  }

  /* Mobile Pricing */
  .pricing-grid {
    grid-template-columns: 1fr !important;
  }

  .pricing-card {
    padding: 1.5rem !important;
  }

  /* Mobile Social Grid */
  .social-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .social-card {
    padding: 1.5rem !important;
  }

  /* Mobile Demo Booking */
  .demo-booking {
    padding: 2rem 1rem !important;
  }

  .demo-form {
    padding: 1.5rem !important;
  }

  /* Mobile Benefits List */
  .benefits-list {
    gap: 1rem !important;
  }

  .benefits-list > div {
    padding: 1rem !important;
  }

  /* Mobile Scroll Indicator */
  .scroll-indicator {
    bottom: 1rem !important;
  }

  /* Mobile Video */
  #hero-video {
    object-position: center !important;
  }

  /* Mobile Touch Targets */
  button, a, input, select, textarea {
    min-height: 44px !important;
    min-width: 44px !important;
    touch-action: manipulation !important;
  }

  /* Mobile Spacing */
  .space-y-4 > * + * {
    margin-top: 1rem !important;
  }

  .space-y-6 > * + * {
    margin-top: 1.5rem !important;
  }

  .space-y-8 > * + * {
    margin-top: 2rem !important;
  }

  /* Mobile Max Widths */
  .max-w-6xl, .max-w-4xl, .max-w-md, .max-w-3xl {
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Mobile Text Alignment */
  .text-center {
    text-align: center !important;
  }

  /* Mobile Shadows */
  .shadow-2xl {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
  }

  /* Mobile Animations */
  .float {
    animation: none !important;
  }

  .animate-pulse {
    animation: none !important;
  }

  /* Mobile Backgrounds */
  [style*="background: linear-gradient"], [style*="background: url"] {
    background-attachment: scroll !important;
  }

  /* Mobile Navigation Enhancements */
  .nav-glass {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Mobile Card Enhancements */
  .hover-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Mobile Form Enhancements */
  .demo-form {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Mobile Input Enhancements */
  .demo-input {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Menu Toggle Button */
  #menuToggle {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-around !important;
    width: 40px !important;
    height: 40px !important;
    background: rgba(104, 219, 184, 0.1) !important;
    border: 1px solid rgba(104, 219, 184, 0.2) !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    padding: 0 !important;
    z-index: 1001 !important;
    position: relative !important;
    transition: all 0.3s ease !important;
  }
  
  #menuToggle:hover {
    background: rgba(104, 219, 184, 0.2) !important;
    transform: scale(1.05) !important;
  }
  
  #menuToggle.active {
    background: rgba(104, 219, 184, 0.3) !important;
    border-color: rgba(104, 219, 184, 0.4) !important;
  }
  
  #menuToggle.active svg {
    transform: rotate(90deg) !important;
  }
  
  #menuToggle::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 44px !important;
    height: 44px !important;
    transform: translate(-50%, -50%) !important;
    background: rgba(104, 219, 184, 0.1) !important;
    border-radius: 50% !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
  }
  
  #menuToggle:active::before {
    opacity: 1 !important;
  }

  /* Hero Section Mobile Optimizations */
  .min-h-screen {
    min-height: 100vh !important;
    min-height: calc(var(--vh, 1vh) * 100) !important;
  }

  /* Ensure hero content is properly centered on mobile */
  @media (max-width: 768px) {
    .min-h-screen {
      min-height: 100vh;
      min-height: calc(var(--vh, 1vh) * 100);
      padding-top: 60px; /* Account for fixed navbar */
    }
  }
}

/* Accent Colors */
.accent-primary {
  background: linear-gradient(135deg, #33a1b5 0%, #4bb3c7 100%);
}

.accent-secondary {
  background: linear-gradient(135deg, #4bb3c7 0%, #68dbb8 100%);
}

.accent-dark {
  background: linear-gradient(135deg, #1a4a4a 0%, #33a1b5 100%);
}

.accent-light {
  background: linear-gradient(135deg, #68dbb8 0%, #4bb3c7 100%);
}

/* Success animation enhancements */
.success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease-out;
}

.success-content {
  background: linear-gradient(135deg, #33a1b5 0%, #68dbb8 100%);
  padding: 3rem;
  border-radius: 20px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  animation: slideUp 0.5s ease-out;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  max-width: 90vw;
  width: 400px;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

.success-icon svg {
  width: 40px;
  height: 40px;
  color: white;
  animation: checkmark 0.6s ease-out 0.3s both;
}

.success-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { 
    transform: translateY(50px) scale(0.9);
    opacity: 0;
  }
  to { 
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes checkmark {
  from { 
    transform: scale(0) rotate(-45deg);
    opacity: 0;
  }
  to { 
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

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

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}