/* 
  D. S. INFRA - Editorial Corporate CSS Stylesheet
  Color System: Dark Luxury & Rich Gold (#D4A017)
  Font System: Space Grotesk (Headings) & Inter (Body)
*/

:root {
  --primary: #D4A017;
  --secondary: #1A1A1A;
  --bg-dark: #0A0A0A;
  --text-light: #FFFFFF;
  --text-muted: #9A9A9A;
}

/* Custom Scrollbar for luxury design & vertical scrolling auto defaults */
html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--bg-dark);
  overflow-x: hidden;
  overflow-y: auto;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: #333333;
  border-radius: 3px;
  transition: background-color 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
}

body.overflow-hidden {
  overflow: hidden !important;
}

.main-wrapper {
  overflow-x: hidden;
  overflow-y: visible;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
  font-weight: 700;
}

/* Section 1: Premium Glassmorphism Navbar */
.premium-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 9999;
  display: flex;
  align-items: center;
  transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.premium-navbar.scrolled {
  background: rgba(10, 10, 10, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45) !important;
  border-bottom: 1px solid rgba(212, 160, 23, 0.25) !important;
}

@media (max-width: 1023px) {
  .premium-navbar {
    height: 75px !important;
  }
}

/* Sticky Header Offset breathing space */
.premium-navbar::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -40px;
  width: 100%;
  height: 40px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25),
    transparent
  );
  pointer-events: none;
}

/* Nav Links Underline Glow */
.nav-link {
  position: relative;
  padding: 6px 0;
  color: var(--text-muted) !important;
  transition: color 0.3s ease;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-link:hover {
  color: var(--primary) !important;
}

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

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active-nav-link::after {
  width: 100% !important;
}

.nav-link.active-nav-link {
  color: var(--primary) !important;
  font-weight: 600;
}

/* Mega menu details */
.mega-menu-link {
  display: flex;
  align-items: center;
  color: var(--text-muted) !important;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.mega-menu-link:hover {
  color: var(--primary) !important;
  background: rgba(212, 160, 23, 0.05);
  transform: translateX(4px);
}

/* Mobile Drawer Overlay & Menu Transitions */
#mobile-menu-overlay {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity 0.3s ease-in-out;
}

#mobile-menu-overlay.open {
  opacity: 1 !important;
  pointer-events: auto !important;
}

#mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

#mobile-menu.open {
  transform: translateX(0) !important;
}

/* Hamburger animations */
#menu-toggle .menu-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-toggle.open .menu-line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

#menu-toggle.open .menu-line:nth-child(2) {
  opacity: 0;
}

#menu-toggle.open .menu-line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* quote button glow */
.quote-btn-glow {
  box-shadow: 0 0 20px rgba(212, 160, 23, 0.2) !important;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.quote-btn-glow:hover {
  box-shadow: 0 0 30px rgba(212, 160, 23, 0.45) !important;
  transform: translateY(-1px);
}

/* Section 2: Continuous Project Ticker */
.ticker-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  background-color: #0E0E0E;
  border-top: 1px solid rgba(212, 160, 23, 0.12);
  border-bottom: 1px solid rgba(212, 160, 23, 0.12);
  padding: 24px 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 80px;
  animation: tickerScroll 35s linear infinite;
}

@keyframes tickerScroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'Space Grotesk', sans-serif;
}

.ticker-val {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
}

.ticker-lbl {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Section 4: Alternating Machinery Walls (Full Width, Editorial) */
.machinery-wall-row {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 1024px) {
  .machinery-wall-row {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
}

/* Section 5: Masonry Project Grid */
.masonry-project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .masonry-project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .masonry-project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.project-reveal-card {
  position: relative;
  overflow: hidden;
  background-color: var(--secondary);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-reveal-card:hover {
  border-color: var(--primary);
}

.project-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 280px;
}

.project-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-reveal-card:hover .project-image-wrapper img {
  transform: scale(1.05);
}

/* Section 6: Horizontal Timeline */
.horizontal-timeline {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 48px;
  padding: 40px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}

.horizontal-timeline::-webkit-scrollbar {
  height: 3px;
}

.horizontal-timeline::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}

.horizontal-timeline::-webkit-scrollbar-thumb {
  background: var(--primary);
}

.timeline-step {
  scroll-snap-align: start;
  flex: 0 0 280px;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  transition: border-color 0.3s ease;
}

.timeline-step::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--text-muted);
  border-radius: 50%;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.timeline-step:hover {
  border-top-color: var(--primary);
}

.timeline-step:hover::before {
  background-color: var(--primary);
  transform: scale(1.3);
}

/* Service editorial Row */
.service-editorial-row {
  display: flex;
  flex-direction: column;
  padding: 32px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s ease;
}

@media (min-width: 768px) {
  .service-editorial-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.service-editorial-row:hover {
  padding-left: 16px;
  border-bottom-color: var(--primary);
}

/* Minimal Luxury stats */
.fleet-metric {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 6rem;
  line-height: 1;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.03em;
}

@media (min-width: 1024px) {
  .fleet-metric {
    font-size: 8rem;
  }
}

/* Premium Client Wall Logo Styles */
.client-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  max-height: 60px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.client-logo-item img {
  max-height: 60px;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.client-logo-item:hover {
  transform: scale(1.08) !important;
}

.client-logo-item:hover img {
  filter: grayscale(0%) !important;
  opacity: 1 !important;
}

.client-text-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #555555;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  text-align: center;
  line-height: 1.3;
}

.client-logo-item:hover .client-text-logo {
  color: #D4A017 !important;
}

/* Trust Badges styles */
.trust-badge-card {
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
}

.trust-badge-card:hover {
  border-color: rgba(212, 160, 23, 0.2);
  background: #161616;
}

/* Floating Utility Buttons */
.floating-action-buttons {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-float {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.btn-float:hover {
  transform: scale(1.08);
}
