/* Ultra Modern CSS - Perfect Round & Contemporary Design 2025 */

:root {
  /* Modern Color Palette */
  --primary-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --secondary-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --neutral-gradient: linear-gradient(135deg, #6b7280 0%, #374151 100%);
  
  /* Perfect Round Radius System */
  --radius-xs: 0.25rem;   /* 4px */
  --radius-sm: 0.5rem;    /* 8px */
  --radius-md: 0.75rem;   /* 12px */
  --radius-lg: 1rem;      /* 16px */
  --radius-xl: 1.5rem;    /* 24px */
  --radius-2xl: 2rem;     /* 32px */
  --radius-3xl: 3rem;     /* 48px */
  --radius-full: 50%;     /* Perfect circles */
  --radius-rounded: 9999px; /* Pill shapes */
  
  /* Modern Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.3);
  --shadow-glow-lg: 0 0 40px rgba(16, 185, 129, 0.4);
  
  /* Modern Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* Modern Typography */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-black: 900;
  
  /* Modern Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Global Modern Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: clamp(16px, 2.5vw, 18px);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Modern Container */
.container {
  max-width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* ===== MODERN NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all var(--transition-normal);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo .logo {
  height: 4rem;
  width: auto;
  transition: all var(--transition-normal);
  filter: drop-shadow(var(--shadow-md));
}

.nav-logo .logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(var(--shadow-glow));
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-2);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  text-decoration: none;
  color: #374151;
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-rounded);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: -1;
}

.nav-link:hover::before {
  opacity: 0.1;
}

.nav-link:hover {
  color: #059669;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.nav-link-login {
  background: var(--primary-gradient);
  color: white;
  box-shadow: var(--shadow-md);
}

.nav-link-login:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  color: white;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.hamburger:hover {
  background: rgba(16, 185, 129, 0.1);
}

.bar {
  width: 24px;
  height: 3px;
  background: #374151;
  border-radius: var(--radius-rounded);
  transition: all var(--transition-normal);
}

/* ===== MODERN HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
  overflow: hidden;
  padding-top: 6rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-rounded);
  color: white;
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-lg);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--font-weight-black);
  line-height: 1.1;
  color: white;
  margin-bottom: var(--space-6);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.highlight {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-8);
  line-height: 1.6;
}

.hero-features {
  display: flex;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: white;
  font-weight: var(--font-weight-medium);
}

.hero-feature i {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
}

.hero-buttons {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  font-size: 1rem;
  border-radius: var(--radius-rounded);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: rgba(255, 255, 255, 0.95);
  color: #059669;
  box-shadow: var(--shadow-xl);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.2), transparent);
  transition: left var(--transition-slow);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2xl);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.hero-trust {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.hero-image {
  position: relative;
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-2xl);
  object-fit: cover;
  aspect-ratio: 4/3;
}

.hero-stats {
  position: absolute;
  bottom: -2rem;
  left: -2rem;
  right: -2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
}

.hero-stat {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: var(--space-4);
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat-number {
  font-size: 1.5rem;
  font-weight: var(--font-weight-black);
  color: #059669;
  margin-bottom: var(--space-1);
}

.hero-stat-label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: var(--font-weight-medium);
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  animation: bounce 2s infinite;
}

.scroll-mouse {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-rounded);
  position: relative;
  margin: 0 auto var(--space-2);
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-rounded);
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 2s infinite;
}

/* ===== MODERN SECTIONS ===== */
.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  background: var(--primary-gradient);
  color: white;
  font-size: 0.875rem;
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-rounded);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-md);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--font-weight-black);
  color: #1f2937;
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== MODERN SERVICES ===== */
.services {
  padding: var(--space-24) 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-16);
}

.service-card {
  background: white;
  padding: var(--space-8);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
}

.service-card.featured {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: white;
  transform: scale(1.05);
}

.service-card.featured::before {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.service-card.emergency {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  color: white;
}

.service-icon {
  width: 4rem;
  height: 4rem;
  background: rgba(16, 185, 129, 0.1);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #059669;
  margin-bottom: var(--space-6);
  transition: all var(--transition-normal);
}

.service-card.featured .service-icon,
.service-card.emergency .service-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  padding: var(--space-1) var(--space-3);
  background: var(--accent-gradient);
  color: white;
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-rounded);
  box-shadow: var(--shadow-md);
}

.emergency-badge {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  animation: pulse 2s infinite;
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-4);
  color: #1f2937;
}

.service-card.featured h3,
.service-card.emergency h3 {
  color: white;
}

.service-card p {
  margin-bottom: var(--space-6);
  line-height: 1.6;
  color: #6b7280;
}

.service-card.featured p,
.service-card.emergency p {
  color: rgba(255, 255, 255, 0.9);
}

.service-features {
  list-style: none;
  margin-bottom: var(--space-6);
}

.service-features li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
  font-size: 0.875rem;
}

.service-features i {
  width: 1rem;
  height: 1rem;
  background: #10b981;
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  flex-shrink: 0;
}

.emergency-contact {
  background: rgba(255, 255, 255, 0.2);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  text-align: center;
  margin-top: var(--space-4);
  backdrop-filter: blur(10px);
}

.services-cta {
  text-align: center;
  background: white;
  padding: var(--space-12);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.services-cta h3 {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: #1f2937;
  margin-bottom: var(--space-3);
}

.services-cta p {
  color: #6b7280;
  margin-bottom: var(--space-6);
}

/* ===== ANIMATIONS ===== */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(16px);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    text-align: center;
  }
  
  .hero-features {
    flex-direction: column;
    gap: var(--space-3);
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-stats {
    position: static;
    grid-template-columns: repeat(2, 1fr);
    margin-top: var(--space-8);
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  
  .service-card.featured {
    transform: none;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: var(--space-20) 0 var(--space-16);
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .services {
    padding: var(--space-16) 0;
  }
  
  .service-card {
    padding: var(--space-6);
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  body {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    color: #f9fafb;
  }
  
  .navbar {
    background: rgba(17, 24, 39, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }
  
  .nav-link {
    color: #f9fafb;
  }
  
  .service-card {
    background: #1f2937;
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .section-title {
    color: #f9fafb;
  }
  
  .service-card h3 {
    color: #f9fafb;
  }
  
  .service-card p {
    color: #d1d5db;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .scroll-indicator {
    animation: none;
  }
  
  .emergency-badge {
    animation: none;
  }
}
