/* Base Styling */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  transition: background 0.5s ease, color 0.5s ease;
}

:root {
  --bg: #fff0f5;
  --text: #4a4a4a;
  --accent: #ff69b4;
}

.dark {
  --bg: #1c1c1c;
  --text: #f0e6f6;
  --accent: #ff69b4;
}

.theme-toggle {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1000;
}

button {
  padding: 10px 20px;
  border: none;
  background: var(--accent);
  color: white;
  font-weight: bold;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #ffdde1, #ee9ca7);
  color: #fff;
  animation: fadeIn 2s ease-in-out;
}

.subtitle {
  font-size: 1.2rem;
  margin-top: 10px;
  animation: fadeIn 3s ease-in-out;
}

.gallery {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.image-section {
  text-align: center;
  animation: slideIn 1.5s ease-in-out;
}

.img-16by9, .img-9by16 {
  width: 100%;
  max-width: 700px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.img-16by9:hover, .img-9by16:hover {
  transform: scale(1.02);
}

.scrollable-gallery {
  padding: 20px;
}

.scroll-container {
  display: flex;
  overflow-x: auto;
  gap: 15px;
  padding-bottom: 10px;
}

/* .scroll-item{
  width: 100%;
} */

.scroll-item img {
  height: 200px;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.scroll-item img:hover {
  transform: scale(1.05);
}

footer {
  text-align: center;
  padding: 20px;
  background-color: var(--accent);
  color: white;
  margin-top: 40px;
}

/* Animations */
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  0% { opacity: 0; transform: translateX(-30px); }
  100% { opacity: 1; transform: translateX(0); }
}

@media (max-width: 768px) {
  .img-16by9, .img-9by16 {
    max-width: 100%;
  }

  .scroll-item img {
    height: 150px;
  }

  .hero {
    padding: 40px 10px;
  }

  button {
    padding: 8px 16px;
  }
}
/* Modal Styling */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  animation: fadeInModal 1s forwards ease-in-out;
}

.modal-content {
  background: var(--bg);
  color: var(--text);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  max-width: 90%;
  width: 500px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
  transform: scale(0.8);
  animation: zoomIn 0.8s ease-out forwards;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
}

/* Modal Animations */
@keyframes fadeInModal {
  to {
    opacity: 1;
    pointer-events: auto;
  }
}

@keyframes zoomIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Blue theme */
.dark {
  --bg: #e0f7fa;
  --text: #003344;
  --accent: #4dd0e1;
}

/* Modal Styling */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  animation: fadeInModal 1s forwards ease-in-out;
}

.modal-content {
  background: var(--bg);
  color: var(--text);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  max-width: 90%;
  width: 500px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
  transform: scale(0.8);
  animation: zoomIn 0.8s ease-out forwards;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
}

/* Modal Animations */
@keyframes fadeInModal {
  to {
    opacity: 1;
    pointer-events: auto;
  }
}

@keyframes zoomIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Floating hearts */
.floating-hearts {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.heart {
  position: absolute;
  bottom: 0;
  width: 20px;
  height: 20px;
  background: red;
  clip-path: polygon(50% 0%, 100% 30%, 80% 100%, 50% 75%, 20% 100%, 0% 30%);
  opacity: 0.8;
  animation: floatUp 3s ease-out forwards;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translateY(-200px) scale(1.5);
    opacity: 0;
  }
}
