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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Poppins", sans-serif;
  background: #0a0a0a;
  color: #fff;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Particle Canvas */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0a2e 50%, #16213e 100%);
  overflow: hidden;
  z-index: 1;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 107, 157, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(196, 113, 245, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(79, 172, 254, 0.1) 0%, transparent 50%);
  animation: gradientPulse 8s ease infinite;
}

@keyframes gradientPulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.hero-content {
  text-align: center;
  z-index: 2;
  position: relative;
}

.name-reveal {
  margin-bottom: 60px;
}

.typing-text {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  background: linear-gradient(135deg, #ff6b9d 0%, #c471f5 50%, #4facfe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
  font-family: "Playfair Display", serif;
  letter-spacing: 3px;
  text-shadow: 0 0 40px rgba(255, 107, 157, 0.5);
  margin-bottom: 30px;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.birthday-badge {
  display: inline-block;
  padding: 15px 40px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 107, 157, 0.3);
  border-radius: 50px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 0 20px rgba(255, 107, 157, 0.1);
  animation: badgeFloat 3s ease-in-out infinite;
}

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

.badge-text {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #ff6b9d, #c471f5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  opacity: 0.7;
  animation: scrollBounce 2s infinite;
}

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

.scroll-arrow {
  font-size: 2rem;
  margin-top: 10px;
  animation: arrowPulse 1.5s infinite;
}

@keyframes arrowPulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* Photo Section */
.photo-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  position: relative;
  background: linear-gradient(180deg, #0a0a0a 0%, #1a0a2e 100%);
  z-index: 1;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.photo-card {
  position: relative;
  perspective: 1000px;
}

.photo-frame {
  position: relative;
  width: 400px;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 0 20px rgba(255, 107, 157, 0.1),
    0 0 0 40px rgba(196, 113, 245, 0.05);
}

.photo-card:hover .photo-frame {
  transform: rotateY(5deg) rotateX(5deg) scale(1.05);
}

.main-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.photo-card:hover .main-photo {
  transform: scale(1.1);
}

.photo-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 107, 157, 0.3) 0%, transparent 70%);
  animation: glowRotate 4s linear infinite;
  pointer-events: none;
}

@keyframes glowRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.photo-decoration {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
}

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

.decoration-icon:nth-child(1) {
  animation-delay: 0s;
}

.decoration-icon:nth-child(2) {
  animation-delay: 1s;
}

.decoration-icon:nth-child(3) {
  animation-delay: 2s;
}

@keyframes decorationFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* Message Section */
.message-section {
  min-height: 100vh;
  padding: 100px 20px;
  position: relative;
  background: linear-gradient(180deg, #1a0a2e 0%, #16213e 100%);
  z-index: 1;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.message-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 80px;
  font-family: "Playfair Display", serif;
}

.title-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff6b9d, transparent);
  max-width: 200px;
}

.title-text {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  background: linear-gradient(135deg, #ff6b9d, #c471f5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

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

.message-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 107, 157, 0.2);
  border-radius: 25px;
  padding: 40px;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.message-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 107, 157, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.message-card:hover::before {
  opacity: 1;
}

.message-card:hover {
  transform: translateY(-20px) scale(1.05);
  border-color: rgba(255, 107, 157, 0.5);
  box-shadow: 
    0 20px 60px rgba(255, 107, 157, 0.3),
    0 0 40px rgba(196, 113, 245, 0.2);
}

.card-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  display: inline-block;
  animation: iconBounce 2s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(255, 107, 157, 0.5));
}

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

.message-card h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #ff6b9d;
  font-weight: 700;
}

.message-card p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
}

.card-1 {
  animation-delay: 0s;
}

.card-2 {
  animation-delay: 0.2s;
}

.card-3 {
  animation-delay: 0.4s;
}

.verse-container {
  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, 255, 255, 0.1);
}

.verse-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 215, 155, 0.3);
  border-radius: 20px;
  padding: 30px;
  transition: all 0.3s ease;
}

.verse-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 215, 155, 0.5);
  box-shadow: 0 10px 30px rgba(255, 215, 155, 0.2);
}

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

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

/* Gallery Section */
.gallery-section {
  min-height: 100vh;
  padding: 100px 20px;
  position: relative;
  background: linear-gradient(180deg, #16213e 0%, #0a0a0a 100%);
  z-index: 1;
}

.gallery-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

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

.gallery-item:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 20px 60px rgba(255, 107, 157, 0.4);
}

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

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  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;
}

.gallery-icon {
  font-size: 3rem;
  color: #fff;
  animation: iconPulse 1.5s infinite;
}

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

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.lightbox.active {
  display: flex;
  flex-direction: column;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1001;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

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

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 107, 157, 0.3);
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.lightbox-nav.prev {
  left: 20px;
}

.lightbox-nav.next {
  right: 20px;
}

.lightbox-dots {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  justify-content: center;
}

.lightbox-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.lightbox-dot.active {
  background: #ff6b9d;
  transform: scale(1.5);
  box-shadow: 0 0 20px rgba(255, 107, 157, 0.8);
}

/* Floating Elements */
.floating-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.floating-icon {
  position: absolute;
  font-size: 30px;
  opacity: 0.6;
  animation: floatAround 15s infinite ease-in-out;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.floating-icon:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
}

.floating-icon:nth-child(2) {
  left: 30%;
  animation-delay: 3s;
}

.floating-icon:nth-child(3) {
  left: 50%;
  animation-delay: 6s;
}

.floating-icon:nth-child(4) {
  left: 70%;
  animation-delay: 9s;
}

.floating-icon:nth-child(5) {
  left: 90%;
  animation-delay: 12s;
}

@keyframes floatAround {
  0%, 100% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  50% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .photo-frame {
    width: 300px;
    height: 300px;
  }

  .message-cards {
    grid-template-columns: 1fr;
  }

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

  .title-line {
    max-width: 50px;
  }

  .lightbox-nav {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .lightbox-nav.prev {
    left: 10px;
  }

  .lightbox-nav.next {
    right: 10px;
  }
}

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

