@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=Montserrat:wght@300;400;500&display=swap");

:root {
  --primary-color: #556b2f; /* Olive green / Sage tone */
  --bg-color: #fcfbf9;
  --text-dark: #333;
  --text-light: #666;
  --gold: #d4af37;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  overflow-x: hidden;
}

h1,
h2,
h3,
.serif-font {
  font-family: "Cormorant Garamond", serif;
}

.animate {
  opacity: 0;
  transition: all 1s ease-out;
}

.fade-up {
  transform: translateY(40px);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.zoom-in {
  transform: scale(0.8);
}
.zoom-in.visible {
  opacity: 1;
  transform: scale(1);
}

#cover {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("img/landscape2.png") center/cover;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 1000;
  transition: top 1s ease-in-out;
}

#cover h1 {
  font-size: 3.5rem;
  margin: 1rem 0;
}

.btn-open {
  padding: 10px 25px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 2rem;
  font-family: "Montserrat", sans-serif;
  transition: 0.3s;
}

.btn-open:hover {
  background-color: #3e4f22;
  transform: scale(1.05);
}

#main-content {
  display: none;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

section {
  padding: 5rem 1.5rem;
  text-align: center;
  max-width: 800px;
  margin: auto;
  overflow: hidden;
}

.quote {
  font-style: italic;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.couple-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
  align-items: center;
}

.person-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.5rem;
  border: 4px solid var(--gold);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.person h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.person p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.ampersand {
  font-size: 4rem;
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  margin: -1rem 0;
}

.countdown-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 2.5rem;
}

.time-box {
  background-color: var(--primary-color);
  color: white;
  padding: 15px;
  border-radius: 10px;
  min-width: 70px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.time-box span {
  font-size: 1.8rem;
  font-weight: 600;
  font-family: "Cormorant Garamond", serif;
  display: block;
}

.time-box p {
  font-size: 0.75rem;
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.event-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
  border-top: 5px solid var(--primary-color);
}

.event-card h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.event-details p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.important-note {
  background-color: #e8f7ff;
  padding: 1rem;
  border-radius: 8px;
  color: #2f81d3;
  font-weight: 500;
  margin-top: 1rem;
  font-size: 0.85rem;
}

.btn-map {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 10px 20px;
  background-color: var(--text-dark);
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: 0.3s;
}

.btn-map:hover {
  background-color: var(--primary-color);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 2rem;
}

.gallery-item {
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portrait {
  aspect-ratio: 2/3;
}

.landscape {
  grid-column: span 2;
  aspect-ratio: 3/2;
}

.wishes-section {
  background-color: var(--primary-color);
  border-radius: 20px;
  margin: 2rem auto;
  padding: 3rem 1.5rem;
  max-width: 600px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.wishes-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
  scroll-behavior: smooth;
}

.wishes-list::-webkit-scrollbar {
  width: 6px;
}
.wishes-list::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

.wish-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  animation: fadeUpItem 0.5s ease-out;
}

@keyframes fadeUpItem {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wish-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  color: #1a1a1a;
  font-size: 1.2rem;
  flex-shrink: 0;
  font-family: "Montserrat", sans-serif;
}

.wish-content {
  background: white;
  padding: 15px 20px;
  border-radius: 15px;
  border-top-left-radius: 0;
  position: relative;
  text-align: left;
  width: 100%;
  color: #333;
}

.wish-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: -12px;
  border-width: 0 12px 15px 0;
  border-style: solid;
  border-color: transparent white transparent transparent;
}

.wish-content h4 {
  margin: 0;
  font-size: 1rem;
  color: #000;
}

.wish-content span {
  font-size: 0.8rem;
  color: #777;
  display: block;
  margin-bottom: 8px;
}

.wish-content p {
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.4;
}

.wish-form-container form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wish-form-container input,
.wish-form-container textarea {
  width: 100%;
  padding: 15px;
  border-radius: 10px;
  border: none;
  background-color: rgba(0, 0, 0, 0.2);
  color: white;
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
}

.wish-form-container input::placeholder,
.wish-form-container textarea::placeholder {
  color: #d0d0d0;
}

.wish-form-container input:focus,
.wish-form-container textarea:focus {
  outline: 2px solid var(--gold);
}

.wish-form-container textarea {
  resize: vertical;
}

.btn-submit {
  padding: 15px;
  background-color: white;
  color: var(--primary-color);
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  font-family: "Montserrat", sans-serif;
  margin-top: 0.5rem;
}

.btn-submit:hover {
  background-color: #e0e0e0;
}

.turut-mengundang {
  text-align: left;
  margin-top: 2rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.turut-mengundang h4 {
  color: var(--primary-color);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.turut-mengundang ul {
  list-style-position: inside;
  color: var(--text-light);
}

footer {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 2rem;
}

@media (max-width: 600px) {
  .wishes-section {
    padding: 2rem 1rem;
    margin: 1.5rem 1rem;
    border-radius: 15px;
  }
  .wish-item {
    gap: 10px;
  }
  .wish-avatar {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .wish-content {
    padding: 10px 15px;
  }
  .wish-content h4 {
    font-size: 0.95rem;
  }
  .wish-content p {
    font-size: 0.85rem;
  }
  .wish-form-container input,
  .wish-form-container textarea {
    padding: 12px;
    font-size: 0.9rem;
  }
}
