/* Global styles */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to bottom, #f8f4f5, #f0e6e9);
    color: #333;
    text-align: center;
}

.top-lang-switch {
    background-color: #e5d0d5;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 0;
}

.btn-lang {
    background-color: transparent !important;
    border: none !important;
    padding: 0.2rem 0.5rem;
    border-radius: 0.5rem;
    transition: opacity 0.3s;
    box-shadow: none !important;
}

.btn-lang:hover:not(.active) {
    opacity: 0.7;
}

.btn-lang.active {
    opacity: 1;
}
  
header {
    background-color: transparent;
    padding: 2rem;
}
  
header h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 4.5rem;
    margin: 0;
    color: #7a4c58;
}
  
.hearts {
    font-size: 1.5rem;
    color: #a06b77;
}

.wedding-date {
    font-size: 1.8rem;
    font-family: 'Playfair Display', serif;
    color: #7a4c58;
    margin-top: 1rem;
}
  
/* language switch buttons */
.lang-switch {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}
.lang-switch button {
    margin: 0 0.5rem;
    padding: 0.4rem 1rem;
    border: 1px solid #a06b77;
    border-radius: 1rem;
    background: transparent;
    color: #a06b77;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}
.lang-switch button:hover, .lang-switch button.active {
    background: #a06b77;
    color: white;
}
  
/* main section */
.section {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}
  
.info-card {
    background: rgba(255, 255, 255, 0.95);
    margin: 1rem auto;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}
  
.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}
  
h2, h3 {
    font-family: 'Playfair Display', serif;
    color: #7a4c58;
}
  
a.button {
    display: inline-block;
    margin: 0.8rem 0;
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    background: #7a4c58;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}
a.button:hover {
    background: #7a4c58;
}

.btn-custom-map, .btn-gift {
    background: #7a4c58;
    color: white;
    font-weight: bold;
    font-family: 'Playfair Display', serif;
    transition: background-color 0.3s, color 0.3s;
}

.btn-custom-map:hover, .btn-gift:hover {
    background-color: #a06b77;
    color: white;
}
  
.info-card code {
    display: block;
    margin-top: 0.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    color: #7a4c58;
    background: #f8f4f5;
    padding: 0.3rem 0.6rem;
    border-radius: 0.5rem;
}

/* Countdown */
.countdown-section {
    padding: 2rem 1rem;
}
.countdown-container {
    font-size: 2rem;
    font-family: 'Great Vibes', cursive;
    color: #7a4c58;
    background: rgba(255, 255, 255, 0.7);
    padding: 1.5rem 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: inline-block;
}

.countdown-title {
    font-family: 'Playfair Display', serif;
    color: #7a4c58;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.countdown {
    font-family: 'Great Vibes', cursive;
    color: #7a4c58;
    font-size: 4rem;
    margin-bottom: 0;
}

#countdown .time-circle {
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid #a06b77;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
#countdown .time {
    font-size: 2rem;
    font-weight: bold;
    color: #7a4c58;
}
#countdown .time-label {
    font-size: 0.8rem;
    color: #a06b77;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: #a06b77;
    margin-left: -1px;
}
.timeline-item {
    padding: 1rem 2rem;
    position: relative;
    width: 50%;
}
.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 4rem;
    text-align: right;
}
.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 4rem;
    text-align: left;
}
.timeline-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 1rem;
    min-width: 260px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}
.timeline-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #a06b77;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    z-index: 1;
}
.timeline-item:nth-child(odd) .timeline-icon {
    right: 2rem;
}
.timeline-item:nth-child(even) .timeline-icon {
    left: 2rem;
}

/* Responsive Timeline for Mobile */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
        margin-left: 0;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 15px;
        margin-bottom: 2rem;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
        padding-left: 65px;
    }

    .timeline-icon {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-icon,
    .timeline-item:nth-child(even) .timeline-icon {
        left: 10px;
        right: auto;
    }
}

/* Journey Gallery */
.thumbnail-container {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.img-thumbnail {
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    width: 100px;
    height: auto;
}
.img-thumbnail:hover {
    transform: scale(1.1);
    border-color: #7a4c58;
}
  
/* Slider */
.slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 1rem;
    margin-top: 2rem;
}
  
.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
  
.slides img {
    width: 100%;
    flex-shrink: 0;
    border-radius: 1rem;
    object-fit: cover;
    transition: transform 0.3s, box-shadow 0.3s;
}
  
.slides img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
  
/* Hide slider buttons by default */
.slider button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(122, 76, 88, 0.8);
    font-size: 2.5rem;
    padding: 0;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
}
  
.slider:hover button {
    opacity: 1;
}
  
.slider button:hover {
    color: rgba(122, 76, 88, 1);
}
  
.prev { left: 10px; }
.next { right: 10px; }
  
.wedding-footer {
    margin-top: 2rem;
    padding: 3rem;
    font-size: 2rem;
    font-family: 'Great Vibes', cursive;
    color: #7a4c58;
    background-color: rgba(229, 208, 213, 0.9);
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}
