/* Global Styles */
:root {
    --primary-color: #d4af37;
    /* Metallic Gold */
    --secondary-color: #f9f6ef;
    /* Ivory */
    --accent-color: #8b7355;
    /* Darker Gold/Bronze */
    --text-color: #4a4a4a;
    --light-bg: #fffcf7;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--secondary-color);
    overflow-x: hidden;
}

h1,
h2,
h3,
.couple-names {
    font-family: 'Playfair Display', serif;
}

.great-vibes {
    font-family: 'Great Vibes', cursive;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--primary-color);
    margin: 15px auto 0;
}

/* Button Premium */
.btn-premium {
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-premium:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-premium i {
    font-size: 1.1rem !important;
    margin-bottom: 0 !important;
    color: inherit !important;
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Overlay / Cover */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}

#overlay.hide {
    transform: translateY(-100%);
}

.overlay-content {
    text-align: center;
    max-width: 500px;
    padding: 40px;
}

.frame-container {
    position: relative;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-frame {
    width: 300px;
    height: 300px;
    background-image: url('assets/images/frame.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: rotateSlow 20s linear infinite;
}

.couple-names-mini {
    position: absolute;
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    color: var(--accent-color);
}

.invite-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 5px;
}

#guest-name {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    color: white;
    text-align: center;
    background-image: url('assets/images/bg-texture.png');
    background-size: cover;
    background-position: center;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.subtitle {
    font-size: 1.5rem;
    font-style: italic;
}

.couple-names {
    font-size: 5rem;
    margin: 10px 0;
    font-family: 'Great Vibes', cursive;
}

#wedding-date-hero {
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Quote Section */
.quote-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.4rem;
    max-width: 700px;
    margin: 20px auto;
}

.quote-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0.5;
}

/* Couple Section */
#couple .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.couple-card {
    flex: 1;
    min-width: 280px;
    padding: 30px;
}

.couple-img-container {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.couple-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ampersand {
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    color: var(--primary-color);
}

.ig-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

/* Timeline / Story */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 50px;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 20px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 4px white, 0 0 10px rgba(0, 0, 0, 0.1);
}

.timeline-content {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    width: 90%;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: left;
}

.timeline-content img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.timeline-content img:hover {
    transform: scale(1.03);
}

.timeline-date {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* Countdown */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.timer-box {
    background: white;
    width: 100px;
    padding: 20px 0;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.timer-box span {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

/* Events */
.events-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.event-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    flex: 1;
    min-width: 320px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center everything! */
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-color);
}

.event-card>i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.event-info i {
    font-size: 1.2rem;
    margin-right: 8px;
    vertical-align: middle;
}

.event-info {
    margin: 20px 0;
}

.event-info p {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    height: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Gifts */
.gifts-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.gift-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    width: 300px;
    text-align: center;
}

.gift-card img {
    height: 40px;
    margin-bottom: 20px;
}

.acc-number {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 10px 0;
    letter-spacing: 1px;
}

/* Footer */
footer {
    background: #222;
    color: white;
}

.couple-names-footer {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: var(--primary-color);
    margin: 20px 0;
}

/* Floating Music */
#music-control {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
}

.music-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes rotateSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Particles Overlay */
#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .couple-names {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .timeline::before {
        left: 40px;
    }

    .timeline-item {
        padding-right: 0;
        padding-left: 80px;
        justify-content: flex-start;
    }

    .timeline-item:nth-child(even) {
        padding-left: 80px;
    }

    .timeline-dot {
        left: 40px;
    }

    .timeline-content {
        text-align: left;
    }

    .timer-box {
        width: 70px;
        padding: 10px 0;
    }

    .timer-box span {
        font-size: 1.3rem;
    }
}

/* Lightbox Styling */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    animation: zoom 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.lightbox-close {
    position: absolute;
    top: 50px;
    right: 50px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--primary-color);
    text-decoration: none;
}

@media only screen and (max-width: 700px) {
    .lightbox-content {
        width: 100%;
    }

    .lightbox-close {
        top: 20px;
        right: 30px;
    }
}

.gallery-item {
    cursor: pointer;
    overflow: hidden;
}

.gallery-item img {
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}