/* 
 * Sidheshwar Infrafab - Premium Design System 
 * Exact Replication of sidheshwar.lovable.app
 */

:root {
  --background: #ffffff;
  --foreground: #0F172A;
  --navy: #0F172A;
  --accent: #8BC53F;
  --accent-foreground: #0F172A;
  
  --muted-foreground: oklch(0.55 0.03 240);
  --border: rgba(15, 23, 42, 0.1);
  --radius: 0.75rem;
  
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-display: 'Oswald', 'Inter', sans-serif;
}

* {
  border-color: var(--border);
}

body {
  font-family: var(--font-sans);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
}

/* Clear premium hero */
.hero-clear {
  position: relative;
  background: #f7f8fb;
  overflow: hidden;
}

/* Apple-like hero (index) */
.hero-apple {
  background: var(--background, #fff);
}

.hero-apple-bg {
  background:
    radial-gradient(1200px 600px at -10% 20%, rgba(139, 197, 63, 0.18), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(15, 23, 42, 0.08), transparent 60%),
    linear-gradient(180deg, #f3f5f8, #f7f8fb);
}

.hero-apple-slide {
  display: none;
}

.hero-apple-slide.is-active {
  display: block;
  animation: heroFadeUp 0.55s ease-out both;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(10px); filter: blur(1px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.hero-apple-media {
  -webkit-mask-image: radial-gradient(120% 100% at 70% 50%, #000 55%, transparent 92%);
  mask-image: radial-gradient(120% 100% at 70% 50%, #000 55%, transparent 92%);
}

.hero-apple-media img {
  transform: scale(1.02);
  transition: transform 0.8s ease, opacity 0.45s ease;
}

.hero-apple-media.is-switching img {
  opacity: 0.2;
  transform: scale(1.04);
}

.hero-apple-media-overlay {
  background:
    linear-gradient(115deg, rgba(15, 23, 42, 0.28) 0%, transparent 35%, transparent 70%, rgba(15, 23, 42, 0.14) 100%);
}

.hero-clear::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 28%, rgba(139, 197, 63, 0.16), transparent 48%),
    radial-gradient(circle at 78% 18%, rgba(15, 23, 42, 0.08), transparent 52%),
    linear-gradient(180deg, #ffffff 0%, #f7f8fb 60%, #f7f8fb 100%);
  pointer-events: none;
}

.hero-clear-inner {
  position: relative;
  margin: 0 auto;
  max-width: 80rem;
  padding: 6.5rem 1rem 4.5rem;
}

.hero-clear-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy {
  max-width: 42rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(15, 23, 42, 0.7);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.hero-eyebrow .line {
  height: 1px;
  width: 42px;
  background: rgba(139, 197, 63, 0.9);
}

.hero-title {
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: #0F172A;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.hero-title .accent {
  color: rgba(15, 23, 42, 0.85);
}

.hero-subtitle {
  margin-top: 1.2rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(15, 23, 42, 0.62);
  max-width: 38rem;
}

.hero-cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn-secondary {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.14);
  color: rgba(15, 23, 42, 0.88);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(139, 197, 63, 0.14);
  border-color: rgba(139, 197, 63, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.hero-badges {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: rgba(15, 23, 42, 0.75);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.hero-badge i {
  color: var(--accent);
}

.hero-visual-card {
  position: relative;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.10);
  padding: 0;
  overflow: hidden;
}

.hero-visual-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(139, 197, 63, 0.18), transparent 52%),
    radial-gradient(circle at 86% 30%, rgba(15, 23, 42, 0.06), transparent 44%);
  pointer-events: none;
}

.hero-illustration {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 12;
  transform: translateZ(0);
}

@media (min-width: 1024px) {
  .hero-clear-inner {
    padding: 7.5rem 1.5rem 5.5rem;
    min-height: calc(100vh - 5rem);
    display: flex;
    align-items: center;
  }
  .hero-clear-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.25rem;
  }
}

/* Header Glassmorphism */
#site-header {
  transition: all 0.3s ease;
}

.header-on-light {
  background-color: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.header-on-light .nav-link {
  color: rgba(15, 23, 42, 0.68);
}

.header-on-light .nav-link:hover,
.header-on-light .nav-link.active {
  color: rgba(15, 23, 42, 0.92);
}

.header-on-light .nav-link::after {
  background-color: var(--accent);
}

.header-on-light a[href^="tel:"] {
  color: rgba(15, 23, 42, 0.7) !important;
}

.header-on-light a[href^="tel:"]:hover {
  color: rgba(15, 23, 42, 0.92) !important;
}

.header-on-light .logo-title {
  color: rgba(15, 23, 42, 0.92) !important;
}

.header-on-light .logo-subtitle {
  color: rgba(15, 23, 42, 0.55) !important;
}

.header-on-light #menu-btn {
  color: rgba(15, 23, 42, 0.92) !important;
}

.header-on-light #menu-btn i,
.header-on-light #menu-btn svg {
  color: rgba(15, 23, 42, 0.92) !important;
  stroke: rgba(15, 23, 42, 0.92) !important;
}

.menu-open {
  background-color: rgba(15, 23, 42, 0.95) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

#site-header.menu-open {
  z-index: 80 !important;
}

.menu-open .nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
}

.menu-open .logo-title {
  color: rgba(255, 255, 255, 0.96) !important;
}

.menu-open .logo-subtitle {
  color: rgba(139, 197, 63, 0.95) !important;
}

.menu-open #menu-btn,
.menu-open #menu-btn i,
.menu-open #menu-btn svg {
  color: #fff !important;
  stroke: #fff !important;
}

.header-scrolled {
  background-color: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Hero Slider */
/* Hero Slider */
.hero-slider {
  position: relative;
  min-height: 600px;
  background-color: var(--navy);
  overflow: hidden;
  perspective: 1500px;
}

.hero-parallax {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  --parallax-1: 0px;
  --parallax-2: 0px;
  --parallax-3: 0px;
}

.hero-parallax-layer {
  position: absolute;
  inset: -10%;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.hero-parallax-layer.layer-grid {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.28;
  transform: translate3d(0, var(--parallax-1), 0);
}

.hero-parallax-layer.layer-glow {
  background:
    radial-gradient(circle at 18% 22%, rgba(139, 197, 63, 0.26), transparent 48%),
    radial-gradient(circle at 82% 16%, rgba(255, 255, 255, 0.08), transparent 40%);
  opacity: 0.9;
  transform: translate3d(0, var(--parallax-2), 0);
  filter: blur(2px);
}

.hero-parallax-layer.layer-lines {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.08) 0%, transparent 35%),
    linear-gradient(300deg, rgba(139, 197, 63, 0.10) 0%, transparent 40%);
  opacity: 0.55;
  transform: translate3d(0, var(--parallax-3), 0);
  mix-blend-mode: screen;
}

.hero-parallax-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.22), rgba(15, 23, 42, 0.65) 68%, rgba(15, 23, 42, 0.9));
}

.hero-slider::before {
  content: '';
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
  z-index: 10;
}

.hero-slider .swiper-wrapper {
  height: 100%;
  transform-style: preserve-3d;
  overflow: hidden;
}

.hero-slider .swiper-slide {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  width: 100%;
  overflow: hidden;
  backface-visibility: hidden;
}

.hero-slide {
  background:
    radial-gradient(circle at 18% 25%, rgba(139, 197, 63, 0.18), transparent 40%),
    radial-gradient(circle at 82% 15%, rgba(255, 255, 255, 0.06), transparent 35%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.88) 45%, rgba(15, 23, 42, 0.78) 100%);
}

.hero-slider .swiper-slide .relative {
  z-index: 20;
}

.hero-slider .swiper-slide .hero-slide,
.hero-slide,
.hero-slide * {
  backface-visibility: hidden;
}

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  transform: none !important;
}

.hero-slide::after { display: none; }

.hero-slide .hero-overlay-side {
  background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.4), transparent);
}

.hero-slide .hero-overlay-bottom {
  background: linear-gradient(to top, rgba(15, 23, 42, 0.8), transparent);
}

.swiper-nav-button {
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Smith-style hero caption (static HTML version) */
.ss-hero-caption {
  position: relative;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  max-width: 46rem;
  padding: 1.5rem 1.5rem 1.6rem;
  border-left: 4px solid rgba(139, 197, 63, 0.95);
  background: rgba(15, 23, 42, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  backdrop-filter: blur(14px) saturate(120%);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.swiper-slide-active .ss-hero-caption {
  opacity: 1;
  transform: translateY(0);
}

.ss-hero-caption::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(139, 197, 63, 0.18), transparent 42%),
    radial-gradient(circle at 80% 28%, rgba(255, 255, 255, 0.08), transparent 40%);
  pointer-events: none;
  opacity: 0.9;
}

.ss-hero-caption::after {
  content: "";
  position: absolute;
  inset: -40% -30%;
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.14) 45%, transparent 55%);
  transform: translateX(-22%);
  opacity: 0;
  pointer-events: none;
}

.swiper-slide-active .ss-hero-caption::after {
  animation: ssShine 1.25s ease-out 0.15s both;
}

.ss-hero-caption > * {
  position: relative;
  z-index: 1;
}

.ss-hero-caption .inline-flex,
.ss-hero-caption h1,
.ss-hero-caption p,
.ss-hero-caption .mt-8 {
  opacity: 0;
  transform: translateY(10px);
}

.swiper-slide-active .ss-hero-caption .inline-flex {
  animation: ssPop 0.55s ease-out 0.05s both;
}

.swiper-slide-active .ss-hero-caption h1 {
  animation: ssPop 0.6s ease-out 0.12s both;
}

.swiper-slide-active .ss-hero-caption p {
  animation: ssPop 0.6s ease-out 0.22s both;
}

.swiper-slide-active .ss-hero-caption .mt-8 {
  animation: ssPop 0.6s ease-out 0.32s both;
}

.ss-hero-caption h1 {
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.65);
}

.ss-hero-caption p {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.ss-hero-caption .inline-flex {
  color: rgba(139, 197, 63, 0.95);
}

@keyframes ssPop {
  from { opacity: 0; transform: translateY(12px); filter: blur(2px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes ssShine {
  from { opacity: 0; transform: translateX(-22%) rotate(0.001deg); }
  35% { opacity: 0.75; }
  to { opacity: 0; transform: translateX(22%) rotate(0.001deg); }
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 46px;
  width: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  backdrop-filter: blur(10px);
  z-index: 30;
}

.hero-nav:hover {
  background: rgba(139, 197, 63, 0.18);
  border-color: rgba(139, 197, 63, 0.55);
}

.hero-prev { left: 1.25rem; }
.hero-next { right: 1.25rem; }

.hero-slider:hover .swiper-nav-button {
  opacity: 1;
}

.hero-pagination {
  position: absolute;
  bottom: 2.25rem !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: auto !important;
  z-index: 30;
}

.hero-slider .swiper-pagination-bullet {
  height: 6px;
  width: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  opacity: 1;
  transition: width 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.hero-slider .swiper-pagination-bullet-active {
  width: 42px;
  background: var(--accent);
  transform: translateY(-1px);
}

@media (min-width: 1024px) {
  .ss-hero-caption {
    padding: 1.75rem 1.75rem 1.9rem;
    background: rgba(15, 23, 42, 0.45);
  }
}

@media (max-width: 767px) {
  .hero-nav { display: none; }
  .hero-pagination { bottom: 2.9rem !important; }
}

@media (max-width: 767px) {
  .ss-hero-caption {
    padding: 1.1rem 1.1rem 1.2rem;
    border-left-width: 3px;
  }
}

/* hide Swiper pseudo content if any */
.swiper-button-prev::after,
.swiper-button-next::after {
  display: none;
}

.swiper-pagination-bullet-active {
  width: 2.5rem;
  background: var(--accent);
}

.hero-overlay-side {
  background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.4), transparent);
}

.hero-overlay-bottom {
  background: linear-gradient(to top, rgba(15, 23, 42, 0.8), transparent);
}

/* Nav Links */
.nav-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 1.5rem;
}

/* About Stats Cards */
.stats-card {
  background-color: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-top: 3px solid var(--accent);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

/* Service Cards */
.service-card {
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
  border-color: var(--accent);
}

.service-icon-box {
  background-color: var(--accent);
  color: var(--navy);
  box-shadow: 0 10px 15px -3px rgba(139, 197, 63, 0.3);
}

/* Marquee */
.marquee-track {
  display: flex;
  gap: 4rem;
  animation: marquee 30s linear infinite;
  width: max-content;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Buttons */
.btn-primary {
  background-color: var(--accent);
  color: var(--navy);
  font-weight: 700;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #9cd64a;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(139, 197, 63, 0.25);
}

/* Grid Pattern */
.bg-grid-pattern {
  background-size: 30px 30px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* WhatsApp FAB */
.whatsapp-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 50;
  background-color: #25D366;
  color: white;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
}

.whatsapp-fab:hover {
  transform: scale(1.1) rotate(5deg);
}

/* Footer premium polish */
.site-footer {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 1) 100%);
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 10%, rgba(139, 197, 63, 0.16), transparent 45%),
    radial-gradient(circle at 78% 30%, rgba(255, 255, 255, 0.06), transparent 50%);
  pointer-events: none;
  opacity: 0.9;
}

.site-footer > * {
  position: relative;
  z-index: 1;
}

.site-footer h4 {
  letter-spacing: 0.12em;
}

.site-footer a {
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.site-footer a:hover {
  opacity: 1;
}

.site-footer .logo-title {
  color: rgba(255, 255, 255, 0.96) !important;
}

.site-footer .logo-subtitle {
  color: rgba(139, 197, 63, 0.95) !important;
}
