:root {
  --primary-red: #dc2626;
  --primary-blue: #2563eb;
  --dark: #111827;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-800: #1f2937;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

/* Theme classes */
body.theme-blue {
  --primary-red: #2563eb;
  --primary-blue: #1d4ed8;
}

body.theme-green {
  --primary-red: #059669;
  --primary-blue: #047857;
}

body.theme-purple {
  --primary-red: #7c3aed;
  --primary-blue: #6d28d9;
}

body.theme-orange {
  --primary-red: #ea580c;
  --primary-blue: #c2410c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: white;
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header Animation */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header.scrolled {
  box-shadow: var(--shadow-lg);
  background: white;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.hamburger {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary-red);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.menu-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
  padding: 1rem;
  min-width: 250px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
}

.menu-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  color: var(--gray-800);
  font-weight: 600;
}

.theme-buttons {
  display: flex;
  gap: 0.5rem;
}

.theme-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.theme-btn:hover {
  transform: scale(1.1);
  border-color: var(--gray-800);
}

.theme-btn.red { background: #dc2626; }
.theme-btn.blue { background: #2563eb; }
.theme-btn.green { background: #059669; }
.theme-btn.purple { background: #7c3aed; }
.theme-btn.orange { background: #ea580c; }

.header-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.logo {
  width: 120px;
  height: 120px;
  transition: transform 0.3s ease;
  margin: 0;
  display: block;
  animation: logoFloat 3s ease-in-out infinite;
}

.logo:hover {
  transform: scale(1.1) rotate(10deg);
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}

.nav-link {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-red);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-red);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 3rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.1) 0%, transparent 70%);
  animation: heroGlow 8s infinite ease-in-out;
}

@keyframes heroGlow {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 2;
  position: relative;
}

.hero-text {
  animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
  from { transform: translateX(-50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.hero-text h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--primary-blue);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--gray-800);
  margin: 1.5rem 0 2rem;
  font-weight: 400;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-red), #ef4444);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  background: linear-gradient(135deg, #b91c1c, var(--primary-red));
}

.btn-secondary {
  background: transparent;
  color: var(--primary-blue);
  padding: 1rem 2rem;
  border: 2px solid var(--primary-blue);
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--primary-blue);
  color: white;
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  animation: slideInRight 1s ease-out 0.3s both;
}

@keyframes slideInRight {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.map-container {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.map {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transition: transform 0.3s ease;
  position: relative;
}

.map:hover {
  transform: scale(1.05);
}

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

.map-label {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-blue);
  text-align: center;
}

.area-metro-label {
  position: absolute;
  top: 60%;
  left: 40%;
  transform: translate(-50%, -50%);
  background: rgba(220, 38, 38, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
}

/* Services Section */
.services {
  padding: 5rem 2rem;
  background: white;
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin: 0 0 1rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--gray-800);
  max-width: 600px;
  margin: 0 auto;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

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

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

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-red);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-red), #ef4444);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: white;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  margin: 0 0 0.5rem;
}

.service-card p {
  color: var(--gray-800);
  font-size: 0.95rem;
}

/* Coverage Section */
.coverage {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  text-align: center;
}

.coverage-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.coverage-item {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  color: var(--primary-blue);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  font-size: 1.1rem;
}

.coverage-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-red);
  color: var(--primary-red);
}

/* Contact Section */
.contact {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, var(--primary-blue), #1d4ed8);
  color: white;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: contactGlow 10s infinite linear;
}

@keyframes contactGlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.contact h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 2rem;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.contact-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

/* Footer */
footer {
  background: var(--dark);
  color: white;
  padding: 2rem;
  text-align: center;
}

/* Floating Elements */
.floating-phone {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, var(--primary-red), #ef4444);
  color: white;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-xl);
  cursor: pointer;
  z-index: 999;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: pulse 2s infinite, bubbleFloat 4s ease-in-out infinite;
}

@keyframes bubbleFloat {
  0%, 100% { 
    transform: translateY(0px) scale(1);
    box-shadow: var(--shadow-xl), 
                0 0 0 0px rgba(220, 38, 38, 0.3),
                0 0 0 0px rgba(220, 38, 38, 0.2),
                0 0 0 0px rgba(220, 38, 38, 0.1);
  }
  25% { 
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-xl), 
                0 0 0 5px rgba(220, 38, 38, 0.3),
                0 0 0 10px rgba(220, 38, 38, 0.2),
                0 0 0 15px rgba(220, 38, 38, 0.1);
  }
  50% { 
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-xl), 
                0 0 0 8px rgba(220, 38, 38, 0.3),
                0 0 0 16px rgba(220, 38, 38, 0.2),
                0 0 0 24px rgba(220, 38, 38, 0.1);
  }
  75% { 
    transform: translateY(-7px) scale(1.02);
    box-shadow: var(--shadow-xl), 
                0 0 0 3px rgba(220, 38, 38, 0.3),
                0 0 0 6px rgba(220, 38, 38, 0.2),
                0 0 0 9px rgba(220, 38, 38, 0.1);
  }
}

@keyframes pulse {
  0% { box-shadow: var(--shadow-xl); }
  50% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0.3), var(--shadow-xl); }
  100% { box-shadow: var(--shadow-xl); }
}

.floating-phone:hover {
  transform: scale(1.1) translateY(-2px);
  background: linear-gradient(135deg, #b91c1c, var(--primary-red));
  animation: bubbleHover 0.6s ease-in-out infinite;
}

@keyframes bubbleHover {
  0%, 100% { 
    box-shadow: var(--shadow-xl), 
                0 0 0 0px rgba(220, 38, 38, 0.4),
                0 0 0 0px rgba(220, 38, 38, 0.3),
                0 0 0 0px rgba(220, 38, 38, 0.2);
  }
  50% { 
    box-shadow: var(--shadow-xl), 
                0 0 0 15px rgba(220, 38, 38, 0.4),
                0 0 0 25px rgba(220, 38, 38, 0.3),
                0 0 0 35px rgba(220, 38, 38, 0.2);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
  
  .logo {
    width: 100px;
    height: 100px;
  }

  .header-center {
    flex-direction: row;
    gap: 1rem;
  }

  .hero {
    padding-top: 10rem;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .nav-menu {
    display: none;
  }
  
  .cta-buttons {
    justify-content: center;
  }
  
  .service-grid {
    grid-template-columns: 1fr;
  }
  
  .floating-phone {
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
  }
  
  .coverage-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .coverage-list {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

/* Scroll animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}