/* style.css */
:root {
  --gold: #D4AF37;
  --navy: #0A2E5C;
  --light-bg: #F5F7FA;
  --dark-text: #333333;
  --white: #FFFFFF;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--dark-text);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header */
.header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img {
  height: 40px;
  background: #eee;
  border: 1px solid #ddd;
}
.logo span {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.2rem;
}
.nav a {
  text-decoration: none;
  color: var(--navy);
  margin-left: 20px;
  font-weight: 600;
}
.nav a:hover {
  color: var(--gold);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--navy);
}

/* Hero */
.hero {
  background: linear-gradient(rgba(10, 46, 92, 0.85), rgba(10, 46, 92, 0.9)), url('../images/warehouse.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 100px 0;
  text-align: center;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}
.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s;
}
.btn-primary {
  background-color: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background-color: #b8962a;
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

/* Brands */
.brands {
  padding: 60px 0;
  background-color: var(--light-bg);
  text-align: center;
}
.brands h2 {
  margin-bottom: 30px;
  color: var(--navy);
}
.brand-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  align-items: center;
}
.brand-logos img {
  height: 50px;
  object-fit: contain;
  background: #fff;
  padding: 5px;
  border-radius: 4px;
}

/* Features */
.features {
  padding: 60px 0;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}
.feature-card {
  background: var(--white);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  text-align: center;
}
.feature-card h3 {
  color: var(--gold);
  margin-bottom: 10px;
}

/* Page Header */
.page-header {
  background-color: var(--navy);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}
.page-header h1 {
  font-size: 2.2rem;
}

/* About */
.about-content .container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  padding: 60px 0;
}
.about-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.values-list {
  margin-top: 20px;
  padding-left: 20px;
}
.values-list li {
  margin-bottom: 10px;
}

/* Products */
.products-list .container {
  padding: 60px 0;
}
.product-brands {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin: 30px 0;
}
.brand-item {
  text-align: center;
  padding: 20px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.brand-item img {
  height: 60px;
  margin-bottom: 15px;
  object-fit: contain;
}

/* Services */
.services-content .container {
  padding: 60px 0;
}
.service-card {
  background: var(--white);
  padding: 25px;
  margin-bottom: 20px;
  border-left: 4px solid var(--gold);
  border-radius: 4px;
}
.center-cta {
  text-align: center;
  margin-top: 40px;
}

/* Contact */
.contact-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 60px 0;
}
.contact-details a {
  color: var(--navy);
  text-decoration: none;
}
.contact-details a:hover {
  text-decoration: underline;
}
.map-container {
  margin-top: 20px;
}
.rfq-form {
  background: var(--light-bg);
  padding: 30px;
  border-radius: 8px;
}
.rfq-form h2 {
  margin-bottom: 20px;
  color: var(--navy);
}
.rfq-form input,
.rfq-form select,
.rfq-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.rfq-form button {
  width: 100%;
}
.form-note {
  font-size: 0.9rem;
  margin-top: 10px;
  color: #666;
}

/* Footer */
.footer {
  background-color: var(--navy);
  color: var(--white);
  padding: 25px 0;
  text-align: center;
}
.footer-contact a {
  color: var(--gold);
  text-decoration: none;
  margin: 0 5px;
}
.footer-contact a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 15px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: none;
  }
  .nav.active {
    display: flex;
  }
  .nav a {
    margin: 10px 0;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .about-content .container,
  .contact-section .container {
    grid-template-columns: 1fr;
  }
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .btn {
    width: 100%;
    max-width: 250px;
  }
}
/* === Smooth Fade Hero Carousel === */
.hero-fade-carousel {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.fade-carousel {
  position: absolute;
  width: 100%;
  height: 100%;
}

.fade-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: fade 42s infinite;
}

.fade-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Stagger animations for each slide */
.fade-slide:nth-child(1) { animation-delay: 0s; }
.fade-slide:nth-child(2) { animation-delay: 6s; }
.fade-slide:nth-child(3) { animation-delay: 12s; }
.fade-slide:nth-child(4) { animation-delay: 18s; }
.fade-slide:nth-child(5) { animation-delay: 24s; }
.fade-slide:nth-child(6) { animation-delay: 30s; }
.fade-slide:nth-child(7) { animation-delay: 36s; }

@keyframes fade {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  12%  { opacity: 1; }
  17%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Overlay remains the same (use lighter version from previous update) */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 0 20px;
}

.hero-overlay h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 15px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  letter-spacing: -0.5px;
}

.hero-overlay p {
  font-size: 1.4rem;
  max-width: 800px;
  margin-bottom: 30px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Lighter, modern gradient overlay */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 0 20px;
}

.hero-overlay h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 15px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); /* subtle shadow for contrast */
  letter-spacing: -0.5px;
}

.hero-overlay p {
  font-size: 1.4rem;
  max-width: 800px;
  margin-bottom: 30px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* === NEW: Brand Ticker === */
.brand-ticker {
  background: var(--light-bg);
  padding: 20px 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-wrapper {
  display: inline-block;
  padding-left: 100%;
  animation: ticker 30s linear infinite;
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker img {
  height: 80px;
  margin: 0 30px;
  vertical-align: middle;
  filter: grayscale(20%);
  transition: filter 0.3s;
}
.ticker img:hover {
  filter: grayscale(0%);
}

/* === Updated: Logo Text === */
.logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--navy);
}
@media (max-width: 768px) {
  .logo-text {
    font-size: 1.4rem;
  }
}

/* === Updated: Product Brand Icons === */
.brand-item img {
  height: 100px; /* Increased from 60px */
  margin-bottom: 20px;
}

/* === NEW: Gallery === */
.gallery-section {
  padding: 60px 0;
}
.search-box {
  margin-bottom: 30px;
  text-align: center;
}
#searchInput {
  width: 100%;
  max-width: 600px;
  padding: 14px 20px;
  font-size: 1.1rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.3s;
}
#searchInput:focus {
  border-color: var(--gold);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 25px;
}
.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.gallery-item p {
  margin-top: 10px;
  font-weight: 600;
  text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-overlay h1 {
    font-size: 2.8rem;
  }
  .hero-overlay p {
    font-size: 1.1rem;
  }
  .carousel img {
    height: 400px;
  }
  .ticker img {
    height: 60px;
    margin: 0 15px;
  }
}
/* === Gallery Thumbnail Hover Effect === */
.thumb-container {
  position: relative;
  display: inline-block;
  width: 100%;
}
.thumb-container img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.3s;
}
.zoom-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}
.gallery-item:hover .zoom-icon {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}
.gallery-item:hover .thumb-container img {
  transform: scale(1.03);
}

/* === Lightbox Modal === */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}
#lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border: 3px solid var(--gold);
  border-radius: 4px;
}
.close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  background: var(--navy);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
#lightbox-caption {
  color: white;
  text-align: center;
  margin-top: 15px;
  font-size: 1.2rem;
  font-weight: 600;
}

/* Responsive Lightbox */
@media (max-width: 768px) {
  .close {
    top: -35px;
    font-size: 2rem;
    width: 35px;
    height: 35px;
  }
  #lightbox-caption {
    font-size: 1rem;
  }
}