* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: #0d0d0d;
  color: #ffffff;
}

.page {
  display: flex;
  gap: 24px;
  padding: 24px;
  align-items: flex-start;
}
.tabs-wrapper {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: flex-end;
  z-index: 100;
}

/* SIDEBAR */
.sidebar {
  width: 280px;
  background: linear-gradient(180deg, #1c1c1f, #151517);
  border: 1px solid #2c2c2f;
  border-radius: 28px;
  padding: 28px 24px;
  flex-shrink: 0;
  position: sticky;
  top: 20px;
  height: fit-content;
}

.top {
  position: relative;
}

.avatar-box {
  width: 120px;
  height: 120px;
  background: #2a2a2d;
  border-radius: 28px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-box img {
  width: 78px;
  border-radius: 50%;
}

.name {
  text-align: center;
  font-size: 22px;
  margin: 22px 0 10px;
  font-weight: 600;
}

.role {
  width: fit-content;
  margin: 0 auto;
  background: #2a2a2d;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 14px;
  color: #ededed;
}

.line {
  height: 1px;
  background: #2f2f34;
  margin: 28px 0;
}

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

.icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #1d1d20;
  color: #f2c94c;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.label {
  margin: 0 0 4px;
  font-size: 12px;
  color: #8d8d94;
}

.value {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  cursor: pointer;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 8px;
  cursor: pointer;
}

.socials i {
  color: #f2c94c;
  font-size: 18px;
}

/* MAIN CARD */
.main-card {
  flex: 1;
  background: linear-gradient(180deg, #1c1c1f, #151517);
  border: 1px solid #2c2c2f;
  border-radius: 28px;
  padding: 34px 28px 28px;
  position: relative;
}

.tabs {
  position: sticky;
  top: 0;
  background: #202023;
  border-bottom-left-radius: 24px;
  border-top-right-radius: 28px;
  padding: 18px 28px;
  display: flex;
  gap: 28px;
  z-index: 10;
}

.tabs a {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: #ccc;
  transition: 0.3s;
}

/* underline */
.tabs a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: #facc15;
  transition: 0.3s;
}

.tabs a.active {
  color: #f2c94c;
}

.tabs a.active::after {
  width: 100%;
}

.tabs a:hover {
  color: #facc15;
  transform: scale(1.05);
  text-shadow: 0 0 10px rgba(250, 204, 21, 0.7);


}

.tabs a:hover::after {
  width: 100%;
}

.section {
  margin-bottom: 34px;
}

.section h2,
.section h3 {
  margin: 0 0 18px;
  font-size: 24px;
  font-weight: 700;
}

.underline {
  width: 42px;
  height: 5px;
  background: #f2c94c;
  border-radius: 999px;
  margin-bottom: 22px;
}

.section p {
  color: #dddddf;
  line-height: 1.9;
  font-size: 15px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.service-card {
  background: linear-gradient(180deg, #202024, #1a1a1d);
  border-radius: 22px;
  padding: 24px;
  border: 1px solid #242428;
}

.service-icon {
  color: #f2c94c;
  font-size: 28px;
  margin-bottom: 12px;
}

.service-card h4 {
  margin: 0 0 8px;
  font-size: 18px;
}

.service-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.testimonial-card {
  background: linear-gradient(180deg, #202024, #1a1a1d);
  border-radius: 22px;
  padding: 24px;
  position: relative;
  border: 1px solid #242428;
}

.testimonial-avatar {
  width: 74px;
  height: 74px;
  background: #2a2a2d;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -38px;
  margin-bottom: 12px;
}

.testimonial-avatar img {
  width: 52px;
  border-radius: 50%;
}

.testimonial-card h4 {
  margin: 0 0 8px;
  font-size: 18px;
}

.testimonial-card p {
  margin: 0;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: center;
}

.client-item {
  text-align: center;
  color: #d8d8d8;
  opacity: 0.9;
  padding: 16px 8px;
  font-weight: 600;
  font-size: 14px;
}

.slider-line {
  width: 58%;
  height: 6px;
  background: #2a2a2d;
  border-radius: 999px;
  margin: 22px auto 0;
  overflow: hidden;
}

.slider-line span {
  display: block;
  width: 52%;
  height: 100%;
  background: #f2c94c;
  border-radius: 999px;
}

.slider-line span.long {
  width: 68%;
}

.toggle-btn {
  display: none;
  border: none;
  background: #202023;
  color: #f2c94c;
  width: 42px;
  height: 42px;
  border-radius: 0 18px 0 18px;
  cursor: pointer;
  position: absolute;
  top: 0;
  right: 0;
}

.toggle-btn.active i {
  transform: rotate(180deg);
}

.toggle-btn i {
  transition: 0.3s;
}

/* Portfolio-page */

ul {
  list-style: none;
  padding: 0;
  margin: 0;
} 

.filter {
  margin-left: 0;
  padding-left: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 25px;
  margin-bottom: 30px;
}
.filter-list {
  position: relative;
  cursor: pointer;
  padding-bottom: 5px;
  transition: 0.3s;
}

/* underline (same as your tabs a::after) */
.filter-list::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: #facc15; /* same yellow */
  transition: 0.3s;
}

/* active state */
.filter-list.active {
  color: #f2c94c; /* same yellow tone */
}



/* hover */
.filter-list:hover {
  color: #facc15;
  transform: scale(1.05);
}

/* hover underline */
.filter-list:hover::after {
  width: 100%;
}

.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-item {
  display: block;
  width: 100%;
}

.project-item.hide {
  display: none;
}

.project-img img {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  object-fit: cover;
  display: block;
}

.project-img 
{
  margin: 0; 
  height: 180px; 
  position: relative;
  overflow: hidden;
  border-radius: 24px;
}

.project-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 24px;
  opacity: 0;
  transition: 0.3s ease;
}
.project-item-icon-box {
  position: absolute;
  top: 50%;
  left: 50%;
  
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;

  font-size: 24px;

  transition: 0.3s ease;
   width: 60px;
  height: 60px;
  background: #2a2a2a;
   display: flex;
  align-items: center;
  justify-content: center;
   border-radius: 10px;
   
}
.project-img:hover::before {
  opacity: 1;
}

.project-img:hover .project-item-icon-box {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.project-item a {
  text-decoration: none; 
  color: inherit;       
  display: block;        
}
.project-desc {
margin-left: 28px;
}

.project-title {
  margin-bottom: 1px;
  font-weight: 200;
}
.project-category {
  margin-top: 0px;
  font-size: 14px;
  color: #aaa;
}
nav label {
  display: none;
}

/* Portfolio-page- end */

/* MOBILE + TABLET */

@media (max-width: 1024px) {
  .page {
    flex-direction: column;
    padding: 14px 14px 90px;
  }

  
  .main-card {
    width: 100%;
    z-index: 1;
    box-sizing: border-box;
  }

  .sidebar {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    padding: 18px 18px 16px;
    border-radius: 24px;
    position:  relative !important;
    top:unset;
  }

  .top {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-right: 52px;
    position: relative;
  }

  .avatar-box {
    width: 88px;
    height: 88px;
    margin: 0;
    border-radius: 22px;
  }

  .avatar-box img {
    width: 60px;
  }

  .top-text {
    flex: 1;
  }

  .name {
    text-align: left;
    margin: 0 0 10px;
    font-size: 18px;
  }

  .role {
    margin: 0;
    font-size: 13px;
  }

  .toggle-btn {
    display: block;
  }

  .sidebar-content {
    display: none;
  }

  .sidebar-content.active {
    display: block;
  }

  .main-card {
    padding: 28px 16px 24px;
    border-radius: 24px;
  }

  .tabs {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    display: flex;
    justify-content: space-around;
    gap: 6px;
    padding: 14px 8px;
    background: rgba(32, 32, 35, 0.97);
    border-top: 1px solid #2f2f34;
    border-radius: 18px 18px 0 0;
    backdrop-filter: blur(10px);
    z-index: 999;
    margin: 0;
  }

  .tabs-wrapper {
    position: static;
    display: block;
  }

  .tabs a {
    font-size: 12px;
  }

  .section h2,
  .section h3 {
    font-size: 22px;
  }

  .service-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .client-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .slider-line {
    width: 88%;
  }


  /* Portfolio - Mediaquery */

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

}
@media (max-width: 768px) {
  .projects {
     grid-template-columns: 1fr;
  }
   nav {
    display: block;
    position: relative;
    margin-bottom: 20px;
  }

  /* Button */
  .button {
    display: flex;
    justify-content: space-between;
    justify-content: space-between;
    align-items: center;
    background: #1d1d20;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid rgb(145, 145, 145)
  }
  .btn-text {
  font-weight: 500;
}

  /* Hide filter by default */
  nav .filter {
  max-height: 0;
  overflow: hidden;
  flex-direction: column;

  background: #1d1d20;
  border-radius: 12px;
  margin-top: 10px;

  opacity: 0;
  transition: all 0.3s ease;
  border: 1px solid rgb(145, 145, 145)
}


/* OPEN STATE */
nav.active .filter {
  max-height: 400px; /* adjust if needed */
  opacity: 1;
}


  /* Show dropdown */
  nav.active .filter {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  nav .filter-list {
  margin-top: 8px;
  margin-bottom: 8px;
  }
  /* Hide desktop filter */
  .portfolio > .filter {
    display: none;
  }

  /* Arrow rotate */
  nav.active .arrow i {
    transform: rotate(180deg);
  }

  .arrow i {
    transition: 0.3s;
  }
}
 /* Portfolio - Mediaquery Ends */