/* Additional styles for dark-themed wedding invitation website */

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

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

@keyframes floatLeaf {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

.animate-fade-in {
  animation: fadeIn 1.5s ease-in-out;
}

.animate-slide-up {
  animation: slideUp 1s ease-out;
}

.animate-float {
  animation: floatLeaf 6s ease-in-out infinite;
}

/* Custom scrollbar for dark theme */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: #d4af37;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e5c365;
}

/* Gold gradient text effect */
.gold-gradient {
  background: linear-gradient(to right, #e6bc45, #d4af37, #f0d57f, #e0bd4d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* Elegant dividers */
.elegant-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
}

.elegant-divider::before,
.elegant-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(212, 175, 55, 0.3),
    transparent
  );
}

.elegant-divider-icon {
  padding: 0 1rem;
  color: #d4af37;
  font-size: 1.2rem;
}

/* Section transitions */
.section {
  position: relative;
  z-index: 1;
}

.section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, transparent, rgba(10, 10, 10, 0.9));
  z-index: -1;
  pointer-events: none;
}

/* Photo frame effect */
.photo-frame {
  padding: 4px;
  background-color: rgba(212, 175, 55, 0.1);
  border: 1px solid #d4af37;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-frame:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3), 0 0 0 1px #d4af37;
}

/* Decorative frame for section content */
.decorated-frame {
  position: relative;
  padding: 2rem;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.decorated-frame::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  pointer-events: none;
}

/* Gold border hover effect */
.gold-border-hover {
  position: relative;
  overflow: hidden;
}

.gold-border-hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #d4af37;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.gold-border-hover:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Floral decoration elements */
.floral-corner {
  position: relative;
}

.floral-corner::before,
.floral-corner::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 60px;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.2;
}

.floral-corner::before {
  top: -20px;
  left: -20px;
  background-image: url("https://i.imgur.com/ZMJK8wL.png");
  transform: rotate(0deg);
}

.floral-corner::after {
  bottom: -20px;
  right: -20px;
  background-image: url("https://i.imgur.com/ZMJK8wL.png");
  transform: rotate(180deg);
}

/* Form styling for dark theme */
.gold-form-input {
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #f9f9f9;
  transition: all 0.3s ease;
}

.gold-form-input:focus {
  border-color: #d4af37;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.2);
  outline: none;
}

.gold-form-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Gallery hover effects */
.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-item img {
  transition: transform 0.6s ease;
}

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

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  opacity: 0;
  transition: all 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

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

/* Responsive mobile adjustments */
@media (max-width: 768px) {
  .mobile-padding {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .mobile-text-center {
    text-align: center;
  }

  .floral-corner::before,
  .floral-corner::after {
    width: 40px;
    height: 40px;
  }
}

/* Floating particles animation */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.particle {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: rgba(212, 175, 55, 0.1);
  border-radius: 50%;
  animation: float 15s infinite ease-in-out;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Timeline styling */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 1px;
  background-color: rgba(212, 175, 55, 0.3);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-content {
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.2);
  position: relative;
  border-radius: 4px;
}

.timeline-item::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: #0a0a0a;
  border: 4px solid #d4af37;
  border-radius: 50%;
  top: 15px;
  z-index: 1;
}

.timeline-item:nth-child(odd)::after {
  right: -10px;
}

.timeline-item:nth-child(even)::after {
  left: -10px;
}

@media screen and (max-width: 768px) {
  .timeline::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-item::after {
    left: 21px !important;
  }
}
