/* Preloader Styling */
#preloader {
  position: fixed;
  inset: 0;
  background-color: var(--dark-color);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#preloader.preloader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}/* ==========================================================================
   Y ZAG CEMENT - Master Styling
   Theme Palette: Deep Blue (#0047AB), Yellow (#FFC107), Dark (#1A1A1A), Light (#F8F9FA)
   ========================================================================== */

:root {
  --primary-blue: #0047AB;
  --primary-blue-hover: #003380;
  --construction-yellow: #FFC107;
  --yellow-hover: #e0a800;
  --dark-color: #1A1A1A;
  --light-bg: #F8F9FA;
  --white-color: #FFFFFF;
  --card-border-radius: 20px;
  --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --font-family: 'Poppins', sans-serif;
}

body {
  font-family: var(--font-family);
  color: var(--dark-color);
  background-color: var(--white-color);
  overflow-x: hidden;
}
/* Preloader Fix Styles */
#preloader {
  position: fixed;
  inset: 0;
  background-color: #1A1A1A;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#preloader.preloader-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
/* Buttons & Gradients */
.btn-primary-gradient {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #002D62 100%);
  color: var(--white-color);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.btn-primary-gradient:hover {
  background: linear-gradient(135deg, #002D62 0%, var(--primary-blue) 100%);
  color: var(--construction-yellow);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 71, 171, 0.3);
}

.btn-yellow-accent {
  background-color: var(--construction-yellow);
  color: var(--dark-color);
  border: none;
  border-radius: 50px;
  font-weight: 700;
  transition: var(--transition-smooth);
}

.btn-yellow-accent:hover {
  background-color: var(--yellow-hover);
  color: var(--dark-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 193, 7, 0.3);
}

/* Hero Section & Ken Burns Animation */
.hero-section {
  position: relative;
  min-height: 100vh;
  background-color: var(--dark-color);
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 71, 171, 0.75) 0%, rgba(26, 26, 26, 0.85) 100%);
  z-index: 2;
}

.ken-burns-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 25s infinite alternate ease-in-out;
  z-index: 1;
}

@keyframes kenburns {
  0% { transform: scale(1); }
  100% { transform: scale(1.15); }
}

/* Glassmorphism Panels */
.glass-panel {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--card-border-radius);
  color: var(--white-color);
}

.glass-card-light {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 71, 171, 0.1);
  border-radius: var(--card-border-radius);
}

/* Product & Category Cards */
.custom-card {
  border-radius: var(--card-border-radius);
  border: none;
  background: var(--white-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: var(--transition-smooth);
  overflow: hidden;
}

.custom-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 71, 171, 0.15);
}

.category-card-img {
  height: 250px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.custom-card:hover .category-card-img {
  transform: scale(1.08);
}

/* Brand Marquee */
.brand-marquee {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  gap: 2rem;
  animation: marquee 25s linear infinite;
}

.brand-marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.brand-logo-card {
  background: var(--white-color);
  border-radius: 12px;
  padding: 1rem 2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
}

/* Process Timeline */
.timeline-step {
  position: relative;
  text-align: center;
}

.timeline-icon-box {
  width: 70px;
  height: 70px;
  background: var(--primary-blue);
  color: var(--construction-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  font-size: 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 71, 171, 0.3);
}

/* Warehouse Lightbox Gallery */
.gallery-item {
  position: relative;
  border-radius: var(--card-border-radius);
  overflow: hidden;
  height: 240px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 71, 171, 0.8);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
  color: var(--white-color);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Parallax Counter Section */
.parallax-counter {
  background: linear-gradient(rgba(0, 71, 171, 0.85), rgba(26, 26, 26, 0.9)), 
              url('https://images.unsplash.com/photo-1541888946425-d0fbb186a5b3?q=80&w=1920&auto=format&fit=crop') fixed center/cover no-repeat;
  color: var(--white-color);
}

/* Floating Action Buttons */
.floating-btn-group {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-action-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-color);
  font-size: 1.4rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
}

.floating-action-btn:hover {
  transform: scale(1.12);
  color: var(--white-color);
}

.btn-whatsapp-float { background-color: #25D366; }
.btn-call-float { background-color: var(--primary-blue); }
.btn-top-float { background-color: var(--construction-yellow); color: var(--dark-color); display: none; }

/* Utilities */
.heading-accent-line {
  width: 70px;
  height: 4px;
  background-color: var(--construction-yellow);
  border-radius: 2px;
  margin-top: 10px;
}
/* Custom Utility Classes */
.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 71, 171, 0.15) !important;
}

/* Custom Accordion Styling */
.custom-accordion .accordion-button:not(.collapsed) {
    background-color: rgba(0, 71, 171, 0.08);
    color: #0047AB;
}

.custom-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 71, 171, 0.25);
}