/*-----------------------*/
/* Project Category Tabs */
/*-----------------------*/
.scrollable-tabs-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: fit-content;
    /* height: 100%; */
    margin: 0px auto;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    /* border-left: 1px solid rgb(185, 160, 255); */
    /* border-top: 1px solid rgb(185, 160, 255); */
    /* border-bottom: 1px solid rgb(185, 160, 255); */
    border: 1px solid rgb(185, 160, 255);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.scrollable-tabs-container svg {
    width: 24px;
    height: 24px;
    padding: 8px;
    cursor: pointer;
    color: black;
    border-radius: 50%; 
}

.scrollable-tabs-container ul {
    display: flex;
    gap: 16px;
    padding: 24px 24px;
    margin: 0;
    list-style: none;
    overflow-x: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.scrollable-tabs-container ul::-webkit-scrollbar {
    display: none;
}

.scrollable-tabs-container a {
    color: gray;
    text-decoration: none;
    background: white;
    padding: 4px 24px;
    display: inline-block;
    border-radius: 4px;
    user-select: none;
    white-space: nowrap;
}

.scrollable-tabs-container a.active {
    background: rgb(185, 160, 255);
    color: white;
    box-shadow: rgba(174, 144, 250, 0.71) 0px 0px 30px 0px;
}

.scrollable-tabs-container .right-arrow,
.scrollable-tabs-container .left-arrow {
    position: absolute;
    height: 100%;
    width: 100px;
    top: 0;
    display: none;
    align-items: center;
    padding: 0 10px;
}

.scrollable-tabs-container .right-arrow.active,
.scrollable-tabs-container .left-arrow.active {
    display: flex;
}

.scrollable-tabs-container .right-arrow {
    right: 0;
    justify-content: flex-end;
    background: linear-gradient(to left, #ffffff 5%, transparent);
}

.scrollable-tabs-container .left-arrow {
    background: linear-gradient(to right, #ffffff 5%, transparent);
}

.scrollable-tabs-container svg:hover {
    background: rgb(185, 160, 255);
    color: white;
    box-shadow: rgba(174, 144, 250, 0.71) 0px 0px 30px 0px;
}

/*------------------*/
/* project card box */
/*------------------*/

.project-content-box {
    display: 200px;
    padding: 20px 0;
}

.project-content-box .project-content {
    display: none;
    animation: moving .5s ease;
}
@keyframes moving {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
    
}

.project-content-box .project-content.active {
    display: block;
}

.experience-details-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.article-container {
    display: flex;
    text-align: initial;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 2.4rem;
    justify-content: space-around;
}

.meta div {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.meta strong {
  color: #333;
}

.tech-used h3 {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  color: #444;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
  margin-left: 1rem;
  margin-right: 1rem;
  /* text-align: justify; */
}

.badge {
  background-color: #e0e7ff;
  color: #1e3a8a;
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}

/*------------------*/
/* PROJECT  Section */
/*------------------*/

#project {
    position: relative;
}

.color-container {
    border-color: rgb(163, 163, 163);
    background: rgb(250, 250, 250);
}

.project-img {
    border-radius: 10px;
    margin-top: 1rem;
    margin-left: 1rem;
    margin-right: 1rem;
    width: 90%;
    height: 90%;
    border: #000000 1px solid; 
}

.project-title {
    margin-top: 0.5rem;
    color: black;
    justify-content: center;
    align-items: center;
}

.project-btn {
    color: black;
    border-color: rgb(163, 163, 163);
}

.card-container {
    perspective: 1000px;
}

.card {
    /* display: flex;
    text-align: initial;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 2.5rem;
    justify-content: space-around; */
    /* handle the width & height based on differeny screen size  */
    width: 350px;
    height: 400px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s;
}

.card.flipped {
    transform: rotateY(180deg);
}

.card-side {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 10px;
    box-shadow: rgba(174, 144, 250, 0.71) 0px 0px 30px 0px;
}

.card-front {
    background: #ffffff;
}
  
.card-back {
    background: rgb(174, 144, 250);
    transform: rotateY(180deg);
    color: black;
}

/* Tabs inside card */
.tabs {
  display: flex;
  flex-direction: column;
  height: 82%;
  width: 95%;
}

.tab-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  margin-bottom: 5px; /*gap between tab btn and content */
  gap: 5px;
}

.tab-btn {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  padding: 5px;
  cursor: pointer;
  background: var(--theme-color);
  border: 1px solid white;
  /* border-top-left-radius: 10px; */
  /* border-top-right-radius: 10px; */
  border-radius: 5px;
  outline: none;
  transition: background 0.3s;
}

.tab-btn:hover{
  background: black;
  color: white;  
}

.tab-btn.active {
  /* background: #007bff; */
  background: white;
  color: black;
}

/* tab contents */

.tab-contents {
  flex: 1;
  position: relative;
  overflow-y: auto;
  padding: 5px;
  gap: 3rem;
  /* border: 1px solid white; */
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  /* background-color: white; */
}

.tab-content {
  display: none;
  font-size: 12px;
  overflow-y: auto; /* allows scrolling if content exceeds card height */
}

.tab-content.active {
  display: block !important;
}

/* Info Section  */

.card-back h4 {
  margin: 5px 0;
  font-size: 14px;
}

.card-back p, .card-back ul {
  font-size: 12px;
  margin: 3px 0;
  line-height: 1.3;
}

.card-back ul {
  padding-left: 15px;
}

/* Stack Section  */

.card-back-tech {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 5px;
}

.card-back-tech img {
  height: 25px;
  margin-right: 5px;
}

.stack-layer {
  margin-bottom: 8px;
}

.stack-layer h5 {
  font-size: 11px;
  margin-bottom: 2px;
  color: #000000;
}

.stack-layer img {
  height: 20px;
  margin-right: 5px;
  margin-bottom: 2px;
}

/* Design Section */

.design-gif-container {
  width: 100%;
  height: 200px; /* fits nicely in 350x400px card */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin-bottom: 5px;
}

.design-gif {
  max-width: 50%;
  max-height: 50%;
  object-fit: contain;
  overflow: hidden;
  border-radius: 5px;
}

.design-description {
  font-size: 11px;
  color: #f0f0f0;
  text-align: center;
  line-height: 1.2em;
  margin: 0;
}

.carousel {
  position: relative;
  width: 100%; /* adjust based on your layout */
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
}

/* track containing all slides */
.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

/* each slide */
.carousel-track a {
  flex: 0 0 100%;          /* <-- THE IMPORTANT FIX */
  height: 200px;
  display: flex;
  justify-content: center;          /* center image horizontally */
  align-items: center;              /* center vertically */
}

.carousel-track img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;     /* or "contain", explained below */
  border-radius: 8px;
  cursor: zoom-in;
}

/* buttons */
.design-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  padding: 10px 14px;
  font-size: 24px;
  cursor: pointer;
  border-radius: 6px;
  z-index: 50;                        /* ensure visible */
}

.prev { left: 10px; }
.next { right: 10px; }


/* Impact/Result Section */

.impact-metrics {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #f0f0f0;
  margin-bottom: 5px;
}

.impact-visual {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 5px;
}

.impact-img {
  max-width: 90%;
  max-height: 120px;
  border-radius: 5px;
}

.impact-description {
  font-size: 11px;
  color: #f0f0f0;
  text-align: center;
  line-height: 1.2em;
  margin: 0;
}