/* ================= GLOBAL ================= */
:root {
  --primary: #ff6a00;

  --text-dark: #222222;
  --text-light: #666666;

  --bg-light: #f5f5f5;
  --bg-white: #ffffff;

  --radius-pill: 50px;

  --transition: 0.3s ease;

  /* SPACING SYSTEM */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 32px;
  --space-xl: 48px;

  --container-width: 1140px;
}

/* UNIVERSAL RESET - ELIMINATE ALL GAPS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* RESET */
body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-light);
  margin: 0 !important;
  padding: 0 !important;
  padding-top: 0 !important; /* force no top padding */
  width: 100%;
  position: relative;
}

a {
  color: #f37603;
  text-decoration: none;
  transition: 0.3s ease;
}

a:hover {
  color: #f37603; /* keep orange color on hover */
  text-decoration: none; /* no underline on hover */
}



* {
  box-sizing: border-box; /* ensure padding doesn't cause overflow */
}



img {
  max-width: 100%;
  height: auto;
  display: block;
}


/* Additional overflow prevention */
img, video, iframe {
  max-width: 100%;
  height: auto;
}

.banner-container, .company-container, .services-container, 
.games-container, .process-container, .why-container {

  overflow-x: hidden !important;
}
/* ================= BANNER ================= */

.banner-section {
  padding: 0 0 30px 0 !important; /* zero top padding - force with !important */
  background: white;
  margin-top: -100px !important; /* NEGATIVE MARGIN to pull it up and eliminate gap */
  position: relative;
  z-index: 1;
}

.banner-container {
  display: flex;
  align-items: center;
  justify-content: space-between; /* same as other sections */
  gap: 40px; /* same as other sections */

  padding-top: 100px !important;
}

.banner-content {
  flex: 0 0 45%; /* same ratio as other sections */
}

.banner-image {
  flex: 0 0 50%; /* same ratio as other sections */
  flex-shrink: 0;
}



.banner-content h1 {
  font-size: 44px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-top: 0; /* remove any default top margin */
  margin-bottom: var(--space-md);
}

.banner-content p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: var(--space-lg);
}


.banner-image {
  flex: 0 0 50%; /* same ratio as other sections */
  flex-shrink: 0;
}

.banner-image img {
  width: 100%; /* use full width of container */
  max-width: 600px; /* reasonable max size */
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
}
.banner-section .cta-btn {
  background: #FF9A32;
}

/* ================= COMPANY SECTION ================= */

.company-section {
  padding: 30px 0; /* reduced padding */
  background: transparent; /* let body background show through */
}

.company-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;

}

/* IMAGE */
.company-image {
  flex: 0 0 45%; /* same ratio as other sections */
}

.company-image img {
  width: 100%;
}

/* CONTENT */
.company-content {
  flex: 0 0 50%; /* same ratio as other sections */
}


/* 🔥 HEADING FIX (AS PER FIGMA) */
.company-content h2 {
  font-size: 43px;
  font-weight: 400;
  line-height: 1.15; /* ✅ FIXED (adds proper line gap) */
  letter-spacing: 0%;
  color: var(--text-dark);
  margin-bottom: var(--space-md);
}

.company-content p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: var(--space-lg);
}

/* ================= CTA ================= */

.cta-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.cta-btn:hover {
  background: #e55d00;
  text-decoration: none; /* remove underline on hover */
  color: #fff; /* keep text white */
}

/* Section-specific CTA sizes */
.banner-section .cta-btn {
  width: 141px;
  height: 50px;
  padding: 0 8px;
  font-size: 14px;
  border-radius: 24px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  overflow: hidden;
}

.banner-section .cta-btn:hover {
  background: #FF9A32;
}

.company-section .cta-btn {
  width: auto;
  min-width: 141px;
  height: 50px;
  padding: 0 20px;
  font-size: 14px;
  background: #FF6D1B;
  border-radius: 24px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}


.services-section .cta-btn {
  padding: 12px 26px;
  font-size: 14px;
  background: #FF6D1B;
}

.games-section .cta-btn {
  padding: 12px 28px;
  font-size: 14px;
  background: #FF6D1B;
}

.process-section .cta-btn {
  padding: 12px 30px;
  font-size: 14px;
  background: #FF6D1B;
}

.why-section .cta-btn {
  padding: 12px 30px;
  font-size: 14px;
  background: #FF6D1B;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {
  .banner-container,
  .company-container {
    flex-direction: column;
    text-align: center;
  }

  .banner-content,
  .banner-image,
  .company-content,
  .company-image {
    flex: 0 0 100%;
  }

  .banner-image img,
  .company-image img {
    max-width: 400px;
    transform: none;
  }

  .company-content h2 {
    font-size: 36px;
  }
}






/* ================= SERVICES SECTION ================= */

.services-section {
  padding: 30px 0; /* reduced padding */
  background: transparent; /* let body background show through */
}

/* HEADER */
.section-header {
  width: 100%;
  max-width: 1000px; /* increase from 800px */
  margin: 0 auto 40px; /* increased bottom margin */
  text-align: center;
  padding-top: 20px; /* add top padding */
}

.section-header h2 {
  font-size: 36px; /* bigger */
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
}

.section-header p {
  font-size: 14px;
  color: var(--text-light);
}

/* LAYOUT */
.services-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  max-width: 100%; /* prevent overflow */
}

/* LEFT ACCORDION */
.accordion {
  flex: 0 0 45%; /* limit accordion width */
}

/* Add spacing for CTA inside accordion */
.accordion .cta-btn {
  margin-top: 24px; /* gap between last accordion item and CTA */
}

/* RIGHT IMAGE */
.services-image {
  flex: 0 0 50%; /* give more space to image */
}


/* ITEM */
.accordion-item {
  border-bottom: 1px solid transparent;
  padding: var(--space-sm) 0;
  cursor: pointer;

}

/* HEADER */
.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color:#4B4B4B;
  transition: var(--transition);
}

/* ACTIVE STATE */
.accordion-item.active .accordion-header {
  color: #FF6D1B;
}

/* UNDERLINE ON ACTIVE */
.accordion-item.active {
  border-bottom: 1px solid #ddd;
}

/* BODY */
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: 0.3s ease;
}

.accordion-item.active .accordion-body {
  max-height: none;
  margin-top: var(--space-sm);
}
   
.accordion-body p {
  font-size: 13px;
  color: var(--text-light);
}

/* ICON */
.accordion-header .icon {
  width: 14px;
}


.services-image img {
  width: 100%;
  max-width: 400px; /* limit image size */
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .services-container {
    flex-direction: column;
  }

  .accordion,
  .services-image {
    flex: 0 0 100%;
  }
}


/* ================= GAMES SECTION ================= */

.games-section {
  padding: 60px 0; /* increased padding for proper spacing */
  background: transparent; /* let body background show through */
  overflow: hidden !important; /* force hide all overflow */
  max-width: 100vw;
}

/* HEADER already exists (reuse) */

/* LAYOUT */
.games-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  max-width: 100%; /* prevent overflow */
  overflow: hidden !important; /* force hide all overflow */
  width: 100%;
}

/* LEFT */
.games-content {
  flex: 1;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ITEM */
.game-item {
  margin-bottom: var(--space-lg);
}

.game-item h4 {
  font-size: 16px; /* increased */
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.game-item p {
  font-size: 14px; /* increased */
  color: var(--text-light);
  line-height: 1.6;
}

/* CTA spacing */
.games-content .cta-btn {
  margin-top: var(--space-md);
}

/* RIGHT IMAGE */
.games-image {
  flex: 1;
  display: flex;
  justify-content: center;
  overflow: hidden;
  max-width: 50%;
}

.games-image img {
  width: 100%;
  max-width: 100%; /* ensure it doesn't exceed container */
  height: auto;
  transform: translateY(20px);
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .games-container {
    flex-direction: column;
    text-align: center;
  }

  .games-content,
  .games-image {
    flex: 0 0 100%;
  }

  .games-image img {
    transform: none;
  }
}



/* ================= PROCESS SECTION ================= */

.process-section {
  padding: 30px 0; /* reduced padding */
}

/* LAYOUT */
.process-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 100%; /* prevent overflow */
}

/* LEFT IMAGE */
.process-image {
  flex: 0 0 45%; /* give more space to image */
  display: flex;
  justify-content: center;
}

.process-image img {
  width: 100%;
  max-width: 500px; /* increased from no limit */
  transform: translateY(10px);
}



/* RIGHT CONTENT */
.process-content {
  flex: 0 0 50%; /* limit content width */
}
.process-item {
  margin-bottom: var(--space-md);
}

.process-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.process-item p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* CTA */
.process-content .cta-btn {
  margin-top: var(--space-md);
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .process-container {
    flex-direction: column;
    text-align: center;
  }

  .process-image,
  .process-content {
    flex: 0 0 100%;
  }

  .process-image img {
    transform: none;
  }
}



/* ================= WHY SECTION ================= */

.why-section {
  padding: 30px 0; /* reduced padding */
  overflow: hidden !important; /* force hide all overflow */
  max-width: 100vw;
}

/* LAYOUT */
.why-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 100%; /* prevent overflow */
  overflow: hidden !important; /* force hide all overflow */
  width: 100%;
}

/* LEFT */
.why-accordion {
  flex: 1;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* reuse accordion styles (no duplication needed) */

/* CTA spacing for why section */
.why-accordion .cta-btn {
  margin-top: 32px; /* add space above CTA */
}

/* RIGHT IMAGE */
.why-image {
  flex: 1;
  display: flex;
  justify-content: center;
  overflow: hidden;
  max-width: 50%;
}

.why-image img {
  width: 100%;
  max-width: 100%; /* ensure it doesn't exceed container */
  height: auto;
  transform: translateY(10px);
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .why-container {
    flex-direction: column;
    text-align: center;
  }

  .why-accordion,
  .why-image {
    flex: 0 0 100%;
  }

  .why-image img {
    transform: none;
  }
}







/* ================= TECH STACK ================= */

.tech-section {
  padding: var(--space-xl) 0;
}

/* HEADING (reuse but ensure proper size) */
.tech-section .section-header h2 {
  font-size: 36px;
  font-weight: 600;
  color: var(--text-dark);
}

/* WRAPPER */
.tech-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

/* ROW */
.tech-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px; /* Figma-like spacing */
  flex-wrap: nowrap;
}

/* SECOND ROW (still centered) */
.second-row {
  justify-content: center;
}

/* ITEM */
.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ICON CIRCLE */
.tech-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;

  padding: 16px;
  border-radius: 50%;

  background: #ffffff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);

  margin-bottom: 8px;
}

/* TEXT */
.tech-item p {
  font-size: 13px;
  color: var(--text-dark);
  margin: 0;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {
  .tech-row {
    flex-wrap: wrap;
    gap: 30px;
  }

  .tech-item img {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 576px) {
  .tech-row {
    gap: 20px;
  }

  .tech-item img {
    width: 60px;
    height: 60px;
  }

  .tech-item p {
    font-size: 12px;
  }
}



/* ================= FAQ ================= */

.faq-section {
  padding: var(--space-xl) 0;
}

/* CONTAINER */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

/* ITEM */
.faq-item {
  padding: var(--space-md) 0;
  border-bottom: 1px solid #e5e5e5;
  cursor: pointer;
}

/* QUESTION */
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;

  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
}

/* ICON */
.faq-icon {
  width: 14px;
  transition: transform 0.3s ease;
}

/* ANSWER */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: 0.3s ease;
}

.faq-answer p {
  font-size: 14px;
  color: var(--text-light);
  margin-top: var(--space-sm);
}

/* ACTIVE */
.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}











/* ================= MOBILE FINAL ================= */
@media (max-width: 768px) {

  /* ===== GLOBAL ===== */
    .container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0 16px;
  }

  section {
    width: 100%;
  }

  h1 {
    font-size: 30px;
    line-height: 1.2;
  }

  h2 {
    font-size: 24px;
    line-height: 1.3;
  }

  p {
    font-size: 14px;
  }

  .section-header {
    margin-bottom: 24px;
  }


  /* ===== FORCE STACK (CONTENT → IMAGE) ===== */
  .banner-container,
  .company-container,
  .services-container,
  .games-container,
  .process-container,
  .why-container {
    flex-direction: column !important;
    text-align: left; /* ❗ important (not center like before) */
  }

  /* FORCE ORDER */
  .banner-content,
  .company-content,
  .accordion,
  .games-content,
  .process-content,
  .why-accordion {
    order: 1;
  }

  .banner-image,
  .company-image,
  .services-image,
  .games-image,
  .process-image,
  .why-image {
    order: 2;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .banner-image img {
    margin: 0 auto;
    display: block;
  }
.banner-content p{
  text-align: center;
}
  .banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;   /* THIS is the key */
    text-align: center;    /* optional but matches layout */
  }


  /* ===== REMOVE TRANSFORMS (IMPORTANT) ===== */
  .banner-image img,
  .company-image img,
  .games-image img,
  .process-image img,
  .why-image img {
    transform: none !important;
  }


  /* ===== BANNER ===== */
  .banner-content h1 {
    font-size: 28px;
    text-align: center;
  }


    .banner-image img,
  .company-image img,
  .games-image img,
  .process-image img,
  .why-image img {
    transform: none !important;
  }



  /* Prevent flex overflow */
.banner-container,
.company-container,
.services-container,
.games-container,
.process-container,
.why-container {
  flex-wrap: wrap;
}

  /* ===== COMPANY ===== */
  .company-content h2 {
    font-size: 28px;
    text-align: center;
  }

  .company-content {
    display: flex;
    flex-direction: column;
    align-items: center;   /* centers button */
  }

  .company-content .cta-btn {
    margin-top: 20px;
  }
  /* Only target LARGE section headings */
  .section-header h2,
  .company-content h2,
  .why-section h2,
  .tech-section h2,
  .faq-section h2 {
    font-size: 25px;
    line-height: 1.3;
  }

  /* ===== SERVICES (ACCORDION) ===== */
  .accordion-header {
    font-size: 15px;
  }

  .accordion-body p {
    font-size: 14px;
  }

  /* Center CTA for sections with centered headings - keep original width */
  .services-section .accordion,
  .games-section .games-content,
  .process-section .process-content,
  .why-section .why-accordion {
    display: flex;
    flex-direction: column;
    align-items: center;
  }


  /* ===== GAMES SECTION ===== */
  .game-item h4 {
    font-size: 15px;
  }

  .game-item p {
    font-size: 14px;
  }

  .games-container {
    flex-direction: column !important;
  }

  .games-image {
    order: 2;
    margin-top: 10px;
    margin-bottom: 0;
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .games-content {
    order: 1;
    width: 100%;
  }

  .games-image img {
    max-width: 200px !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 auto;
    display: block;
    transform: none !important;
  }


  /* ===== PROCESS ===== */
  .process-item h4 {
    font-size: 15px;
  }

  .process-container {
    flex-direction: column !important;
  }

  .process-image {
    order: 2;
    margin-top: 20px;
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .process-content {
    order: 1;
    width: 100%;
  }

  .process-image img {
    max-width: 250px !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 auto;
    display: block;
    transform: none !important;
  }


  /* ===== WHY ===== */
  .why-section h2 {
    font-size: 24px;
  }

  .why-container {
    flex-direction: column !important;
  }

  .why-image {
    order: 2;
    margin-top: 20px;
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .why-accordion {
    order: 1;
    width: 100%;
  }

  .why-image img {
    max-width: 300px !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 auto;
    display: block;
    transform: none !important;
  }


  /* ===== TECH STACK ===== */
  .tech-row {
    flex-wrap: wrap;
    gap: 20px;
  }

  .tech-item {
    width: 30%;
  }

  .tech-item img {
    width: 55px;
    height: 55px;
    padding: 12px;
  }

  .tech-item p {
    font-size: 12px;
  }


  /* ===== FAQ ===== */
  .faq-question {
    font-size: 14px;
  }

  .faq-answer p {
    font-size: 13px;
  }


  /* ===== CTA BUTTON ===== */
  .cta-btn {
    font-size: 14px;
    padding: 10px 18px;
  }

}


/* ================= CRITICAL OVERRIDES - MUST BE LAST ================= */
/* Force remove any top spacing from banner section */
body > section:first-of-type,
body > .banner-section:first-child,
.banner-section:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}



/* Remove any default spacing from first section */
section:first-of-type {
  margin-top: 0 !important;
  padding-top: 0 !important;
}


/* ================= PORTFOLIO SECTION ================= */

.portfolio-section {
  padding: 8rem 0;
  margin: 0;
  overflow-x: hidden;
  background: transparent; /* let body background show through */
  transition: background 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.portfolio-section .section-heading {
  font-weight: 400;
  font-size: 3.125rem;
  margin-bottom: 25px;
  color: var(--text-dark);
  text-align: center;
}

.text-orange {
  color: #ff6d1b;
}

/* Filter Buttons */
.gallery-filter {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  color: #000;
  margin: 0 20px 8px;
  border-radius: 2px;
  padding: 4px 32px;
  font-size: 18px;
  border: 1px solid #ff6d1b;
  box-shadow: 0px 4px 12px 0px #00000026;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.active {
  color: #fff;
  background: #f47412;
}

.filter-btn:hover {
  background: #f47412;
  color: #fff;
}

/* Carousel */
.main-carousel {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 3rem;
}

.we-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60vh;
  min-height: 400px;
}

.we-card-container {
  width: 200px;
  height: 200px;
  position: relative;
}

.we-card {
  box-sizing: border-box;
  text-align: center;
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transition: all 0.5s ease;
  filter: none;
}

.we-card img {
  width: 100%;
  height: 200px;
  border-radius: 10px;
  object-fit: cover;
  cursor: pointer;
}

.we-card.active {
  opacity: 1;
  z-index: 2;
  transform: scale(1.7) translateY(0px);
}

.we-card.prev-1,
.we-card.next-1 {
  opacity: 0.5;
  filter: blur(1px);
  z-index: 1;
}

.we-card.prev-2,
.we-card.next-2 {
  opacity: 0.2;
  filter: blur(1px);
  z-index: 1;
}

.we-card.prev-3,
.we-card.next-3 {
  opacity: 0;
}

.we-card.prev-1 {
  transform: translateX(-230px) rotate(-10deg) translateY(20px);
}

.we-card.next-1 {
  transform: translateX(230px) rotate(10deg) translateY(20px);
}

.we-card.prev-2 {
  transform: translateX(-483px) rotate(-20deg) translateY(80px);
}

.we-card.next-2 {
  transform: translateX(483px) rotate(20deg) translateY(80px);
}

.we-card.prev-3 {
  transform: translateX(-697px) rotate(-30deg) translateY(172px);
}

.we-card.next-3 {
  transform: translateX(697px) rotate(30deg) translateY(172px);
}

/* Carousel Arrows */
.carousel-arrows {
  display: flex;
  justify-content: center;
  width: 100%;
  position: absolute;
  bottom: -70px;
  gap: 20px;
}

.we-arrow {
  cursor: pointer;
  user-select: none;
  background-color: #ff6d1b;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.we-arrow:hover {
  background-color: #e55d00;
}

.we-arrow svg {
  width: 16px;
  height: 16px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal.no-lenis {
  overflow-y: auto;
}

body.modal-open {
  overflow: hidden !important;
}

.close-img {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 1001;
}

.close-img:hover,
.close-img:focus {
  color: #bbb;
}

.portfolio-img {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}

#modelContainer {
  width: 100%;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#modelContainer iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Utility Classes */
.hide {
  display: none !important;
}

.showCard {
  display: flex !important;
}

/* Responsive */
@media (max-width: 991px) {
  .portfolio-section .section-heading {
    font-size: 2.5rem;
  }
  
  .we-carousel {
    height: 50vh;
    min-height: 350px;
  }
}

@media (max-width: 767px) {
  .portfolio-section {
    padding: 3rem 0 5rem 0;
    min-height: auto;
  }
  
  .portfolio-section .section-heading {
    font-size: 2.188rem;
  }
  
  .filter-btn {
    font-size: 1rem;
    padding: 4px 20px;
    margin: 0 8px 8px;
  }
  
  .portfolio-img {
    width: 90%;
  }
  
  .we-carousel {
    height: 350px;
    min-height: 350px;
    position: relative;
    margin-bottom: 80px;
  }
  
  .we-card.active {
    transform: scale(1.5) translateY(0px);
  }
  
  .we-card.prev-1 {
    transform: translateX(-180px) rotate(-10deg) translateY(20px);
  }
  
  .we-card.next-1 {
    transform: translateX(180px) rotate(10deg) translateY(20px);
  }
  
  .we-card.prev-2 {
    transform: translateX(-350px) rotate(-20deg) translateY(60px);
  }
  
  .we-card.next-2 {
    transform: translateX(350px) rotate(20deg) translateY(60px);
  }
}

@media (max-width: 575px) {
  .portfolio-section .section-heading {
    font-size: 1.75rem;
  }
  
  .gallery-filter {
    gap: 12px;
  }
  
  .filter-btn {
    font-size: 0.875rem;
    padding: 4px 16px;
  }
  
  .carousel-arrows {
    bottom: -60px;
  }
  
  .we-arrow {
    width: 35px;
    height: 35px;
  }
}


/* gotop */
/* ================= GO TO TOP BUTTON ================= */

.gotop {
  position: fixed;
  bottom: 60px;
  right: 30px;
  width: 30px;
  height: 30px;
  background: #FF6D1B;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 109, 27, 0.3);
  pointer-events: auto;
}

.gotop::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 7px solid #fff;
}

.gotop:hover {
  background: #e55d00;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(255, 109, 27, 0.4);
}

.gotop.show {
  display: flex !important;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .gotop {
    width: 28px;
    height: 28px;
    bottom: 20px;
    right: 20px;
  }
  
  .gotop::before {
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 6px solid #fff;
  }
}




/* ================= HEADER Z-INDEX FIX ================= */
/* Ensure header and dropdowns appear above all content */

header, .header, nav, .navbar, .main-header, .site-header {
  position: relative;
  z-index: 1000 !important;
}

/* Dropdown menus should be above everything except modals */
.dropdown-menu, .nav-dropdown, .menu-dropdown, .sub-menu, 
header .dropdown, nav .dropdown, .navbar .dropdown {
  z-index: 1001 !important;
  position: relative;
}

/* Ensure sections don't overlap header */
section {
  position: relative;
  z-index: 1;
}
