* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.intro-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: #03040a;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 1.5s ease-out, visibility 1.5s;
}

.intro-overlay.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.infinity-loader {
  display: flex;
  align-items: center;
  gap: 30px;
}

.infinity-loader .letter {
  font-family: 'Cinzel', serif;
  font-size: 5.5rem;
  color: #fff;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInLetter 1s forwards;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.infinity-loader .letter:nth-child(1) { animation-delay: 0.5s; }
.infinity-loader .letter:nth-child(3) { 
  animation-delay: 3s;
  margin-left: -20px; 
}

.svg-container {
  width: 180px;
  display: flex;
  align-items: center;
  transform: rotate(1deg) translateY(2px);
}

.infinity-svg {
  width: 100%;
  overflow: visible;
}

.infinity-path {
  fill: none;
  stroke: #fff;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 450;
  stroke-dashoffset: 450;
  animation: drawInfinity 3s ease-in-out forwards;
  animation-delay: 1.2s;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6));
}

@keyframes drawInfinity {
  0% { stroke-dashoffset: 450; }
  100% { stroke-dashoffset: 0; }
}

@keyframes fadeInLetter {
  to { opacity: 1; transform: translateY(0); }
}

body {
  background-color: #03040a;
  color: #fff;
  font-family: 'Inter', sans-serif;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

body.opened {
  overflow-y: auto;
  overflow-x: hidden;
}

#tsparticles {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1;
  pointer-events: none;
}

.main-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
}

.header {
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  transition: height 1.8s cubic-bezier(0.77, 0, 0.175, 1);
}

body.opened .header {
  height: 45vh;
}

.moon-video-container {
  width: 260px;
  height: 260px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 2s ease, transform 2s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(240, 245, 230, 0.1);
}

.moon-video-container.show-moon {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 0 50px rgba(240, 245, 230, 0.25);
}

.moon-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transform: scale(1.15);
}

.moon-scene {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.side-name {
  font-family: 'Great Vibes', cursive;
  font-size: 2.4rem;
  color: #dfd7c2;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  text-shadow: 0 0 15px rgba(223, 215, 194, 0.4), 0 0 30px rgba(223, 215, 194, 0.15);
  position: absolute;
  top: 50%;
  letter-spacing: 1px;
}

.side-name-left {
  right: calc(100% - 5px);
  transform: translate(40px, -50%);
  text-align: right;
  line-height: 1.2;
  transition: opacity 1.8s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 1.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.side-name-right {
  left: calc(100% - 5px);
  transform: translate(-40px, -50%);
  transition: opacity 1.8s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 1.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.side-name.show-side-name {
  opacity: 1;
  transform: translate(0, -50%);
  animation: nameGlow 3s ease-in-out 1.5s infinite alternate;
}

@keyframes nameGlow {
  0% {
    text-shadow: 0 0 15px rgba(223, 215, 194, 0.4), 0 0 30px rgba(223, 215, 194, 0.15);
  }
  100% {
    text-shadow: 0 0 20px rgba(223, 215, 194, 0.6), 0 0 40px rgba(223, 215, 194, 0.25), 0 0 60px rgba(223, 215, 194, 0.1);
  }
}

body.opened .moon-video-container {
  transform: scale(0.7) translateY(20px);
}

body.opened .moon-scene {
  transform: scale(0.85);
  transition: transform 1.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.play-area {
  margin-top: 60px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.5s ease, height 0.5s ease, margin 0.5s ease;
  z-index: 10;
}

.play-area.show-play {
  opacity: 1;
  pointer-events: auto;
}

body.opened .play-area {
  opacity: 0;
  height: 0;
  margin-top: 0;
  pointer-events: none;
}

.play-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 75px;
  height: 75px;
  outline: none;
}

.play-icon {
  width: 25px;
  height: 25px;
  fill: #e6eaf5;
  z-index: 2;
  transition: transform 0.3s ease, fill 0.3s ease;
  margin-left: 4px;
}

.play-btn:hover .play-icon {
  transform: scale(1.15);
  fill: #fff;
}

.circle-pulse, .circle-pulse-2 {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  animation: pulse 2.5s infinite cubic-bezier(0.66, 0, 0, 1);
}

.circle-pulse {
  border: 1px solid rgba(220, 230, 255, 0.6);
}

.circle-pulse-2 {
  border: 1px solid rgba(220, 230, 255, 0.3);
  animation-delay: 1.25s;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

.content {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.5s ease, transform 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: 0.6s;
  padding: 0 20px 60px 20px;
  width: 100%;
  max-width: 650px;
  pointer-events: none;
}

body.opened .content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.details-content {
  background: rgba(12, 15, 26, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 45px 30px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.1);
  text-align: center;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 25px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.intro-text {
  font-size: 1.05rem;
  color: #aebacd;
  line-height: 1.7;
  margin-bottom: 45px;
  font-weight: 300;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.info-card {
  background: rgba(4, 6, 12, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 30px 20px;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  background: rgba(10, 14, 25, 0.6);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.info-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: #c4d0e0;
  margin-bottom: 15px;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 10px;
  display: inline-block;
}

.info-card p {
  color: #8e9bb0;
  font-size: 0.95rem;
  margin: 6px 0;
}

.info-card .big-date, .info-card .venue-name {
  color: #fff;
  font-weight: 500;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.final-thanks {
  font-family: 'Great Vibes', cursive;
  font-size: 1.6rem;
  color: #dfd7c2;
  margin-top: 50px;
  text-shadow: 0 0 8px rgba(223, 215, 194, 0.3);
  width: 100%;
  text-align: center;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #dbe4f0;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  margin-top: 15px;
  transition: all 0.3s ease;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.action-btn .icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.divider {
  width: 60px;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 20px auto;
}

.footer {
  width: 100%;
  text-align: center;
  padding: 40px 20px;
  background: rgba(4, 6, 12, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 60px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.5s ease, transform 1.5s ease;
  transition-delay: 0.9s;
  pointer-events: none;
}

body.opened .footer {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.footer p {
  color: #8e9bb0;
  font-size: 0.9rem;
  margin: 5px 0;
}

.family-section {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-bottom: 50px;
  padding: 0 20px;
}

.family-group {
  flex: 1;
  text-align: center;
}

.parent-names {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  color: #fff;
  font-weight: 400;
  line-height: 1.4;
}

.mobile-br {
  display: none;
}

.program-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 30px 0;
  padding: 15px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.flow-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.flow-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.15));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.flow-item:hover .flow-icon {
  transform: scale(1.2);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
}

.flow-item span {
  font-size: 0.7rem;
  color: #aebacd;
  white-space: nowrap;
  font-weight: 300;
}

.flow-arrow {
  width: 10px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  margin-top: 15px;
}

.flow-arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: -2px;
  width: 4px;
  height: 4px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transform: rotate(45deg);
}

@media (max-width: 600px) {
  .program-flow {
    padding: 12px 5px;
    margin: 25px 0;
  }
  .flow-icon {
    width: 26px;
    height: 26px;
  }
  .flow-item span {
    font-size: 0.6rem;
  }
  .flow-arrow {
    width: 6px;
  }
  .family-section {
    flex-direction: row;
    gap: 20px;
    margin-bottom: 40px;
    align-items: flex-start;
  }
  .parent-names {
    font-size: 0.85rem;
  }
  .info-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .details-content {
    padding: 35px 20px;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .intro-text {
    font-size: 0.95rem;
  }
  
  .moon-video-container {
    width: 220px;
    height: 220px;
  }
  
  .side-name {
    font-size: 1.6rem;
  }
  .mobile-br {
    display: block;
  }
}

@media (max-width: 350px) {
  .moon-video-container {
    width: 200px;
    height: 200px;
  }
  .side-name {
    font-size: 1.3rem;
  }
  .moon-scene {
    transform: scale(0.85);
  }
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #03040a; 
}
::-webkit-scrollbar-thumb {
  background: #1a2235; 
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2a3555; 
}
