:root {
  --ink: #0F172A;
  --blue: #2E8BC0;
  --aqua: #00BFA6;
  --ice: #E5F7FB;
  --bg: #FFFFFF;
  --midnight-aqua: #041E2D;
  --midnight-aqua-light: #0A3D58;
  --midnight-aqua-accent: #0D5A7F;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  /* Premium Glassmorphism Background - Light Aqua Base */
  background: 
    /* Base layer - soft aqua tint */
    linear-gradient(135deg, #E5F7FB 0%, #F0FAFC 50%, #E5F7FB 100%),
    /* Depth layer 1 - subtle radial blooms */
    radial-gradient(circle at 20% 30%, rgba(0, 191, 166, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(46, 139, 192, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(229, 247, 251, 0.8) 0%, transparent 70%),
    /* Depth layer 2 - glassmorphism texture */
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.03) 2px,
      rgba(255, 255, 255, 0.03) 4px
    );
  background-attachment: fixed;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  min-height: 100vh;
  position: relative;
}

/* Premium glow effects for depth */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at top left, rgba(0, 191, 166, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(46, 139, 192, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Premium Glassmorphism Cards */
.surface {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 
    0 20px 60px rgba(15, 23, 42, 0.08),
    0 8px 24px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 1.5rem;
  position: relative;
  overflow: hidden;
}

.surface::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent,
    rgba(255, 255, 255, 0.8) 50%,
    transparent
  );
  pointer-events: none;
}

.brand-gradient {
  background: linear-gradient(135deg, var(--blue), var(--aqua));
}

/* Premium Glass Effect */
.glass {
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 
    0 8px 32px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Premium Glass Dark (for dark sections) */
.glass-dark {
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  background: rgba(4, 30, 45, 0.85);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Premium Header with Glassmorphism */
header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  box-shadow: 
    0 4px 24px rgba(15, 23, 42, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  border-bottom: 1px solid rgba(229, 247, 251, 0.5);
}

/* Premium Hero Section - Midnight Aqua */
.hero-premium {
  background: linear-gradient(135deg, var(--midnight-aqua) 0%, var(--midnight-aqua-light) 50%, var(--midnight-aqua-accent) 100%);
  position: relative;
  overflow: hidden;
  /* Ensure dark background for text contrast */
  background-color: var(--midnight-aqua);
}

.hero-premium::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 30% 30%, rgba(0, 191, 166, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(46, 139, 192, 0.08) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.6;
}

.hero-premium::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.03) 50%, transparent 100%),
    radial-gradient(ellipse at top, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* Premium Card Hover Effects */
.premium-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.premium-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
  pointer-events: none;
}

.premium-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 32px 80px rgba(15, 23, 42, 0.12),
    0 12px 32px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.premium-card:hover::before {
  opacity: 1;
}

/* Primary button style */
.btn-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #ffffff;
  border-radius: 0.75rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(46, 139, 192, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-premium:hover {
  transform: translateY(-2px);
  background: var(--blue);
  box-shadow: 0 14px 30px rgba(46, 139, 192, 0.35);
}

.btn-premium:focus {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Smooth transitions */
.transition-all {
  transition: all 0.3s ease;
}

/* Focus states for accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Premium Text Styles - Maximum visibility */
.text-premium-light {
  color: #FFFFFF !important;
  text-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.9),
    0 2px 10px rgba(0, 0, 0, 0.7),
    0 1px 5px rgba(0, 0, 0, 0.5);
}

.text-premium-glow {
  color: #FFFFFF !important;
  text-shadow: 
    0 0 40px rgba(0, 191, 166, 0.6),
    0 4px 20px rgba(0, 0, 0, 0.9),
    0 2px 10px rgba(0, 0, 0, 0.7);
}

/* Ensure text is visible in hero section */
.hero-premium h1,
.hero-premium h2,
.hero-premium h3,
.hero-premium p,
.hero-premium span {
  color: #FFFFFF !important;
}

.hero-premium h1 {
  text-shadow: 
    0 6px 28px rgba(0, 0, 0, 1),
    0 4px 16px rgba(0, 0, 0, 0.95),
    0 2px 8px rgba(0, 0, 0, 0.8),
    0 1px 4px rgba(0, 0, 0, 0.6) !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em;
}

.hero-premium p {
  color: #FFFFFF !important;
  text-shadow: 
    0 4px 20px rgba(0, 0, 0, 1),
    0 2px 12px rgba(0, 0, 0, 0.9),
    0 1px 6px rgba(0, 0, 0, 0.7) !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
}

/* Premium Section Dividers */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, 
    transparent,
    rgba(229, 247, 251, 0.6) 50%,
    transparent
  );
  margin: 4rem 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  body::before {
    background: 
      radial-gradient(ellipse at top left, rgba(0, 191, 166, 0.06) 0%, transparent 50%),
      radial-gradient(ellipse at bottom right, rgba(46, 139, 192, 0.06) 0%, transparent 50%);
  }
  
  .premium-card:hover {
    transform: translateY(-4px);
  }
}

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

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Toast notifications */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  animation: slideIn 0.3s ease;
}

.toast.success {
  border-left: 4px solid var(--aqua);
}

.toast.error {
  border-left: 4px solid #ef4444;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

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

.animate-fade-in {
  animation: fadeIn 0.8s ease-out;
}

/* Premium Input Styles */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
  background: rgba(255, 255, 255, 1);
  box-shadow: 
    0 4px 12px rgba(46, 139, 192, 0.15),
    0 0 0 3px rgba(46, 139, 192, 0.1);
  border-color: var(--blue);
}

/* Ensure main content is above background layers */
main {
  position: relative;
  z-index: 1;
}

/* Premium Section Backgrounds */
section {
  position: relative;
}

/* Premium Services & Pricing Page Enhancements */
@keyframes float-gentle {
  0%, 100% { 
    transform: translate(0, 0) scale(1);
    opacity: 0.2;
  }
  50% { 
    transform: translate(30px, -30px) scale(1.1);
    opacity: 0.25;
  }
}

/* Enhanced card hover effects for services */
.premium-card {
  position: relative;
  overflow: hidden;
}

.premium-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.premium-card:hover::after {
  opacity: 1;
}

/* Smooth scale animation */
@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.premium-card {
  animation: scale-in 0.5s ease-out;
}

/* Enhanced gradient text */
.bg-clip-text {
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Improved backdrop blur support */
@supports (backdrop-filter: blur(20px)) {
  .surface {
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
  }
}

/* Pulse animation for background blobs */
@keyframes pulse-slow {
  0%, 100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(1.05);
  }
}

/* Ensure z-index layering is correct */
section > .absolute {
  z-index: 0;
}

section > .container {
  position: relative;
  z-index: 10;
}

