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

:root {
    --primary-color: #374900;
    --secondary-color: #e8dcc8;
    --accent-color: #374900;
    --text-color: #374900;
    --light-bg: #f9f7f4;
    --cream-bg: #fefdfb;
}

html, body {
    height: 100%;
    font-family: 'Old Standard TT', serif;
    background: linear-gradient(135deg, var(--cream-bg) 0%, var(--secondary-color) 100%);
}

/* Import Pinyon Script for headings */
@import url('https://fonts.googleapis.com/css2?family=Pinyon+Script&display=swap');

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

.invitation {
    background: white;
    max-width: 600px;
    width: 100%;
    margin-top: 20px;
    padding: 50px 50px 120px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    border: 1px solid #f0ede8;
}

/* Keyframe Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes drawLine {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 80px;
        opacity: 1;
    }
}


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

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.6);
        opacity: 0.6;
    }
}

@keyframes rippleOut {
    from {
        transform: scale(0);
        opacity: 0.4;
    }
    to {
        transform: scale(8);
        opacity: 0;
    }
}


/* Decorative lines */
.decorative-line {
    width: 80px;
    height: 1px;
    background: #374900;
    margin: 0 auto 30px;
    position: relative;
    opacity: 0;
    animation: drawLine 0.8s ease-out forwards;
}

.decorative-line.top {
    margin-bottom: 40px;
}

.decorative-line.bottom {
    margin: 50px auto 30px;
}

.decorative-line::before,
.decorative-line::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #374900;
    border-radius: 50%;
    top: -2.5px;
    animation: scaleIn 0.6s ease-out 0.4s forwards, dotPulse 2s ease-in-out 1s infinite;
    opacity: 0;
}

.decorative-line::before {
    left: -12px;
}

.decorative-line::after {
    right: -12px;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
    opacity: 0;
    animation: slideUp 0.8s ease-out forwards;
}

.subtitle {
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--text-color);
    font-weight: 400;
    margin-bottom: 25px;
    text-transform: uppercase;
    opacity: 0.8;
    animation: fadeIn 1s ease-out 0.2s forwards;
    opacity: 0;
}

.couple-names {
    font-size: 66px;
    font-weight: 400;
    line-height: 1.3;
    color: #b28862;
    margin-bottom: 10px;
    font-family: 'Pinyon Script', cursive;
    letter-spacing: 0.5px;
    animation: scaleIn 0.8s ease-out 0.3s forwards;
    opacity: 0;
}

.ampersand {
    display: block;
    font-size: 32px;
    margin: 5px 0;
    color: var(--accent-color);
}

.colosseum-graphic {
    margin: 0px auto 30px;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
    width: 100%;
}

.colosseum-graphic svg {
    width: 420px;
    height: auto;
    max-width: 100%;
    display: inline-block;
}

.colosseum-graphic img {
    max-width: 200px;
    height: auto;
}

.cocktail-scene {
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
    margin: 0px auto;
    width: 100%;
    position: relative;
    min-height: 400px;
}

.cocktail-scene svg {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
    margin: 0 auto;
}


.invitation-text {
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--text-color);
    margin-bottom: 30px;
    text-transform: uppercase;
    opacity: 0.8;
}

.logo-container {
    margin: 20px auto;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
    width: 100%;
    animation: scaleIn 1s ease-out 0.5s forwards;
    opacity: 0;
}

.logo {
    max-width: 180px;
    height: auto;
    display: block;
    margin: 0 auto;
    opacity: 0.9;
    transition: transform 0.3s ease;
    animation: scaleIn 1s ease-out 0.5s forwards, breathe 5s ease-in-out 2s infinite;
}

.logo:hover {
    transform: scale(1.05);
}

.tagline {
    font-size: 52px;
    font-weight: 400;
    color: #b28862;
    font-style: normal;
    margin-top: 20px;
    font-family: 'Pinyon Script', cursive;
    animation: slideUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

/* Details Section */
.details {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 0px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--secondary-color);
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
}

.tagline-alt {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 30px;
    opacity: 0.9;
}

.dress-code {
    margin-top: 25px;
}

.dress-code-title {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-color);
    margin-bottom: 10px;
    font-weight: 500;
    opacity: 0.8;
}

.dress-code-text {
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-color);
    opacity: 0.75;
}

/* Event Details */
.event-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 40px 0;
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
    width: 100%;
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: rgba(196, 181, 160, 0.05);
    border-radius: 4px;
    animation: slideUp 0.6s ease-out forwards;
    opacity: 0;
    transition: all 0.3s ease;
}

.detail-item:nth-child(1) {
    animation-delay: 0.2s;
}

.detail-item:nth-child(2) {
    animation-delay: 0.3s;
}

.detail-item:nth-child(3) {
    animation-delay: 0.4s;
}

.detail-item:hover {
    transform: translateY(-5px);
    background: rgba(196, 181, 160, 0.1);
    box-shadow: 0 5px 15px rgba(196, 181, 160, 0.15);
}

.detail-label {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-color);
    margin-bottom: 8px;
    opacity: 0.7;
}

.detail-value {
    font-size: 20px;
    color: var(--accent-color);
    font-weight: 500;
}

.venue-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px;
    background: var(--accent-color);
    border-radius: 4px;
    margin-top: 30px;
    animation: scaleIn 0.8s ease-out forwards;
    opacity: 0;
    width: 100%;
}

.venue-name {
    font-size: 18px;
    font-weight: 500;
    color: var(--light-bg);
    margin-bottom: 10px;
}

.venue-address {
    font-size: 13px;
    line-height: 1.8;
    color: var(--light-bg);
    opacity: 0.8;
}

.map-container {
    margin-top: 30px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(196, 181, 160, 0.15);
    opacity: 0;
    animation: scaleIn 0.8s ease-out forwards;
    width: 100%;
    height: 500px;
}

.map-container iframe {
    display: block;
    border-radius: 4px;
    width: 100%;
    height: 100%;
}

/* RSVP Section */
.rsvp-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 30px;
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.rsvp-button {
    background: #374900;
    color: white;
    border: none;
    padding: 14px 40px;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.3s ease;
    font-family: 'Old Standard TT', serif;
    font-weight: 500;
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: translate(-50%, -50%);
    animation: rippleOut 0.6s ease-out forwards;
    pointer-events: none;
}

.rsvp-button:hover {
    background: #2d3d00;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(55, 73, 0, 0.3);
}

.rsvp-button:active {
    transform: translateY(-1px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 40px;
    border: 1px solid #f0ede8;
    border-radius: 4px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h3 {
    font-size: 24px;
    color: var(--text-color);
    margin-bottom: 25px;
    text-align: center;
    width: 100%;
}

.close {
    color: var(--text-color);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.close:hover {
    opacity: 1;
}

/* Form Styles */
#rsvpForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#rsvpForm input,
#rsvpForm select,
#rsvpForm textarea {
    padding: 12px 15px;
    border: 1px solid var(--secondary-color);
    border-radius: 2px;
    font-family: 'Old Standard TT', serif;
    font-size: 14px;
    background: var(--cream-bg);
    color: var(--text-color);
    transition: border-color 0.3s ease;
}

#rsvpForm input:focus,
#rsvpForm select:focus,
#rsvpForm textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
}

.submit-btn {
    background: #374900;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.3s ease;
    font-family: 'Old Standard TT', serif;
    font-weight: 500;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #2d3d00;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .invitation {
        margin-top: 20px;
        padding: 50px 30px 120px;
    }

    .couple-names {
        font-size: 32px;
    }

    .tagline {
        font-size: 36px;
    }

    .logo {
        max-width: 140px;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        padding: 30px 20px;
        margin: 20% auto;
    }
}

@media (max-width: 480px) {
    body {
        align-items: flex-start;
        padding: 10px;
    }

    .invitation {
        margin-top: 10px;
        padding: 40px 20px 220px;
    }

    .logo-container {
        width: 100%;
        justify-content: center;
        margin: 20px auto;
    }

    .couple-names {
        font-size: 33px;
    }

    .tagline {
        font-size: 36px;
    }

    .logo {
        max-width: 110px;
    }

    .subtitle {
        font-size: 12px;
    }

    .decorative-line {
        margin: 0 auto 20px;
    }

    .cocktail-scene {
        margin: 40px auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo,
    .decorative-line::before,
    .decorative-line::after {
        animation-iteration-count: 1;
    }
}
