@import "tailwindcss";

@theme {
  --font-sans: 'Plus Jakarta Sans', 'Hind Siliguri', 'Noto Sans Bengali', system-ui, -apple-system, sans-serif;
  
  --color-navy: #001736;
  --color-yellow: #fbc002;
  --color-green: #4AAB3D;

  --color-primary: #001736;
  --color-accent: #fbc002;
  --color-secondary: #4AAB3D;
}

:root {
  --navy: #001736;
  --yellow: #fbc002;
  --green: #4AAB3D;
  --primary-color: #001736;
  --accent-color: #fbc002;
  --secondary-color: #4AAB3D;
  --font-main: 'Plus Jakarta Sans', 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

/* =======================================================
   RESPONSIVE HEADER OPTIMIZATION (1024px - 1399px)
   Eliminates horizontal scrolling and prevents content overflow
   ======================================================= */

/* Compact Laptop View (1024px to 1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
  /* Logo container */
  header div[class*="lg:min-w-[360px]"] {
    min-width: 240px !important;
    max-width: 255px !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }
  header div[class*="lg:min-w-[360px]"] img {
    height: 2.35rem !important;
  }
  header div[class*="lg:min-w-[360px]"] span.text-navy {
    font-size: 0.8rem !important;
  }
  header div[class*="lg:min-w-[360px]"] span.text-\[11px\] {
    font-size: 0.625rem !important;
  }

  /* Top Bar (Navy Blue) */
  header div.hidden.lg\:flex.bg-navy {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
    font-size: 0.7rem !important;
  }
  header div.hidden.lg\:flex.bg-navy > div:first-child {
    gap: 0.75rem !important;
  }
  header div.hidden.lg\:flex.bg-navy span.truncate {
    max-width: 180px !important;
  }
  /* Display topbar social icons with clean compact scaling */
  header div.hidden.lg\:flex.bg-navy .fa-brands {
    display: inline-block !important;
    font-size: 0.65rem !important;
  }
  header div.hidden.lg\:flex.bg-navy a.w-7.h-7 {
    width: 1.5rem !important;
    height: 1.5rem !important;
  }
  header div.hidden.lg\:flex.bg-navy .flex.items-center.gap-2 {
    gap: 0.35rem !important;
  }
  header div.hidden.lg\:flex.bg-navy .w-\[1px\] {
    display: inline-block !important;
    height: 0.75rem !important;
  }

  /* Main Navigation Bar */
  header div.hidden.lg\:flex.bg-white {
    padding-left: 0.5rem !important;
  }
  header nav.flex {
    gap: 0.5rem !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }
  header nav.flex a {
    font-size: 0.75rem !important;
    padding-left: 0.45rem !important;
    padding-right: 0.45rem !important;
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
  }

  /* Right Side Call Support & CTA */
  header div.hidden.lg\:flex .flex.items-stretch.gap-6 {
    gap: 0.5rem !important;
  }
  header div.hidden.lg\:flex .flex.items-center.gap-3.py-2 {
    gap: 0.35rem !important;
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
  }
  header div.hidden.lg\:flex .w-10.h-10 {
    width: 1.75rem !important;
    height: 1.75rem !important;
    font-size: 0.75rem !important;
  }
  header div.hidden.lg\:flex .whitespace-nowrap {
    font-size: 0.75rem !important;
  }
  /* Display primary phone number on compact laptops */
  header div.hidden.lg\:flex .whitespace-nowrap a:last-child {
    display: none !important;
  }
  /* Book Us CTA Button */
  header div.hidden.lg\:flex a.bg-yellow {
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.025em !important;
  }
}

/* Medium Desktop View (1280px to 1399px) */
@media (min-width: 1280px) and (max-width: 1399px) {
  header div[class*="xl:min-w-[420px]"] {
    min-width: 320px !important;
    max-width: 340px !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  header div[class*="xl:min-w-[420px]"] img {
    height: 2.75rem !important;
  }
  header div[class*="xl:min-w-[420px]"] span.text-navy {
    font-size: 0.95rem !important;
  }
  header div.hidden.lg\:flex.bg-navy {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
  header div.hidden.lg\:flex.bg-white {
    padding-left: 1.25rem !important;
  }
  header nav.flex {
    gap: 1.15rem !important;
  }
  header nav.flex a {
    font-size: 0.85rem !important;
  }
  header div.hidden.lg\:flex a.bg-yellow {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    font-size: 0.825rem !important;
  }
}

/* Scoped checkmark display helper */
.lang-check.hidden {
  display: none !important;
}

/* Beautiful native Bengali font rendering across all responsive views */
html[lang="bn"],
html[lang="bn"] body,
body.font-bn,
.font-bn {
  font-family: 'Hind Siliguri', 'Plus Jakarta Sans', 'Noto Sans Bengali', sans-serif !important;
  letter-spacing: 0.01em;
}

/* Animations for Action Buttons & Hero */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(251, 192, 2, 0.6);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(251, 192, 2, 0);
  }
}

@keyframes pulseGlowGreen {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(200%);
  }
}

@keyframes turbineSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-pulse-yellow {
  animation: pulseGlow 2.5s infinite ease-in-out;
}

.animate-pulse-whatsapp {
  animation: pulseGlowGreen 2s infinite ease-in-out;
}

.shimmer-btn {
  position: relative;
  overflow: hidden;
}

.shimmer-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transform: translateX(-100%);
  animation: shimmer 3s infinite;
}

.spin-turbine {
  transform-origin: center;
  animation: turbineSpin 8s linear infinite;
}

/* Owl Carousel Custom Styles */
.owl-carousel .owl-stage {
  display: flex;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.owl-carousel .owl-item {
  display: flex;
  flex: 1 0 auto;
  height: auto;
}

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
}

.owl-theme .owl-dots .owl-dot.active span, 
.owl-theme .owl-dots .owl-dot:hover span {
  background: var(--green) !important;
}

.owl-theme .owl-dots .owl-dot span {
  background: #d1d5db !important;
  width: 10px;
  height: 10px;
  margin: 5px 6px;
  transition: all 0.3s ease;
}

.owl-theme .owl-dots .owl-dot.active span {
  width: 24px;
  border-radius: 9999px;
}

/* Solar Calculator Custom Buttons */
.btn-calc-green {
  background-color: #4AAB3D !important;
  color: #ffffff !important;
}
.btn-calc-green:hover {
  background-color: #3b8e30 !important;
}
.btn-calc-red {
  background-color: #d9383a !important;
  color: #ffffff !important;
}
.btn-calc-red:hover {
  background-color: #ba2d2f !important;
}
.btn-calc-whatsapp {
  background-color: #25D366 !important;
  color: #ffffff !important;
}
.btn-calc-whatsapp:hover {
  background-color: #20ba59 !important;
}
.btn-calc-navy {
  background-color: #001736 !important;
  color: #ffffff !important;
}
.btn-calc-navy:hover {
  background-color: #002250 !important;
}

/* Infinite Marquee Animation */
@keyframes marqueeScroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marqueeScroll 25s linear infinite;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

/* ==========================================================================
   LIGHTBOX MODAL & GALLERY LIGHT EFFECTS (BULLETPROOF FIXED OVERLAY)
   ========================================================================== */

/* Lightbox Base Container - Fullscreen Fixed Overlay */
#lightbox-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 99999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: rgba(0, 23, 54, 0.96) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  padding: 16px !important;
  box-sizing: border-box !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#lightbox-modal.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Light Effect: Ambient Solar Glow Behind Lightbox Image */
.lightbox-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle at center,
    rgba(74, 171, 61, 0.35) 0%,
    rgba(251, 192, 2, 0.2) 40%,
    transparent 70%
  );
  filter: blur(50px);
  pointer-events: none;
  z-index: 1;
  animation: lightboxPulse 4s ease-in-out infinite alternate;
}

@keyframes lightboxPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
  }
}

/* Lightbox Content Container */
#lightbox-figure {
  position: relative !important;
  max-width: 980px !important;
  width: 100% !important;
  max-height: 94vh !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10 !important;
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-sizing: border-box;
}

#lightbox-modal.active #lightbox-figure {
  transform: scale(1);
}

/* Main Image Wrapper */
.lightbox-img-wrapper {
  position: relative !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #020914 !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(74, 171, 61, 0.3) !important;
}

#lightbox-img {
  max-height: 68vh !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
  border-radius: 12px !important;
  transition: opacity 0.2s ease, transform 0.2s ease;
  user-select: none;
}

#lightbox-img.switching {
  opacity: 0.15;
  transform: scale(0.97);
}

/* Lightbox Navigation Buttons (PREV & NEXT) - High Visibility */
.lightbox-nav-btn {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 100 !important;
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  background-color: #001736 !important;
  color: #ffffff !important;
  border: 2px solid rgba(255, 255, 255, 0.4) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 20px !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7) !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  outline: none !important;
}

.lightbox-nav-btn:hover:not(:disabled):not(.disabled) {
  background-color: #4AAB3D !important;
  border-color: #4AAB3D !important;
  color: #ffffff !important;
  transform: translateY(-50%) scale(1.15) !important;
  box-shadow: 0 0 25px rgba(74, 171, 61, 0.6) !important;
}

.lightbox-nav-btn:active:not(:disabled):not(.disabled) {
  transform: translateY(-50%) scale(0.95) !important;
}

#lightbox-prev {
  left: 12px !important;
}

#lightbox-next {
  right: 12px !important;
}

@media (min-width: 1024px) {
  #lightbox-prev {
    left: -26px !important;
  }
  #lightbox-next {
    right: -26px !important;
  }
}

/* Close Button */
#lightbox-close {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  width: 46px !important;
  height: 46px !important;
  border-radius: 50% !important;
  background-color: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 22px !important;
  cursor: pointer !important;
  z-index: 110 !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

#lightbox-close:hover {
  background-color: #d9383a !important;
  border-color: #d9383a !important;
  transform: rotate(90deg) scale(1.1) !important;
}

/* Disabled State for Lightbox Navigation Buttons */
.lightbox-nav-btn:disabled,
.lightbox-nav-btn.disabled {
  opacity: 0.25 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  filter: grayscale(1) !important;
  box-shadow: none !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  background-color: rgba(0, 23, 54, 0.6) !important;
  transform: translateY(-50%) !important;
}

/* Gallery Card Hover Effects */
.gallery-card {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -10px rgba(0, 23, 54, 0.15), 0 0 20px rgba(74, 171, 61, 0.15);
}

.gallery-card .gallery-overlay {
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-card img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover img {
  transform: scale(1.08);
}

/* Filter Tab Pill Active State */
.gallery-filter-btn.active {
  background-color: #4AAB3D !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(74, 171, 61, 0.4);
}

/* =======================================================
   GOOGLE TRANSLATE SEAMLESS INTEGRATION STYLES
   ======================================================= */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame {
    display: none !important;
}

body {
    top: 0px !important;
    position: static !important;
}

#google_translate_element {
    display: none !important;
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    width: 0 !important;
}

.skiptranslate iframe {
    display: none !important;
}

font[style] {
    background-color: transparent !important;
    box-shadow: none !important;
}