/* --- RESET & VARIABLES --- */
:root {
  /* Industrial Palette */
  --primary: #0f172a; /* Deep Navy */
  --secondary: #1e293b; /* Slate */
  --accent: #d4af37; /* Metallic Brass/Gold */
  --accent-hover: #b5932b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --text-main: #334155;
  --text-light: #94a3b8;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Lato", sans-serif;
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Montserrat", sans-serif;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* --- UTILITIES --- */
.container {
  max-width: 1360px; /* Increased slightly to fit 4 cards better */
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.section-padding {
  padding: 6rem 0;
}

.text-center {
  text-align: center;
}

.section-header {
  margin-bottom: 4rem;
  text-align: center;
}

.subtitle {
  display: block;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.title {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 4px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-align: center;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--primary);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--primary);
  z-index: -1;
  transition: var(--transition);
}

.btn-primary:hover {
  color: white;
}

.btn-primary:hover::before {
  width: 100%;
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
}

.btn-outline:hover {
  background: white;
  color: var(--primary);
  border-color: white;
}

/* --- NAVBAR --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  padding: 1.5rem 0;
}

header.scrolled {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: 0.3s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: 0.3s;
}

.nav-links a:hover {
  color: var(--accent);
}
.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}
.hamburger span {
  width: 30px;
  height: 2px;
  background: white;
  transition: 0.3s;
}

/* --- HERO SECTION WITH AUTOMATIC SLIDER --- */
.hero {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-slider-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: zoomFade 15s infinite;
}

/* Updated Image Paths for CSS */
.hero-slide:nth-child(1) {
  background-image: url("./image/h3.png");
  animation-delay: 0s;
}
.hero-slide:nth-child(2) {
  background-image: url("./image/h2.png");
  animation-delay: 5s;
}
.hero-slide:nth-child(3) {
  background-image: url("./image/h1.png");
  animation-delay: 10s;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.95));
  z-index: -1;
  mix-blend-mode: multiply;
}

@keyframes zoomFade {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  10% {
    opacity: 1;
  }
  33% {
    opacity: 1;
  }
  43% {
    opacity: 0;
    transform: scale(1.1);
  }
  100% {
    opacity: 0;
  }
}

.hero-content {
  max-width: 800px;
  width: 100%;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4.5rem);
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  word-wrap: break-word;
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- ABOUT SECTION --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  border-top: 1px solid #e2e8f0;
  padding-top: 2rem;
}

.stat-item strong {
  display: block;
  font-size: 2.5rem;
  color: var(--accent);
  font-family: "Montserrat", sans-serif;
  line-height: 1;
}

.stat-item span {
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 600;
}

.about-img-wrapper {
  position: relative;
}

.about-img {
  width: auto;
  height: 500px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: rgba(255, 255, 255, 0.1);
  font-size: 4rem;
  font-weight: 900;
}

.about-img::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 5px solid var(--accent);
  border-radius: 8px;
  z-index: -1;
}

/* --- FEATURES --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 3rem 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--accent);
}

.icon-box {
  width: 60px;
  height: 60px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.icon-box svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.feature-card h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* ================= EXPERIENCE VERIFIED ================= */

.experience-verified {
  margin-top: 5rem;
  text-align: center;
}

.verified-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
  color: var(--primary);
}

/* Brand logos row */
.verified-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: nowrap;
  margin-bottom: 3rem;
}

.verified-logos img {
  max-height: 97px;
  width: 50%;
  min-width: 230px;
  transition: transform 0.35s ease;
}

/* ---------- INITIATIVES INFINITE LOOP ---------- */
.verified-initiatives {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.verified-initiatives-track {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  will-change: transform;
  animation: initiatives-scroll 18s linear infinite;
}

.verified-initiatives-track img {
  max-height: 60px;
  width: auto;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.verified-initiatives-track img:hover {
  transform: scale(1.1);
}

/* Mobile-safe animation */
@keyframes initiatives-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* --- GALLERY GRID SECTION UPDATED FOR 4 COLUMNS --- */
.gallery-section {
  background: var(--primary);
  color: white;
  position: relative;
}

.gallery-category {
  margin-bottom: 5rem;
}

.category-header {
  margin-bottom: 2rem;
  border-left: 5px solid var(--accent);
  padding-left: 1.5rem;
}

.category-header h3 {
  color: white;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.category-header p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Exactly 4 columns */
  gap: 2rem;
}

.gallery-card {
  background: #0b1120;
  border-radius: 12px;
  border-bottom: 2px solid var(--accent);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 25px 50px -12px rgba(212, 175, 55, 0.25);
}

.gallery-img-box {
  width: 100%;
  height: 220px; /* Reduced slightly to fit 4 col better */
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* --- PRODUCT IMAGE SLIDER --- */
.gallery-img-box {
  position: relative;
  overflow: hidden;
}

/* Each slide */
.gallery-img-box .slide {
  position: absolute;
  inset: 0;
  width: 85%;
  height: 85%;
  margin: auto;
  object-fit: contain;
  opacity: 0;
  transform: scale(1);
  transition:
    opacity 0.6s ease-in-out,
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active image */
.gallery-img-box .slide.active {
  opacity: 1;
  z-index: 2;
}

/* Hover zoom effect ONLY on active image */
.gallery-card:hover .gallery-img-box .slide.active {
  transform: scale(1.15) rotate(-3deg);
}

.gallery-img-box img {
  width: 85%;
  height: 85%;
  object-fit: contain;
}

.gallery-card:hover .gallery-img-box img {
  transform: scale(1.15) rotate(-3deg);
}

.gallery-content {
  padding: 1.5rem;
  color: var(--text-main);
  flex-grow: 1;
  position: relative;
  text-align: center;
  z-index: 2;
}

.gallery-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
  font-family: "Montserrat", sans-serif;
  line-height: 1.3;
}

.gallery-desc {
  font-size: 0.85rem;
  color: white;
  margin-bottom: 0;
  line-height: 1.5;
}

.gallery-content::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2 px;
  background: var(--accent);
  transition: width 0.4s ease-in-out;
}

.gallery-card:hover .gallery-content::after {
  width: 100%;
}

/* --- CONTACT --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  background: white;
  box-shadow: var(--shadow-lg);
  border-radius: 12px;
  overflow: hidden;
}

.contact-info {
  background: var(--secondary);
  color: white;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.info-icon {
  color: var(--accent);
  width: 24px;
  height: 24px;
}

.contact-form-box {
  padding: 3rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-family: "Lato", sans-serif;
  transition: var(--transition);
  background: #f8fafc;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  background: white;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* ================= OUR BRANDS – FLOATING STYLE ================= */

.brands-section {
  background: var(--primary);
  overflow: hidden;
}

.brands-float {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6rem;
  margin-top: 4rem;
}

/* LOGO BASE */
.brand-logo {
  max-width: 200px;
  max-height: 90px;
  object-fit: contain;
  cursor: pointer;
}

.brand-logo:hover {
  transform: scale(1.1);
  transition: transform 0.3s ease-in-out;
}

.round {
  border-radius: 50%;
}

.square {
  border-radius: 8px;
}

/* --- FOOTER --- */
footer {
  background: #0b1120;
  color: white;
  padding-top: 5rem;
  padding-bottom: 2rem;
  border-top: 4px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  transition: 0.3s;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
}

/* --- ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

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

/* Sticky WhatsApp Button Styles */
.sticky-whatsapp {
  position: fixed;
  bottom: 25px; /* Distance from bottom */
  right: 25px; /* Distance from right */
  width: 70px;
  height: 70px;
  background-color: #25d366; /* Official WhatsApp Green */
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 9999; /* Ensures it stays on top of everything */
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

/* Hover Effect */
.sticky-whatsapp:hover {
  transform: scale(1.1);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  /* Switch to 2 columns on tablets/smaller laptops */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .brands-float {
    gap: 4rem;
  }

  .brand-logo {
    max-width: 180px;
    max-height: 80px;
  }
}

@media (max-width: 968px) {
  .about-grid,
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .about-img-wrapper {
    order: -1;
    width: 100%;
    margin-bottom: 2rem;
  }
  .about-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
  }

  .contact-info,
  .contact-form-box {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
  .btn-group {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }
  .btn {
    width: 100%;
    display: block;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--secondary);
    flex-direction: column;
    padding: 2rem;
    clip-path: circle(0% at 100% 0);
    transition: 0.5s ease-in-out;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }
  .nav-links.active {
    clip-path: circle(150% at 100% 0);
  }
  .hamburger {
    display: flex;
  }
  .brands-float {
    flex-wrap: wrap;
    gap: 3rem;
  }

  .brand-logo {
    max-width: 160px;
    max-height: 70px;
  }

  .verified-logos {
    flex-wrap: wrap;
    gap: 2rem;
  }

  .verified-logos img {
    max-height: 45px;
  }

  .verified-initiatives-track {
    gap: 2.5rem;
    animation-duration: 30s;
  }

  .verified-initiatives-track img {
    max-height: 48px;
  }
}

@media (max-width: 600px) {
  /* Switch to 1 column on mobile phones */
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 400px) {
  .container {
    padding: 0 1rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .about-stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }
  .stat-item {
    flex: 1 1 100%;
    text-align: center;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .title {
    font-size: 2rem;
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  .brands-float {
    flex-direction: column;
    gap: 2.5rem;
  }

  .brand-logo {
    max-width: 140px;
    max-height: 60px;
  }
}
