:root {
  --primary: #3E4095;
  --primary-light: #4f52b5;
  --text-dark: #2c2c2c;
  --spacing: clamp(1rem, 3vw, 2rem);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #f8f9fa;
  color: var(--text-dark);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing);
}

header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: calc(var(--spacing) * 2) 0;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.header-content {
  position: relative;
  z-index: 1;
}

.logo {
  max-width: 320px;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.02);
}

header h1 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 600;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.contact-info {
  background: white;
  border-radius: 20px;
  padding: calc(var(--spacing) * 1.5);
  margin: calc(var(--spacing) * 1.5) 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.contact-info:hover {
  transform: translateY(-5px);
}

.contact-info h2 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.contact-info h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.contact-item {
  margin-bottom: 1.2rem;
  padding: 0.8rem;
  border-radius: 10px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: background-color 0.3s ease;
}

.contact-item:hover {
  background: #f0f1f7;
}

.whatsapp-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25d366;
  color: white;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
  transition: all 0.3s ease;
  z-index: 1000;
}

.whatsapp-button::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25d366;
  opacity: 0.7;
  z-index: -1;
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.whatsapp-button::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25d366;
  opacity: 0.4;
  z-index: -1;
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  animation-delay: 0.5s;
}

.whatsapp-button svg {
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
}

.whatsapp-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  background: #22c15e;
}

.whatsapp-button:hover svg {
  transform: scale(1.1);
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.8);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.2;
  }
  100% {
    transform: scale(0.8);
    opacity: 0.7;
  }
}

.product-categories {
  margin: calc(var(--spacing) * 2) 0;
  padding: var(--spacing);
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.product-categories h2 {
  color: var(--primary);
  text-align: center;
  margin-bottom: var(--spacing);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing);
}

.category-item {
  padding: var(--spacing);
  background: #f8f9fa;
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.category-item:hover {
  transform: translateY(-5px);
}

.category-item h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.category-item ul {
  list-style: none;
  padding: 0;
}

.category-item ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
  color: var(--text-dark);
}

.category-item ul li:last-child {
  border-bottom: none;
}

.hero-section {
  text-align: center;
  padding: calc(var(--spacing) * 2) 0;
  margin-bottom: var(--spacing);
  background: linear-gradient(135deg, rgba(62, 64, 149, 0.05) 0%, rgba(62, 64, 149, 0.1) 100%);
  border-radius: 20px;
}

.hero-section p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  color: #666;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing);
  margin: var(--spacing) 0;
}

.service-card {
  background: white;
  border-radius: 15px;
  padding: var(--spacing);
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card svg {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}

.service-card h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.coverage-area {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: calc(var(--spacing) * 2) 0;
  margin: calc(var(--spacing) * 2) 0;
  border-radius: 20px;
  text-align: center;
}

.coverage-area h2 {
  margin-bottom: var(--spacing);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing);
  margin-top: var(--spacing);
}

.stat-item {
  padding: var(--spacing);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.map-section {
  margin: calc(var(--spacing) * 2) 0;
  background: white;
  border-radius: 20px;
  padding: var(--spacing);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.map-container {
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
  border: 2px solid #eee;
  background: #f8f9fa;
}

.map-container img {
  transition: transform 0.3s ease;
}

.map-container img:hover {
  transform: scale(1.02);
}

.leaflet-popup-content-wrapper,
.leaflet-popup-content,
.leaflet-popup-content h3 {
  display: none;
}

footer {
  background: var(--primary);
  color: white;
  padding: calc(var(--spacing) * 2) 0;
  margin-top: calc(var(--spacing) * 3);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: calc(var(--spacing) * 2);
}

.footer-section h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: white;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing);
  margin-top: var(--spacing);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.product-gallery {
  margin: calc(var(--spacing) * 2) 0;
  padding: var(--spacing);
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.product-gallery h2 {
  color: var(--primary);
  text-align: center;
  margin-bottom: var(--spacing);
  position: relative;
  padding-bottom: 1rem;
}

.product-gallery h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing);
}

.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  padding: 1rem;
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .overlay {
  transform: translateY(0);
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.9);
  z-index: 1100;
  padding: 2rem;
  cursor: pointer;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .contact-info {
    margin: var(--spacing) 0;
    padding: var(--spacing);
  }
  
  .whatsapp-button {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
  
  .whatsapp-button svg {
    width: 25px;
    height: 25px;
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .map-container {
    height: 300px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}