/* ========================================
   SoyaSattva - Global Styles
   Modern CSS with Variables & Responsive Design
   ======================================== */

/* ===== CSS Variables ===== */
:root {
  /* Colors */
  --primary: #2d8659;
  --primary-dark: #1f5d3e;
  --primary-light: #4fa977;
  --secondary: #f4a261;
  --accent: #e76f51;
  --dark: #1a1a2e;
  --dark-alt: #16213e;
  --light: #f8f9fa;
  --white: #ffffff;
  --text-dark: #2c3e50;
  --text-light: #6c757d;
  --border: #e0e0e0;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-hover: rgba(0, 0, 0, 0.2);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  --gradient-hero: linear-gradient(135deg, #2d8659 0%, #4fa977 50%, #6bc28f 100%);
  --gradient-overlay: linear-gradient(135deg, rgba(45, 134, 89, 0.95) 0%, rgba(79, 169, 119, 0.9) 100%);

  /* Fluid Spacing (320px to 1920px viewport) */
  --space-1: clamp(0.25rem, 0.5vw, 0.5rem);
  /* 4px - 8px */
  --space-2: clamp(0.5rem, 1vw, 1rem);
  /* 8px - 16px */
  --space-3: clamp(0.75rem, 1.5vw, 1.5rem);
  /* 12px - 24px */
  --space-4: clamp(1rem, 2vw, 2rem);
  /* 16px - 32px */
  --space-5: clamp(1.5rem, 3vw, 3rem);
  /* 24px - 48px */
  --space-6: clamp(2rem, 4vw, 4rem);
  /* 32px - 64px */
  --space-7: clamp(3rem, 5vw, 5rem);
  /* 48px - 80px */
  --space-8: clamp(4rem, 6vw, 6rem);
  /* 64px - 96px */

  /* Legacy spacing (kept for backward compatibility) */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Fluid Typography */
  --text-xs: clamp(0.75rem, 1.5vw, 0.875rem);
  /* 12px - 14px */
  --text-sm: clamp(0.875rem, 1.75vw, 1rem);
  /* 14px - 16px */
  --text-base: clamp(1rem, 2vw, 1.125rem);
  /* 16px - 18px */
  --text-lg: clamp(1.125rem, 2.25vw, 1.25rem);
  /* 18px - 20px */
  --text-xl: clamp(1.25rem, 2.5vw, 1.5rem);
  /* 20px - 24px */
  --text-2xl: clamp(1.5rem, 3vw, 2rem);
  /* 24px - 32px */
  --text-3xl: clamp(2rem, 4vw, 3rem);
  /* 32px - 48px */
  --text-4xl: clamp(2.5rem, 5vw, 4rem);
  /* 40px - 64px */

  /* Typography */
  --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-heading: 'Georgia', serif;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--text-dark);
  background: var(--light);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--dark);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: 1rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Container & Layout ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.container-fluid {
  max-width: 100%;
  padding: 0 var(--spacing-sm);
}

section {
  padding: var(--spacing-lg) 0;
  position: relative;
}

/* ===== Navigation Bar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px var(--shadow);
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 30px var(--shadow-hover);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem var(--spacing-sm);
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-heading);
  text-decoration: none;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-heading);
}

.logo-image {
  height: 60px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo-image:hover {
  transform: scale(1.05);
}

.logo-icon {
  width: 45px;
  height: 45px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(45, 134, 89, 0.3);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  position: relative;
  transition: var(--transition);
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: url('../images/bg.png') center/cover no-repeat;
  position: relative;
  overflow: hidden;
  padding-top: 120px;
  padding-bottom: 60px;
  gap: 2rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.1) 100%);
  opacity: 1;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: white;
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: white;
  bottom: 15%;
  right: 10%;
  animation-delay: 2s;
}

.shape-3 {
  width: 150px;
  height: 150px;
  background: white;
  top: 50%;
  right: 20%;
  animation-delay: 4s;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: var(--spacing-lg);
  background: var(--gradient-overlay);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.hero-logo {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 2rem;
}

.hero-logo-image {
  width: clamp(250px, 30vw, 400px);
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3));
}

.hero-title {
  color: white;
  margin-bottom: 1.5rem;
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  margin-bottom: 2rem;
  opacity: 0.95;
  line-height: 1.6;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: white;
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.5);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: var(--primary);
}

.btn-accent {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(45, 134, 89, 0.3);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(45, 134, 89, 0.5);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===== Section Heading ===== */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-description {
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-light);
  font-size: 1.1rem;
}

/* ===== Cards ===== */
.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  box-shadow: 0 4px 20px var(--shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.card:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(45, 134, 89, 0.2);
  border-color: var(--primary-light);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: white;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.card-text {
  color: var(--text-light);
  line-height: 1.8;
}

/* ===== Glassmorphism Card ===== */
.glass-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
}

/* ===== Grid Layouts ===== */
.grid {
  display: grid;
  gap: var(--spacing-md);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ===== Product Cards ===== */
.product-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  border: 2px solid transparent;
}

.product-card:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(45, 134, 89, 0.2);
  border-color: var(--primary-light);
}

.product-image {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.product-info {
  padding: 1.5rem;
}

.product-category {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.product-title {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--dark);
}

.product-description {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.product-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}

.btn-sm {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

/* ===== Modal ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.4s ease;
}

.modal-header {
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.8rem;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover {
  background: var(--light);
  color: var(--accent);
  transform: rotate(90deg);
}

.modal-body {
  padding: var(--spacing-md);
}

/* ===== Toast Notification ===== */
.toast {
  position: fixed;
  top: 90px;
  right: 30px;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px var(--shadow-hover);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 3000;
  transform: translateX(400px);
  transition: transform 0.4s ease;
}

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

.toast-success {
  border-left: 4px solid var(--primary);
}

.toast-error {
  border-left: 4px solid var(--accent);
}

.toast-icon {
  font-size: 1.5rem;
}

.toast-message {
  font-weight: 500;
}

/* ===== Forms ===== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark);
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-primary);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 134, 89, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  color: var(--accent);
  font-size: 0.875rem;
  margin-top: 0.3rem;
  display: none;
}

.form-control.error {
  border-color: var(--accent);
}

.form-control.error+.form-error {
  display: block;
}

/* ===== Footer ===== */
.footer {
  background: var(--dark);
  color: white;
  padding: var(--spacing-lg) 0 var(--spacing-md);
}

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

.footer-section h3 {
  color: white;
  margin-bottom: 1.5rem;
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

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

/* ===== WhatsApp Float Button ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

/* ===== Loader ===== */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ===== Animated Emoji Rating System ===== */
.emoji-rating {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem;
}

.emoji-btn {
  font-size: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
  filter: grayscale(1) opacity(0.5);
  transform: scale(1);
  outline: none;
}

.emoji-btn:hover {
  transform: scale(1.2) translateY(-5px);
  filter: grayscale(0.5) opacity(0.8);
}

.emoji-btn.active {
  transform: scale(1.3) translateY(-10px);
  filter: grayscale(0) opacity(1);
  animation: pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.emoji-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.emoji-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.emoji-btn.active+.emoji-text,
.emoji-btn:hover+.emoji-text {
  opacity: 1;
  transform: translateY(0);
  color: var(--primary);
}

@keyframes pop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.4) translateY(-15px);
  }

  100% {
    transform: scale(1.3) translateY(-10px);
  }
}

.loader-spinner {
  width: 60px;
  height: 60px;
  border: 5px solid var(--light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ===== Utilities ===== */
.text-center {
  text-align: center;
}

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

.bg-light {
  background: var(--light);
}

.bg-white {
  background: white;
}

.mt-1 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

.mt-3 {
  margin-top: 3rem;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mb-3 {
  margin-bottom: 3rem;
}

.py-1 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-2 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.py-3 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.hidden {
  display: none;
}

/* ===== Responsive Design ===== */
@media (max-width: 968px) {
  :root {
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 250px;
    height: calc(100vh - 70px);
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    box-shadow: -5px 0 20px var(--shadow);
    transition: right 0.4s ease;
  }

  .nav-menu.active {
    right: 0;
  }

  .mobile-toggle {
    display: flex;
  }

  .mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

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

  .mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .whatsapp-float {
    bottom: 20px;
    left: 20px;
    width: 55px;
    height: 55px;
    font-size: 1.8rem;
  }

  .toast {
    right: 20px;
    left: 20px;
    bottom: 20px;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 90vh;
  }

  section {
    padding: var(--spacing-md) 0;
  }

  .section-header {
    margin-bottom: var(--spacing-md);
  }

  .grid,
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .modal-content {
    width: 95%;
  }
}

/* ===== Scroll Reveal Animation Classes ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* ===== Additional Animations ===== */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ============================================
   RESPONSIVE ENHANCEMENTS
   Perfect responsiveness for all devices
   ============================================ */

/* Prevent horizontal overflow on all elements */
* {
  max-width: 100%;
}

html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  min-width: 320px;
  /* Minimum supported width */
}

/* Container fluid spacing */
.container {
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

/* Section padding with fluid spacing */
section {
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
}

/* Improved text wrapping */
h1,
h2,
h3,
h4,
h5,
h6,
p {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ultra-small screens (320px - 360px) */
@media (max-width: 360px) {
  .container {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }

  .btn {
    font-size: var(--text-xs);
    padding: var(--space-2) var(--space-3);
  }

  .grid {
    gap: var(--space-3);
  }
}

/* Small phones (361px - 414px) */
@media (min-width: 361px) and (max-width: 414px) {
  .navbar {
    padding: var(--space-3) var(--space-4);
  }
}

/* Large phones and small tablets (415px - 767px) */
@media (min-width: 415px) and (max-width: 767px) {
  section {
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
  }
}

/* Tablets (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .container {
    max-width: 720px;
  }
}

/* Large tablets and small laptops (1024px - 1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
  .container {
    max-width: 960px;
  }
}

/* Standard laptops (1280px - 1439px) */
@media (min-width: 1280px) and (max-width: 1439px) {
  .container {
    max-width: 1200px;
  }
}

/* Large screens (1440px - 1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
  .container {
    max-width: 1400px;
  }
}

/* Ultra-wide screens (1920px+) */
@media (min-width: 1920px) {
  .container {
    max-width: 1600px;
  }

  section {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
  }
}

/* Safe area insets for notched devices */
@supports (padding: env(safe-area-inset-left)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .navbar {
    padding-left: max(var(--space-4), env(safe-area-inset-left));
    padding-right: max(var(--space-4), env(safe-area-inset-right));
  }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
  section {
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
  }

  .hero,
  .page-header {
    min-height: auto;
    padding: var(--space-5) 0;
  }
}

/* High resolution displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

  /* Optimize for retina displays */
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Print styles */
@media print {
  body {
    background: white;
    color: black;
  }

  .navbar,
  .footer,
  .whatsapp-float,
  .page-loader,
  .compare-bar,
  .btn {
    display: none !important;
  }

  section {
    page-break-inside: avoid;
  }

  img {
    max-width: 100% !important;
  }
}