* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #ff6b9d;
  --secondary: #c471f5;
  --accent: #4facfe;
  --bg-light: #fafafa;
  --bg-dark: #1a1a2e;
  --text-dark: #2d2d44;
  --glass: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: var(--text-dark);
  overflow-x: hidden;
  position: relative;
}

/* Animated Background */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: floatShape 20s infinite ease-in-out;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  bottom: -150px;
  right: -150px;
  animation-delay: 5s;
}

.shape-3 {
  width: 350px;
  height: 350px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  top: 50%;
  right: -100px;
  animation-delay: 10s;
}

.shape-4 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  bottom: 20%;
  left: -100px;
  animation-delay: 15s;
}

@keyframes floatShape {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(50px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-30px, 30px) scale(0.9);
  }
}

/* Main Container */
.main-container {
  position: relative;
  z-index: 1;
}

/* Opening Screen */
.opening-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeOut 0.5s ease 2.5s forwards;
}

.opening-content {
  text-align: center;
  color: white;
}

.birthday-cake {
  font-size: 5rem;
  margin-bottom: 30px;
  animation: bounce 1s ease infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.1);
  }
}

.opening-title {
  font-family: "Playfair Display", serif;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 40px;
  letter-spacing: 3px;
  animation: fadeInUp 1s ease;
}

.loading-bar {
  width: 300px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto;
}

.loading-progress {
  height: 100%;
  background: linear-gradient(90deg, #fff, #ffd89b);
  border-radius: 10px;
  animation: loading 2s ease forwards;
}

@keyframes loading {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

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

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px;
  position: relative;
}

.hero-wrapper {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-text {
  animation: slideInLeft 1s ease;
}

.greeting {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-name {
  font-family: "Playfair Display", serif;
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.name-letter {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: letterFloat 2s ease-in-out infinite;
  transform-origin: center;
}

.name-letter:nth-child(1) { animation-delay: 0s; }
.name-letter:nth-child(2) { animation-delay: 0.1s; }
.name-letter:nth-child(3) { animation-delay: 0.2s; }
.name-letter:nth-child(4) { animation-delay: 0.3s; }
.name-letter:nth-child(5) { animation-delay: 0.4s; }

@keyframes letterFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(5deg);
  }
}

.hero-subtitle {
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-dark);
  margin-bottom: 30px;
  font-family: "Great Vibes", cursive;
  font-size: 2.5rem;
}

.hero-decoration {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.hero-decoration span {
  font-size: 2rem;
  animation: decorationSpin 3s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(255, 107, 157, 0.5));
}

.hero-decoration span:nth-child(1) { animation-delay: 0s; }
.hero-decoration span:nth-child(2) { animation-delay: 1s; }
.hero-decoration span:nth-child(3) { animation-delay: 2s; }

@keyframes decorationSpin {
  0%, 100% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.2);
  }
}

.hero-image {
  animation: slideInRight 1s ease;
}

.image-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  margin: 0 auto;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
  position: relative;
  z-index: 2;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
  transition: transform 0.5s ease;
}

.image-wrapper:hover .profile-image {
  transform: scale(1.05);
}

.image-border {
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  border: 3px solid;
  border-image: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent)) 1;
  border-radius: 40px;
  z-index: 1;
  animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}

.image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(255, 107, 157, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.scroll-down {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-dark);
  opacity: 0.6;
  animation: scrollBounce 2s infinite;
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid currentColor;
  border-radius: 20px;
  position: relative;
}

.mouse::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 10px;
  background: currentColor;
  border-radius: 2px;
  animation: mouseScroll 1.5s infinite;
}

@keyframes mouseScroll {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(15px);
  }
}

.arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: arrowBounce 1s infinite;
}

@keyframes arrowBounce {
  0%, 100% {
    transform: rotate(45deg) translateY(0);
  }
  50% {
    transform: rotate(45deg) translateY(10px);
  }
}

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

/* Wishes Section */
.wishes-section {
  padding: 120px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.title-underline {
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  margin: 0 auto;
  border-radius: 2px;
}

.wishes-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.wish-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 25px;
  padding: 50px 40px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.wish-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  transform: scaleX(0);
  transition: transform 0.5s ease;
}

.wish-card:hover::before {
  transform: scaleX(1);
}

.wish-card:hover {
  transform: translateY(-20px);
  box-shadow: 0 20px 60px rgba(255, 107, 157, 0.3);
  border-color: var(--primary);
}

.wish-number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 4rem;
  font-weight: 800;
  color: rgba(255, 107, 157, 0.1);
  font-family: "Playfair Display", serif;
}

.wish-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  display: inline-block;
  animation: iconFloat 2s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(10deg);
  }
}

.wish-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  font-family: "Playfair Display", serif;
}

.wish-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-dark);
  font-weight: 300;
}

.verse-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid rgba(255, 107, 157, 0.2);
}

.verse-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.verse-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(255, 107, 157, 0.2);
  border-color: var(--primary);
}

.verse-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-dark);
  font-weight: 300;
  font-style: italic;
  text-align: left;
}

.verse-text strong {
  font-weight: 600;
  font-style: normal;
  display: block;
  margin-bottom: 15px;
  color: var(--primary);
  font-size: 1.1rem;
}

/* Gallery Section */
.gallery-section {
  padding: 120px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-container {
  margin-top: 60px;
}

.gallery-main {
  margin-bottom: 40px;
}

.gallery-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.5s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 60px rgba(255, 107, 157, 0.3);
}

.gallery-item.large {
  aspect-ratio: 16/9;
}

.gallery-item:not(.large) {
  aspect-ratio: 1;
}

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

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(5px);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.view-icon {
  font-size: 3rem;
  color: white;
  animation: iconPulse 1.5s infinite;
}

@keyframes iconPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

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

/* Footer */
.footer-section {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(196, 113, 245, 0.1));
  margin-top: 100px;
}

.footer-heart {
  font-size: 3rem;
  margin-bottom: 20px;
  animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

.footer-text {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 20px;
  font-weight: 300;
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-icons span {
  font-size: 2rem;
  animation: iconFloat 2s ease-in-out infinite;
}

.footer-icons span:nth-child(1) { animation-delay: 0s; }
.footer-icons span:nth-child(2) { animation-delay: 0.5s; }
.footer-icons span:nth-child(3) { animation-delay: 1s; }
.footer-icons span:nth-child(4) { animation-delay: 1.5s; }

/* Gallery Modal */
.gallery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
}

.gallery-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
}

.modal-content {
  position: relative;
  z-index: 2001;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  transform: rotate(90deg) scale(1.1);
  background: rgba(255, 107, 157, 0.3);
}

.modal-image-container {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.modal-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 30px;
}

.nav-btn {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn:hover {
  background: rgba(255, 107, 157, 0.3);
  transform: scale(1.1);
}

.modal-counter {
  color: white;
  font-size: 1.2rem;
  font-weight: 500;
  min-width: 60px;
  text-align: center;
}

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

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

/* Responsive */
@media (max-width: 968px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }

  .hero-name {
    justify-content: center;
  }

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

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .opening-title {
    font-size: 2.5rem;
  }

  .hero-name {
    font-size: 3rem;
  }

  .image-wrapper {
    max-width: 300px;
  }

  .wish-card {
    padding: 40px 30px;
  }
}

