:root {
  --primary-green: #79976c;
  --text-dark: #333;
  --text-light: #fff;
}


body {
  display: flex;
  font-family: 'Inter', sans-serif;
  padding: 1rem;
  flex-direction: column;
  min-height: 100dvh;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  user-select: none;
  /* Standard property */
  -webkit-user-select: none;
  /* Safari/Chrome */
  -moz-user-select: none;
  /* Firefox */
  -ms-user-select: none;
  /* Internet Explorer/Edge */
}

.nav-links a:hover {
  cursor: pointer;
}

.main-header {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  padding: 1rem 5%;
}

.navbar {
  display: flex;
  align-items: center;
  width: max(50vw, 800px);
  max-width: 1200px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  transition: border 0.3s, border-radius 0.3s, width 0.3s, background-color 0.3s ease-out;
}

.navbar:hover {
  border: 1px solid rgba(255, 255, 255, 1);
  background-color: rgba(255, 255, 255, 0.6);
}

.logo img {
  width: 3rem;
  height: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 0 auto;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s;
  position: relative;
  display: inline-block;

}

.nav-links a::after,
.nav-links a::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #addd8d, #f8d286);
  bottom: -5px;
  left: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease-out;
}

.nav-links a::before {
  top: -5px;
  transform-origin: right;
}

.nav-links a:hover::after,
.nav-links a:hover::before {
  transform: scaleX(1);
}

.contact-button {
  background-color: var(--primary-green);
  color: var(--text-light);
  padding: .7rem 1rem;
  text-decoration: none;
  border-radius: 100em;
  font-size: 1rem;
  font-weight: 600;

  transition: background-color 0.3s, border 0.3s;
  border: 1px solid rgba(255, 255, 255, 0);
}

.contact-button:hover {
  background-color: #7ea170;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: inherit;
  filter: blur(8px);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--text-light);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
  padding: 0 1rem;
}

.cmm-badge {
  font-size: 1.5rem;
  background-color: #79976cbb;
  color: var(--text-light);
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 1rem;
  margin-bottom: 0.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.popup {
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-content h1 {
  font-family: "Dancing Script", cursive;
  font-size: clamp(2rem, 8vw, 6rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.brief-explanation {
  font-size: clamp(0.9rem, 1.5vw, 1.2rem);
  margin-bottom: 2rem;
  position: relative;
  display: block;
}

.dotted-line {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  width: 40vw;
  height: 1px;
  border-bottom: 1px dashed var(--text-light);
  opacity: 0.7;
  margin-top: 0.5rem;
}

.stamp-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 5rem;
  flex-wrap: wrap;
}

.left-dots,
.right-dots {
  color: var(--text-light);
  font-size: 0.9rem;
  letter-spacing: 2px;
  opacity: 0.7;
}

.stamp-button {
  background-color: #5a6244;
  border-radius: 1rem;
  border: 2px solid var(--text-light);
  color: var(--text-light);
  padding: 0.5rem 1.5rem;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 1px;
  transition: background-color 0.3s, color 0.3s;
}

.stamp-button:hover {
  background-color: #5a624470;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}


@media (max-height: 660px) {
  .hero-section {
    height: auto;
    flex: 1;
  }
  .main-header {
    position: sticky;
    top: 0;
  }
}

@media (max-width: 1024px) {
  .navbar {
    width: max(70vw, 468px);
    flex-direction: column;
    gap: 1rem;
    border-radius: 15px;
  }

  .hero-section {
    justify-content: center;   /* horizontal */
  }

  .nav-links {
    justify-content: center;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 10vw, 5rem);
  }
}

@media (max-width: 768px) {
  .navbar {
    position: absolute;
    top: 0;
    left: 0;
    padding: 1rem;
    margin: 0;
    width: 100vw;
    align-items: center;
    border-radius: 5px;
  }

  .nav-links {
    gap: 0.8rem;
    width: 100%;
    text-align: center;
  }

  .contact-button {
    margin-top: 1rem;
  }
}