/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #ff6b9d;
  --secondary-color: #ffa07a;
  --accent-color: #98d8c8;
  --highlight-color: #ffd93d;
  --text-dark: #2c3e50;
  --text-light: #5d6d7e;
  --bg-light: #fff9f5;
  --white: #ffffff;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

body {
  font-family: "Quicksand", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: linear-gradient(135deg, #fff5f7 0%, #fff9e6 50%, #f0f8ff 100%);
  overflow-x: hidden;
  position: relative;
}

/* Decorative Elements */
.stars {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
}

.stars::before,
.stars::after {
  content: "✨";
  position: absolute;
  font-size: 20px;
  animation: twinkle 3s infinite ease-in-out;
}

.stars::before {
  top: 10%;
  left: 20%;
  animation-delay: 0s;
}

.stars::after {
  top: 30%;
  right: 15%;
  animation-delay: 1.5s;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.balloons {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.balloons::before,
.balloons::after {
  content: "🎈";
  position: absolute;
  font-size: 40px;
  animation: float 6s infinite ease-in-out;
}

.balloons::before {
  bottom: -50px;
  left: 10%;
  animation-delay: 0s;
}

.balloons::after {
  bottom: -50px;
  right: 10%;
  animation-delay: 3s;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  position: relative;
  z-index: 2;
  background: url("images/jungle-bg.jpg") center center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.7)
  );
  z-index: 1;
}

.hero-content {
  animation: fadeInUp 1s ease-out;
  position: relative;
  z-index: 2;
}

.celebration-text {
  font-family: "Fredoka", sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 10px;
  animation: fadeIn 1.5s ease-out;
}

.name {
  font-family: "Fredoka", sans-serif;
  font-size: 5rem;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color),
    var(--highlight-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  animation: slideInLeft 1s ease-out;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.birthday-badge {
  display: inline-block;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  padding: 30px 50px;
  border-radius: 50px;
  box-shadow: var(--shadow);
  margin: 30px 0;
  animation: bounceIn 1.2s ease-out;
}

.birthday-badge .number {
  display: block;
  font-family: "Fredoka", sans-serif;
  font-size: 4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.birthday-badge .text {
  display: block;
  font-family: "Fredoka", sans-serif;
  font-size: 2rem;
  font-weight: 500;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 3px;
}

.date-info {
  margin-top: 40px;
  animation: fadeIn 2s ease-out;
}

.date {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.time {
  font-size: 1.4rem;
  color: var(--text-light);
}

/* Details Section */
.details {
  padding: 80px 20px;
  position: relative;
  z-index: 2;
}

.details .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.detail-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.detail-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.detail-card:nth-child(1) {
  animation: fadeInUp 0.8s ease-out 0.1s both;
}
.detail-card:nth-child(2) {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}
.detail-card:nth-child(3) {
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.detail-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.detail-card .icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.detail-card h3 {
  font-family: "Fredoka", sans-serif;
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.detail-card p {
  font-size: 1.1rem;
  color: var(--text-dark);
  line-height: 1.8;
}

.address,
.theme-desc {
  color: var(--text-light);
  font-size: 1rem;
  margin-top: 10px;
}

/* Gallery Section */
.gallery-section {
  padding: 80px 20px;
  position: relative;
  z-index: 2;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95),
    rgba(152, 216, 200, 0.1)
  );
}

.section-title {
  font-family: "Fredoka", sans-serif;
  font-size: 3rem;
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 60px;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 100px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  margin: 20px auto 0;
  border-radius: 2px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(250px, 1fr));
  grid-template-rows: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 20px;
  scroll-behavior: smooth;
}

.gallery-grid::-webkit-scrollbar {
  height: 10px;
}

.gallery-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
}

.gallery-grid::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

.gallery-grid::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  min-width: 250px;
}

.gallery-item:nth-child(1) {
  animation: fadeInUp 0.8s ease-out 0.1s both;
}
.gallery-item:nth-child(2) {
  animation: fadeInUp 0.8s ease-out 0.15s both;
}
.gallery-item:nth-child(3) {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}
.gallery-item:nth-child(4) {
  animation: fadeInUp 0.8s ease-out 0.25s both;
}
.gallery-item:nth-child(5) {
  animation: fadeInUp 0.8s ease-out 0.3s both;
}
.gallery-item:nth-child(6) {
  animation: fadeInUp 0.8s ease-out 0.35s both;
}
.gallery-item:nth-child(7) {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}
.gallery-item:nth-child(8) {
  animation: fadeInUp 0.8s ease-out 0.45s both;
}
.gallery-item:nth-child(9) {
  animation: fadeInUp 0.8s ease-out 0.5s both;
}
.gallery-item:nth-child(10) {
  animation: fadeInUp 0.8s ease-out 0.55s both;
}
.gallery-item:nth-child(11) {
  animation: fadeInUp 0.8s ease-out 0.6s both;
}
.gallery-item:nth-child(12) {
  animation: fadeInUp 0.8s ease-out 0.65s both;
}
.gallery-item:nth-child(13) {
  animation: fadeInUp 0.8s ease-out 0.7s both;
}
.gallery-item:nth-child(14) {
  animation: fadeInUp 0.8s ease-out 0.75s both;
}
.gallery-item:nth-child(15) {
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 10px;
  animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 50px;
  font-size: 50px;
  color: white;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 10000;
  font-weight: 300;
  line-height: 1;
}

.lightbox-close:hover {
  color: var(--primary-color);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 60px;
  color: white;
  cursor: pointer;
  padding: 20px;
  user-select: none;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
  z-index: 10000;
  font-weight: 300;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--primary-color);
  transform: translateY(-50%) scale(1.2);
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

.lightbox-caption {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1.2rem;
  font-family: "Fredoka", sans-serif;
  background: rgba(0, 0, 0, 0.6);
  padding: 15px 30px;
  border-radius: 30px;
}

/* Video Section */
.video-section {
  padding: 80px 20px;
  position: relative;
  z-index: 2;
}

.video-container {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: fadeInUp 1s ease-out;
}

.video-container video {
  width: 100%;
  display: block;
  background: #000;
}

/* RSVP Section */
.rsvp-section {
  padding: 80px 20px;
  position: relative;
  z-index: 2;
}

.rsvp-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 50px 40px;
  border-radius: 30px;
  box-shadow: var(--shadow);
  text-align: center;
  animation: fadeInUp 1s ease-out;
}

.rsvp-image {
  max-width: 150px;
  margin-bottom: 30px;
  animation: bounce 2s infinite;
}

.rsvp-card h2 {
  font-family: "Fredoka", sans-serif;
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.rsvp-card > p {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  padding: 15px 20px;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  font-family: "Quicksand", sans-serif;
  font-size: 1rem;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.rsvp-form textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
  padding: 18px 40px;
  border: none;
  border-radius: 50px;
  font-family: "Fredoka", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 5px 20px rgba(255, 107, 157, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
}

.btn-primary:active {
  transform: translateY(-1px);
}

/* Footer */
.footer {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
  padding: 60px 20px 30px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.footer-text {
  font-family: "Fredoka", sans-serif;
  font-size: 2rem;
  margin-bottom: 20px;
}

.contact-info {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.contact-info a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid var(--white);
  transition: opacity 0.3s ease;
}

.contact-info a:hover {
  opacity: 0.8;
}

.footer-note {
  font-size: 1rem;
  opacity: 0.9;
  margin-top: 30px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .name {
    font-size: 3.5rem;
  }

  .celebration-text {
    font-size: 1.4rem;
  }

  .birthday-badge {
    padding: 25px 40px;
  }

  .birthday-badge .number {
    font-size: 3rem;
  }

  .birthday-badge .text {
    font-size: 1.5rem;
  }

  .date {
    font-size: 1.4rem;
  }

  .time {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .rsvp-card {
    padding: 40px 25px;
  }

  .details .container {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(200px, 1fr));
    gap: 15px;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 40px;
    padding: 10px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 40px;
  }
}

@media (max-width: 480px) {
  .name {
    font-size: 2.5rem;
  }

  .celebration-text {
    font-size: 1.2rem;
  }

  .birthday-badge {
    padding: 20px 30px;
  }

  .birthday-badge .number {
    font-size: 2.5rem;
  }

  .birthday-badge .text {
    font-size: 1.2rem;
    letter-spacing: 2px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .rsvp-card h2 {
    font-size: 2rem;
  }
}
