@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* Prevent overflow */
html, body {
  overflow-x: hidden;
  width: 100%;
}

/* Header */
header {
  width: 100%;
  padding: 0 20px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1000;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  margin-left: 60px;
  margin-top: 20px;
}

.logo img {
  height: 70px;
  width: auto;
  display: block;
}

.logo a:hover {
  background: transparent;
  border-radius: 0;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  transition: max-height 0.3s ease-out;
}

.main-nav a {
  color: #F1EFEC;
  margin-left: 20px;
  padding: 8px 15px;
  font-size: 16px;
  transition: 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover {
  background: #D4C9BE;
  color: #123458;
  border-radius: 2px;
}

.main-nav a.active {
  background: #D4C9BE;
  color: #123458;
  border-radius: 2px;
}

/* Hamburger */
.hamburger-menu {
  display: none;
  font-size: 30px;
  color: #F1EFEC;
  cursor: pointer;
  z-index: 1001;
}

/* Carousel */
.carousel {
  width: 100%;
  height: 100vh;
  margin-top: -100px;
  overflow: hidden;
  position: relative;
  outline: none;
}

.carousel .list .item {
  width: 180px;
  height: 250px;
  position: absolute;
  top: 80%;
  transform: translateY(-70%);
  left: 70%;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  background-position: 50% 50%;
  background-size: cover;
  z-index: 100;
  transition: 1s;
}

.carousel .list .item:nth-child(1),
.carousel .list .item:nth-child(2) {
  top: 0;
  left: 0;
  transform: translate(0, 0);
  border-radius: 0;
  width: 100%;
  height: 100%;
}

.carousel .list .item:nth-child(3) { left: 67%; }
.carousel .list .item:nth-child(4) { left: calc(67% + 190px); }
.carousel .list .item:nth-child(5) { left: calc(67% + 380px); }
.carousel .list .item:nth-child(6) { left: calc(67% + 570px); }
.carousel .list .item:nth-child(n+7) {
  left: calc(67% + 760px);
  opacity: 0;
}

.list .item .content {
  position: absolute;
  top: 50%;
  left: 100px;
  transform: translateY(-50%);
  width: 400px;
  text-align: left;
  color: #F1EFEC;
  display: none;
}

.list .item:nth-child(2) .content {
  display: block;
}

/* --- Carousel Text --- */
.content .title {
  font-size: 100px;
  text-transform: uppercase;
  color: #dcd3cb;
  text-shadow: 7px 4px 4px rgba(0, 0, 0, 0.4);
  font-weight: bold;
  line-height: 1;
  opacity: 0;
  animation: animate 1s ease-in-out 0.3s 1 forwards;
}

.content .name {
  font-size: 100px;
  text-transform: uppercase;
  font-weight: bold;
  line-height: 1;
  text-shadow: 7px 4px 4px rgba(0, 0, 0, 0.4);
  opacity: 0;
  animation: animate 1s ease-in-out 0.6s 1 forwards;
}

.content .des {
  margin-top: 10px;
  margin-bottom: 20px;
  font-size: 20px;
  margin-left: 5px;
  text-shadow: 7px 4px 4px rgba(0, 0, 0, 0.4);
  opacity: 0;
  animation: animate 1s ease-in-out 0.9s 1 forwards;
}

@keyframes animate {
  from {
    opacity: 0;
    transform: translate(0, 100px);
    filter: blur(33px);
  }
  to {
    opacity: 1;
    transform: translate(0);
    filter: blur(0);
  }
}

/* Arrows */
.arrows {
  position: absolute;
  top: 80%;
  right: 52%;
  z-index: 100;
  width: 300px;
  max-width: 30%;
  display: flex;
  gap: 10px;
  align-items: center;
}

.arrows button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #D4C9BE;
  color: #123458;
  border: none;
  outline: none;
  font-size: 16px;
  font-family: monospace;
  font-weight: bold;
  transition: .5s;
  cursor: pointer;
}

.arrows button:hover {
  background: #F1EFEC;
  color: #030303;
}

/* Timer */
.carousel .timeRunning {
  position: absolute;
  z-index: 1000;
  width: 0%;
  height: 4px;
  background-color: #D4C9BE;
  left: 0;
  top: 0;
  animation: runningTime 7s linear 1 forwards;
}

@keyframes runningTime {
  from { width: 0%; }
  to { width: 100%; }
}

/* --- Responsive Design --- */

/* Tablet */
@media screen and (max-width: 999px) {
  .main-nav { display: none; }
  .main-nav.active { display: flex; }

  .list .item .content {
    left: 50px;
    width: 300px;
  }

  .content .title,
  .content .name {
    font-size: clamp(60px, 8vw, 80px);
  }

  .content .des {
    font-size: clamp(18px, 2.5vw, 22px);
  }

  .arrows { right: 45%; }
}

/* Mobile */
@media screen and (max-width: 768px) {
  header {
    height: 80px;
    padding: 0 15px;
  }

  .logo img {
    height: 45px;
    margin-left: 0;
  }

  .hamburger-menu { display: block; }

  .main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
    padding: 10px 0;
    z-index: 998;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
  }

  .main-nav.active {
    display: flex;
    max-height: 400px;
  }

  .main-nav a {
    padding: 15px 20px;
    font-size: 17px;
    width: 100%;
    text-align: left;
    color: #F1EFEC;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .carousel { margin-top: -80px; }

  .list .item .content {
    top: 50%;
    left: 20px;
    width: calc(100% - 40px);
    transform: translateY(-50%);
  }

  .content .title,
  .content .name {
    font-size: clamp(40px, 10vw, 60px);
  }

  .content .des {
    font-size: clamp(16px, 3.5vw, 20px);
  }

  .arrows {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    justify-content: center;
  }

  .arrows button {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
}

/* Small Phones */
@media screen and (max-width: 480px) {
  .content .title,
  .content .name {
    font-size: clamp(34px, 12vw, 46px);
  }

  .content .des {
    font-size: clamp(14px, 4vw, 18px);
  }

  .logo img {
    height: 50px;
    margin-left: -60px;
  }
}
