/* ===========================
   GLOBAL
=========================== */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  line-height: 1.6;
  background: #0f0d1f;
  color: #e0e0e0;
  overflow-x: hidden;
}

/* ===========================
   HEADER
=========================== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(20, 17, 50, 0.95);
  backdrop-filter: blur(8px);
  padding: 12px 40px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f5f5f5;
  min-width: 0;
}

.brand h2 {
  margin: 0;
  font-size: 18px;
  color: #f5f5f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo {
  height: 44px;
  flex-shrink: 0;
}

nav a {
  color: white;
  margin-left: 16px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  white-space: nowrap;
}

nav a:hover {
  color: #e21d2f;
}

/* ===========================
   PROJECT HERO
=========================== */
.project-hero {
  position: relative;
  height: 380px;
  overflow: hidden;
}

.project-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #d0d0d0;
  text-align: center;
  width: 90%;
  max-width: 700px;
}

.hero-text h1 {
  font-size: clamp(22px, 5vw, 40px);
  margin: 0 0 10px;
}

.hero-text p {
  font-size: clamp(13px, 2.5vw, 16px);
  margin: 0;
  line-height: 1.6;
}

/* ===========================
   OVERVIEW SECTION
=========================== */
.overview {
  padding: 60px 40px;
  max-width: 1300px;
  margin: 0 auto;
}

.overview-wrapper {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.overview-left {
  flex: 0 0 55%;
  min-width: 0;
}

.overview h2 {
  text-align: left;
  margin: 0 0 20px;
  font-size: 28px;
  color: #c8c0f0;
}

/* ===========================
   SWIPER
=========================== */
.swiper {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.swiper-slide {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.swiper-button-next,
.swiper-button-prev {
  color: #e21d2f;
}

.swiper-pagination-bullet-active {
  background: #e21d2f;
}

/* ===========================
   OVERVIEW RIGHT (TEXT)
=========================== */
.overview-right {
  flex: 1;
  min-width: 0;
  padding-top: 48px;
  text-align: left;
}

.overview-right h3 {
  font-size: 22px;
  color: #c8c0f0;
  margin: 0 0 12px;
}

.overview-right p {
  font-size: 15px;
  line-height: 1.75;
  color: #ccc;
  margin: 0 0 14px;
}

.overview-right strong {
  color: #e0d8ff;
}

/* ===========================
   MATERIAL SECTION
=========================== */
.material {
  background: #13102a;
  padding: 60px 20px;
}

.material h1 {
  color: #c8c0f0;
  text-align: center;
  font-size: clamp(22px, 4vw, 32px);
  margin: 0 0 30px;
}

.container {
  max-width: 860px;
  margin: auto;
}

.material-card {
  display: flex;
  gap: 24px;
  align-items: center;
  background: rgba(30, 25, 70, 0.7);
  padding: 20px;
  border-radius: 14px;
  margin-bottom: 20px;
}

.material-card img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.material-card h3 {
  color: #e0d8ff;
  margin: 0 0 8px;
  font-size: 17px;
}

.material-card p {
  color: #bbb;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

/* ===========================
   FOOTER
=========================== */
footer {
  background: #060510;
  color: #aaa;
  text-align: center;
  padding: 20px;
  font-size: 13px;
}

/* ===========================
   RESPONSIVE — TABLET (≤ 900px)
=========================== */
@media (max-width: 900px) {
  header {
    padding: 12px 20px;
  }

  .brand h2 {
    font-size: 15px;
  }

  .overview {
    padding: 40px 24px;
  }

  .overview-wrapper {
    flex-direction: column;
    gap: 28px;
  }

  .overview-left {
    flex: none;
    width: 100%;
  }

  .overview-right {
    padding-top: 0;
    width: 100%;
  }

  .project-hero {
    height: 280px;
  }
}

/* ===========================
   RESPONSIVE — MOBILE (≤ 600px)
=========================== */
@media (max-width: 600px) {
  header {
    padding: 10px 14px;
  }

  .brand h2 {
    font-size: 13px;
  }

  .logo {
    height: 36px;
  }

  .project-hero {
    height: 220px;
  }

  .overview {
    padding: 28px 14px;
  }

  .overview h2 {
    font-size: 22px;
  }

  .overview-right h3 {
    font-size: 18px;
  }

  .overview-right p {
    font-size: 14px;
  }

  .swiper {
    border-radius: 10px;
  }

  /* Material cards: stack image on top of text on small screens */
  .material-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
  }

  .material-card img {
    width: 100%;
    height: 180px;
    border-radius: 8px;
  }

  .material-card h3 {
    font-size: 15px;
  }

  .material h1 {
    font-size: 20px;
  }
}
