/* =========================
   RESET & GLOBAL
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', system-ui, sans-serif;
  scroll-behavior: smooth;
}

body {
  background: #fff;
  color: #111;
  overflow-x: hidden;
  line-height: 1.7;
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  display: block;
}

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

/* =========================
   HEADER
========================= */
.header {
  position: sticky;
  top: 0;
  height: 120px;
  background: #fff;
  border-bottom: 1px solid #eee;
  z-index: 1000;
  display: flex;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 62px;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: #111;
}

/* NAVIGATION */

.desktop-nav {
  display: flex;
  gap: 28px;
}

.desktop-nav a {
  font-weight: 600;
  color: #333;
  padding: 6px 0;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #e12727;
  transition: width 0.3s ease;
}

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

/* BUTTONS */
.btn-quote {
  background: #e12727;
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 600;
   flex-shrink: 0;
}

.btn-quote:hover {
  background: #c11f1f;
}

/* =========================
   HAMBURGER & MOBILE NAV
========================= */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #333;
  border-radius: 3px;
  transition: 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* MOBILE NAV HIDDEN BY DEFAULT */
.mobile-nav {
  display: none; /* completely hidden initially */
  position: absolute;
  top: 120px;
  left: 0;
  width: 100%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 999;
}

/* SHOW MOBILE NAV ONLY WHEN ACTIVE */
.mobile-nav.active {
  display: flex; /* show only when toggled */
  max-height: 500px; /* adjust to fit menu */
  overflow: visible;
}


/* MAKE SURE IT ONLY APPLIES ON MOBILE */
@media (max-width: 768px) {
  /* BAD: do not force display here */
  /* .mobile-nav { display: flex; } */
}



.mobile-nav a {
  font-weight: 600;
  color: #333;
}

.mobile-nav .mobile-btn {
  background: #e12727;
  color: #fff;
  padding: 12px 22px;
  border-radius: 8px;
}

/* =========================
   HERO SECTION
========================= */
.hero {
  min-height: calc(100vh - 120px);
  background: url('../img/hero-banner.jpg') center/cover no-repeat;
  position: relative;
}

.hero-overlay {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  background: rgba(0,0,0,0.45);
  padding: 0 20px;
}

.hero-container {
  max-width: 1200px;
  margin: auto;
  color: #fff;
  text-align: center;
}

.hero-text h1 {
  font-size: 60px;
  line-height: 1.2;
}

.hero-text h1 span {
  color: #e12727;
}

.hero-subtitle {
  margin: 25px 0;
  font-size: 20px;
}

.description {
  max-width: 600px;
  margin: auto;
  font-size: 18px;
}

.hero-buttons {
  margin-top: 35px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn-primary {
  background: #e12727;
  color: #fff;
  padding: 16px 36px;
  border-radius: 10px;
  font-weight: 600;
}

.btn-secondary {
  border: 1px solid #fff;
  color: #fff;
  padding: 16px 36px;
  border-radius: 10px;
}

/* =========================
   INTRO SECTION
========================= */
.intro-section {
  padding: 80px 20px;
  text-align: center;
  background: #f8f9fb;
}

.intro-section h2 {
  font-size: 40px;
  margin-bottom: 25px;
}

.intro-section p {
  font-size: 18px;
  max-width: 800px;
  margin: 12px auto;
  color: #555;
  line-height: 1.8;
}

/* =========================
   PRODUCTS
========================= */
.products {
  padding: 120px 20px;
  background: #fff;
  text-align: center;
}

.products h2 {
  font-size: 42px;
  margin-bottom: 20px;
}

.products h2 span {
  color: #e12727;
}

.products-subtitle {
  margin-bottom: 70px;
  color: #555;
  font-size: 20px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
}

.product-card {
  background: #fff;
  padding: 45px 30px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.12);
}

.product-card img {
  margin-bottom: 25px;
  height: 90px;
}

.product-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

/* ================= FULL-WIDTH HERO CAROUSEL ================= */

body {
  margin: 0;
  font-family: 'Poppins', Arial, sans-serif;
}

/* SECTION */
.product-showcase {
  width: 100%;
  padding: 60px 0;
  background: linear-gradient(135deg, #f7f9fc, #e6ebf2);
  perspective: 1000px; /* 3D effect */
}

/* CAROUSEL WRAPPER */
.carousel-wrapper {
  position: relative;
  width: 90%;
  margin: 0 auto;
  overflow: hidden;
}

/* TRACK */
.carousel-track-container {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 32px;
  transition: transform 0.3s ease-out;
  will-change: transform;
}

/* CARDS */
.carousel-card {
  flex: 0 0 30%;
  max-width: 30%;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  cursor: pointer;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.carousel-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.carousel-card:hover img {
  transform: scale(1.05);
}

.carousel-title {
  display: block;
  padding: 12px 0;
  font-weight: 600;
  color: #222;
  font-size: 1.2rem;
}

/* 3D Parallax effect */
.carousel-card.center {
  transform: scale(1.1) rotateY(0deg);
  z-index: 10;
}

.carousel-card.left {
  transform: scale(0.9) rotateY(15deg);
  z-index: 5;
}

.carousel-card.right {
  transform: scale(0.9) rotateY(-15deg);
  z-index: 5;
}

/* BUTTONS */
.carousel-btn {
  background: #111;
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: background 0.3s;
}

.carousel-btn:hover {
  background: #444;
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* ================= RESPONSIVE ================= */

/* Large tablets / small laptops */
@media (max-width: 1024px) {
  .carousel-card {
    flex: 0 0 45%;
    max-width: 45%;
  }
}

@media (max-width: 768px) {
  .carousel-card {
    flex: 0 0 70%;
    max-width: 70%;
    margin: 0 15px;
  }
  .carousel-btn { display: none; }
}

@media (max-width: 480px) {
  .carousel-card {
    flex: 0 0 90%;
    max-width: 90%;
    margin: 0 5%;
  }
  .carousel-card img { height: 200px; }
  .carousel-title { font-size: 1rem; padding: 8px 0; }
}


/* Tablets */
@media (max-width: 768px) {
  .carousel-card {
    flex: 0 0 70%;
    max-width: 70%;
    margin: 0 15px;
  }
  .carousel-btn {
    display: none; /* hide buttons on tablet */
  }
}

@media (max-width: 768px) {
  .carousel-card {
    flex: 0 0 70%;
    max-width: 70%;
    margin: 0 15px;
  }
  .carousel-btn { display: none; }
}

@media (max-width: 480px) {
  .carousel-card {
    flex: 0 0 90%;
    max-width: 90%;
    margin: 0 5%;
  }
  .carousel-card img { height: 200px; }
  .carousel-title { font-size: 1rem; padding: 8px 0; }
}


/* Mobile phones */
@media (max-width: 480px) {
  .carousel-card {
    flex: 0 0 90%;
    max-width: 90%;
    margin: 0 5%;
  }
  .carousel-card img {
    height: 200px; /* smaller images for mobile */
  }
  .carousel-title {
    font-size: 1rem;
    padding: 8px 0;
  }
}

/* Optional: smooth center scaling effect for small devices */
@media (max-width: 768px) {
  .carousel-card.center {
    transform: scale(1.05) rotateY(0deg);
  }
  .carousel-card.left,
  .carousel-card.right {
    transform: scale(0.95) rotateY(0deg);
  }
}

@media (max-width: 768px) {
  .carousel-card {
    flex: 0 0 70%;
    max-width: 70%;
    margin: 0 15px;
  }
  .carousel-btn { display: none; }
}

@media (max-width: 480px) {
  .carousel-card {
    flex: 0 0 90%;
    max-width: 90%;
    margin: 0 5%;
  }
  .carousel-card img { height: 200px; }
  .carousel-title { font-size: 1rem; padding: 8px 0; }
}



/* =========================
   ABOUT SECTION
========================= */
.about-section {
  padding: 120px 20px;
  background: #fff;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.05);
}

.about-content h2 {
  font-size: 42px;
  margin-bottom: 25px;
}

.about-content h2 span {
  color: #e12727;
}

.about-content p {
  margin-bottom: 20px;
  color: #555;
  font-size: 18px;
}

.about-stats {
  display: flex;
  gap: 50px;
  margin-top: 35px;
}

.stat-box h3 {
  font-size: 32px;
  color: #e12727;
}

.stat-box span {
  font-size: 16px;
  color: #555;
}

/* =========================
   TESTIMONIALS
========================= */
.testimonials-section {
  padding: 140px 20px;
  background: #f2f4f7;
  text-align: center;
}

.testimonials-section h2 {
  font-size: 42px;
  margin-bottom: 20px;
}

.testimonials-section h2 span {
  color: #e12727;
}

.testimonials-section .subtitle {
  margin-bottom: 80px;
  color: #555;
  font-size: 20px;
}

.testimonial-slider {
  overflow-x: auto;
  padding-bottom: 10px;
}

.testimonial-track {
  display: flex;
  gap: 40px;
}

.testimonial-card {
  min-width: 360px;
  background: #fff;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.08);
  text-align: center;
}

.testimonial-card .stars {
  color: #f5a623;
  margin-bottom: 18px;
  font-size: 18px;
}

/* =========================
   CONTACT SECTION
========================= */
.contact-section {
  background: url('../img/concrete.jpg') center/cover no-repeat;
  padding: 140px 20px;
  position: relative;
  color: #fff;
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.contact-section .container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}

.contact-title h2 {
  font-size: 42px;
  margin-bottom: 20px;
  color: #e12727;
}

.contact-left p {
  margin: 12px 0;
  font-size: 16px;
}

.social-links {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e12727;
  color: #fff;
  font-size: 18px;
  transition: all 0.3s ease;
}

.social-btn:hover {
  background: #c11f1f;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 14px;
  border-radius: 8px;
  border: none;
  font-size: 16px;
}

.contact-form textarea {
  resize: none;
  min-height: 140px;
}

.contact-form button {
  background: #e12727;
  color: #fff;
  padding: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background: #c11f1f;
}

/* FORCE BOTH BLOCKS INTO THE RIGHT COLUMN */
.contact-wrapper {
  display: contents;
}

/* Contact info on right */
.contact-left {
  grid-column: 2;
  grid-row: 1;
}

/* Form below contact info on right */
.contact-right {
  grid-column: 2;
  grid-row: 2;
  margin-top: 30px;
}

/* =========================
   CONTACT — MOBILE FIX
========================= */
@media (max-width: 900px) {

  /* Switch grid to single column */
  .contact-section .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Reset forced grid placement */
  .contact-left,
  .contact-right {
    grid-column: 1;
    grid-row: auto;
    margin-top: 0;
  }

  /* Better spacing */
  .contact-left {
    text-align: left;
  }

  .contact-form {
    margin-top: 20px;
  }

}



/* =========================
   FOOTER
========================= */
.footer {
  background: #060b14;
  color: #9aa4b2;
  padding: 60px 20px;
  text-align: center;
  font-size: 14px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
  .about-container, .contact-section .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-stats {
    justify-content: center;
  }

  .hero-text h1 {
    font-size: 48px;
  }

  .testimonial-card {
    min-width: 300px;
  }
}

@media (max-width: 768px) {
  .desktop-nav,
  .btn-quote {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-text h1 {
    font-size: 36px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-showcase-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-track {
    flex-direction: column;
    gap: 20px;
  }

  .contact-section .container {
    gap: 40px;
  }
}
