* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.75;
  font-size: 1.05rem;
}

.container {
  width: 92%;
  max-width: 1300px;
  margin: auto;
  padding: 2.5rem 0;
  text-align: center;
}

header {
  background: linear-gradient(to right, #182848, #4b6cb7);
  color: #fff;
  padding: 3.5rem 0;
  margin-top: 4rem;
}

header h1 {
  font-size: 2.8rem;
  margin-bottom: 0.75rem;
}

header p {
  font-size: 1.25rem;
}

#team {
  padding: 4.5rem 0;
}

h2 {
  font-size: 2.25rem;
  margin-bottom: 2.25rem;
  color: #182848;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.team-member {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-member img {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.2rem;
  display: block;
}

.team-member h3 {
  margin-bottom: 0.6rem;
  color: #4b6cb7;
  font-size: 1.2rem;
}

.team-member p {
  font-size: 1.05rem;
  color: #555;
  text-align: left;
  width: 100%;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(164, 113, 113, 0.15);
}

.team-member h3 a {
  color: #4b6cb7;
  text-decoration: none;
  transition: color 0.3s ease;
}

.team-member h3 a:hover {
  color: #182848;
  text-decoration: underline;
}

a {
  text-decoration: none;
}

footer {
  background: #182848;
  color: #fff;
  padding: 2rem 0;
  font-size: 1rem;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(24, 40, 72, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: background 0.3s ease;
}

.nav-container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 1px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.75rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #ffd700;
}

header,
section {
  padding-top: 5rem;
}

#project-details {
  width: 50%;
  margin: auto;
}

#project-details h2 {
  margin-bottom: 0.5rem;
}

#project-details h3 {
  margin-bottom: 1rem;
  color: #4b6cb7;
}

#project-details h4 {
  margin-bottom: 2rem;
}

#project-details ul {
  text-align: left;
}

.project-description {
  background: #fff;
  border-radius: 12px;
  padding: 2.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  font-size: 1.05rem;
}

.project-description:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(164, 113, 113, 0.15);
}

.project-subtitle {
  color: #4b6cb7;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

#project-overview h2 {
  margin-bottom: 0.5rem;
}

#details {
  padding: 4.5rem 0;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.details-item {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  font-size: 1.05rem;
}

.details-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(164, 113, 113, 0.15);
}

.details-item h3 {
  margin-bottom: 0.4rem;
  color: #4b6cb7;
}

.details-item h4 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #182848;
}

.details-item p {
  font-size: 1.05rem;
  color: #555;
  text-align: left;
}

/* Project trailer */
#project-trailer {
  padding: 4rem 0 2rem;
}

#project-trailer h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #182848;
}

.trailer-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.trailer-wrapper video {
  width: 80%;
  max-width: 900px;
  height: 500px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trailer-wrapper video:hover {
  transform: scale(1.01);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Showcase Section */
#showcase {
  padding: 4.5rem 0;
}

#showcase h2 {
  font-size: 2.25rem;
  margin-bottom: 2.25rem;
  color: #182848;
}

.showcase-flow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;   
  gap: 1.75rem;
  margin-bottom: 3rem;
}

.showcase-item {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  flex: 1 1 360px;
  max-width: 380px;
  display: flex;             
  flex-direction: column;
  align-items: center;
  padding: 0;
}

.showcase-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(164, 113, 113, 0.15);
}

.showcase-item img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.showcase-item h3 {
  font-size: 1.25rem;
  margin: 1rem 0 0.5rem;
  color: #4b6cb7;
}

.showcase-item p {
  font-size: 1.05rem;
  color: #555;
  text-align: left;
  line-height: 1.6;
  padding: 0 1.25rem 1.5rem;
}

.showcase-flow:last-of-type {
  justify-content: center;
}

/* Mobile */
@media (max-width: 768px) {
  .showcase-flow {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .showcase-item {
    flex: 0 0 auto;
    width: 90%;
    height: auto;
  }

  .showcase-item img {
    height: auto;
    max-height: 240px;
  }

  .nav-container {
    padding: 0.6rem 0;
  }

  .logo {
    font-size: 1.25rem;
  }

  .nav-links {
    gap: 0.9rem;
  }

  .nav-links a {
    font-size: 0.95rem;
  }
}
