@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* CSS Variables */
:root {
  --background: hsl(0, 0%, 2%);
  --foreground: hsl(0, 0%, 100%);
  --card: hsl(0, 0%, 5%);
  --card-foreground: hsl(0, 0%, 100%);
  --primary: hsl(160, 100%, 50%);
  --primary-foreground: hsl(0, 0%, 0%);
  --secondary: hsl(0, 0%, 10%);
  --secondary-foreground: hsl(0, 0%, 100%);
  --muted: hsl(0, 0%, 15%);
  --muted-foreground: hsl(0, 0%, 65%);
  --destructive: hsl(0, 84.2%, 60.2%);
  --border: hsl(0, 0%, 20%);
  --input: hsl(0, 0%, 15%);
  --neon-glow: 0 0 10px hsla(160, 100%, 50%, 0.5), 0 0 20px hsla(160, 100%, 50%, 0.3), 0 0 30px hsla(160, 100%, 50%, 0.2);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-padding-top: 80px;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
}

/* Utility Classes */
.section {
  min-height: 100vh;
  padding: 5rem 9%;
}

.heading {
  text-align: center;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 3rem;
}

.heading span {
  color: var(--primary);
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  border-radius: 9999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 255, 170, 0.2);
  transition: all 0.5s ease;
}

.btn:hover {
  box-shadow: var(--neon-glow);
  transform: scale(1.05);
}

.bg-secondary-30 {
  background-color: hsla(0, 0%, 10%, 0.3);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

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

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.animate-zoom-on-scroll {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-zoom-on-scroll.visible {
  opacity: 1;
  transform: scale(1);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  padding: 1rem 9%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  background: transparent;
}

.header.scrolled {
  background: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  text-decoration: none;
}

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

.navbar {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar a {
  color: var(--foreground);
  font-weight: 500;
  font-size: 1.1rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: var(--primary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-btn {
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.header-btn:hover {
  box-shadow: var(--neon-glow);
  transform: scale(1.05);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--foreground);
  font-size: 1.75rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding-top: 8rem;
}

.hero-content {
  flex: 1;
  text-align: center;
}

.hero-content h3 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-content .typed-container {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.typed-text {
  color: var(--primary);
}

.cursor {
  color: var(--primary);
  animation: pulse 1s infinite;
}

.hero-content p {
  color: var(--muted-foreground);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-width: 400px;
  object-fit: contain;
  filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.5));
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  cursor: pointer;
}

.service-card img {
  width: 100%;
  height: 16rem;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover img {
  transform: scale(1.1);
}

.service-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 5, 5, 0.9), rgba(5, 5, 5, 0.4), transparent);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.5rem;
}

.service-overlay h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  transition: color 0.3s ease;
}

.service-card:hover .service-overlay h4 {
  color: var(--primary);
}

/* About Section */
.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.about-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  object-fit: cover;
}

.about-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.about-content p {
  color: var(--muted-foreground);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.about-content .btn {
  margin-top: 1rem;
}

/* Plans Section */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

.plan-card {
  background: var(--card);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.5s ease;
}

.plan-card:hover {
  border-color: var(--primary);
  box-shadow: var(--neon-glow);
}

.plan-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.plan-price {
  margin-bottom: 1.5rem;
}

.plan-price span:first-child {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

.plan-price span:last-child {
  color: var(--muted-foreground);
}

.plan-features {
  list-style: none;
  margin-bottom: 2rem;
  space-y: 0.75rem;
}

.plan-features li {
  color: var(--muted-foreground);
  padding: 0.75rem 0;
}

.plan-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--foreground);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.plan-link:hover {
  color: var(--primary);
  gap: 1rem;
}

.plan-link svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s ease;
}

/* Reviews Section */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

.review-card {
  background: var(--card);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.5s ease;
}

.review-card:hover {
  border-color: var(--primary);
  box-shadow: var(--neon-glow);
}

.review-card img {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  object-fit: cover;
  border: 4px solid var(--primary);
}

.stars {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.stars svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
  fill: var(--primary);
}

.review-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.review-card p {
  color: var(--muted-foreground);
}

/* BMI Calculator */
.bmi-container {
  max-width: 42rem;
  margin: 0 auto;
}

.bmi-card {
  background: var(--card);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--border);
}

.bmi-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.bmi-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: hsla(160, 100%, 50%, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bmi-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}

.bmi-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.bmi-header p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

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

.bmi-inputs {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

.input-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.input-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--foreground);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.input-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px hsla(160, 100%, 50%, 0.2);
}

.input-group input::placeholder {
  color: var(--muted-foreground);
}

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

.bmi-buttons .btn {
  flex: 1;
}

.reset-btn {
  padding: 1rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: transparent;
  color: var(--foreground);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.reset-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.bmi-result {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--muted);
  border-radius: 0.75rem;
  text-align: center;
  display: none;
}

.bmi-result.show {
  display: block;
}

.bmi-result p:first-child {
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.bmi-value {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.bmi-category {
  font-size: 1.25rem;
  font-weight: 600;
}

.bmi-category.underweight { color: hsl(210, 100%, 70%); }
.bmi-category.normal { color: var(--primary); }
.bmi-category.overweight { color: hsl(45, 100%, 60%); }
.bmi-category.obese { color: var(--destructive); }

.bmi-legend {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  font-size: 0.75rem;
}

.bmi-legend > div {
  padding: 0.5rem;
  border-radius: 0.375rem;
}

.bmi-legend .underweight {
  background: hsla(210, 100%, 50%, 0.2);
  color: hsl(210, 100%, 70%);
}

.bmi-legend .normal {
  background: hsla(160, 100%, 50%, 0.2);
  color: var(--primary);
}

.bmi-legend .overweight {
  background: hsla(45, 100%, 50%, 0.2);
  color: hsl(45, 100%, 60%);
}

.bmi-legend .obese {
  background: hsla(0, 84%, 60%, 0.2);
  color: var(--destructive);
}

.bmi-legend p:first-child {
  font-weight: 700;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 3rem;
  max-width: 72rem;
  margin: 0 auto;
}

.contact-form-card {
  background: var(--card);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--border);
}

.contact-form-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

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

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--foreground);
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px hsla(160, 100%, 50%, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted-foreground);
}

.form-group textarea {
  resize: none;
}

.form-group.error input,
.form-group.error textarea {
  border-color: var(--destructive);
}

.error-message {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--destructive);
}

.contact-form .btn {
  width: 100%;
}

.contact-form .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.contact-info > p {
  color: var(--muted-foreground);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--card);
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  border-color: var(--primary);
}

.social-link:hover .social-icon {
  background: hsla(160, 100%, 50%, 0.2);
}

.social-link:hover .social-icon svg,
.social-link:hover span {
  color: var(--primary);
}

.social-link.facebook:hover .social-icon svg,
.social-link.facebook:hover span {
  color: hsl(210, 100%, 60%);
}

.social-link.whatsapp:hover .social-icon svg,
.social-link.whatsapp:hover span {
  color: hsl(140, 100%, 45%);
}

.social-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--foreground);
  transition: color 0.3s ease;
}

.social-link span {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--foreground);
  transition: color 0.3s ease;
}

/* Footer */
.footer {
  padding: 2rem 9%;
  background: hsla(0, 0%, 10%, 0.3);
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  z-index: 100;
  transform: translateX(150%);
  transition: transform 0.3s ease;
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  border-color: var(--primary);
}

.toast.error {
  border-color: var(--destructive);
}

.toast h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.toast p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(12px);
  flex-direction: column;
  padding: 1.5rem;
  gap: 1rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: var(--foreground);
  font-weight: 500;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 0.75rem 0;
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: var(--primary);
}

/* Responsive */
@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .bmi-inputs {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .hero {
    flex-direction: row;
  }
  
  .hero-content {
    text-align: left;
  }
  
  .hero-content p {
    margin-left: 0;
    margin-right: 0;
  }
  
  .hero-content h1 {
    font-size: 4.5rem;
  }
  
  .hero-content h3 {
    font-size: 1.875rem;
  }
  
  .hero-content .typed-container {
    font-size: 1.875rem;
  }
  
  .hero-image img {
    max-width: 500px;
  }
  
  .about {
    flex-direction: row;
  }
  
  .about-content h2 {
    font-size: 3rem;
  }
  
  .plans-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-content {
    flex-direction: row;
  }
  
  .heading {
    font-size: 3.25rem;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .navbar {
    display: none;
  }
  
  .header-btn {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
}
