/* =================== */
/* Global Styles       */
/* =================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #ffffff;
  color: #111;
  text-align: center;
  line-height: 1.8;
}

img {
  user-drag: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  pointer-events: none;
}

a {
  text-decoration: none;
  color: inherit;
}

.btn {
  padding: 12px 24px;
  font-size: 1rem;
  background-color: #b58700;
  color: #222;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #ffbf04;
}

/* =================== */
/* Hero Section        */
/* =================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content,
.hero-buttons-bar {
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
}

/* Optional delay for staggered effect */
.hero-content {
  animation-delay: 0.3s;
}

.hero-buttons-bar {
  animation-delay: 0.8s;
}


.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero video {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 2rem;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 8rem);
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.hero p {
  font-size: clamp(1.8rem, 2vw, 5rem);
  max-width: 900px;
  margin: 0 auto;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-buttons-bar {
  position: absolute;
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

/* =================== */
/* Our Story Section   */
/* =================== */
.our-story {
  padding: 8rem 2rem;
  background-color: #fff;
}

.story-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.story-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.story-text {
  flex: 2 1 30%;
  text-align: left;
}

.story-text h3 {
  font-size: clamp(1.5rem, 7vw, 2.8rem);
  margin-bottom: 1rem;
}

.story-text p {
  font-size: clamp(1.2rem, 4.5vw, 1.6rem);
  line-height: 1.6;
}

.story-media {
  flex: 2 1 20%;
}

.story-media img,
video {
  width: 100%;
  border-radius: 5px;
  display: block;
}

.story-block.reverse {
  flex-direction: row-reverse;
}

@media (max-width: 768px) {
  .story-block,
  .story-block.reverse {
    flex-direction: column;
    text-align: center;
  }

  .story-text {
    text-align: justify;
  }
}

.learn-more-btn {
  color: #222;
  font-size: clamp(1.2rem, 4.5vw, 1.6rem);
  font-weight: bold;
  position: relative;
  padding-bottom: 10px;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.learn-more-btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 5px;
  background-color: #ffbf04;
  transform: scaleX(0);
  transition: transform 0.1s ease;
  transform-origin: left;
}

.learn-more-btn:hover::after {
  transform: scaleX(1);
}

/* =================== */
/* Gold Section        */
/* =================== */
.gold-section {
  background-color: #ffbf04;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem;
  text-align: center;
  color: #222;
}

.gold-content h2 {
  font-size: clamp(1.5rem, 7vw, 2.8rem);
  margin-bottom: 0;
}

.gold-content p {
  font-size: clamp(1.2rem, 4.5vw, 1.6rem);
  max-width: 1200px;
  margin: 0 auto;
}

/* =================== */
/* Cards Section (Large) */
/* =================== */
.cards-section {
  padding: 4rem 2rem;
  background-color: #fafafa;
}

#cards-section {
  background-image: url("../img/wallpaperFactory.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
}

.cards-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.card {
  background-color: #fff;
  color: red;
  border: 1px solid #222;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  aspect-ratio: 1 / 1;
  padding: 1rem;
}

#capi:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

#pccc:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

#kgc:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

#glowide:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

#ad:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.card img {
  width: 80%;
  height: auto;
  border-radius: 5px;
}

.card-btn {
  color: #222;
  font-weight: 600;
  font-size: clamp(1.2rem, 4.5vw, 1.6rem);
  position: relative;
  padding-bottom: 10px;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.card-btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 5px;
  background-color: #ffbf04;
  transform: scaleX(0);
  transition: transform 0.1s ease;
  transform-origin: center;
}

.card-btn:hover::after {
  transform: scaleX(1);
}

@media (max-width: 768px) {
  .cards-container {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
  }

  .card {
    flex: 0 0 75%;
    scroll-snap-align: center;
  }
}

.cards-container::-webkit-scrollbar {
  display: none;
}

.cards-container {
  scrollbar-width: none;
}

/* =================== */
/* Small Cards Section */
/* =================== */
.small-cards-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.small-cards .cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: rem;
  padding-bottom: 1rem;
}

@media (max-width: 768px) {
  .small-cards .cards-container {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .small-cards .card {
    flex: 0 0 120px;
    scroll-snap-align: start;
  }
}

.small-cards .cards-container::-webkit-scrollbar {
  display: none;
}

.small-cards .cards-container {
  scrollbar-width: none;
}

.small-cards .card {
  aspect-ratio: 1 / 1;
  padding: 0.5rem;
  border-radius: 5px;
  border: 1px solid #e0c878;
  background-color: #ffffff;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
  scroll-snap-align: start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.small-cards .card img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  object-fit: contain;
}

/* =================== */
/* Parallax About Banner */
/* =================== */
.about-section {
  position: relative;
  background-image: url("../img/portView.webp");
  background-size: cover;
  background-position: center;
  padding: 8rem 2rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-attachment: fixed;
}

.about-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.about-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
}

.about-content h2 {
  font-size: clamp(1.5rem, 7vw, 2.8rem);
}

.about-content p {
  font-size: clamp(1.2rem, 4.5vw, 1.6rem);
  text-align: 
  line-height: 1.6;
}

.about-btn {
  color: #ffbf04;
  font-size: clamp(1.2rem, 4.5vw, 1.6rem);
  font-weight: bold;
  position: relative;
  padding-bottom: 10px;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.about-btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 5px;
  background-color: #ffbf04;
  transform: scaleX(0);
  transition: transform 0.1s ease;
  transform-origin: center;
}

.about-btn:hover::after {
  transform: scaleX(1);
}

/* =================== */
/* Careers Section     */
/* =================== */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.content-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  margin-bottom: 4rem;
}

.content-block.reverse {
  flex-direction: row-reverse;
}

.carousel-container {
  flex: 1 1 50%;
  max-width: 500px;
  overflow: hidden;
  position: relative;
}

.carousel {
  position: relative;
  height: 100%;
}

.carousel-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  border-radius: 5px;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.carousel-image.active {
  opacity: 1;
  z-index: 1;
  position: relative;
  pointer-events: auto;
}

.text-content {
  flex: 1 1 50%;
}

.text-content h2 {
  font-size: clamp(1.5rem, 7vw, 2.8rem);
  color: #222;
  margin-bottom: 0.5rem;
}

.text-content p {
  font-size: clamp(1.2rem, 4.5vw, 1.6rem);
  color: #222;
}

@media (max-width: 768px) {
  .content-block,
  .content-block.reverse {
    flex-direction: column;
  }

  .carousel-container,
  .text-content {
    flex: 1 1 100%;
  }
}

.careers_contact-btn {
  color: #222;
  font-size: clamp(1.2rem, 4.5vw, 1.6rem);
  font-weight: 600;
  position: relative;
  padding-bottom: 10px;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.careers_contact-btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 5px;
  background-color: #ffbf04;
  transform: scaleX(0);
  transition: transform 0.1s ease;
  transform-origin: center;
}

.careers_contact-btn:hover::after {
  transform: scaleX(1);
}

/* =================== */
/* Contact Us Section  */
/* =================== */
/* CTA Section */
.cta-section {
  background: #ffbf04;
  padding: 60px 20px;
  display: flex;
  justify-content: center;
}

.cta-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  width: 100%;
  text-align: center;
  align-items: stretch; /* 🔥 Makes all boxes equal height */
}

/* CTA Box */
.cta-box {
  background: #fff;
  padding: 30px 20px;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;              /* 🔥 Flex layout inside */
  flex-direction: column;     /* Stack items vertically */
  justify-content: center;    /* Center content */
  transition: transform 0.3s ease;
}

.cta-box:hover {
  transform: translateY(-5px);
}

.cta-box i {
  font-size: 2rem;
  color: #ffbf04;
  margin-bottom: 15px;
}

.cta-box h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin-bottom: 10px;
  color: #222;
}

.cta-box p {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: #444;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 900px) {
  .cta-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* CTA Button */
.cta-btn {
  display: inline-block;       /* shrink to content width */
  padding: 10px 20px;
  background: #ffbf04;
  color: #222;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;          /* smaller round corners */
  margin: 10px auto 0;         /* centers the button inside box */
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  transition: background 0.3s ease, transform 0.2s ease;
}

.cta-btn:hover {
  background: #e6a800;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 900px) {
  .cta-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 80px;
  height: 80px;
  border: none;
  border-radius: 50%;
  background-color: #ffbf04; /* gold */
  color: #222;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

/* Show button */
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* Responsive: slightly smaller on mobile */
@media (max-width: 600px) {
  .back-to-top {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
}