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

body {
  font-family: 'Roboto', sans-serif;
  overflow-x: hidden;
}

.timeline-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 25%, #f48fb1 50%, #f06292 75%, #ec407a 100%);
  position: relative;
  overflow-x: hidden;
}

.timeline-header {
  position: relative;
  padding: 80px 20px 60px;
  text-align: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
  backdrop-filter: blur(10px);
  border-radius: 0 0 30px 30px;
  margin-bottom: 60px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.header-content {
  position: relative;
  z-index: 2;
}

.main-title {
  font-family: 'Dancing Script', cursive;
  font-size: 4rem;
  font-weight: 700;
  color: #e91e63;
  margin: 0 0 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
  animation: titleGlow 3s ease-in-out infinite alternate;
}

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

.subtitle {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: #9c27b0;
  margin: 0 0 30px;
  font-style: italic;
}

@media (max-width: 768px) {
  .subtitle {
    font-size: 1.1rem;
  }
}

.anniversary-info .anniversary-date {
  font-family: 'Roboto', sans-serif;
  font-size: 1.1rem;
  color: #666;
  background: linear-gradient(45deg, #ff9a9e, #fecfef);
  padding: 10px 20px;
  border-radius: 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: inline-block;
}

.floating-hearts {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.heart {
  position: absolute;
  width: 20px;
  height: 20px;
  background: linear-gradient(45deg, #ff6b9d, #c44569);
  transform: rotate(45deg);
  animation: float 6s ease-in-out infinite;
}

.heart::before,
.heart::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: inherit;
  border-radius: 50%;
}

.heart::before {
  top: -10px;
  left: 0;
}

.heart::after {
  top: 0;
  left: -10px;
}

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

.heart:nth-child(2) {
  left: 20%;
  animation-delay: 1s;
}

.heart:nth-child(3) {
  left: 70%;
  animation-delay: 2s;
}

.heart:nth-child(4) {
  left: 80%;
  animation-delay: 3s;
}

.heart:nth-child(5) {
  left: 50%;
  animation-delay: 4s;
}

.timeline-section {
  position: relative;
  padding: 0 20px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #e91e63, #9c27b0, #673ab7);
  transform: translateX(-50%);
  border-radius: 2px;
  box-shadow: 0 0 20px rgba(233, 30, 99, 0.3);
}

@media (max-width: 768px) {
  .timeline-line {
    left: 30px;
    transform: none;
  }
}

.timeline-events {
  position: relative;
  z-index: 2;
}

.timeline-event-wrapper {
  margin-bottom: 80px;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-event-wrapper.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.timeline-event-wrapper.left {
  padding-right: 50%;
}

.timeline-event-wrapper.right {
  padding-left: 50%;
}

@media (max-width: 768px) {
  .timeline-event-wrapper.left,
  .timeline-event-wrapper.right {
    padding-right: 0;
    padding-left: 60px;
  }
}

.timeline-event-wrapper.special .timeline-event {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(233, 30, 99, 0.3);
}

.timeline-event {
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.9) 100%);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.timeline-event::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(45deg, #e91e63, #9c27b0);
  border-radius: 20px 20px 0 0;
}

.timeline-event:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.timeline-event.special {
  background: linear-gradient(135deg, rgba(255,192,203,0.95) 0%, rgba(255,182,193,0.9) 100%);
  border: 2px solid rgba(233, 30, 99, 0.3);
}

.timeline-event.special::before {
  background: linear-gradient(45deg, #ff6b9d, #c44569);
  height: 6px;
}

.timeline-event.special .event-icon {
  background: linear-gradient(45deg, #e91e63, #9c27b0);
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(233, 30, 99, 0.4);
}

.event-content {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

@media (max-width: 768px) {
  .event-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.event-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, #f8bbd9, #f48fb1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.event-icon i {
  font-size: 1.5rem;
  color: white;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .event-icon {
    width: 50px;
    height: 50px;
  }
  
  .event-icon i {
    font-size: 1.2rem;
  }
}

.event-details {
  flex: 1;
  min-width: 0;
}

.event-date {
  font-family: 'Roboto', sans-serif;
  font-size: 0.9rem;
  color: #9c27b0;
  font-weight: 500;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .event-date {
    font-size: 0.8rem;
  }
}

.event-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 12px;
  line-height: 1.3;
}

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

.event-description {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
  font-weight: 300;
}

@media (max-width: 768px) {
  .event-description {
    font-size: 0.9rem;
  }
}

.event-image {
  margin-top: 20px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  position: relative;
  background: linear-gradient(45deg, #f8bbd9, #f48fb1);
  border: 2px solid rgba(233, 30, 99, 0.1);
}

.event-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.event-image img:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .event-image img {
    height: 400px;
  }
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.1), rgba(156, 39, 176, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-overlay i {
  color: white;
  font-size: 2rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.event-image:hover .image-overlay {
  opacity: 1;
}

.event-connector {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.connector-line {
  position: absolute;
  width: 40px;
  height: 2px;
  background: linear-gradient(45deg, #e91e63, #9c27b0);
  border-radius: 1px;
}

@media (max-width: 768px) {
  .connector-line {
    width: 30px;
  }
}

.connector-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: linear-gradient(45deg, #e91e63, #9c27b0);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(233, 30, 99, 0.5);
  border: 3px solid white;
}

@media (max-width: 768px) {
  .connector-dot {
    width: 10px;
    height: 10px;
  }
}

/* Position connectors for left and right events */
.timeline-event-wrapper.left .timeline-event .event-connector {
  right: -50px;
}

.timeline-event-wrapper.left .timeline-event .connector-line {
  right: 0;
}

.timeline-event-wrapper.left .timeline-event .connector-dot {
  right: -6px;
}

@media (max-width: 768px) {
  .timeline-event-wrapper.left .timeline-event .event-connector {
    right: auto;
    left: -40px;
  }
  
  .timeline-event-wrapper.left .timeline-event .connector-line {
    right: auto;
    left: 0;
  }
  
  .timeline-event-wrapper.left .timeline-event .connector-dot {
    right: auto;
    left: -5px;
  }
}

.timeline-event-wrapper.right .timeline-event .event-connector {
  left: -50px;
}

.timeline-event-wrapper.right .timeline-event .connector-line {
  left: 0;
}

.timeline-event-wrapper.right .timeline-event .connector-dot {
  left: -6px;
}

@media (max-width: 768px) {
  .timeline-event-wrapper.right .timeline-event .event-connector {
    left: -40px;
  }
  
  .timeline-event-wrapper.right .timeline-event .connector-line {
    left: 0;
  }
  
  .timeline-event-wrapper.right .timeline-event .connector-dot {
    left: -5px;
  }
}

.timeline-footer {
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
  backdrop-filter: blur(10px);
  padding: 60px 20px;
  text-align: center;
  border-radius: 30px 30px 0 0;
  margin-top: 60px;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer-heart {
  font-size: 3rem;
  color: #e91e63;
  margin-bottom: 20px;
  animation: heartbeat 2s ease-in-out infinite;
}

.footer-message {
  font-family: 'Dancing Script', cursive;
  font-size: 1.8rem;
  color: #9c27b0;
  margin: 0 0 30px;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .footer-message {
    font-size: 1.4rem;
  }
}

.footer-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.decoration-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(45deg, #e91e63, #9c27b0);
  border-radius: 1px;
}

.footer-decoration i {
  color: #e91e63;
  font-size: 1.2rem;
  animation: twinkle 2s ease-in-out infinite;
}

.carousel-section {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 60px 0;
  text-align: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.6) 100%);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.carousel-title {
  font-family: 'Dancing Script', cursive;
  font-size: 2.5rem;
  color: #e91e63;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

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

.carousel-container {
  position: relative;
  width: 100%;
  max-width: none;
  height: auto;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.carousel-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 70vh;
}

@media (max-width: 768px) {
  .carousel-wrapper {
    height: 50vh;
  }
}

.carousel-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-iframe {
  width: 640px;
  height: 480px;
  border: none;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .carousel-iframe {
    width: 100%;
    max-width: 400px;
    height: 300px;
  }
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  color: #e91e63;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 10;
}

.carousel-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.carousel-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.carousel-btn.prev-btn {
  left: 20px;
}

.carousel-btn.next-btn {
  right: 20px;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(233, 30, 99, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: #e91e63;
  transform: scale(1.2);
}

.indicator:hover {
  background: rgba(233, 30, 99, 0.6);
}

@keyframes titleGlow {
  0% {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
  }
  100% {
    text-shadow: 2px 2px 20px rgba(233, 30, 99, 0.4);
  }
}

@keyframes float {
  0%, 100% {
    transform: rotate(45deg) translateY(0px);
    opacity: 0.7;
  }
  50% {
    transform: rotate(45deg) translateY(-20px);
    opacity: 1;
  }
}

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

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

@keyframes specialGlow {
  0% {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1), 0 0 20px rgba(233, 30, 99, 0.2);
  }
  100% {
    box-shadow: 0 20px 40px rgba(0,0,0,0.15), 0 0 30px rgba(233, 30, 99, 0.4);
  }
}

.timeline-event-wrapper.special .timeline-event {
  animation: specialGlow 3s ease-in-out infinite alternate;
}
