/**
 * AP PRIYANSH SOLUTION - Page Layouts & Auto-Fit Grids
 * Luxury Brand Bucket Softtech style dark blue & pure white aesthetic with gold accents.
 */

/* =========================================================
   BASE RESET & GLOBAL CONTAINER
   ========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body), sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  transition: var(--transition-theme);
  position: relative;
}

.site-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-spacing {
  padding: 80px 0;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .section-spacing {
    padding: 50px 0;
  }
}

/* Section Header Typography */
.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 52px auto;
}

.section-title {
  font-family: var(--font-heading), sans-serif;
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.2;
  color: var(--text-main);
}

.text-gold-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* =========================================================
   AUTO-FIT GRID SYSTEM (ADD / REMOVE ITEMS SAFELY)
   ========================================================= */
.auto-fit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
  width: 100%;
}

@media (max-width: 480px) {
  .auto-fit-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* 2-Column Balanced Grid */
.dual-fit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  width: 100%;
}

/* =========================================================
   HEADER & NAVBAR
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-theme);
}

.site-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.nav-logo-img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.nav-brand:hover .nav-logo-img {
  transform: scale(1.06);
}

.nav-brand-text {
  font-family: var(--font-heading), sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-main);
}

/* Nav Links */
.nav-links-desktop {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
  padding: 6px 0;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-accent);
  border-radius: 2px;
}

/* Nav Actions Right */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Mobile Hamburger Menu */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text-main);
  border-radius: 8px;
}

@media (max-width: 900px) {
  .nav-links-desktop {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
}

/* Mobile Drawer Overlay */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(6, 13, 23, 0.95);
  backdrop-filter: blur(16px);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  padding: 30px 24px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.mobile-drawer.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
  list-style: none;
}

.mobile-drawer-link {
  font-family: var(--font-heading), sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.2s ease;
}

.mobile-drawer-link:hover, .mobile-drawer-link.active {
  color: var(--gold-accent);
}

/* =========================================================
   HERO 3D SLIDER (HOME PAGE)
   ========================================================= */
.hero-wrapper {
  position: relative;
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  padding: 24px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.hero-slider-area { min-width: 0; padding-top: 56px; }

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.hero-title {
  font-family: var(--font-heading), sans-serif;
  font-size: clamp(2.15rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text-main);
}

.hero-description {
  font-size: .98rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 560px;
  line-height: 1.55;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-tagline {
  margin-top: 32px;
  max-width: fit-content;
  text-transform: none;
  letter-spacing: 0;
}

/* 3D Hero Slider Showcase */
.slider-container-3d {
  position: relative;
  width: 100%;
  height: clamp(270px, 25vw, 340px);
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px solid var(--border-color);
  box-shadow: var(--card-shadow-hover);
  background: var(--bg-surface);
}

.slider-track {
  display: flex;
  width: 500%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.slide-item {
  width: 20%;
  height: 100%;
  position: relative;
}

.slider-nav-btn {
  position: absolute;
  top: 90%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #0B1F35;
  border: none;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.slider-nav-btn:hover {
  background: #DFB76C;
  color: #060D17;
  transform: translateY(-50%) scale(1.08);
}

.slider-nav-prev {
  left: 14px;
}

.slider-nav-next {
  right: 14px;
}

.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.slider-dot.active {
  background: #DFB76C;
  width: 22px;
  border-radius: 8px;
}

.slide-caption-title {
  margin-bottom: 0;
}

.slide-caption-sub {
  padding-bottom: 24px;
  max-width: 92%;
  line-height: 1.5;
}

/* =========================================================
   NOT FOUND PAGE
   ========================================================= */
.not-found-page {
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: 48px 24px;
}

.not-found-card {
  width: min(100%, 680px);
  padding: clamp(32px, 7vw, 72px);
  text-align: center;
  z-index: 2;
  background: linear-gradient(145deg, rgba(11, 31, 53, .97), rgba(6, 13, 23, .94));
}

.not-found-card h1 { font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 3.5rem); margin: 14px 0 12px; }
.not-found-card p { color: var(--text-muted); font-size: 1.05rem; max-width: 490px; margin: 0 auto 28px; }
.not-found-card .hero-cta-group { justify-content: center; }
.not-found-code { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 2vw, 18px); color: var(--gold-accent); font: 800 clamp(5rem, 18vw, 9rem)/.85 var(--font-heading); }
.not-found-code i { width: clamp(50px, 11vw, 82px); height: clamp(50px, 11vw, 82px); border: 5px solid var(--gold-accent); border-radius: 50%; box-shadow: 0 0 0 10px rgba(223, 183, 108, .08), 0 0 35px rgba(223, 183, 108, .45); animation: notFoundPulse 2.2s ease-in-out infinite; }
.not-found-orb { position: absolute; border-radius: 50%; filter: blur(4px); opacity: .38; animation: driftOrb 8s ease-in-out infinite alternate; }
.orb-one { width: 340px; height: 340px; background: #1e5f9d; top: 8%; left: -100px; }
.orb-two { width: 280px; height: 280px; background: #c9a03f; bottom: 5%; right: -80px; animation-delay: -3s; }
@keyframes notFoundPulse { 50% { transform: scale(.82) rotate(20deg); box-shadow: 0 0 0 18px rgba(223, 183, 108, .04), 0 0 55px rgba(223, 183, 108, .7); } }
@keyframes driftOrb { to { transform: translate(50px, -30px) scale(1.15); } }

@media (max-height: 760px) and (min-width: 993px) {
  .hero-wrapper { min-height: calc(100vh - 76px); padding: 28px 0; }
  .hero-title { font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1.1; }
  .hero-description { margin-bottom: 18px; line-height: 1.5; }
  .slider-container-3d { height: 340px; }
}

@media (max-width: 992px) {
  .hero-slider-area { padding-top: 0; }
  .hero-tagline { margin-top: 24px; }
}

/* =========================================================
   SERVICE & PRODUCT CARDS
   ========================================================= */
.service-card {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.service-card-top {
  margin-bottom: 22px;
}

.service-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 18px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
}

.service-category-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-accent);
  margin-bottom: 8px;
}

.service-title {
  font-family: var(--font-heading), sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main);
}

.service-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.service-feature-list {
  list-style: none;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.feature-check-icon {
  color: var(--gold-accent);
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Filter Bar for Services */
.filter-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 44px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 500;
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--navy-deep);
  color: #FFFFFF;
  border-color: var(--gold-accent);
  box-shadow: 0 4px 15px rgba(201, 160, 63, 0.2);
}

body.light-theme .filter-btn.active {
  background: #0B1F35;
  color: #FFFFFF;
}

/* =========================================================
   DETAIL MODAL
   ========================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 13, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  background: var(--bg-surface);
  color: var(--text-main);
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  border-radius: 20px;
  border: 1.5px solid var(--border-color);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  overflow-y: auto;
  position: relative;
  transform: translateY(24px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 36px 32px;
}

.modal-backdrop.open .modal-window {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: #EF4444;
  color: #FFFFFF;
  border-color: #EF4444;
}

/* =========================================================
   CONTACT FORM & INFO CARDS
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--gold-accent);
  box-shadow: 0 0 12px rgba(223, 183, 108, 0.25);
}

.contact-info-card {
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--navy-deep);
  color: #DFB76C;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: #0B1F35;
  color: #FFFFFF;
  border-top: 2px solid var(--gold-primary);
  padding: 56px 0 28px;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 44px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col h4 {
  font-family: var(--font-heading), sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 18px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-links-list a:hover {
  color: #DFB76C;
  transform: translateX(3px);
}

.footer-social-links { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-social-link { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: grid; place-items: center; color: #DFB76C; text-decoration: none; transition: transform .2s ease, background .2s ease, color .2s ease; }
.footer-social-link:hover { background: rgba(201, 160, 63, .3); color: #fff; transform: translateY(-3px); }
.footer-social-link svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.footer-social-link .social-icon-fill { fill: currentColor; stroke: none; }
.footer-social-link .social-icon-cut { fill: var(--bg-footer, #06101c); stroke: none; }

.whatsapp-contact-icon { background: transparent !important; }
.whatsapp-contact-icon .whatsapp-icon { width: 47px; height: 47px; display: block; object-fit: contain; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}
