:root {
  --primary-color: #4B2E83;
  --primary-grad-start: #4B2E83;
  --primary-grad-end: #5B5EA6;
  --accent-color: #5B5EA6;
  --white: #ffffff;
  --muted: #f4f6fb;
  --card-shadow: 0 6px 20px rgba(75, 46, 131, 0.08);
  --radius: 10px;

  --slider-height: 350px;
  --card-img-height: 300px;
  --container-max: 100%;
}

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

html,
body {
  height: 100%;
}

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--muted);
  color: #1f2d3d;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.4;
}

/* HEADER */
.site-header {
  width: 100%;
  background: linear-gradient(90deg, var(--primary-grad-start), var(--primary-grad-end));
  box-shadow: 0 6px 18px rgba(11, 12, 15, 0.06);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 18px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin: 0;
}

.main-nav {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.main-nav a {
  display: inline-block;
  background: var(--white);
  color: var(--primary-color);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.0);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(11, 12, 15, 0.04);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}

.main-nav a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(11, 12, 15, 0.08);
}

/* MAIN CONTENT */
.main-content {
  padding: 24px 18px 70px;
}

.section-title {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: #2a2a2a;
  margin: 6px 0 18px;
}

/* GRID */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 1rem;
}

/* CARD & SLIDER */
.card,
.slider {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.card {
  padding: 8px;
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  /* object-fit: cover; */
  border-radius: 8px;
}

.slider {
  position: relative;
  height: 100vh;
  width: 100%;
}

.slider .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* object-fit: cover; */
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.slider .slide.active {
  opacity: 1;
  z-index: 1;
}

/* SLIDER CONTROLS */
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  font-weight: 700;
  color: var(--primary-color);
}

.control-btn {
  border: 0;
  background: transparent;
  font-size: 1.06rem;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background .12s ease, transform .12s ease;
}

.control-btn:hover {
  background: rgba(75, 46, 131, 0.06);
  transform: translateY(-2px);
}

.counter {
  color: #222;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(15, 18, 25, 0.03);
}

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6, 8, 12, 0.85);
  z-index: 2000;
  padding: 24px;
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal-content {
  max-width: 92%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: fixed;
  top: 26px;
  right: 34px;
  border: 0;
  background: transparent;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

.download-btn {
  position: fixed;
  top: 22px;
  right: 82px;
  color: white;
  text-decoration: none;
  font-size: 20px;
  background: transparent;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 575.98px) {
  :root {
    --slider-height: 180px;
    --card-img-height: 160px;
  }

  .main-content {
    padding: 18px 12px 48px;
  }

  .section-title {
    margin-top: 10px;
    font-size: 1rem;
  }

  .card {
    padding: 8px;
    border-radius: 8px;
  }

  .main-nav a {
    padding: 6px 10px;
    font-size: .85rem;
  }
}

@media (max-width: 767.98px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-bottom: 6px;
  }

  .brand h1 {
    font-size: 1.2rem;
    text-align: center;
  }

  .main-nav {
    justify-content: center;
  }

  .container {
    padding: 14px;
  }
}

@media (min-width: 560px) and (max-width: 840px) {
  :root {
    --slider-height: 250px;
    --card-img-height: 220px;
  }

  .brand h1 {
    font-size: 1.35rem;
  }

  .main-nav a {
    padding: 7px 12px;
    font-size: .95rem;
  }

  .image-grid .card:last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  :root {
    --slider-height: 320px;
    --card-img-height: 280px;
  }
}

@media (min-width: 1200px) {
  :root {
    --slider-height: 380px;
    --card-img-height: 340px;
  }

  .container {
    padding: 22px;
  }

  .brand h1 {
    font-size: 1.7rem;
  }
}

/* 2K & 4K SCREENS */
@media (min-width: 2000px) {
  :root {
    --slider-height: 500px;
    --card-img-height: 450px;
  }

  .brand h1 {
    font-size: 2rem;
  }
}

@media (min-width: 3000px) {
  :root {
    --slider-height: 650px;
    --card-img-height: 600px;
  }

  .brand h1 {
    font-size: 2.5rem;
  }
}