:root {
  --bg-color: #fff5f5;
  --second-bg-color: #ffecef;
  --text-color: #5a3d5c;
  --main-color: #d291bc;
  --accent-color: #ffa7c4;
  --dark-purple: #7c5295;
  --light-pink: #ffdfea;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.navbar {
  background: rgba(255, 245, 245, 0.9);
  backdrop-filter: blur(10px);
  padding: 1.5rem 9%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(210, 145, 188, 0.1);
}

.logo {
  font-size: 2.5rem;
  color: var(--text-color);
  font-weight: 700;
  text-decoration: none;
}

.logo span {
  color: var(--main-color);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.6rem;
  transition: 0.3s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  background: var(--main-color);
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--main-color);
}

.nav-links a:hover::after {
  width: 100%;
}

.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 8rem 2rem 4rem;
  text-align: center;
}

.title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  letter-spacing: 2px;
  color: var(--text-color);
  text-shadow: 0 0 10px rgba(210, 145, 188, 0.3);
}

.clock-container {
  position: relative;
  padding: 2rem;
  background: var(--second-bg-color);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(210, 145, 188, 0.2);
  margin-bottom: 2rem;
}

.clock {
  display: flex;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.segment {
  background: var(--main-color);
  color: white;
  font-size: 4.8rem;
  font-weight: 700;
  width: 120px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(210, 145, 188, 0.3);
  position: relative;
  overflow: hidden;
}

.segment::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.segment::after {
  content: attr(data-label);
  position: absolute;
  bottom: -30px;
  width: 100%;
  font-size: 1.4rem;
  color: var(--text-color);
  text-align: center;
  letter-spacing: 1px;
  text-transform: uppercase;
}

#ampm {
  font-size: 2.4rem;
  width: 100px;
  background: var(--dark-purple);
}

.reflection {
  transform: scaleY(-1);
  opacity: 0.15;
  filter: blur(3px);
  margin-top: -10px;
}

.date {
  font-size: 2rem;
  margin-top: 2rem;
  color: var(--text-color);
  background: rgba(210, 145, 188, 0.2);
  padding: 1rem 2rem;
  border-radius: 10px;
}

.footer {
  background: var(--second-bg-color);
  padding: 1.5rem;
  text-align: center;
  margin-top: auto;
  border-top: 1px solid rgba(210, 145, 188, 0.2);
}

.footer p {
  font-size: 1.4rem;
}

@media (max-width: 768px) {
  .clock {
    flex-wrap: wrap;
    justify-content: center;
  }

  .segment {
    width: 80px;
    height: 80px;
    font-size: 3.2rem;
  }

  #ampm {
    width: 70px;
    font-size: 1.8rem;
  }

  .title {
    font-size: 2rem;
  }
}
/* === HAMBURGER MENU === */
.hamburger {
  display: none;
  font-size: 2.5rem;
  cursor: pointer;
  color: var(--text-color);
}

/* Responsive: Hamburger aktif di layar kecil */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 9%;
    background: var(--bg-color);
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  }

  .nav-links.show {
    display: flex;
  }
}

/* by vareellian athaya isna */
