/* Optimized CSS for Umbrella Insurance Landing Page */
/* Performance optimizations and additional parallax effects */

/* CSS Variables for better performance and maintainability */
:root {
  --primary-blue: #0071ce;
  --dark-blue: #003366;
  --darker-blue: #002244;
  --light-gray: #f8f9fa;
  --medium-gray: #e9ecef;
  --text-dark: #333;
  --text-medium: #555;
  --text-light: #5f6368;
  --white: #ffffff;
  --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.15);
  --gradient-primary: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
  --gradient-light: linear-gradient(135deg, var(--light-gray), var(--medium-gray));
  --transition-fast: 0.3s ease;
  --transition-medium: 0.6s ease;
  --transition-slow: 0.8s ease;
}

/* Critical CSS - Above the fold optimizations */
/* RESET - Optimized for performance */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Lock appearance to light theme even if device is in dark mode */
@media (prefers-color-scheme: dark) {
  html, body {
    background-color: #ffffff !important;
    color: #000000 !important;
  }

  * {
    background-color: inherit !important;
    color: inherit !important;
    border-color: inherit !important;
    box-shadow: inherit !important;
  }

  img, svg {
    filter: none !important;
  }
}


/* BODY - Optimized font loading and rendering */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Smooth scrolling with performance optimization */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Performance-optimized animation keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translate3d(-30px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translate3d(30px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translate3d(0, 50px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes underlineGrow {
  from { width: 0%; }
  to { width: 100%; }
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

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

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Base animation classes with GPU acceleration */
.animate-in {
  animation: fadeInUp var(--transition-slow) ease forwards;
}

.hero-animate {
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
  will-change: transform, opacity;
}

/* HEADER NAV - Optimized with backdrop-filter */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  border-bottom: 1px solid #e0e0e0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all var(--transition-fast);
  will-change: transform;
}

.logo h2 {
  font-size: 2rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo h2 span {
  color: var(--primary-blue);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  transition: all var(--transition-fast);
  padding: 0.5rem 0;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-fast);
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  color: var(--primary-blue);
  transform: translateY(-2px);
}

/* HERO SECTION - Enhanced with parallax */
.hero-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4rem 3rem;
  gap: 3rem;
  min-height: 80vh;
  background: var(--gradient-light);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(0, 113, 206, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 51, 102, 0.1) 0%, transparent 50%);
  pointer-events: none;
  will-change: transform;
}

.hero-text-block {
  max-width: 50%;
  opacity: 0;
  z-index: 2;
  position: relative;
}

.subheading {
  font-size: 1.2rem;
  color: var(--primary-blue);
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-text-block h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-text-block hr {
  width: 4rem;
  height: 3px;
  background: var(--gradient-primary);
  border: none;
  margin-bottom: 1.5rem;
  border-radius: 2px;
}

.hero-box {
  border: 2px solid var(--primary-blue);
  border-left-width: 4px;
  border-right: none;
  border-bottom: none;
  border-radius: 25px 0 0 0;
  padding: 2.5rem;
  max-width: 50%;
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-medium);
  transition: all var(--transition-fast);
  will-change: transform;
}

.hero-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-medium);
}

/* IMAGE SECTION - Optimized for performance */
.hero-image {
  max-width: 45%;
  opacity: 0;
  will-change: transform;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: var(--shadow-heavy);
  transition: all var(--transition-fast);
  will-change: transform;
}

.hero-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

/* Our Mission Section - Enhanced parallax */
.mission {
  min-height: 60vh;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, var(--darker-blue), var(--dark-blue));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.mission::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
  opacity: 0.3;
  will-change: transform;
}

.mission h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #f1f3f4;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--transition-slow);
}

.mission h2.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.mission h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  height: 4px;
  width: 0%;
  background: linear-gradient(135deg, var(--primary-blue), #00c6ff);
  transition: all var(--transition-slow);
  transform: translateX(-50%);
  border-radius: 2px;
}

.mission h2.animate-in::after {
  width: 80px;
}

.mission blockquote {
  font-family: 'Georgia', serif;
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.8;
  max-width: 800px;
  color: #f1f3f4;
  quotes: """ """;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--transition-slow) 0.3s;
}

.mission blockquote.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.mission blockquote::before,
.mission blockquote::after {
  font-size: 3rem;
  color: var(--primary-blue);
  position: absolute;
}

.mission blockquote::before {
  content: open-quote;
  left: -2rem;
  top: -1rem;
}

.mission blockquote::after {
  content: close-quote;
  right: -2rem;
  bottom: -1rem;
}

/* How It Works Section - Enhanced with performance optimizations */
.how-it-works {
  background: var(--gradient-light);
  padding: 5rem 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.how-it-works::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(0, 113, 206, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(0, 51, 102, 0.1) 0%, transparent 50%);
  pointer-events: none;
  will-change: transform;
}

.section-title {
  font-size: 2.8rem;
  color: var(--dark-blue);
  margin-bottom: 4rem;
  position: relative;
  font-family: 'Georgia', serif;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--transition-slow);
  z-index: 2;
}

.section-title.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -15px;
  height: 4px;
  width: 0;
  background: var(--gradient-primary);
  transition: all var(--transition-slow) 0.3s;
  transform: translateX(-50%);
  border-radius: 2px;
}

.section-title.animate-in::after {
  width: 100px;
}

.process-timeline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1400px;
  width: 100%;
  position: relative;
  z-index: 2;
  margin-bottom: 4rem;
}

.timeline-progress {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(0, 113, 206, 0.2);
  border-radius: 2px;
  z-index: 1;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: width 2s ease;
  will-change: width;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 280px;
  margin: 0 1rem;
  opacity: 0;
  transform: translateY(50px);
  transition: all var(--transition-slow);
  position: relative;
  z-index: 3;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 2rem 1.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-medium);
  will-change: transform, opacity;
}

.step.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.step:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
}

.step-icon {
  position: relative;
  margin-bottom: 1.5rem;
}

.circle {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  color: white;
  font-size: 1.8rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  box-shadow: 0 8px 25px rgba(0, 51, 102, 0.3);
  position: relative;
  z-index: 2;
  will-change: transform;
}

.icon-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: rgba(0, 113, 206, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: all var(--transition-fast);
  will-change: transform;
}

.icon-bg svg {
  width: 32px;
  height: 32px;
  color: var(--primary-blue);
  opacity: 0.7;
}

.step:hover .icon-bg {
  background: rgba(0, 113, 206, 0.2);
  transform: translate(-50%, -50%) scale(1.1);
}

.step:hover .circle {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(0, 51, 102, 0.4);
}

.step-content h3 {
  font-size: 1.5rem;
  color: var(--darker-blue);
  margin-bottom: 1rem;
  font-weight: 600;
}

.step-content p {
  color: var(--text-medium);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.step-details {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.step:hover .step-details {
  opacity: 1;
  max-height: 200px;
}

.step-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.step-details li {
  color: var(--primary-blue);
  font-size: 0.9rem;
  margin: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.step-details li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-blue);
  font-weight: bold;
}

.step-animation {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 40px;
  height: 40px;
  pointer-events: none;
}

.pulse-ring {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 2px solid var(--primary-blue);
  border-radius: 50%;
  animation: pulse-ring 2s infinite;
}

.pulse-ring.delayed {
  animation-delay: 0.5s;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.radar-sweep {
  width: 30px;
  height: 30px;
  border: 2px solid var(--primary-blue);
  border-radius: 50%;
  position: relative;
  animation: radar 3s infinite linear;
}

.radar-sweep::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 2px;
  background: var(--primary-blue);
  transform-origin: left center;
  animation: sweep 3s infinite linear;
}

@keyframes radar {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes sweep {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.alert-flash {
  width: 30px;
  height: 30px;
  background: #ff6b6b;
  border-radius: 50%;
  animation: flash 1.5s infinite;
}

@keyframes flash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.payment-flow {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.coin {
  width: 8px;
  height: 8px;
  background: #ffd700;
  border-radius: 50%;
  animation: coinDrop 2s infinite;
}

.coin.delayed {
  animation-delay: 0.3s;
}

.coin.more-delayed {
  animation-delay: 0.6s;
}

@keyframes coinDrop {
  0% {
    transform: translateY(-20px);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(20px);
    opacity: 0;
  }
}

.connector {
  display: flex;
  align-items: center;
  margin: 0 1rem;
  position: relative;
  z-index: 2;
}

.connector-line {
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.connector-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: shimmer 2s infinite;
}

.connector-arrow {
  font-size: 1.5rem;
  color: var(--primary-blue);
  margin-left: -10px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

.process-summary {
  width: 100%;
  max-width: 800px;
  margin-top: 3rem;
  z-index: 2;
  position: relative;
}

.summary-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-heavy);
  text-align: center;
  border: 1px solid rgba(0, 113, 206, 0.2);
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--transition-slow);
  will-change: transform, opacity;
}

.summary-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.summary-card h4 {
  font-size: 1.8rem;
  color: var(--dark-blue);
  margin-bottom: 1rem;
  font-weight: 600;
}

.summary-card p {
  font-size: 1.1rem;
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.benefits {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.benefit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 120px;
}

.benefit-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.benefit span:last-child {
  font-size: 0.9rem;
  color: var(--dark-blue);
  font-weight: 600;
  text-align: center;
}

/* Why Choose Section - Enhanced */
.why-choose {
  padding: 5rem 2rem;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.why-choose::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 80% 20%, rgba(0, 113, 206, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(0, 51, 102, 0.05) 0%, transparent 50%);
  pointer-events: none;
  will-change: transform;
}

.why-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 4rem;
  position: relative;
  z-index: 2;
}

.why-image {
  flex: 1;
  max-width: 500px;
  opacity: 0;
  transform: translateX(-50px);
  transition: all var(--transition-slow);
  will-change: transform, opacity;
}

.why-image.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.why-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: var(--shadow-heavy);
  transition: all var(--transition-fast);
  will-change: transform;
}

.why-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

.why-text {
  flex: 1;
  max-width: 550px;
  border-left: 4px solid var(--primary-blue);
  padding-left: 2rem;
  opacity: 0;
  transform: translateX(50px);
  transition: all var(--transition-slow) 0.2s;
  will-change: transform, opacity;
}

.why-text.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.why-text .tag {
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.why-text h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin: 1rem 0;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.underline {
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  margin: 1rem 0 1.5rem 0;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.underline::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: shimmer 2s infinite 1s;
}

.why-text p {
  font-size: 1.1rem;
  color: var(--text-medium);
  line-height: 1.8;
  font-style: italic;
}

/* Contact Section - Enhanced */
.contact-wrapper {
  background: var(--gradient-light);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}

.contact-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 70%, rgba(0, 113, 206, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(0, 51, 102, 0.08) 0%, transparent 50%);
  pointer-events: none;
  will-change: transform;
}

.form-box {
  background: var(--white);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: var(--shadow-medium);
  width: 100%;
  max-width: 800px;
  border: 1px solid #e0e0e0;
  position: relative;
  opacity: 0;
  transform: translateY(50px);
  transition: all var(--transition-slow);
  z-index: 2;
  will-change: transform, opacity;
}

.form-box.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.form-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 15px 15px 0 0;
}

.form-box h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #202124;
  text-align: center;
  font-weight: 700;
}

.form-box .subtext {
  font-size: 1.1rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 2.5rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

.contact-form label {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 500;
  text-align: left;
  position: absolute;
  left: 12px;
  top: 12px;
  transition: all var(--transition-fast);
  pointer-events: none;
  background: white;
  padding: 0 4px;
}

.contact-form label.floating {
  top: -8px;
  font-size: 0.85rem;
  color: #1a73e8;
}

.contact-form input,
.contact-form textarea {
  padding: 15px 12px;
  font-size: 1rem;
  border: 2px solid #dadce0;
  border-radius: 8px;
  transition: all var(--transition-fast);
  width: 100%;
  background: transparent;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.form-group.focused input,
.form-group.focused textarea {
  border-color: #1a73e8;
}

.contact-form input.error,
.contact-form textarea.error {
  border-color: #ea4335;
  box-shadow: 0 0 0 3px rgba(234, 67, 53, 0.1);
}

.error-message {
  color: #ea4335;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  animation: fadeInUp var(--transition-fast);
}

.success-message {
  background: #e8f5e8;
  color: #137333;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  text-align: center;
  border: 1px solid #ceead6;
  animation: fadeInUp 0.5s ease;
}

.contact-form button {
  padding: 15px;
  background: linear-gradient(135deg, #1a73e8, #1557b0);
  color: white;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
  will-change: transform;
}

.contact-form button:hover {
  background: linear-gradient(135deg, #1557b0, #1a73e8);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(26, 115, 232, 0.3);
}

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

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

/* Footer - Enhanced */
.footer {
  background: linear-gradient(135deg, #0b132b, #1c2541);
  color: var(--white);
  padding: 3rem 2rem 2rem;
  font-family: 'Segoe UI', sans-serif;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  width: 60px;
  height: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-company-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-blue), #00c6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-center h4,
.footer-right h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--primary-blue);
  font-weight: 600;
}

.footer-center ul {
  list-style: none;
  padding: 0;
}

.footer-center li {
  margin: 0.8rem 0;
}

.footer-center a {
  color: #cccccc;
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
}

.footer-center a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-blue);
  transition: width var(--transition-fast);
}

.footer-center a:hover::after {
  width: 100%;
}

.footer-center a:hover {
  color: var(--primary-blue);
  transform: translateX(5px);
}

.footer-right p {
  margin: 0.8rem 0;
  font-size: 1rem;
  color: #cccccc;
}

.footer-bottom {
  margin-top: 2rem;
  text-align: center;
  border-top: 1px solid #1c2541;
  padding-top: 1.5rem;
  color: #aaa;
  font-size: 0.9rem;
}

.footer-socials {
  margin-bottom: 1rem;
}

.footer-socials a {
  margin: 0 1rem;
  color: var(--white);
  text-decoration: none;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
  display: inline-block;
}

.footer-socials a:hover {
  color: var(--primary-blue);
  transform: translateY(-3px);
}

/* Performance optimizations */
.parallax-element {
  will-change: transform;
  transform: translateZ(0);
}

/* Preload critical resources */
.preload {
  content-visibility: auto;
  contain-intrinsic-size: 1px 5000px;
}

/* Reduce motion for accessibility */
@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;
  }
  
  .parallax-element {
    transform: none !important;
  }
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
  .hero-text-block h1,
  .why-text h2 {
    -webkit-text-fill-color: var(--dark-blue);
    color: var(--dark-blue);
  }
}

/* Responsive Design - Mobile First Approach */
@media (max-width: 1200px) {
  .hero-section {
    padding: 3rem 2rem;
    gap: 2rem;
  }
  
  .hero-text-block h1 {
    font-size: 2.8rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .process-timeline {
    max-width: 900px;
  }
  
  .step {
    max-width: 250px;
  }
}

@media (max-width: 1024px) {
  header {
    padding: 1.2rem 2rem;
  }
  
  .hero-section {
    padding: 3rem 2rem;
    min-height: 70vh;
  }
  
  .hero-text-block h1 {
    font-size: 2.5rem;
  }
  
  .hero-box {
    padding: 2rem;
  }
  
  .section-title {
    font-size: 2.3rem;
    margin-bottom: 3rem;
  }
  
  .mission {
    padding: 3rem 2rem;
    min-height: 50vh;
  }
  
  .mission h2 {
    font-size: 2.2rem;
  }
  
  .mission blockquote {
    font-size: 1.3rem;
  }
  
  .how-it-works {
    padding: 4rem 2rem;
  }
  
  .why-content {
    gap: 3rem;
  }
  
  .why-text h2 {
    font-size: 2.3rem;
  }
  
  .contact-wrapper {
    padding: 4rem 2rem;
  }
  
  .form-box {
    padding: 2.5rem;
  }
}

@media (max-width: 768px) {
  header {
    padding: 1rem 1.5rem;
    flex-direction: column;
    gap: 1rem;
    position: relative;
  }
  
  .logo h2 {
    font-size: 1.8rem;
  }
  
  nav ul {
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  nav a {
    font-size: 1rem;
    padding: 0.3rem 0;
  }
  
  .hero-section {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
    min-height: auto;
    gap: 2rem;
  }
  
  .hero-text-block,
  .hero-box {
    max-width: 100%;
  }
  
  .hero-text-block h1 {
    font-size: 2.2rem;
    line-height: 1.3;
  }
  
  .hero-box {
    border: 2px solid var(--primary-blue);
    border-radius: 20px;
    padding: 2rem 1.5rem;
  }
  
  .hero-image {
    max-width: 100%;
    margin-top: 1rem;
  }
  
  .mission {
    padding: 3rem 1.5rem;
    min-height: auto;
  }
  
  .mission h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
  
  .mission blockquote {
    font-size: 1.2rem;
    line-height: 1.7;
  }
  
  .mission blockquote::before,
  .mission blockquote::after {
    font-size: 2.5rem;
  }
  
  .mission blockquote::before {
    left: -1.5rem;
    top: -0.8rem;
  }
  
  .mission blockquote::after {
    right: -1.5rem;
    bottom: -0.8rem;
  }
  
  .how-it-works {
    padding: 3rem 1.5rem;
    min-height: auto;
  }
  
  .section-title {
    font-size: 2rem;
    margin-bottom: 2.5rem;
  }
  
  .process-timeline {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .timeline-progress {
    display: none;
  }
  
  .step {
    width: 100%;
    max-width: 300px;
    margin-bottom: 1rem;
  }
  
  .connector {
    transform: rotate(90deg);
    margin: 0.5rem 0;
  }
  
  .connector-line {
    width: 30px;
    height: 4px;
  }
  
  .connector-arrow {
    transform: rotate(90deg);
    margin-left: -5px;
  }
  
  .why-choose {
    padding: 3rem 1.5rem;
  }
  
  .why-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  .why-image {
    max-width: 100%;
    transform: none;
  }
  
  .why-text {
    border-left: none;
    border-top: 4px solid var(--primary-blue);
    padding-left: 0;
    padding-top: 1.5rem;
    max-width: 100%;
    transform: none;
  }
  
  .why-text h2 {
    font-size: 2rem;
  }
  
  .contact-wrapper {
    padding: 3rem 1.5rem;
    min-height: auto;
  }
  
  .form-box {
    padding: 2rem 1.5rem;
    margin: 0;
    border-radius: 12px;
  }
  
  .form-box h2 {
    font-size: 1.8rem;
  }
  
  .form-box .subtext {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .footer {
    padding: 2.5rem 1.5rem 1.5rem;
  }
  
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .footer-left {
    align-items: center;
  }
  
  .footer-section {
    min-width: auto;
  }
  
  .footer-socials a {
    margin: 0 0.8rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  header {
    padding: 0.8rem 1rem;
  }
  
  .logo h2 {
    font-size: 1.6rem;
  }
  
  nav ul {
    gap: 1rem;
  }
  
  nav a {
    font-size: 0.9rem;
  }
  
  .hero-section {
    padding: 1.5rem 1rem;
  }
  
  .hero-text-block h1 {
    font-size: 1.8rem;
  }
  
  .subheading {
    font-size: 1rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-box {
    padding: 1.5rem;
    border-radius: 15px;
  }
  
  .mission {
    padding: 2rem 1rem;
  }
  
  .mission h2 {
    font-size: 1.6rem;
  }
  
  .mission blockquote {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .mission blockquote::before,
  .mission blockquote::after {
    font-size: 2rem;
  }
  
  .how-it-works {
    padding: 2rem 1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }
  
  .step {
    max-width: 280px;
    padding: 1.5rem 1rem;
  }
  
  .circle {
    width: 60px;
    height: 60px;
    font-size: 1.4rem;
  }
  
  .step-content h3 {
    font-size: 1.2rem;
  }
  
  .step-content p {
    font-size: 0.95rem;
  }
  
  .why-choose {
    padding: 2rem 1rem;
  }
  
  .why-text h2 {
    font-size: 1.8rem;
  }
  
  .why-text p {
    font-size: 1rem;
  }
  
  .contact-wrapper {
    padding: 2rem 1rem;
  }
  
  .form-box {
    padding: 1.5rem;
    border-radius: 10px;
  }
  
  .form-box h2 {
    font-size: 1.5rem;
  }
  
  .form-box .subtext {
    font-size: 0.95rem;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 12px;
    font-size: 1rem;
  }
  
  .contact-form button {
    padding: 12px;
    font-size: 1rem;
  }
  
  .footer {
    padding: 2rem 1rem 1rem;
  }
  
  .footer-company-name {
    font-size: 1.1rem;
  }
  
  .footer-center h4,
  .footer-right h4 {
    font-size: 1.1rem;
  }
  
  .footer-right p {
    font-size: 0.9rem;
  }
  
  .footer-socials a {
    margin: 0 0.5rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 360px) {
  .hero-text-block h1 {
    font-size: 1.6rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .mission h2 {
    font-size: 1.4rem;
  }
  
  .why-text h2 {
    font-size: 1.6rem;
  }
  
  .form-box h2 {
    font-size: 1.3rem;
  }
  
  .step {
    max-width: 250px;
  }
  
  .circle {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .step:hover .circle,
  .hero-image img:hover,
  .why-image img:hover {
    transform: none;
  }
  
  .contact-form button:hover {
    transform: none;
    background: linear-gradient(135deg, #1a73e8, #1557b0);
  }
  
  nav a:hover {
    transform: none;
  }
  
  .footer-center a:hover {
    transform: none;
  }
  
  .footer-socials a:hover {
    transform: none;
  }
  
  /* Add touch-friendly tap targets */
  nav a,
  .contact-form button,
  .footer-center a,
  .footer-socials a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .step {
    padding: 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    margin-bottom: 1.5rem;
  }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-section {
    flex-direction: row;
    min-height: 60vh;
    padding: 2rem 1.5rem;
  }
  
  .hero-text-block,
  .hero-box {
    max-width: 50%;
  }
  
  .hero-image {
    max-width: 45%;
    margin-top: 0;
  }
  
  .mission {
    min-height: 50vh;
    padding: 2rem 1.5rem;
  }
  
  .how-it-works {
    padding: 3rem 1.5rem;
  }
  
  .process-timeline {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .step {
    width: 200px;
    margin: 0.5rem;
  }
  
  .connector {
    transform: none;
    margin: 0 0.5rem;
  }
  
  .connector-line {
    width: 30px;
    height: 4px;
  }
  
  .connector-arrow {
    transform: none;
    margin-left: -5px;
  }
}

/* Print styles */
@media print {
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  header,
  .footer {
    display: none;
  }
  
  .hero-section,
  .mission,
  .how-it-works,
  .why-choose {
    page-break-inside: avoid;
    margin-bottom: 2rem;
  }
  
  .contact-wrapper {
    display: none;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-image img,
  .why-image img,
  .footer-logo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Loading states */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid var(--primary-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Critical resource hints */
.critical-resource {
  font-display: swap;
}

/* Content visibility for performance */
.lazy-section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 500px;
}

/* === Cross-Device Scroll Smoothness Fixes === */

/* Global: Use smooth scroll and GPU acceleration */
html {
  scroll-behavior: smooth;
}

img, .animated-element, .step, .form-box {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* === Mobile-specific Fixes === */
@media (max-width: 768px) {
  /* Disable background-attachment: fixed */
  .parallax-element,
  .hero-section::before,
  .how-it-works::before,
  .mission::before,
  .contact-wrapper::before,
  .why-choose::before {
    background-attachment: scroll !important;
    will-change: auto;
    transform: none !important;
  }

  /* Disable intense animations only on small screens */
  .animate-in {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  img {
    width: 100%;
    height: auto;
    display: block;
  }
}
