/* ============================================
   SGVS India - Custom Styles
   Multi-page HTML/CSS/Tailwind/JS Website
   ============================================ */

/* ---- Base Reset & Typography ---- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #FF6A00;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #E05500;
}
.dark ::-webkit-scrollbar-thumb {
  background: #FF8A40;
}

/* ---- Hero Slider ---- */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.hero-content .slide-text {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.hero-slide.active .hero-content .slide-text {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Slider Arrows ---- */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border: none;
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s;
}
.slider-arrow:hover {
  background: rgba(255,255,255,0.3);
}
.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }

/* ---- Slider Dots ---- */
.slider-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}
.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.slider-dot.active {
  background: #FF6A00;
  width: 32px;
}

/* ---- Gallery Lightbox ---- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox-overlay.active {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: color 0.3s;
  z-index: 101;
}
.lightbox-close:hover { color: white; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: color 0.3s;
  z-index: 101;
}
.lightbox-nav:hover { color: white; }
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }

.lightbox-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.6);
  padding: 16px;
  text-align: center;
  color: white;
}

/* ---- WhatsApp Pulse ---- */
@keyframes whatsapp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.whatsapp-pulse {
  animation: whatsapp-pulse 2s infinite;
}

/* ---- Counter Animation ---- */
.counter-value {
  font-variant-numeric: tabular-nums;
}

/* ---- Page Hero Banner ---- */
.page-hero {
  position: relative;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.85) 0%, rgba(27,94,32,0.7) 100%);
  z-index: 1;
}
.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero .hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 80px 20px 40px;
}

/* ---- Accordion ---- */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-item.open .faq-answer {
  max-height: 500px;
}
.faq-icon {
  transition: transform 0.3s ease;
}
.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

/* ---- Testimonial Carousel ---- */
.testimonial-slide {
  opacity: 0;
  position: absolute;
  inset: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.testimonial-slide.active {
  opacity: 1;
  position: relative;
  pointer-events: auto;
}

/* ---- Scroll Animations ---- */
.scroll-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.scroll-animate.from-left {
  transform: translateX(40px);
}
.scroll-animate.from-right {
  transform: translateX(-40px);
}
.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* ---- Dark Mode Specific ---- */
.dark body {
  background: #1A1A2E;
  color: #F0F0F0;
}

/* ---- Card Hover Effects ---- */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.dark .card-hover:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

/* ---- Mobile Menu ---- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  z-index: 60;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 55;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* ---- Gallery Filter Active ---- */
.filter-btn.active {
  background-color: #FF6A00;
  color: white;
  border-color: #FF6A00;
}

/* ---- Responsive Adjustments ---- */
@media (max-width: 768px) {
  .slider-arrow {
    width: 36px;
    height: 36px;
  }
  .slider-arrow.prev { left: 8px; }
  .slider-arrow.next { right: 8px; }
  .page-hero { min-height: 260px; }
}

/* ---- Section Backgrounds ---- */
.bg-beige { background-color: #FFF8F0; }
.dark .bg-beige { background-color: #2A2A3E; }

.bg-charcoal { background-color: #1A1A2E; }

/* ---- Gradient Text ---- */
.gradient-text {
  background: linear-gradient(135deg, #FF6A00, #FF8A40);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Focus Visible ---- */
*:focus-visible {
  outline: 2px solid #FF6A00;
  outline-offset: 2px;
}

/* ---- Timeline Animations ---- */
.timeline-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.timeline-item:nth-child(even) {
  transform: translateY(30px);
}
.timeline-item.timeline-visible {
  opacity: 1;
  transform: translateY(0);
}


@layer base {
  p {
      
      text-align: justify !important;
        text-justify: inter-word;
    
  }
}
 





/* ---- Print Styles ---- */
@media print {
  .no-print { display: none !important; }
  header, footer, .whatsapp-float { display: none !important; }
}
