/* === FONT IMPORT === */
@import url('https://fonts.googleapis.com/css2?family=Delius&family=Great+Vibes&family=Cormorant+Garamond:wght@400;500;600;700&display=swap');

/* === CSS VARIABLES === */
:root {
  /* Colors */
  --primary-brown: #6b4423;
  --secondary-brown: #8b5a3c;
  --light-brown: #c19a6b;
  --dark-brown: #3e2723;
  --cream: #f5e6d3;
  --gold: #d9b26a;
  --white: #ffffff;
  
  /* Transitions */
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Shadows */
  --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.2);
  --shadow-brown: 0 10px 25px rgba(107, 68, 35, 0.3);
  
  /* Spacing */
  --nav-height: 80px;
}

/* === RESET & BASE === */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: "Delius", cursive;
  background-color: var(--cream);
  color: var(--dark-brown);
  line-height: 1.7;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 600;
}

p {
  margin: 0;
}

.font-serif {
  font-family: "Cormorant Garamond", serif;
}

.font-romantic {
  font-family: "Great Vibes", cursive;
  letter-spacing: 1px;
}

.text-white {
  color: var(--white);
}

.text-brown {
  color: var(--primary-brown);
}

.text-light-brown {
  color: var(--light-brown);
}

.text-gold {
  color: var(--gold);
}

.hero-text {
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1.2;
}

/* === BACKGROUNDS === */
.bg-brown {
  background-color: var(--primary-brown);
}

.bg-secondary-brown {
  background-color: var(--secondary-brown);
}

.bg-dark-brown {
  background-color: var(--dark-brown);
}

.batik-bg {
  background-color: rgba(255, 255, 255, 0.7);
  background-blend-mode: overlay;
}

.batik-pattern {
  background-color: rgba(245, 230, 211, 0.9);
  background-blend-mode: overlay;
}

/* === BUTTONS === */
.btn-brown {
  background: linear-gradient(135deg, var(--light-brown) 0%, var(--secondary-brown) 100%);
  color: var(--white);
  border: none;
  padding: 12px 40px;
  border-radius: 50px;
  font-weight: 600;
  transition: all var(--transition-base);
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}

.btn-brown:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-brown);
  color: var(--white);
}

/* === COVER SECTION === */
#cover {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../assets/ornamen/bg2.png');
  background-size: cover;
  background-position: center;
  animation: fadeIn 1.5s ease-in-out;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

#cover.hidden {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  display: none;
}

/* === HOME SECTION === */
#home {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../assets/gallery/0.jpg');
  background-size: cover;
  background-position: center;
  background-color: rgba(0, 0, 0, 0.5);
  background-blend-mode: overlay;
  animation: fadeIn 1.5s ease-in-out;
  color: var(--white);
}

/* === ORNAMENTS === */
.ornament-divider {
  text-align: center;
  margin: 30px 0;
}

.ornament-line {
  display: inline-block;
  width: 80px;
  height: 2px;
  background: var(--light-brown);
  vertical-align: middle;
  margin: 0 15px;
}

.flower-ornament {
  width: 80px;
  height: 80px;
  opacity: 0.6;
}

.corner-ornament {
  position: absolute;
  width: 150px;
  height: 150px;
  opacity: 0.1;
  pointer-events: none;
}

.corner-ornament.top-left {
  top: 0;
  left: 0;
}

.corner-ornament.bottom-right {
  bottom: 0;
  right: 0;
  transform: rotate(180deg);
}

.ornament {
  position: absolute;
  width: 320px;
  height: 120px;
  z-index: 0;
  pointer-events: none;
}

.ornament-1 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  background-image: url('../assets/ornamen/1.png'), url('../assets/ornamen/2.png');
  background-size: cover;
  background-blend-mode: overlay;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ornament-2 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  background-image: url('../assets/ornamen/3.png'), url('../assets/ornamen/4.png'), url('../assets/ornamen/5.png');
  background-size: cover;
  background-blend-mode: overlay;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ornament-top2 {
  top: -5rem;
  left: 50%;
  transform: translateX(-100%) scale(0.5);
  filter: invert(63%) sepia(45%) saturate(356%) hue-rotate(357deg) brightness(90%) contrast(92%);
}

/* === CARDS === */
.card-custom {
  position: relative;
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: none;
  overflow: hidden;
  transition: all var(--transition-base);
}

.card-custom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--light-brown) 0%, var(--secondary-brown) 100%);
}

.card-custom::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(193, 154, 107, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-slow);
  pointer-events: none;
}

.card-custom:hover::after {
  opacity: 1;
}

/* === PROFILE IMAGES === */
.profile-img,
.couple-photo,
.photo-wrapper {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-img {
  box-shadow: 0 15px 40px rgba(107, 68, 35, 0.2);
}

.couple-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: var(--gold) 1px solid;
}

.photo-wrapper:hover .couple-photo {
  transform: scale(1.2);
}

.top-img {
  position: absolute;
  width: 280px;
  height: auto;
  margin-top: 10px;
  margin-left: -20px;
}

/* === COUNTDOWN === */
#countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.countdown-box {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--light-brown);
  width: 70px;
  height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.countdown-box h3 {
  color: var(--primary-brown);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1;
}

.countdown-box p {
  color: var(--secondary-brown);
  font-size: 0.75rem;
}

/* === GALLERY === */
.gallery-item {
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform var(--transition-slow);
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-placeholder {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, #d4c5b0 0%, #a89279 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.5);
  transition: all var(--transition-base);
}

.gallery-item:hover .gallery-placeholder {
  background: linear-gradient(135deg, var(--light-brown) 0%, var(--secondary-brown) 100%);
}

.gallery-placeholder i {
  animation: float 3s ease-in-out infinite;
}

/* === TIMELINE === */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--light-brown) 0%, var(--secondary-brown) 100%);
  border-radius: 10px;
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
  width: 100%;
}

.timeline-content {
  background: var(--white);
  padding: 30px;
  border-radius: 15px;
  box-shadow: var(--shadow-md);
  width: calc(50% - 30px);
  position: relative;
  transition: all var(--transition-base);
}

.timeline-content:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
  margin-right: 60px;
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 60px;
  margin-right: auto;
  text-align: left;
}

.timeline-item:nth-child(odd) .timeline-content::before {
  content: '';
  position: absolute;
  right: -15px;
  top: 30px;
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 15px solid var(--white);
}

.timeline-item:nth-child(even) .timeline-content::before {
  content: '';
  position: absolute;
  left: -15px;
  top: 30px;
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-right: 15px solid var(--white);
}

.timeline-icon {
  position: absolute;
  left: 50%;
  top: 30px;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--light-brown) 0%, var(--secondary-brown) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  box-shadow: var(--shadow-brown);
  z-index: 10;
  border: 4px solid var(--cream);
  animation: pulse 2s ease-in-out infinite;
}

.timeline-date {
  font-weight: 600;
  color: var(--light-brown);
  margin-bottom: 10px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* === BOTTOM NAVIGATION === */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  border-top: 3px solid var(--light-brown);
  animation: slideUp 0.5s ease;
}

.bottom-nav a {
  color: var(--primary-brown);
  text-decoration: none;
  padding: 15px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.75rem;
  transition: all var(--transition-base);
  position: relative;
}

.bottom-nav a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--light-brown);
  transition: width var(--transition-base);
}

.bottom-nav a:hover::before,
.bottom-nav a.active::before {
  width: 80%;
}

.bottom-nav a:hover,
.bottom-nav a.active {
  color: var(--light-brown);
  background: rgba(193, 154, 107, 0.1);
}

.bottom-nav i {
  font-size: 1.3rem;
  margin-bottom: 5px;
  transition: transform var(--transition-base);
}

.bottom-nav a:hover i,
.bottom-nav a.active i {
  transform: scale(1.2);
}

/* === AUDIO BUTTON === */
.audio-btn {
  position: fixed;
  right: 20px;
  bottom: 100px;
  background-color: var(--cream);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  color: var(--primary-brown);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
}

.audio-btn:hover {
  transform: scale(1.1);
}

#audioTitle {
  position: fixed;
  font-size: 8px;
  right: -35px;
  bottom: 75px;
  width: 100px;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  border: none;
  transition: all var(--transition-base);
}

#scWidget {
  display: none;
}

/* === COMMENTS SECTION === */
#commentWrapper {
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--light-brown) #f1f1f1;
}

#commentWrapper::-webkit-scrollbar {
  width: 8px;
}

#commentWrapper::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

#commentWrapper::-webkit-scrollbar-thumb {
  background-color: var(--light-brown);
  border-radius: 10px;
}

#commentWrapper::-webkit-scrollbar-thumb:hover {
  background-color: var(--secondary-brown);
}

/* === MAIN CONTENT === */
main {
  padding-bottom: var(--nav-height);
}

/* === SECTION TITLES === */
.section-title {
  position: relative;
  animation: fadeInDown 1s ease;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--light-brown), transparent);
  animation: expandWidth 1.5s ease;
}

/* === UTILITY CLASSES === */
.hover-lift {
  transition: all 0.4s ease;
}

.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* === ANIMATIONS === */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes expandWidth {
  from {
    width: 0;
  }
  to {
    width: 250px;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  10%, 30% {
    transform: scale(0.9);
  }
  20%, 40%, 50%, 60%, 70%, 80% {
    transform: scale(1.1);
  }
}

@keyframes pulse {
  0%, 100% {
    box-shadow: var(--shadow-brown);
  }
  50% {
    box-shadow: 0 5px 30px rgba(107, 68, 35, 0.5);
  }
}

.heartbeat {
  animation: heartbeat 1.5s ease-in-out infinite;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
  .bottom-nav a {
    padding: 12px 5px;
    font-size: 0.65rem;
  }

  .bottom-nav i {
    font-size: 1.1rem;
  }

  /* Timeline Mobile */
  .timeline::before {
    left: 30px;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 70px;
    margin-right: 0;
    text-align: left;
    width: calc(100% - 70px);
  }

  .timeline-item:nth-child(odd) .timeline-content::before {
    right: auto;
    left: -15px;
    border-left: none;
    border-right: 15px solid var(--white);
  }

  .timeline-icon {
    left: 30px;
  }
}

@media (max-width: 576px) {
  .profile-img,
  .couple-photo {
    width: 150px;
    height: 150px;
  }

  .top-img {
    width: 167px;
    margin-left: -10px;
    margin-top: 5px;
  }

  #countdown {
    gap: 8px;
  }

  .countdown-box {
    width: 55px;
    height: 55px;
  }

  .countdown-box h3 {
    font-size: 1.1rem;
  }

  .countdown-box p {
    font-size: 0.65rem;
  }
}