@font-face {
  font-family: "AllrounderGroteskTest-Light";
  src: url("../assets/AllrounderGroteskTest-Light.otf") format("opentype");
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "AllrounderGroteskTest-Medium";
  src: url("../assets/AllrounderGroteskTest-Medium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Monument Grotesk";
  src: url("../assets/MonumentGrotesk-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "AllrounderGroteskTest-Light", -apple-system, BlinkMacSystemFont, sans-serif;
  background: white;
  color: black;
  line-height: 1.4;
}

.title-font {
  font-family: "AllrounderGroteskTest-Light", -apple-system, BlinkMacSystemFont, sans-serif;
}

.body-font {
  font-family: "AllrounderGroteskTest-Light", -apple-system, BlinkMacSystemFont, sans-serif;
}

.index-special-text {
  font-family: "AllrounderGroteskTest-Light", -apple-system, BlinkMacSystemFont, sans-serif;
}

.header {
  position: absolute;
  top: 20px; 
  left: 0;
  right: 0;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 30px;
  z-index: 1000;
  border-bottom: 1px solid transparent;
}

.logo {
  position: absolute;
  top: 90px;
  right: 230px;
  transform: translateY(-50%);
}

.header-logo {
  width: 200px;
  height: auto;
  filter: brightness(0);
}

.location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 20px;
  font-weight: 400;
  color: black;
}

.location-dot {
  color: black;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  font-size: 14px;
  font-weight: 300;
  margin-top: 85px; 
}

.nav a {
  color: black;
  text-decoration: none;
  font-size: 20px;
  font-weight: 400;
  transition: opacity 0.3s ease;
  text-transform: capitalize;
}

.nav a:hover {
  opacity: 0.6;
}

.mainboard-content {
  padding-top: 100px;
  min-height: 100vh;
  position: relative;
}

.left-nav {
  position: absolute;
  left: 120px;
  top: 100px;
  width: 120px;
}

.nav-sections {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-section {
  color: #999;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  transition: color 0.3s ease;
  line-height: 1.2;
}

.nav-section:hover,
.nav-section.active {
  color: black;
}

.center-content {
  position: absolute;
  left: 34%;
  top: 160px;
  transform: translateX(-50%);
}

.gender-filters {
  display: flex;
  flex-direction: column; 
  gap: 5px;
  align-items: flex-start;
  position: relative; 
  top: -65px;
}

.filter-btn {
  background: none;
  border: none;
  color: #999;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  transition: color 0.3s ease;
  font-family: "AllrounderGroteskTest-Light", sans-serif;
}

.filter-btn.active {
  color: black;
  position: relative;
}

.filter-btn:hover,
.filter-btn.active {
  color: black;
}

.right-side {
  position: absolute;
  right: 40px;
  top: 200px;
}

.view-toggle {
  display: flex;
  gap: 20px;
}

.view-btn {
  background: none;
  border: none;
  color: #999;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: color 0.3s ease;
  font-family: "AllrounderGroteskTest-Medium", sans-serif;
}

.view-btn:hover,
.view-btn.active {
  color: black;
}

.alphabet-filter {
  position: absolute;
  left: 40px;
  top: 290px; 
  width: 30px;
}

.alphabet-letters {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.letter-btn {
  background: none;
  border: none;
  color: #ccc;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  transition: color 0.3s ease;
  font-family: "AllrounderGroteskTest-Medium", sans-serif;
  text-align: left;
  padding: 2px 0;
}

.letter-btn:hover,
.letter-btn.active {
  color: black;
}

.letter-btn:disabled {
  color: #f0f0f0;
  cursor: not-allowed;
}

.models-grid {
  margin-left: 100px;
  margin-right: 40px;
  margin-top: 220px; 
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  padding-bottom: 80px;
}

.model-card {
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  transform: translateY(0);
}

.model-card:hover {
  transform: translateY(-8px);
}

.model-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #f8f8f8;
  margin-bottom: 12px;
  overflow: hidden;
  position: relative;
}

.model-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.model-card:hover .model-image img {
  transform: scale(1.05);
}

.model-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 11px;
  font-weight: 300;
}

.model-info {
  text-align: left;
}

.model-name {
  font-size: 12px;
  font-weight: 400;
  color: black;
  margin-bottom: 4px;
  font-family: "AllrounderGroteskTest-Light", sans-serif;
}

.model-details {
  font-size: 10px;
  font-weight: 300;
  color: #999;
  line-height: 1.3;
  font-family: "AllrounderGroteskTest-Medium", sans-serif;
}

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

.model-card {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.model-card:nth-child(1) {
  animation-delay: 0.1s;
}
.model-card:nth-child(2) {
  animation-delay: 0.2s;
}
.model-card:nth-child(3) {
  animation-delay: 0.3s;
}
.model-card:nth-child(4) {
  animation-delay: 0.4s;
}
.model-card:nth-child(5) {
  animation-delay: 0.5s;
}

.model-card.filtered-out {
  opacity: 0;
  transform: scale(0.8) translateY(20px);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.model-card.filtered-in {
  opacity: 1;
  transform: scale(1) translateY(0);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 1400px) {
  .models-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }

  .logo {
    right: 150px;
  }
}

@media (max-width: 1200px) {
  .models-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-left: 80px;
  }

  .gender-filters {
    gap: 20px;
  }

  .header-logo {
    width: 120px;
  }

  .logo {
    right: 120px;
  }
}

@media (max-width: 968px) {
  .header {
    padding: 0 20px;
    height: 100px;
  }

  .left-nav {
    position: absolute;
    left: 40px;
    top: 140px;
    width: auto;
  }

  .center-content {
    position: absolute;
    left: 34%;
    top: 100px;
    transform: translateX(-50%);
  }

  .right-side {
    right: 20px;
    top: 120px;
  }

  .alphabet-filter {
    left: 20px;
    top: px;
  }

  .models-grid {
    margin-left: 60px;
    margin-right: 20px;
    margin-top: 180px;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .mainboard-content {
    padding-top: 100px;
  }

  .header-logo {
    width: 100px;
  }

  .logo {
    right: 80px;
    top: 50px;
  }
}

@media (max-width: 768px) {
  .header {
    flex-direction: row;
    height: 80px;
    padding: 15px 20px;
    position: fixed;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .location {
    font-size: 16px;
  }

  .nav {
    gap: 15px;
    margin-top: 0;
  }

  .nav a {
    color: black;
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    transition: opacity 0.3s ease;
    text-transform: capitalize;
    padding: 8px 12px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.05);
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav a:hover,
  .nav a:active {
    background: black;
    color: white;
    transform: scale(0.98);
  }

  .logo {
    position: static;
    order: 2;
    transform: none;
  }

  .header-logo {
    width: 80px;
  }

  .left-nav {
    position: static;
    width: 100%;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    background: white;
    position: sticky;
    top: 80px;
    z-index: 999;
  }

  .nav-sections {
    flex-direction: row;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav-section {
    color: #999;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    transition: color 0.3s ease;
    line-height: 1.2;
    padding: 10px 16px;
    border-radius: 25px;
    background: #f8f8f8;
    min-height: 44px;
    display: flex;
    align-items: center;
    white-space: nowrap;
  }

  .nav-section:hover,
  .nav-section.active {
    color: white;
    background: black;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .center-content {
    position: static;
    transform: none;
    padding: 20px;
    text-align: center;
    background: white;
    position: sticky;
    top: 140px;
    z-index: 998;
    border-bottom: 1px solid #f0f0f0;
  }

  .gender-filters {
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .filter-btn {
    color: #999;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 10px 20px;
    border-radius: 25px;
    background: #f8f8f8;
    min-height: 44px;
    display: flex;
    align-items: left;
    white-space: nowrap;
  }

  .filter-btn.active,
  .filter-btn:hover {
    color: white;
    background: black;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .filter-btn.active::after {
    display: none;
  }

  .right-side {
    position: static;
    padding: 15px 20px;
    text-align: center;
    background: white;
    border-bottom: 1px solid #f0f0f0;
  }

  .view-btn {
    color: #999;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 10px 20px;
    border-radius: 25px;
    background: #f8f8f8;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    margin: 0 6px;
  }

  .view-btn:hover,
  .view-btn.active {
    color: white;
    background: black;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .alphabet-filter {
    position: static;
    padding: 20px;
    width: 100%;
    background: white;
    border-bottom: 1px solid #f0f0f0;
  }

  .alphabet-letters {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }

  .letter-btn {
    color: #ccc;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    transition: color 0.3s ease;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
  }

  .letter-btn:hover,
  .letter-btn.active {
    color: white;
    background: black;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }

  .models-grid {
    margin: 20px;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding-bottom: 40px;
  }

  .mainboard-content {
    padding-top: 80px;
  }

  .model-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }

  .model-card:active {
    transform: scale(0.98);
  }

  .model-image {
    border-radius: 8px;
    margin-bottom: 12px;
  }

  .model-name {
    font-size: 12px;
    font-weight: 500;
  }

  .model-details {
    font-size: 10px;
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 10px 15px;
    height: 70px;
  }

  .location {
    font-size: 14px;
  }

  .nav a {
    color: black;
    text-decoration: none;
    font-size: 11px;
    font-weight: 400;
    transition: opacity 0.3s ease;
    text-transform: capitalize;
    padding: 6px 10px;
    min-height: 40px;
  }

  .header-logo {
    width: 70px;
  }

  .left-nav,
  .center-content,
  .right-side,
  .alphabet-filter {
    padding: 15px;
  }

  .nav-sections {
    gap: 8px;
  }

  .nav-section {
    color: #999;
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    transition: color 0.3s ease;
    line-height: 1.2;
    padding: 8px 14px;
    min-height: 40px;
    display: flex;
    align-items: center;
    white-space: nowrap;
  }

  .models-grid {
    margin: 15px;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .gender-filters {
    flex-direction: column;
    gap: 12px;
  }

  .filter-btn,
  .view-btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    font-size: 14px;
  }

  .view-toggle {
    gap: 12px;
    display: flex;
    flex-direction: column;
  }

  .alphabet-letters {
    gap: 6px;
  }

  .letter-btn {
    color: #ccc;
    font-size: 11px;
    font-weight: 400;
    cursor: pointer;
    transition: color 0.3s ease;
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
  }

  .mainboard-content {
    padding-top: 70px;
  }

  .model-card {
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  }

  .model-image {
    margin-bottom: 16px;
    border-radius: 12px;
  }

  .model-name {
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 600;
  }

  .model-details {
    font-size: 12px;
    line-height: 1.5;
  }
}

@media (hover: none) and (pointer: coarse) {
  .model-card:hover {
    transform: none;
  }

  .model-card:hover .model-image img {
    transform: none;
  }

  .nav-section,
  .filter-btn,
  .view-btn,
  .letter-btn {
    min-height: 48px;
  }

  .nav a {
    min-height: 48px;
  }
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  font-size: 14px;
  color: #999;
  font-family: "AllrounderGroteskTest-Medium", sans-serif;
}

.footer {
  padding: 40px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 400;
}

.footer-left {
  display: flex;
  gap: 40px;
}

.footer-right {
  font-size: 16px;
}
