* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8B4513;
    --secondary-color: #D2691E;
    --accent-color: #CD853F;
    --light-bg: #FFF8DC;
    --white: #FFFFFF;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: #000;
    -webkit-font-smoothing: antialiased;
}

.script-font {
    font-family: 'Great Vibes', cursive;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Cover Section */
.cover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1583939003579-730e3918a45a?w=1920&q=80') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.cover.fade-out {
    opacity: 0;
    visibility: hidden;
}

.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.5) 0%, rgba(160, 82, 45, 0.5) 100%);
    backdrop-filter: blur(5px);
}

.cover-content {
    text-align: center;
    color: white;
    z-index: 1;
    animation: fadeInUp 1.2s ease;
}

.cover-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.couple-names {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.wedding-date {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.open-invitation {
    padding: 1.2rem 3.5rem;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 15px 50px rgba(0,0,0,0.4);
    animation: floating 3s ease-in-out infinite;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.open-invitation:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}


/* Main Content */
.main-content {
    transition: opacity 0.8s ease;
}

.main-content.hidden {
    display: none;
}

/* Section Styling */
section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
    position: relative;
    scroll-snap-align: start;
}

/* Hero Section */
.hero {
    background: url('https://images.unsplash.com/photo-1583939003579-730e3918a45a?w=1920&q=80') center/cover fixed;
    color: white;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.7) 0%, rgba(160, 82, 45, 0.7) 100%);
    backdrop-filter: blur(8px);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.bismillah {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: fadeIn 1s ease;
}

.opening-text {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.intro-text {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 2;
}


/* Quotes Section */
.quotes {
    background: url('https://images.unsplash.com/photo-1522673607200-164d1b6ce486?w=1920&q=80') center/cover fixed;
}

.quotes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
}

.quotes .container {
    position: relative;
    z-index: 1;
}

.quote-card {
    max-width: 800px;
    margin: 0 auto 2.5rem;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 25px;
    text-align: center;
    border: 1px solid rgba(139, 69, 19, 0.2);
    box-shadow: 0 10px 40px rgba(139, 69, 19, 0.15);
    backdrop-filter: blur(15px);
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.quote-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(139, 69, 19, 0.25);
}

.arabic-text {
    font-size: 1.9rem;
    line-height: 2.8;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.translation {
    font-size: 1.15rem;
    line-height: 2;
    color: #555;
    font-style: italic;
    margin-bottom: 1rem;
}

.quote-text {
    font-size: 1.3rem;
    line-height: 2;
    color: #555;
    font-style: italic;
}

.quote-source {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
}


/* Couple Section */
.couple {
    background: url('https://images.unsplash.com/photo-1519741497674-611481863552?w=1920&q=80') center/cover fixed;
}

.couple::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 248, 220, 0.88);
    backdrop-filter: blur(12px);
}

.couple .container {
    position: relative;
    z-index: 1;
}

.couple-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 4rem;
    align-items: center;
}

.bride-groom {
    text-align: center;
}

.photo-circle {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 20px 60px rgba(139, 69, 19, 0.4);
    border: 6px solid white;
    animation: floating 4s ease-in-out infinite;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.photo-circle:hover {
    transform: scale(1.08);
    box-shadow: 0 25px 80px rgba(139, 69, 19, 0.5);
}

.name {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.parent {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.3rem;
}

.parent-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.ampersand {
    font-size: 5rem;
    color: var(--secondary-color);
}

.social-links a {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.7rem 2rem;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(210, 105, 30, 0.3);
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(210, 105, 30, 0.5);
}


/* Event Details */
.event-details {
    background: url('https://images.unsplash.com/photo-1511285560929-80b456fea0bc?w=1920&q=80') center/cover fixed;
}

.event-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
}

.event-details .container {
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-shadow: 0 2px 10px rgba(139, 69, 19, 0.1);
}

.event-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 550px;
    margin: 0 auto;
}

.event-card {
    background: rgba(255, 255, 255, 0.8);
    padding: 3rem;
    border-radius: 30px;
    box-shadow: 0 15px 60px rgba(0,0,0,0.15);
    text-align: center;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 80px rgba(139, 69, 19, 0.3);
}

.event-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: bounce 2s ease infinite;
}

.event-card h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.event-time {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.event-date {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.event-location {
    line-height: 2;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.btn-map {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 30px rgba(139, 69, 19, 0.3);
}

.btn-map:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(139, 69, 19, 0.5);
}


/* Countdown */
.countdown {
    background: url('https://images.unsplash.com/photo-1464366400600-7168b8af9bc3?w=1920&q=80') center/cover fixed;
}

.countdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
}

.countdown .container {
    position: relative;
    z-index: 1;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.countdown-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    padding: 2rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 40px rgba(139, 69, 19, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.countdown-item:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 50px rgba(139, 69, 19, 0.25);
}

.countdown-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.countdown-label {
    font-size: 1.1rem;
    color: #666;
}


/* Gallery */
.gallery {
    background: url('https://images.unsplash.com/photo-1465495976277-4387d4b0b4c6?w=1920&q=80') center/cover fixed;
}

.gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(249, 249, 249, 0.88);
    backdrop-filter: blur(12px);
}

.gallery .container {
    position: relative;
    z-index: 1;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.gallery-item {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 15px 60px rgba(139, 69, 19, 0.3);
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.6);
}

.gallery-item:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 25px 80px rgba(139, 69, 19, 0.5);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}


/* RSVP */
.rsvp {
    background: url('https://images.unsplash.com/photo-1478146896981-b80fe463b330?w=1920&q=80') center/cover fixed;
}

.rsvp::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
}

.rsvp .container {
    position: relative;
    z-index: 1;
}

.rsvp-form {
    max-width: 550px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
    padding: 1.2rem;
    border: 2px solid rgba(139, 69, 19, 0.2);
    border-radius: 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(139, 69, 19, 0.2);
    transform: translateY(-2px);
}

.btn-submit {
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(139, 69, 19, 0.3);
}

.btn-submit:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(139, 69, 19, 0.5);
}


/* Gift */
.gift {
    background: url('https://images.unsplash.com/photo-1460978812857-470ed1c77af0?w=1920&q=80') center/cover fixed;
}

.gift::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 248, 220, 0.88);
    backdrop-filter: blur(12px);
}

.gift .container {
    position: relative;
    z-index: 1;
}

.gift-text {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 3rem;
    font-size: 1.2rem;
    line-height: 1.8;
}

.gift-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 400px;
    margin: 0 auto;
}

.gift-card {
    background: rgba(255, 255, 255, 0.8);
    padding: 2.5rem;
    border-radius: 25px;
    box-shadow: 0 15px 60px rgba(0,0,0,0.15);
    text-align: center;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gift-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 80px rgba(139, 69, 19, 0.3);
}

.gift-card h4 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.account-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.account-name {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.btn-copy {
    padding: 0.8rem 2rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(210, 105, 30, 0.3);
}

.btn-copy:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(210, 105, 30, 0.5);
}


/* Wishes */
.wishes {
    background: url('https://images.unsplash.com/photo-1470229538611-16ba8c7ffbd7?w=1920&q=80') center/cover fixed;
}

.wishes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
}

.wishes .container {
    position: relative;
    z-index: 1;
}

.wishes-container {
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.wishes-container::-webkit-scrollbar {
    width: 8px;
}

.wishes-container::-webkit-scrollbar-track {
    background: rgba(139, 69, 19, 0.1);
    border-radius: 10px;
}

.wishes-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.wish-card {
    background: rgba(255, 255, 255, 0.75);
    padding: 2rem;
    border-radius: 20px;
    border-left: 5px solid var(--primary-color);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 30px rgba(139, 69, 19, 0.12);
    transform: translateX(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wish-card:hover {
    transform: translateX(10px);
    box-shadow: 0 12px 40px rgba(139, 69, 19, 0.2);
}

.wish-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.wish-text {
    margin-bottom: 0.8rem;
    line-height: 1.8;
}

.wish-date {
    font-size: 0.9rem;
    color: #999;
}


/* Footer */
.footer {
    padding: 4rem 0 2rem;
    background: url('https://images.unsplash.com/photo-1583939003579-730e3918a45a?w=1920&q=80') center/cover fixed;
    color: white;
    text-align: center;
    position: relative;
    min-height: auto;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.8) 0%, rgba(160, 82, 45, 0.8) 100%);
    backdrop-filter: blur(8px);
}

.footer .container {
    position: relative;
    z-index: 1;
}

.closing-text {
    max-width: 650px;
    margin: 0 auto 2rem;
    font-size: 1.2rem;
    line-height: 2;
}

.wassalam {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.signature {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.couple-signature {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.copyright {
    font-size: 1rem;
    opacity: 0.8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-25px); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}


/* Responsive Mobile */
@media (max-width: 768px) {
    html {
        scroll-snap-type: none;
    }
    
    section {
        min-height: auto;
        scroll-snap-align: none;
    }
    
    .hero, .event-details, .gallery, .countdown, .quotes, .rsvp, .wishes, .gift, .couple, .footer {
        background-attachment: scroll !important;
    }
    
    .cover-content h1 {
        font-size: 2.5rem;
    }
    
    .couple-names {
        font-size: 2rem;
    }
    
    .couple-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .ampersand {
        order: 2;
        font-size: 3rem;
    }
    
    .photo-circle {
        width: 180px;
        height: 180px;
        font-size: 5rem;
    }
    
    .countdown-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    body {
        -webkit-overflow-scrolling: touch;
    }
    
    * {
        -webkit-tap-highlight-color: transparent;
    }
}

/* Decorative floating elements */
.decorative-flower {
    position: fixed;
    font-size: 3rem;
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
}

.flower-1 {
    top: 10%;
    left: 5%;
    animation: floating 5s ease-in-out infinite;
}

.flower-2 {
    bottom: 15%;
    right: 8%;
    animation: floating 6s ease-in-out infinite 1s;
}

.flower-3 {
    top: 50%;
    right: 3%;
    animation: floating 7s ease-in-out infinite 2s;
}
