@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Dancing+Script:wght@400;600;700&display=swap');

:root {
    --primary-color: #0b192c;
    /* Deep Blue */
    --secondary-color: #d4af37;
    /* Gold */
    --accent-color: #f8f9fa;
    /* Light Gray/White */
    --text-color: #333333;
    --text-light: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-cursive: 'Dancing Script', cursive;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--accent-color);
}

body.no-scroll {
    overflow-y: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
}

.gold-text {
    color: var(--secondary-color);
}

.cursive-text {
    font-family: var(--font-cursive);
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

@media (max-width: 480px) {
    .cursive-text {
        font-size: 2.2rem;
        white-space: nowrap;
    }
}

/* --- Cover Section --- */
#cover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(rgba(11, 25, 44, 0.8), rgba(11, 25, 44, 0.8)), url('../images/bg-cover.png') center/cover no-repeat;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    text-align: center;
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}

#cover.open {
    transform: translateY(-100%);
}

#cover h1 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 10px;
    animation: fadeInDown 1.5s ease;
}

#cover h2 {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 300;
    animation: fadeInUp 1.5s ease;
}

.cover-guest {
    margin-bottom: 40px;
    animation: fadeIn 2s ease 1s both;
}

.cover-guest p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.cover-guest h3 {
    color: var(--text-light);
    font-size: 1.5rem;
    border-bottom: 1px solid var(--secondary-color);
    display: inline-block;
    padding-bottom: 5px;
    margin-top: 5px;
}

.btn-open {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    text-decoration: none;
}

.btn-open:hover {
    background-color: #fff;
    transform: scale(1.05);
}

/* --- Floating Music Button --- */
#music-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--secondary-color);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    animation: spin 4s linear infinite;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

#music-control.visible {
    opacity: 1;
    pointer-events: all;
}

#music-control.paused {
    animation-play-state: paused;
}

/* --- General Sections --- */
section {
    padding: 80px 20px;
    text-align: center;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

/* --- Hero Section --- */
#hero {
    min-height: 100vh;
    background: linear-gradient(to bottom, rgba(248, 249, 250, 0.9), rgba(248, 249, 250, 1)), url('../images/pattern.png');
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.bismillah {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* --- Profile Section --- */
#profile {
    background-color: var(--primary-color);
    color: var(--text-light);
}

#profile .section-title {
    color: var(--secondary-color);
}

.profile-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 20px;
    margin-top: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 10%;
    border: 5px solid var(--secondary-color);
    margin-bottom: 20px;
}

.parents {
    margin-top: 20px;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* --- Event Section --- */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.event-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--secondary-color);
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.btn-map,
.btn-cal {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.btn-map:hover,
.btn-cal:hover {
    background-color: var(--secondary-color);
}

/* --- Countdown Section --- */
#countdown {
    background: linear-gradient(rgba(11, 25, 44, 0.9), rgba(11, 25, 44, 0.9)), url('../images/bg-countdown.png') center/cover fixed;
    color: #fff;
}

#countdown .section-title {
    color: var(--secondary-color);
}

.timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.time-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    width: 90px;
    height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
}

.time-box span:first-child {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    font-family: var(--font-heading);
}

.time-box span:last-child {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 40px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* --- Digital Envelope / Gift Section --- */
#gift {
    background-color: #f0f2f5;
}

.gift-container {
    max-width: 600px;
    margin: 40px auto 0;
}

.bank-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
}

.bank-logo {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.bank-info h4 {
    font-family: var(--font-body);
    color: var(--text-color);
    margin-bottom: 5px;
}

.bank-info p {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.btn-copy {
    background: var(--secondary-color);
    color: #fff;
    border: none;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: opacity 0.3s ease;
}

.btn-copy:hover {
    opacity: 0.8;
}

@media (max-width: 480px) {
    .bank-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }
    .bank-info {
        text-align: center;
    }
    .btn-copy {
        width: 100%;
        padding: 10px;
    }
}

/* --- Protocol Section --- */
.protocol-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.protocol-item {
    text-align: center;
}

.protocol-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* --- RSVP Section --- */
#rsvp {
    background-color: var(--primary-color);
    color: #fff;
}

#rsvp .section-title {
    color: var(--secondary-color);
}

.rsvp-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
    text-align: left;
}

@media (max-width: 768px) {
    .rsvp-container {
        grid-template-columns: 1fr;
    }
}

.rsvp-form {
    background: var(--glass-bg);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    font-family: var(--font-body);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-submit:hover {
    background-color: #fff;
}

.wishes-container {
    background: var(--glass-bg);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    max-height: 500px;
    overflow-y: auto;
}

/* Custom Scrollbar for wishes */
.wishes-container::-webkit-scrollbar {
    width: 8px;
}

.wishes-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.wishes-container::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

.wish-card {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.wish-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.wish-name {
    font-weight: 600;
    color: var(--primary-color);
}

.wish-badge {
    background: var(--secondary-color);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
}

.wish-date {
    font-size: 0.7rem;
    color: #888;
}

/* --- Footer --- */
footer {
    background-color: #050b14;
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* --- Animations --- */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Scroll Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}