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

:root {
  /* Sangita Home Appliances Brand Colors (Light Theme Only) */
  --bg-main: #ffffff;
  --bg-card: #ffffff;
  --color-accent-gold: #111111; /* Changed to Black for branding */
  --color-accent-rust: #e31837; /* Vibrant Red from Sanddy Logo */
  --color-accent-rust-glow: rgba(227, 24, 55, 0.15);
  --color-text-main: #1a1a1a;
  --color-text-muted: #5e5954;
  
  --border-glass: 1px solid rgba(227, 24, 55, 0.2);
  --shadow-glow: 0 4px 20px rgba(227, 24, 55, 0.15);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --shadow-card: 0 8px 30px rgba(0,0,0,0.06);
  
  /* Fonts */
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --trans-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  background-color: var(--bg-main);
  color: var(--color-text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  scroll-behavior: smooth;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, .brand-text {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.1; font-weight: 800; margin-bottom:1rem;}
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; font-weight: 700; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
p { color: var(--color-text-muted); margin-bottom: 1rem; font-size: clamp(1rem, 2vw, 1.1rem); }

.text-gradient {
  background: linear-gradient(135deg, var(--color-accent-gold), var(--color-accent-rust));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Preloader with Breathing Logo */
#preloader {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--bg-main);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}
#preloader.fade-out {
  opacity: 0;
  pointer-events: none;
}
.breathing-logo-img {
  max-width: 300px;
  width: 80%;
  height: auto;
  animation: breathe-img 2s ease-in-out infinite alternate;
}
@keyframes breathe-img {
  0% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(186,158,130,0.2)); }
  100% { transform: scale(1.1); filter: drop-shadow(0 0 30px rgba(186,158,130,0.8)); }
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: var(--bg-main);
  opacity: 0.95;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: var(--border-glass);
  box-shadow: var(--shadow-card);
}
.logo {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 800;
  text-decoration: none;
  color: var(--color-text-main);
}
.logo span { color: var(--color-accent-gold); }

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}
nav a {
  text-decoration: none;
  color: var(--color-text-main);
  font-weight: 500;
  transition: var(--trans-smooth);
}
nav a:hover, nav a.active { color: var(--color-accent-gold); }
.theme-toggle-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-main);
  transition: var(--trans-smooth);
}

/* Base Layout & Utility */
.container { max-width: 1400px; margin: 0 auto; padding: 0 5%; }
section { padding: 6rem 0; position: relative; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  transition: var(--trans-smooth);
  cursor: pointer;
  border: none;
  font-size: 1.1rem;
}
.btn-primary { background: linear-gradient(135deg, var(--color-accent-rust), #5c2312); color: #fff; box-shadow: var(--shadow-glow), var(--shadow-inset); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 40px rgba(131, 53, 29, 0.4), var(--shadow-inset); }
.btn-outline { background: transparent; color: var(--color-accent-gold); border: 2px solid var(--color-accent-gold); }
.btn-outline:hover { background: var(--color-accent-gold); color: #fff; transform: translateY(-3px); }

/* Category Filters */
.category-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  background: var(--bg-card);
  color: var(--color-text-main);
  border: var(--border-glass);
  cursor: pointer;
  font-weight: 600;
  transition: var(--trans-smooth);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--color-accent-rust);
  color: #fff;
  border-color: var(--color-accent-rust);
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.feature-item {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  border: var(--border-glass);
  box-shadow: var(--shadow-card);
  transition: var(--trans-smooth);
}
.feature-item:hover { transform: translateY(-5px); border-color: var(--color-accent-gold); }
.feature-item h3 { font-size: 1.1rem; margin-top: 0.5rem; color: var(--color-text-main); margin-bottom: 0; }

/* Product Cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}
@media (max-width: 600px) {
  .product-grid { grid-template-columns: 1fr; }
}

.product-card {
  background: var(--bg-card);
  border: var(--border-glass);
  border-radius: 16px;
  padding: 2rem;
  transition: var(--trans-smooth);
  box-shadow: var(--shadow-card);
}
.product-img-wrapper {
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 250px;
}
.product-img-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.product-specs { list-style: none; font-size: 0.9rem; }
.product-specs li { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(128,128,128,0.2); padding: 0.4rem 0; color: var(--color-text-muted); }
.product-specs li span:last-child { color: var(--color-text-main); font-weight: 500;}

/* Forms & Input Layouts */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(227, 24, 55, 0.2); 
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), inset 0 0 15px rgba(227, 24, 55, 0.05);
  border-radius: 40px; 
  padding: 3.5rem;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 2rem;
  text-align: left;
  position: relative;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 0.8rem;
  margin-left: 1rem;
  color: var(--color-accent-gold);
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  padding: 1.2rem 1.8rem; 
  background: rgba(255, 255, 255, 0.8); 
  border: 1px solid rgba(227, 24, 55, 0.2); 
  color: var(--color-text-main);
  border-radius: 50px; 
  font-family: var(--font-body);
  font-size: 1.05rem;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-control:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--color-accent-rust);
  box-shadow: 0 0 15px rgba(227, 24, 55, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.02);
  transform: translateY(-2px);
}

.form-control::placeholder {
  color: var(--color-text-muted);
  opacity: 0.6;
  font-weight: 400;
}

/* Custom Select Styling */
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e31837' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1.8rem center; 
  background-size: 1.2rem;
  padding-right: 4rem;
  cursor: pointer;
}

select.form-control option {
  background: var(--bg-main);
  color: var(--color-text-main);
  padding: 1rem;
}

textarea.form-control {
  min-height: 160px;
  resize: vertical;
  line-height: 1.6;
  border-radius: 25px; 
}

.captcha-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(227, 24, 55, 0.03);
  padding: 1rem 2rem;
  border-radius: 50px;
  border: 1px dashed var(--color-accent-rust);
  margin-bottom: 2rem;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.02);
}

#captcha-question {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 2px;
  color: var(--color-accent-gold);
}

/* Advanced Hero Slider */
.hero-slider-rev {
  position: relative;
  width: 100vw;
  margin-top: 110px;
  height: 90vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  background-color: var(--bg-main);
}

.hero-slider-rev .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10%;
  z-index: 1;
}

.hero-slider-rev .slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-slider-rev .slide-content {
  flex: 1;
  max-width: 50%;
  z-index: 3;
}

.hero-slider-rev .slide-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  z-index: 2;
}

/* Layer Animations Setup */
.layer {
  opacity: 0;
  animation-fill-mode: forwards;
}

.slide.active .layer-title {
  animation: slideInUp 0.8s cubic-bezier(0.25,0.8,0.25,1) forwards 0.3s;
}

.slide.active .layer-subtitle {
  animation: slideInUp 0.8s cubic-bezier(0.25,0.8,0.25,1) forwards 0.5s;
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 2.5rem;
  color: var(--color-text-muted);
}

.slide.active .layer-btn {
  animation: slideInUp 0.8s cubic-bezier(0.25,0.8,0.25,1) forwards 0.7s;
}

.slide.active .layer-img {
  animation: zoomInFloat 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) forwards 0.4s;
  max-height: 75vh;
  object-fit: contain;
  filter: drop-shadow(10px 30px 40px rgba(0,0,0,0.25));
}

@keyframes slideInUp {
  0% { transform: translateY(40px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes zoomInFloat {
  0% { transform: scale(0.85) translateX(60px); opacity: 0; }
  100% { transform: scale(1) translateX(0); opacity: 1; }
}

/* Base Slider Buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.8);
  color: var(--color-text-main);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  z-index: 10;
  transition: 0.3s;
  font-size: 1.2rem;
  box-shadow: var(--shadow-card);
}
.slider-btn:hover { background: var(--color-accent-rust); color: #fff; }
.prev-btn { left: 20px; }
.next-btn { right: 20px; }

.slider-dots {
  position: absolute;
  bottom: 30px;
  display: flex;
  gap: 12px;
  justify-content: center;
  width: 100%;
  z-index: 5;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  cursor: pointer;
  transition: 0.3s;
}
.dot.active { background: var(--color-accent-rust); transform: scale(1.3); }

/* Footer */
footer { background: var(--bg-card); padding: 4rem 5% 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; }

/* Responsive */
@media (max-width: 768px) {
  .hero-slider-rev { height: 100vh; min-height: 800px; }
  .hero-slider-rev .slide { flex-direction: column; text-align: center; justify-content: center; padding-top: 120px; padding-bottom: 40px; }
  .hero-slider-rev .slide-content { max-width: 100%; margin-bottom: 2rem; }
  .hero-slider-rev .slide-image { align-items: flex-start; }
  .hero-slider-rev .slide-image img { max-height: 40vh; margin-top: 1rem; }
  .slide.active .layer-subtitle { font-size: 1rem; margin-bottom: 1.5rem; }
  .hero { flex-direction: column; text-align: center; padding-top: 8rem; }
  nav ul {
    position: fixed; top: 0; right: -100%; width: 250px; height: 100vh;
    background: var(--bg-main); flex-direction: column; padding: 6rem 2rem;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1); transition: 0.4s;
  }
  nav ul.active { right: 0; }
  .menu-toggle { display: block; font-size: 1.5rem; cursor: pointer; }
  .btn { width: 100%; }
}
@media (min-width: 769px) { .menu-toggle { display: none; } .hero { display: flex; align-items: center; justify-content: space-between; min-height: 100vh;} }

/* Animations */
.aos { opacity: 0; transform: translateY(30px); transition: all 0.8s; }
.aos.show { opacity: 1; transform: translateY(0); }

/* Compare UI Styles */
.compare-tray {
  position: fixed;
  bottom: -150px;
  left: 0;
  width: 100%;
  background: var(--color-accent-gold);
  color: #fff;
  padding: 1.2rem 5%;
  z-index: 1000;
  transition: bottom 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
}
.compare-tray.show { bottom: 0; }
.compare-tray-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
#compare-items-container {
  display: flex;
  gap: 1.5rem;
  flex: 1;
}
.compare-item-thumb {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.1);
  padding: 5px 15px 5px 5px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.1);
}
.compare-item-thumb img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 5px;
}
.compare-item-thumb span { font-weight: 500; font-size: 0.9rem; }

.compare-modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}
.compare-modal.show {
  opacity: 1;
  visibility: visible;
}
.compare-modal-content {
  background: var(--bg-main);
  padding: 2.5rem;
  border-radius: 20px;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideInUp 0.4s;
}
.compare-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2.5rem;
  cursor: pointer;
  color: var(--color-text-main);
  line-height: 1;
}
.table-responsive { overflow-x: auto; margin-top: 1.5rem; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.compare-table th, .compare-table td {
  padding: 1rem;
  border: 1px solid rgba(0,0,0,0.1);
}
.compare-table th { background: rgba(0,0,0,0.03); font-weight: 600; color: var(--color-accent-gold); }
.compare-table tr:hover td { background: rgba(0,0,0,0.01); }
