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

:root {
    --rose: #E8B4B8;
    --blush: #F7DFE3;
    --cream: #FFF8F3;
    --sage: #A8B5A0;
    --charcoal: #4A4A4A;
}

body {
    font-family: 'Raleway', sans-serif;
    color: var(--charcoal);
    background: var(--cream);
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

.intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    background: linear-gradient(135deg, var(--blush) 0%, var(--cream) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s, visibility 0.8s;
    overflow: hidden;
}

.intro.hidden {
    opacity: 0;
    visibility: hidden;
}

.intro-content {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    position: relative;
    max-width: 90%;
    width: 100%;
    max-width: 500px;
}

.floral-top, .floral-bottom {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="5" fill="%23E8B4B8"/><circle cx="30" cy="40" r="8" fill="%23F7DFE3"/><circle cx="70" cy="40" r="8" fill="%23F7DFE3"/><circle cx="40" cy="65" r="6" fill="%23A8B5A0"/><circle cx="60" cy="65" r="6" fill="%23A8B5A0"/></svg>');
    background-size: contain;
}

.floral-bottom {
    transform: rotate(180deg);
}

.intro-content h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    color: var(--rose);
    margin: 30px 0 20px;
}

.intro-content p {
    font-size: 1.2rem;
    color: var(--sage);
    margin-bottom: 30px;
}

.btn-enter {
    background: var(--rose);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Raleway', sans-serif;
}

.btn-enter:hover {
    background: var(--sage);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

#navbar {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    z-index: 1000;
    backdrop-filter: blur(10px);
    display: flex;
    gap: 30px;
    transition: all 0.5s ease;
    width: max-content;
    max-width: 90vw;
}

#navbar.visible {
    opacity: 1;
}

#navbar a {
    color: var(--rose);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

#navbar a:hover {
    color: var(--pink);
    transform: translateY(-5px);
    background: rgba(216, 129, 129, 0.1);
}

#navbar a.active {
    background: linear-gradient(135deg, var(--rose), var(--pink));
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(216, 129, 129, 0.4);
}

.music-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--rose);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: all 0.3s;
}

.music-toggle.visible {
    display: flex;
}

.music-toggle:hover {
    transform: scale(1.1);
}

.music-toggle.playing {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
}

.wrapper {
    max-width: 1000px;
    width: 100%;
    text-align: center;
}

.title {
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    color: var(--rose);
    margin-bottom: 60px;
    position: relative;
}

.title::after {
    content: '❀';
    display: block;
    font-size: 2rem;
    margin-top: 10px;
    color: var(--sage);
}

.hero {
    background: linear-gradient(135deg, var(--blush) 0%, var(--cream) 100%);
    position: relative;
}

.floral-frame {
    position: absolute;
    top: 50px;
    left: 50px;
    right: 50px;
    bottom: 50px;
    border: 2px solid var(--rose);
    border-radius: 20px;
    opacity: 0.3;
}

.hero-box {
    background: white;
    padding: 80px 60px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 20px;
}

.hero-names {
    font-family: 'Great Vibes', cursive;
    font-size: 5rem;
    color: var(--rose);
    line-height: 1.3;
    margin: 20px 0;
}

.hero-divider {
    font-size: 2rem;
    color: var(--sage);
    margin: 30px 0;
}

.hero-date {
    font-family: 'Crimson Text', serif;
    font-size: 1.5rem;
    color: var(--charcoal);
}

.couple {
    background: white;
}

.couple-boxes {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 60px;
    align-items: center;
}

.couple-box {
    background: var(--blush);
    padding: 50px 30px;
    border-radius: 20px;
}

.couple-photo {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--rose);
    border: 3px solid var(--rose);
}

.couple-box h3 {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: var(--rose);
    margin-bottom: 20px;
}

.divider-small {
    width: 60px;
    height: 2px;
    background: var(--sage);
    margin: 20px auto;
}

.couple-box p {
    line-height: 1.8;
    color: var(--charcoal);
}

.couple-heart {
    font-size: 3rem;
    color: var(--rose);
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.event {
    background: var(--cream);
}

.timer {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
}

.timer-box {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    min-width: 100px;
}

.timer-box span {
    display: block;
    font-family: 'Crimson Text', serif;
    font-size: 3rem;
    color: var(--rose);
    font-weight: 600;
}

.timer-box p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--sage);
    margin-top: 10px;
}

.event-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.event-box {
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.event-icon {
    width: 80px;
    height: 80px;
    background: var(--blush);
    border-radius: 50%;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--rose);
}

.event-box h3 {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: var(--rose);
    margin-bottom: 20px;
}

.event-date {
    font-family: 'Crimson Text', serif;
    font-size: 1.2rem;
    margin: 15px 0;
}

.event-time, .event-place {
    color: var(--sage);
    margin: 10px 0;
}

.location {
    background: white;
}

.location-card {
    background: var(--blush);
    padding: 60px;
    border-radius: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.location-card i {
    font-size: 4rem;
    color: var(--rose);
    margin-bottom: 30px;
}

.location-card h3 {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: var(--rose);
    margin-bottom: 20px;
}

.location-card p {
    line-height: 1.8;
    margin-bottom: 30px;
}

.btn-location {
    display: inline-block;
    background: var(--rose);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-location:hover {
    background: var(--sage);
    transform: translateY(-3px);
}

.gallery {
    background: var(--cream);
}

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-photo {
    height: 300px;
    background-size: cover;
    background-position: center;
    background-color: var(--blush);
    border-radius: 15px;
    transition: transform 0.3s;
}

.gallery-photo:hover {
    transform: scale(1.05);
}

footer {
    background: var(--rose);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-quote {
    font-family: 'Crimson Text', serif;
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 30px;
    line-height: 1.8;
}

.footer-names {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    margin: 30px 0;
}

.footer-copy {
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .intro-content h1 {
        font-size: 2.5rem;
    }

    .hero-names {
        font-size: 3rem;
    }

    .couple-boxes {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .couple-heart {
        transform: rotate(90deg);
    }

    .timer {
        gap: 15px;
    }

    .timer-box {
        min-width: 70px;
        padding: 20px;
    }

    .timer-box span {
        font-size: 2rem;
    }

    #navbar {
        gap: 15px;
        padding: 12px 20px;
    }

    #navbar a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .floating-nav a {
        width: 40px;
        height: 40px;
    }
}

/* RSVP Section */
.rsvp {
    padding: 80px 20px;
    background: linear-gradient(135deg, #FFF5F7 0%, #FFE8EC 100%);
    position: relative;
}

.rsvp::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="30" fill="none" stroke="%23FFB6C1" stroke-width="0.5" opacity="0.3"/></svg>');
    background-size: 150px;
    pointer-events: none;
}

.rsvp .wrapper {
    position: relative;
    z-index: 2;
}

.rsvp-subtitle {
    text-align: center;
    color: #888;
    font-size: 1.1rem;
    margin-bottom: 40px;
    font-style: italic;
}

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    border: 2px solid #4CAF50;
    color: #2E7D32;
    padding: 15px 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 2px solid #FFB6C1;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group label i {
    color: var(--accent);
    margin-right: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #FFE8EC;
    border-radius: 10px;
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #FFF5F7;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 182, 193, 0.1);
}

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

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.error-message {
    display: block;
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    font-family: 'Crimson Text', serif;
    letter-spacing: 1px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 105, 135, 0.4);
}

.btn-submit i {
    margin-right: 8px;
}

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

    .rsvp-form {
        padding: 25px;
    }
}

/* RSVP List */
.rsvp-list {
    margin-top: 60px;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 2px solid #FFB6C1;
}

.rsvp-list-title {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: var(--rose);
    margin-bottom: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.rsvp-list-title i {
    font-size: 2rem;
}

.rsvp-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

.rsvp-items::-webkit-scrollbar {
    width: 8px;
}

.rsvp-items::-webkit-scrollbar-track {
    background: #FFF5F7;
    border-radius: 10px;
}

.rsvp-items::-webkit-scrollbar-thumb {
    background: var(--rose);
    border-radius: 10px;
}

.rsvp-item {
    background: #FFF5F7;
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid var(--rose);
    transition: all 0.3s ease;
}

.rsvp-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(232, 180, 184, 0.3);
}

.rsvp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.rsvp-name {
    font-family: 'Crimson Text', serif;
    font-size: 1.3rem;
    color: var(--rose);
    font-weight: 600;
}

.rsvp-time {
    font-size: 0.85rem;
    color: var(--sage);
}

.rsvp-message {
    color: var(--charcoal);
    line-height: 1.6;
    font-size: 0.95rem;
}

.guest-name {
    font-family: 'Crimson Text', serif;
    font-size: 1.3rem;
    margin: 20px 0;
    color: var(--sage);
}

.guest-name strong {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    display: block;
    margin-top: 10px;
    color: var(--rose);
}

@media (max-width: 768px) {
    .rsvp-list {
        padding: 25px;
    }

    .rsvp-list-title {
        font-size: 2rem;
    }

    .rsvp-items {
        max-height: 400px;
    }
}

/* Mobile Optimization for Intro */
@media (max-width: 768px) {
    .intro-content {
        padding: 30px 20px;
    }

    .intro-content h1 {
        font-size: 3rem;
    }

    .intro-content p {
        font-size: 1rem;
    }

    .btn-enter {
        padding: 12px 35px;
        font-size: 0.9rem;
    }

    .guest-name {
        font-size: 1.1rem;
    }

    .guest-name strong {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .intro-content {
        padding: 25px 15px;
        max-width: 95%;
    }

    .intro-content h1 {
        font-size: 2.5rem;
        margin: 20px 0 15px;
    }

    .intro-content p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .btn-enter {
        padding: 10px 30px;
        font-size: 0.85rem;
    }

    .floral-top, .floral-bottom {
        width: 70px;
        height: 70px;
    }
}
