.scroll-section {
  background: linear-gradient(180deg, rgba(33, 33, 33, 0.96), rgba(24, 24, 24, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
  height: auto;
  margin: 36px auto 0;
  min-height: 160px;
  overflow: hidden;
  position: relative;
  width: min(1200px, calc(100% - 32px));
}

.scroll-section::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.scroll-section .container {
  max-width: none;
  padding: 24px 28px;
}

.scroll-section .scroll-section-area {
  align-items: center;
  margin: 0;
  min-height: 112px;
  position: relative;
  z-index: 1;
}

.scroll-section .col-4,
.scroll-section .col-8 {
  padding-bottom: 0;
  padding-top: 0;
}

.scroll-section .scroll-text,
.scroll-section .scroll-img {
  background: transparent;
  color: #f6f6f6;
  min-height: 112px;
}

.scroll-section .scroll-text {
  justify-items: start;
  text-align: left;
}

.scroll-section .scroll-text h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0;
}

.scroll {
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.imgBox img {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 18px;
  filter: saturate(0.9) contrast(0.98);
  margin: 0 8px;
  max-width: 84px;
  opacity: 0.92;
  padding: 12px;
  scale: 1;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    filter 0.25s ease;
}

.imgBox img:hover {
  filter: saturate(1) contrast(1);
  opacity: 1;
  transform: translateY(-2px);
}

.scroll-section[data-paused="true"] .scroll div {
  animation-play-state: paused;
}

.portfolio-gallery-section {
  margin-top: 0;
  padding: 72px 0 28px;
}

.portfolio-worksection {
  position: relative;
  width: min(1200px, calc(100% - 32px));
}

.portfolio-worksection .nav-tabs {
  background: transparent;
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 -1px;
  padding: 0 18px;
  position: relative;
  width: auto;
  z-index: 2;
}

.portfolio-worksection .nav-item {
  width: auto;
}

.portfolio-worksection .nav-item .nav-link {
  background: linear-gradient(180deg, #5a5a5a 0%, #474747 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 16px rgba(0, 0, 0, 0.12);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  min-width: 132px;
  opacity: 0.86;
  padding: 0.8rem 1.05rem 0.68rem;
  text-transform: uppercase;
  transform: translateY(4px);
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    opacity 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
  width: 100%;
}

.portfolio-worksection .nav-item .nav-link:hover,
.portfolio-worksection .nav-item .nav-link:focus {
  background: linear-gradient(180deg, #606060 0%, #4f4f4f 100%);
  color: #ffffff;
  opacity: 0.95;
  transform: translateY(2px);
}

.portfolio-worksection .nav-item .nav-link.active,
.portfolio-worksection .nav-tabs .nav-item.show .nav-link {
  background: linear-gradient(180deg, #252525 0%, #1e1e1e 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 22px rgba(0, 0, 0, 0.14);
  color: #ffffff;
  opacity: 1;
  transform: translateY(1px);
}

.portfolio-worksection .tab-content {
  background: linear-gradient(180deg, #252525 0%, #1e1e1e 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  margin-top: 0;
  overflow: hidden;
  position: relative;
}

.portfolio-worksection .tab-content::before {
  background: linear-gradient(180deg, #303030 0%, #262626 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  content: "";
  display: block;
  height: 46px;
}

.portfolio-worksection .tab-content::after {
  background:
    radial-gradient(circle, #8a8a8a 0 4px, transparent 5px) 0 0 / 16px 10px no-repeat,
    radial-gradient(circle, #737373 0 4px, transparent 5px) 17px 0 / 16px 10px no-repeat,
    radial-gradient(circle, #5c5c5c 0 4px, transparent 5px) 34px 0 / 16px 10px no-repeat;
  content: "";
  height: 10px;
  left: 24px;
  pointer-events: none;
  position: absolute;
  top: 18px;
  width: 50px;
}

.portfolio-grid-headings {
  color: #ffffff;
  padding: 18px 28px 6px;
}

.portfolio-grid-headings h3 {
  color: #ffffff;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  letter-spacing: -0.04em;
  margin-bottom: 0.55rem;
}

.portfolio-grid-headings p,
.portfolio-grid-headings a {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
  max-width: 68ch;
}

.portfolio-gallery-grid {
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding: 16px 28px 28px;
}

.portfolio-aspect-ratio-box {
  background: linear-gradient(180deg, #2c2c2c 0%, #232323 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 24px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(56.25% + 28px);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.portfolio-aspect-ratio-box::before {
  background:
    radial-gradient(circle at 18px 15px, rgba(130, 130, 130, 0.56) 0 2px, transparent 3px),
    radial-gradient(circle at 28px 15px, rgba(104, 104, 104, 0.52) 0 2px, transparent 3px),
    linear-gradient(180deg, #373737 0%, #303030 28px, transparent 28px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.portfolio-aspect-ratio-box:hover {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 26px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

.portfolio-aspect-ratio-img {
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.07);
  height: calc(100% - 38px);
  left: 10px;
  object-fit: cover;
  position: absolute;
  top: 30px;
  transition: transform 0.35s ease;
  width: calc(100% - 20px);
}

.portfolio-aspect-ratio-box:hover .portfolio-aspect-ratio-img {
  transform: scale(1.015);
}

.video-responsive,
.modal-body img {
  border-radius: 14px;
  overflow: hidden;
}

.video-responsive iframe {
  border-radius: 14px;
}

@media (max-width: 768px) {
  .scroll-section {
    margin-top: 28px;
    min-height: auto;
    width: min(100%, calc(100% - 24px));
  }

  .scroll-section .container {
    padding: 20px 18px;
  }

  .scroll-section .col-4,
  .scroll-section .col-8 {
    width: 100%;
  }

  .portfolio-worksection {
    width: min(100%, calc(100% - 24px));
  }

  .portfolio-worksection .nav-tabs {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 12px;
  }

  .portfolio-worksection .nav-item {
    width: 100%;
  }

  .portfolio-worksection .nav-item .nav-link {
    min-width: 0;
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .portfolio-grid-headings {
    padding: 18px 20px 4px;
  }

  .portfolio-gallery-grid {
    gap: 14px;
    padding: 14px 20px 22px;
  }
}

@media (max-width: 560px) {
  .portfolio-worksection .nav-tabs {
    grid-template-columns: 1fr;
  }

  .portfolio-gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  .navbar-custom {
    left: 0;
    top: 0;
    transform: none;
    width: 100%;
    z-index: 1030;
  }

  .container-fluid-custom {
    padding: 10px 16px;
  }

  .navbar-collapse-custom {
    padding-bottom: 6px;
    padding-top: 12px;
    width: 100%;
  }

  .center-links,
  .nav-lin {
    gap: 8px;
  }

  .nav-lin {
    margin-left: 0 !important;
  }
}
