
:root {
  /* Color Palette */
  --primary-color: #1a3a5f;
  --secondary-color: #2a4b7c;
  --accent-orange: #ff9f1c;
  --accent-teal: #2ec4b6;
  --accent-red: #e71d36;
  --text-light: #f8f9fa;
  --text-dark: #333;
  --gray-light: #f5f5f5;
  --gray-medium: #e0e0e0;
  --gray-dark: #757575;

  /* Spacing */
  --section-padding: 5rem 0;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1), 0 5px 10px rgba(0, 0, 0, 0.05);

  /* Transitions */
  --transition-fast: all 0.2s ease;
  --transition-medium: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: var(--section-padding);
  position: relative;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-medium);
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--accent-orange);
  color: white;
}

.btn-primary:hover {
  background-color: #e68f1a;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

.text-center {
  text-align: center;
}

/* Utility Classes */
.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 2rem;
}
.mt-5 {
  margin-top: 3rem;
}

/* WhatsApp Button */
.whatsapp-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 3.5rem;
  height: 3.5rem;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  z-index: 999; /* Lower than back-to-top */
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5);
  transition: all 0.3s ease;
  animation: pulse-whatsapp 2s infinite;
  text-decoration: none;
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Back to Top Button - Positioned above WhatsApp */
.back-to-top {
  position: fixed;
  bottom: 6rem; /* Positioned above WhatsApp */
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--accent-teal);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 1000; /* Higher than WhatsApp */
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  border: none;
  outline: none;
  transform: translateY(20px);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #1fb1a3;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top i {
  transition: transform 0.3s ease;
}

.back-to-top:hover i {
  transform: translateY(-3px);
}

/* Ripple Effect for Both Buttons */
.whatsapp-btn .ripple,
.back-to-top .ripple {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.7);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  :root {
    --section-padding: 3rem 0;
  }

  .whatsapp-btn {
    width: 3rem;
    height: 3rem;
    font-size: 1.4rem;
    bottom: 1rem;
    right: 1rem;
  }

  .back-to-top {
    width: 2rem;
    height: 2rem;
    font-size: 0.8rem;
    bottom: 5rem; /* Adjusted for mobile */
    right: 1.1rem;
  }
}

@media (max-width: 480px) {
  .whatsapp-btn {
    width: 3.2rem;
    height: 3.2rem;
    font-size: 1.5rem;
  }

  .back-to-top {
    width: 2rem;
    height: 2rem;
    font-size: 0.8rem;
    bottom: 5rem; /* Adjusted for mobile */
    right: 1.1rem;
  }
}
