/* Section Header */

/* tabs layout */

/* --- Base Styles & Variables --- */
:root {
  --tab-padding: 0.8rem 1.5rem;
  --tab-font-size: 0.9rem;
  --container-margin: 3rem;
}

@media (min-width: 1300px) {
  :root {
    --tab-padding: 1rem 1.5rem;
    --tab-font-size: 1rem;
    --container-margin: 3rem;
  }
}

.portfolio-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: var(--container-margin);
  padding: 0.5rem;

  /* Mobile-first scrolling behavior */
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */

  /* Hide scrollbars */
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.portfolio-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  background: transparent;
  border: 1px solid #e2e8f0;
  padding: var(--tab-padding);
  border-radius: 2rem;
  font-family: 'Poppins', sans-serif;
  font-size: var(--tab-font-size);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #64748b;
  flex-shrink: 0; /* Prevents buttons from squishing on small screens */
}

/* --- Responsive Adjustments --- */

/* Small Devices (Phones, 640px and down) */
@media (max-width: 640px) {
  .portfolio-tabs {
    justify-content: flex-start; /* Align left so user knows to scroll right */
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding-left: 0rem;
    /* Better edge alignment for horizontal scroll */
  }

  .tab-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
}

/* Medium Devices (Tablets, 768px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .portfolio-tabs {
    gap: 1.25rem;
  }
}

/* Large/Desktop Devices (1024px and up) */
@media (min-width: 1025px) {
  .portfolio-tabs {
    overflow-x: visible; /* No need to scroll on large screens */
    white-space: normal; /* Allow wrapping if there are many categories */
    flex-wrap: wrap;
  }
}

/* Tab Layout Styles */
/* .portfolio-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  overflow-x: auto; 
  padding: 0.5rem;
  white-space: nowrap;
  -ms-overflow-style: none;  
  scrollbar-width: none;  
}

.portfolio-tabs::-webkit-scrollbar {
  display: none; 
}

.tab-btn {
  background: transparent;
  border: 1px solid #e2e8f0;
  padding: 0.8rem 1.5rem;
  border-radius: 2rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #64748b;
} */

.tab-btn:hover {
  border-color: #6366f1;
  color: #6366f1;
}

.tab-btn.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* Animation for filtering */
.portfolio-item {
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* end */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  font-size: 1rem;
  font-weight: 600;
  color: #6366f1;
}

.section-title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 500;
  /* font-size: 2.5rem; */
  text-transform: uppercase;
  color: #000;
  margin: 1rem;
  letter-spacing: -1px;
}

@media (min-width: 550px) {
  .section-title {
    font-size: 2rem;
  }
}

@media (min-width: 600px) {
  .section-title {
    font-size: 2rem;
  }
}

@media (min-width: 700px) {
  .section-title {
    font-size: 2.3rem;
  }
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

@media (min-width: 800px) {
  .section-title {
    font-size: 2.2rem;
  }
}

@media (min-width: 900px) {
  .section-title {
    font-size: 2.8rem;
  }
}

@media (min-width: 970px) {
  .section-title {
    font-size: 2.9rem;
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 3.4rem;
  }
}

@media (min-width: 1200px) {
  .section-title {
    font-size: 4.2rem;
  }
}

@media (min-width: 1260px) {
  .section-title {
    font-size: 4.8rem;
  }
}

@media (min-width: 1300px) {
  .section-title {
    font-size: 4.6rem;
  }
}

@media (min-width: 1400px) {
  .section-title {
    font-size: 5.2rem;
  }
}

@media (min-width: 1550px) {
  .section-title {
    font-size: 5.6rem;
  }
}

@media (min-width: 1648px) {
  .section-title {
    font-size: 5.8rem;
  }
}

@media (min-width: 1700px) {
  .section-title {
    font-size: 5.8rem;
  }
}

/* Portfolio Layout */
.portfolio-section {
  padding-bottom: 6rem;
  padding-left: 3.4rem;
  padding-right: 3.2rem;
  margin: auto;
  padding-top: 5rem;
  position: relative;
  z-index: 10;
}

@media (min-width: 300px) {
  .portfolio-section {
    padding-bottom: 3rem;
    margin-top: 0rem;
    padding-top: 1rem;
    padding-left: 1.4rem;
    padding-right: 1.4rem;
  }
}

@media (min-width: 550px) {
  .portfolio-section {
    margin-top: 0rem;
    padding-top: 2.5rem;
    padding-left: 2.2rem;
    padding-right: 2.2rem;
  }
}

@media (min-width: 740px) {
  .portfolio-section {
    margin-top: 0rem;
    padding-top: 3rem;
    padding-left: 2.2rem;
    padding-right: 2.2rem;
  }
}

@media (min-width: 765px) {
  .portfolio-section {
    margin-top: 0rem;
    padding-top: 3rem;
    padding-left: 2.6rem;
    padding-right: 2.6rem;
  }
}

@media (min-width: 800px) {
  .portfolio-section {
    padding-left: 2.6rem;
    padding-right: 2.8rem;
  }
}

@media (min-width: 965px) {
  .portfolio-section {
    padding-bottom: 6rem;
    padding-left: 2.9rem;
    padding-right: 2.9rem;
  }
}

@media (min-width: 1100px) {
  .portfolio-section {
    padding-left: 3.1rem;
    padding-right: 3.1rem;
  }
}

@media (min-width: 1190px) {
  .portfolio-section {
    padding-left: 3.35rem;
    padding-right: 3.35rem;
  }
}

@media (min-width: 1500px) {
  .portfolio-section {
    /* padding-top: 3rem; */
    padding-left: 4.3rem;
    padding-right: 4.3rem;
  }
}

@media (min-width: 1600px) {
  .portfolio-section {
    /* padding-top: 3rem; */
    padding-left: 5rem;
    padding-right: 5rem;
  }
}

@media (min-width: 1600px) {
  .portfolio-section {
    /* padding-top: 3rem; */
    padding-left: 6rem;
    padding-right: 6rem;
  }
}

@media (min-width: 1700px) {
  .portfolio-section {
    /* padding-top: 3rem; */
    padding-left: 6.3rem;
    padding-right: 6.3rem;
  }
}

/* @media (max-width: 800px) {
  .portfolio-section {
    padding-left: 2.2rem;
    padding-right: 2.2rem;
  }
} */

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

/* Individual Card */
.portfolio-item {
  cursor: pointer;
  user-select: none;
}

.portfolio-image-box {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  overflow: hidden;
  background: #000; /* Keeps the "letterbox" bars black */
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sound-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: background 0.3s ease;
}

.sound-toggle:hover {
  background: rgba(0, 0, 0, 0.8);
}

.sound-toggle svg {
  width: 18px;
  height: 18px;
}

.portfolio-video {
  position: absolute;
  /* Centering Logic */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  /* Size Logic */
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;

  object-fit: contain; /* Shows full video without cropping */
  opacity: 0;
  z-index: 1;
  transition: none !important;
}

/* Image sits on top */
.portfolio-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  /* transition: none !important; */
  display: block;
}

/* .portfolio-item.no-video:hover {
  transform: none !important;
}


.portfolio-item.no-video .portfolio-img {
  opacity: 1 !important;
} */

.portfolio-img {
  transition:
    opacity 0.35s ease,
    transform 0.5s ease;
}

.portfolio-item:hover .portfolio-video {
  opacity: 1; /* Shows video instantly */
}

/* Hover Effect: Image disappears, Video is revealed */
/* .portfolio-item:hover .portfolio-img {
  opacity: 0;
  visibility: hidden;
  display: none !important;
} */

.portfolio-image-box img {
  width: 100%;
  background-color: #fff;
  align-self: center;
  justify-self: center;
  /* height: 100%; */
  object-fit: cover;
  /* transition: transform 0.7s ease; */
}

.portfolio-item:hover img {
  /* transform: scale(1.05); */
}

/* Tags */
.badge2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  background: #ffffff;
  padding: 0.35rem 0.75rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  font-size: 0.8rem;
  /* font-weight: 600; */
  color: #0f172a;
}

@media (max-width: 820px) {
  .badge2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    background: #ffffff;
    padding: 0.1rem 0.6rem;
    font-size: 0.6rem;
  }
}

@media (max-width: 550px) {
  .badge2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    background: #ffffff;
    padding: 0.1rem 0.6rem;
    font-size: 0.6rem;
  }
}

@media (max-width: 450px) {
  .badge2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    background: #ffffff;
    padding: 0.1rem 0.4rem;
    font-size: 0.6rem;
  }
}

@media (max-width: 350px) {
  .badge2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    background: #ffffff;
    padding: 0.1rem 0.4rem;
    font-size: 0.45rem;
  }
}

.tag-container {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

/* Content */
.portfolio-info {
  display: flex;
  align-items: self-start;
  justify-content: space-between;
  /* padding: 0 0.5rem; */
}

.item-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  margin: 0;
  /* font-size: 1.25rem; */
  /* font-size: clamp(0.8rem, 1vw + 0.3rem, 1.3rem); */
  /* font-weight: 700; */
  color: #0f172a;
}

@media (min-width: 300px) {
  .portfolio-info {
    padding: 0rem 0rem;
  }
  .item-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    margin: 0;
    /* font-size: 1.25rem; */
    font-size: clamp(0.8rem, 0.4rem + 0.5vw, 1.15rem);
    /* font-weight: 700; */
    color: #0f172a;
  }

  .item-category {
    font-size: clamp(0.8rem, 0.4rem + 0.5vw, 1.15rem);
  }
}

@media (min-width: 768px) {
  .portfolio-info {
    padding: 0 0.5rem;
  }

  .item-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    margin: 0;
    /* font-size: 1.25rem; */
    font-size: clamp(0.8rem, 0.4rem + 0.5vw, 1.15rem);
    /* font-weight: 700; */
    color: #0f172a;
  }

  .item-category {
    font-size: clamp(0.8rem, 0.4rem + 0.5vw, 1.15rem);
  }
}

@media (min-width: 1024px) {
  .portfolio-info {
    padding: 0 0.5rem;
  }

  .item-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    margin: 0;
    /* font-size: 1.25rem; */
    font-size: clamp(1.15rem, 0.4rem + 0.5vw, 1.15rem);
    /* font-weight: 700; */
    color: #0f172a;
  }

  .item-category {
    font-size: clamp(1.15rem, 0.4rem + 0.5vw, 1.15rem);
  }
}

.item-category {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  margin-top: 0.2rem;
  color: #64748b;
  /* font-size: clamp(0.1rem, 2vw + 0.5rem, 1.25rem); */
  /* font-weight: 500; */
}

/* Arrow Button */
.arrow-btn {
  width: 5rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid #aaaaaa;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.portfolio-item:hover .arrow-btn {
  background: #000;
  color: #fff;
  border-color: #000;
}

.arrow-icon {
  width: 1.2rem;
  height: 1.2rem;
}

/* =========================================
   MAIN CARD
========================================= */

.explore-card {
  cursor: pointer;
}

/* =========================================
   HERO SECTION
========================================= */

.explore-card-hero {
  background: #000;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 1.3rem;
}

/* =========================================
   CIRCLE
========================================= */

.explore-card-circle {
  width: clamp(60px, 7vw, 120px);
  height: clamp(60px, 7vw, 120px);

  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: transform 0.4s ease;
}

@media (max-width: 1080px) {
  .explore-card-circle {
    width: clamp(50px, 6vw, 100px);
    height: clamp(50px, 6vw, 100px);
  }
}

@media (max-width: 768px) {
  .explore-card-circle {
    width: clamp(40px, 5vw, 80px);
    height: clamp(40px, 5vw, 80px);
  }
}

@media (max-width: 500px) {
  .explore-card-circle {
    width: clamp(40px, 5vw, 80px);
    height: clamp(40px, 5vw, 80px);
  }
}

/* =========================================
   TOP ARROW SVG
========================================= */

.explore-card-arrow-svg {
  width: 35%;
  height: 35%;
}

/* =========================================
   MAIN HEADING
========================================= */

.explore-card-heading {
  color: #f5f5f5;

  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 500;

  text-transform: uppercase;
  text-align: center;

  margin: 0;
}

@media (max-width: 1080px) {
  .explore-card-heading {
    font-size: clamp(1.5rem, 2vw, 1rem);
  }
}

@media (max-width: 767px) {
  .explore-card-heading {
    font-size: clamp(3rem, 1.5vw, 3rem);
  }
}

@media (max-width: 500px) {
  .explore-card-heading {
    font-size: clamp(2.5rem, 1.4vw, 2rem);
  }
}

@media (max-width: 450px) {
  .explore-card-heading {
    font-size: clamp(2rem, 1.4vw, 1.7rem);
  }
}

@media (max-width: 400px) {
  .explore-card-heading {
    font-size: clamp(1.7rem, 1.4vw, 1.7rem);
  }
}

@media (max-width: 320px) {
  .explore-card-heading {
    font-size: clamp(1.5rem, 1.4vw, 2rem);
  }
}


/* =========================================
   INFO SECTION
========================================= */

.explore-card-info {
}

/* =========================================
   META SECTION
========================================= */

.explore-card-meta {
}

/* =========================================
   TITLE
========================================= */

.explore-card-title {
}

/* =========================================
   CATEGORY
========================================= */

.explore-card-category {
}

/* =========================================
   BOTTOM RIGHT ARROW
========================================= */

.explore-card-bottom-arrow {
}

/* =========================================
   BOTTOM RIGHT SVG
========================================= */

.explore-card-bottom-arrow-icon {
}
