.top nav {
  align-items: center;
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 16px 0;
}

.nav-dropdown-trigger::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% - 4px);
  left: 50%;
  min-width: 300px;
  padding: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .18);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.products-menu {
  display: grid;
  gap: 2px;
}

.nav-dropdown-title {
  display: block;
  padding: 9px 12px 5px;
  color: #1456a3;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #0f172a;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus {
  background: #eff6ff;
  color: #1456a3;
}

.products-page {
  background: #f8fafc;
}

.products-hero {
  min-height: 410px;
  display: flex;
  align-items: center;
  padding: 76px 6%;
  color: #fff;
  background:
    linear-gradient(100deg, rgba(15, 23, 42, .92), rgba(20, 86, 163, .78)),
    url('../img/projeler/baca-sapkasi-toplu-konut.jpg') center/cover;
}

.products-hero > div {
  max-width: 860px;
}

.products-hero h1 {
  margin: 14px 0;
  font-size: 54px;
  line-height: 1.02;
}

.products-hero p {
  max-width: 760px;
  color: #dbeafe;
  font-size: 18px;
}

.products-section {
  max-width: 1280px;
}

.section-title {
  margin-bottom: 24px;
}

.section-title span {
  color: #0f766e;
  font-weight: 900;
}

.section-title h2 {
  margin-top: 8px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

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

.product-card-pro {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 22px 70px rgba(15, 23, 42, .10);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease, box-shadow .24s ease;
  transition-delay: var(--delay);
  scroll-margin-top: 115px;
}

.product-card-pro.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card-pro:hover {
  box-shadow: 0 28px 90px rgba(15, 23, 42, .17);
}

.product-card-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: #e2e8f0;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .5s ease;
}

.product-card-pro:hover .product-card-media img {
  transform: scale(1.045);
}

.product-card-body {
  padding: 22px;
}

.product-card-body h3 {
  margin: 7px 0 8px;
  color: #0f172a;
  font-size: 25px;
  line-height: 1.12;
}

.product-card-body p {
  margin: 0 0 16px;
}

.product-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ghost-action {
  background: #eef6ff;
  color: #1456a3;
}

.compact-features {
  margin-top: 12px;
}

.hero.hero-slider {
  position: relative;
  min-height: 700px;
  padding: 92px 6%;
  overflow: hidden;
  background: #0f172a;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  max-width: none !important;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .75s ease, transform 6s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(10, 31, 64, .94) 0%, rgba(20, 86, 163, .82) 42%, rgba(15, 23, 42, .44) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, .22), rgba(15, 23, 42, .22));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
}

.hero-content h1 {
  max-width: 920px;
  text-wrap: balance;
}

.hero-content p {
  color: #dbeafe;
}

.hero-slider-card {
  position: absolute;
  right: 6%;
  bottom: 96px;
  z-index: 2;
  min-width: 280px;
  max-width: 360px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 18px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  box-shadow: 0 24px 80px rgba(2, 6, 23, .28);
  backdrop-filter: blur(12px);
}

.hero-slider-card span {
  display: block;
  margin-bottom: 8px;
  color: #bfdbfe;
  font-weight: 800;
}

.hero-slider-card b {
  display: block;
  font-size: 22px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .2s ease, transform .2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, .26);
  transform: translateY(-50%) scale(1.05);
}

.hero-prev {
  left: 26px;
}

.hero-next {
  right: 26px;
}

.hero-dots {
  position: absolute;
  left: 6%;
  bottom: 54px;
  z-index: 3;
  display: flex;
  gap: 9px;
}

.hero-dots button {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .38);
  cursor: pointer;
}

.hero-dots button.active {
  background: #fff;
}

html {
  scroll-behavior: smooth;
}

.product-row {
  scroll-margin-top: 110px;
}

@media (max-width: 980px) {
  .nav-dropdown {
    display: block;
    padding: 0;
  }

  .nav-dropdown-menu {
    left: 0;
    transform: translateY(8px);
  }

  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    transform: translateY(0);
  }

  .hero.hero-slider {
    min-height: 640px;
  }

  .hero-slider-card {
    position: relative;
    right: auto;
    bottom: auto;
    z-index: 2;
    margin-top: 30px;
  }

  .product-grid,
  .side-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .hero.hero-slider {
    min-height: 680px;
    padding: 68px 5% 92px;
  }

  .hero-arrow {
    top: auto;
    bottom: 28px;
    transform: none;
  }

  .hero-arrow:hover {
    transform: scale(1.05);
  }

  .hero-prev {
    left: 5%;
  }

  .hero-next {
    right: auto;
    left: calc(5% + 58px);
  }

  .hero-dots {
    right: 5%;
    left: auto;
    bottom: 48px;
  }

  .products-hero h1 {
    font-size: 38px;
  }

  .product-grid,
  .side-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-arrow,
  .nav-dropdown-menu {
    transition: none;
  }
}
