/* ========== GLOBAL RESET & BASE ========== */

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

html,
body {
  font-family: Arial, sans-serif;
  color: #222;
  background: #fff;
  scroll-behavior: smooth;
}

/* ========== HOME / HERO ========== */

.home-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.carousel {
  position: relative;
  min-height: 100vh;
  width: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 5%;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.slide .content {
  position: relative;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.content {
  max-width: 900px;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 30px;
  border-radius: 10px;
  color: #fff;
}

.content h1 {
  font-size: 2.4rem;
  margin-bottom: 15px;
}

.content p {
  font-size: 1rem;
  margin-bottom: 20px;
}

.content a {
  background-color: #ffcc00;
  color: #000;
  text-decoration: none;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 5px;
}

/* Hero controls */

.nav-buttons {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  z-index: 10;
}

.nav-buttons button {
  background-color: rgba(255, 255, 255, 0.75);
  border: none;
  padding: 8px 16px;
  font-size: 1.1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.nav-buttons button:hover {
  background-color: #fff;
}

.thumbnails {
  position: absolute;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10;
}

.thumbnail {
  width: 100px;
  height: 60px;
  background-size: cover;
  background-position: center;
  border: 2px solid #fff;
  border-radius: 5px;
  cursor: pointer;
  opacity: 0.8;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.thumbnail:hover {
  transform: scale(1.05);
  opacity: 1;
}

.thumbnail.active-thumb {
  width: 120px;
  height: 70px;
  border: 3px solid #ffcc00;
  opacity: 1;
  transform: scale(1.05);
}

.number-line {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  z-index: 10;
}

.number-circle {
  width: 30px;
  height: 30px;
  background-color: rgba(255, 255, 255, 0.7);
  color: #000;
  text-align: center;
  line-height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
  position: relative;
  z-index: 2;
}

.number-circle.active {
  background-color: #ffcc00;
}

.progress-line {
  width: 150px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.4);
  margin: 0 10px;
  position: relative;
  border-radius: 2px;
}

/* Date & time */

.date-time {
  position: absolute;
  top: 20px;
  right: 30px;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 8px 14px;
  color: #fff;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.9rem;
  border-radius: 8px;
  box-shadow: 0 0 10px #ffcc00;
  z-index: 100;
}

/* ========== SIDE NAV ========== */

.side-nav-glass {
  position: fixed;
  top: 50%;
  right: 30px;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  padding: 20px 25px;
  border-radius: 20px;
  z-index: 1000;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.side-nav-glass ul {
  list-style: none;
}

.side-nav-glass li {
  margin-bottom: 18px;
}

.side-nav-glass a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
}

.side-nav-glass a i {
  color: #facc15;
}

/* ========== SECTION COMMONS ========== */

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #222;
}

.background-text {
  font-size: 6rem;
  font-weight: 900;
  color: rgba(255, 204, 0, 0.15);
  position: absolute;
  right: 5%;
  top: -20px;
  z-index: 1;
  user-select: none;
  pointer-events: none;
}

.divider-animated {
  width: 160px;
  height: 4px;
  background-color: #ffcc00;
  margin: 20px auto 0;
  position: relative;
  overflow: hidden;
}

.divider-animated::before {
  content: "";
  position: absolute;
  width: 30%;
  height: 100%;
  background-color: #ff6600;
  animation: moveDivider 2s infinite ease-in-out;
}

@keyframes moveDivider {
  0% {
    left: -40%;
  }
  50% {
    left: 50%;
  }
  100% {
    left: 110%;
  }
}

/* ========== ABOUT ========== */

.about-section {
  padding: 80px 40px;
  background: #f9f9f9;
  position: relative;
}

.about-heading-container {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.about-description {
  padding: 0 80px;
  text-align: justify;
  color: #444;
  line-height: 1.6;
  margin-top: 15px;
}

.about-link {
  text-decoration: none;
  color: grey;
  font-weight: 500;
}

.about-link:hover {
  color: #222;
}

.about-container {
  margin: 0 5%;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

.about-cards {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  min-height: 110px;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.card-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 6px;
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.card p {
  font-size: 0.85rem;
  color: #666;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
  background: #ffcc00;
  color: #000;
}

.about-video {
  flex: 1;
  max-width: 480px;
  min-width: 260px;
}

.about-video video,
.about-video iframe {
  width: 100%;
  min-height: 260px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ========== OUR STORY ========== */

.our-story-section {
  padding: 80px 20px;
  background-color: #f1f1f1;
  position: relative;
}

.our-story-heading-container {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.our-story-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 50px;
  max-width: 80%;
  margin: 0 auto;
  flex-wrap: wrap;
}

.our-story-left {
  flex: 1 1 50%;
}

.our-story-left h1 {
  margin-bottom: 25px;
  font-size: 1.7rem;
}

.progress-item {
  margin-bottom: 20px;
}

.progress-bar {
  background: #ddd;
  border-radius: 10px;
  overflow: hidden;
  height: 22px;
}

.progress-fill {
  background: #f7c32e;
  height: 100%;
  color: #000;
  line-height: 22px;
  font-weight: bold;
  padding-left: 10px;
  width: 0;
}

.our-story-right {
  flex: 1 1 40%;
}

.story-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 350px;
  border-radius: 10px;
  object-fit: cover;
}

/* ========== FACTS ========== */

.facts-section {
  position: relative;
  background-image: url("images/bg5.jpeg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
  padding: 90px 20px;
  text-align: center;
}

.facts-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 0;
}

.facts-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 8rem;
  color: rgba(255, 255, 255, 0.1);
  font-weight: 900;
  z-index: 1;
  white-space: nowrap;
}

.facts-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
}

.facts-counters {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.fact-item {
  flex: 1 1 220px;
  max-width: 260px;
}

.counter {
  display: inline-block;
  font-weight: 700;
  font-size: 3.5rem;
  color: #ffcc00;
}

.plus {
  font-size: 2.2rem;
  color: #ffcc00;
  margin-left: 4px;
}

/* ========== WORKS ========== */

.works-section {
  background-color: #fff;
  padding: 90px 20px;
  text-align: center;
  position: relative;
}

.works-heading-container {
  margin-bottom: 35px;
  position: relative;
}

.section-subtext {
  margin-top: 10px;
  color: #555;
  font-size: 0.95rem;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 25px;
}

.tab {
  padding: 8px 16px;
  border: 1px solid #333;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: 0.3s;
}

.tab.active,
.tab:hover {
  background: #333;
  color: #fff;
}

.product-grid-wrapper {
  max-width: 80%;
  margin: 0 auto;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 1.5rem;
}

.product-card {
  display: none;
  padding: 10px;
  border-radius: 10px;
}

.product-card img {
  width: 100%;
  max-width: 200px;
  border-radius: 8px;
  cursor: pointer;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s;
}

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

.show-more-btn {
  display: none;
  margin: 25px auto 0;
  padding: 10px 22px;
  background-color: #333;
  color: #fff;
  border: none;
  font-weight: bold;
  font-size: 0.9rem;
  border-radius: 8px;
  cursor: pointer;
}

.hidden-card {
  display: none !important;
}

/* ========== ENSURED ========== */

.ensured-section {
  position: relative;
  padding: 90px 40px;
  text-align: center;
  background-image: url("images/bg6.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
}

.ensured-heading-container {
  position: relative;
  z-index: 2;
  margin-bottom: 45px;
}

.ensured-subtext {
  margin-top: 10px;
  color: #e0e0e0;
  font-size: 0.95rem;
}

.ensured-grid {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ensured-card {
  background-color: rgba(255, 255, 255, 0.07);
  padding: 22px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.ensured-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  filter: brightness(0) invert(1);
}

.ensured-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.ensured-card p {
  font-size: 0.85rem;
  color: #e0e0e0;
}

/* ========== SOCIAL ========== */

.social-section {
  position: relative;
  background: #fff;
  padding: 80px 40px;
  text-align: center;
}

.social-heading-container {
  margin-bottom: 40px;
  position: relative;
}

.social-subtext {
  margin-top: 10px;
  color: #555;
  font-size: 0.95rem;
}

.social-carousel {
  position: relative;
  z-index: 2;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  width: 100%;
  max-width: 150px;
  border-radius: 10px;
}

/* ========== QUOTES ========== */

.quotes-section {
  position: relative;
  padding: 90px 40px;
  text-align: center;
  background-image: url("images/bg7.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
}

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

.quotes-heading-container,
.quotes-carousel {
  position: relative;
  z-index: 1;
}

.quote-slide {
  max-width: 800px;
  margin: 0 auto;
}

.quote-text {
  font-size: 1.5rem;
  font-style: italic;
  margin: 80px 0 60px;
}

.quote-author {
  display: block;
  font-size: 0.95rem;
  color: #ddd;
}

.swiper-pagination-bullet {
  background: #fff;
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  background-color: #ffd700;
}

/* ========== CONTACT ========== */

.contact-section {
  padding: 80px 0;
  background-color: #f5f5f5;
}

.contact-heading-container {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.contact-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 35px;
}

.contact-info,
.contact-form {
  flex: 1;
  min-width: 280px;
}

.contact-info {
  background: #fff;
  padding: 26px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.06);
}

.contact-subheading {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
  padding-left: 10px;
  border-left: 4px solid #ffc107;
}

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.info-icon {
  margin-right: 12px;
  color: #ffc107;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  background: #fff;
}

.submit-btn {
  padding: 10px 18px;
  background-color: #ffc107;
  border: none;
  color: #000;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
}

/* ========== FOOTER ========== */

.footer-section {
  background-color: #111;
  color: #fff;
  padding: 50px 5vw 15px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 35px;
}

.footer-column {
  flex: 1 1 280px;
}

.footer-logo {
  width: 110px;
  margin-bottom: 10px;
}

.footer-company {
  font-size: 1.1rem;
  color: #ffc107;
  margin-bottom: 8px;
}

.footer-map {
  width: 100%;
  height: 220px;
  border-radius: 8px;
  border: none;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.social-links a {
  color: #fff;
  font-size: 1.1rem;
}

.social-links a:hover {
  color: #ffc107;
}

.sub-footer {
  margin-top: 25px;
  text-align: center;
  font-size: 0.85rem;
  color: #aaa;
}

/* ========== GO TO TOP ========== */

.go-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #dbdacf;
  color: #000;
  font-size: 22px;
  padding: 8px 12px;
  border-radius: 100%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 999;
  display: none;
}

/* ========== PRELOADER & POPUP ========== */

#preloader {
  position: fixed;
  inset: 0;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader {
  display: flex;
  align-items: center;
  gap: 10px;
}

.loader span {
  width: 12px;
  height: 12px;
  background: #facc15;
  border-radius: 50%;
  animation: bounce 1s infinite alternate ease-in-out;
}

.loader span:nth-child(2) {
  animation-delay: 0.2s;
}

.loader span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-15px);
    opacity: 0.6;
  }
}

.success-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #2ecc71;
  color: #fff;
  padding: 16px 30px;
  border-radius: 8px;
  display: none;
  z-index: 9999;
}

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

/* Large tablets / small laptops */
@media (max-width: 1024px) {
  .about-description {
    padding: 0 40px;
  }

  .about-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .ensured-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .background-text {
    font-size: 4.5rem;
  }

  .facts-bg-text {
    font-size: 5.5rem;
  }
}

/* Tablets */
@media (max-width: 768px) {
  html,
  body {
    font-size: 14px;
  }

  .carousel,
  .slide {
    min-height: 80vh;
  }

  .slide {
    justify-content: center;
    padding: 0 20px;
  }

  .content {
    max-width: 100%;
    padding: 20px;
  }

  .content h1 {
    font-size: 1.8rem;
  }

  .content p {
    font-size: 0.9rem;
  }

  .thumbnails {
    display: none;
  }

  .number-line {
    bottom: 50px;
  }

  .date-time {
    top: 10px;
    right: 10px;
    font-size: 0.75rem;
    padding: 5px 8px;
  }

  .side-nav-glass {
    display: none;
  }

  .about-section {
    padding: 60px 20px;
  }

  .about-description {
    padding: 0 15px;
    text-align: left;
  }

  .about-container {
    margin: 0;
    flex-direction: column;
  }

  .about-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-video {
    max-width: 100%;
  }

  .our-story-container {
    max-width: 100%;
    gap: 30px;
  }

  .our-story-left,
  .our-story-right {
    flex: 1 1 100%;
  }

  .facts-section {
    padding: 70px 20px;
    background-attachment: scroll;
  }

  .facts-bg-text {
    font-size: 4rem;
  }

  .product-grid-wrapper {
    max-width: 100%;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ensured-section,
  .quotes-section,
  .social-section {
    padding: 70px 20px;
    background-attachment: scroll;
  }

  .ensured-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-container {
    flex-direction: column;
  }

  .footer-container {
    flex-direction: column;
  }

  .background-text {
    font-size: 3.5rem;
    top: 0;
  }
}

/* Small phones */
@media (max-width: 576px) {
  .content {
    padding: 16px;
  }

  .content h1 {
    font-size: 1.5rem;
  }

  .content p {
    font-size: 0.85rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .about-description {
    padding: 0 10px;
  }

  .about-cards {
    grid-template-columns: 1fr;
  }

  .our-story-left h1 {
    font-size: 1.3rem;
  }

  .facts-counters {
    flex-direction: column;
    align-items: center;
  }

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

  .tabs {
    gap: 5px;
  }

  .tab {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

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

  .background-text,
  .facts-bg-text {
    display: none;
  }

  .quote-text {
    font-size: 1.1rem;
    margin: 50px 0 40px;
  }

  .footer-section {
    padding: 40px 15px 15px;
  }

  .go-top-btn {
    bottom: 20px;
    right: 20px;
    font-size: 18px;
    padding: 6px 10px;
  }
}
