/* GLOBAL RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: #fff;
  color: #212529;
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
}

/* HEADINGS */
h1 {
  font-family: "Playfair Display", serif;
  color: #fff;
}

h2 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 2.2rem;
  letter-spacing: 0.04em;
  margin-bottom: 1.2rem;
  color: #212529;
}

h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: #343a40;
}

.section-subtitle,
.certificate-subtitle {
  font-size: 1rem;
  color: #555;
}

.section {
  padding: 4rem 1.5rem;
  text-align: center;
  scroll-margin-top: 80px;
}

/* NAVBAR */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  z-index: 999;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  height: 70px;
  background: transparent !important;
  transition: transform 0.3s ease;
}

.brand-logo:hover {
  transform: scale(1.05);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #343a40;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #8da2b8;
}

/* PRELOADER */
#preloader {
  position: fixed;
  inset: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.loader {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 4px solid #ddd;
  border-top-color: #8da2b8;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* HERO */
.hero {
  position: relative;
  height: 100vh;
  background: #000;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-video.loaded {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
}

.hero-content {
  position: relative;
  z-index: 1;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 1.5rem;
  text-align: center;           /* center horizontally */
}

/* Dhruvi Industries heading */
.hero-content h1 {
  font-size: 3.2rem;
  margin-bottom: 0.6rem;
  color: #ffffff;               /* pure white */
  font-weight: 700;             /* bold */
  letter-spacing: 0.06em;
}

/* Tagline below */
.hero-content .tagline {
  font-size: 1.2rem;
  font-weight: 600;             /* bold-ish */
  color: #c8ccd3;               /* dark silver tone */
}


/* PRODUCTS */
.products-grid {
  max-width: 1200px;
  margin: 2rem auto 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.product {
  cursor: pointer;
}

.product img {
  border-radius: 10px;
  height: 230px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product:hover img {
  transform: scale(1.08);
}

.product h3 {
  margin-top: 0.8rem;
}

/* ABOUT */
.about-section {
  position: relative;
  padding: 6rem 1.5rem;
}

.about-background {
  position: absolute;
  inset: 0;
  background: url("assets/images/about-us.jpg") center/cover no-repeat;
  z-index: 0;
}

.about-overlay-light {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.85);
  z-index: 1;
}

.about-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.about-content p {
  color: #495057;
  line-height: 1.6;
}

.stats {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
}

.stat {
  background: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  min-width: 150px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.05);
}

.stat-value {
  font-size: 1.9rem;
  color: #8da2b8;
  font-weight: 600;
}

/* CLIENTS */
#clients {
  background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
}

.clients-marquee {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1rem 0;
  cursor: grab;
  scrollbar-width: none;
}

.clients-marquee::-webkit-scrollbar {
  display: none;
}

.clients-track {
  display: flex;
  gap: 3rem;
  align-items: center;
  animation: marquee var(--marquee-duration, 35s) linear infinite;
}

.client-logo {
  height: 70px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  opacity: 0.9;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out, box-shadow 0.2s ease-out;
}

.client-logo:hover {
  transform: translateY(-6px) scale(1.05);
  opacity: 1;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.clients-marquee::before,
.clients-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.clients-marquee::before {
  left: 0;
  background: linear-gradient(to right, #f8f9fa 0%, transparent 100%);
}

.clients-marquee::after {
  right: 0;
  background: linear-gradient(to left, #e9ecef 0%, transparent 100%);
}

.clients-hint {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.75rem;
}

/* CLIENTS ARROWS */
.clients-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.2rem;
  font-weight: 400;
  color: rgba(0,0,0,0.28);
  pointer-events: none;
}

.clients-arrow-left {
  left: 16px;
}

.clients-arrow-right {
  right: 16px;
}

/* PROJECTS */
.projects-section {
  position: relative;
  background: #fff;
  overflow: hidden;
}

.projects-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/images/di_logo.png") center/45% no-repeat;
  opacity: 0.22;
  pointer-events: none;
}

.section-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.projects-slider {
  margin-top: 2rem;
  overflow: hidden;
}

.projects-track {
  display: flex;
  transition: transform 0.8s ease;
}

.projects-slide {
  min-width: 100%;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem 1.5rem;
  text-align: left;
}

.project-item {
  background: rgba(255,255,255,0.92);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  color: #333;
}

.project-item::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #8da2b8;
  margin-right: 8px;
}

.projects-dots {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.projects-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid #8da2b8;
  background: transparent;
  cursor: pointer;
}

.projects-dot.active {
  background: #8da2b8;
}

/* CERTIFICATES */
#certificates {
  background: #f8f9fa;
}

.certificates-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.certificate-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificate-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 28px rgba(0,0,0,0.12);
}

/* CONTACT */
.contact-section {
  background: #f8f9fa;
}

.contact-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  padding: 3rem 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #8da2b8;
  outline: none;
  box-shadow: 0 0 0 3px rgba(141,162,184,0.2);
}

/* Submit button base */
#contactSubmit {
  border: none;
  border-radius: 6px;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
}

/* Disabled state */
#contactSubmit:disabled {
  background: #b5c2cf;
  opacity: 0.6;
  cursor: not-allowed;
}

/* Enabled + glow */
#contactSubmit.enabled {
  background: #8da2b8;
  color: #fff;
  opacity: 1;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(141,162,184,0.55);
  transition: all 0.3s ease;
}

#contactSubmit.enabled:hover {
  transform: scale(1.05);
}

/* Success / error note (not used much now but kept) */
.form-note {
  font-size: 0.8rem;
  color: #868e96;
}

/* Contact details */
.contact-details {
  margin-top: 2rem;
  color: #495057;
  line-height: 1.7;
  font-size: 0.95rem;
  text-align: center;
}

/* FOOTER */
.site-footer {
  background: #343a40;
  color: #f8f9fa;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
}

/* WHATSAPP FLOAT */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
}

.whatsapp-float img {
  width: 55px;
  height: 55px;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover img {
  transform: scale(1.1);
}

/* SUCCESS MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 3000;
}

.modal-box {
  background: #ffffff;
  padding: 2rem;
  width: 90%;
  max-width: 420px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  animation: popup 0.35s ease;
}

.modal-box h3 {
  font-size: 1.5rem;
  color: #4a4a4a;
  margin-bottom: 0.8rem;
}

.modal-box p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1.4rem;
  line-height: 1.5;
}

.modal-box button {
  background: #8da2b8;
  color: #fff;
  padding: 0.7rem 1.8rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.3s ease;
}

.modal-box button:hover {
  background: #7d92a6;
  transform: scale(1.05);
}

@keyframes popup {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* FADE ANIMATIONS */
.fade-in,
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

.show {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-inner {
    flex-direction: column;
    gap: 0.75rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .brand-logo {
    height: 60px;
  }

  .hero-content h1 {
    font-size: 2.3rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .client-logo {
    height: 60px;
  }

  .clients-arrow {
    font-size: 1.8rem;
  }

  .contact-wrapper {
    padding: 2rem 1.2rem;
  }
}
