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

body {
    font-family: 'Georgia', serif;
    color: #222;
    overflow-x: hidden;
}

a {
    color: #228B22;
}

a:hover, a:visited {
    color: #005900;
}

/* Hero Section */
.hero {
    height: 100vh;
    height: 100dvh;
    max-height: 900px;
    background: url('/images/background1_sm.jpg') no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: 
        radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
    text-shadow: 2px 2px 5px #666;
}

.ampersand {
    font-size: 3.5rem;
    font-style: italic;
    margin: 0 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-top: 1rem;
    animation: fadeInUp 1s ease-out 0.2s backwards;
    text-shadow: 0px 0px 1px #666, 1px 1px 4px #333;
    border-radius: 8px;
    padding: 0.2ex 1ex;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(3px);
}

.countdown {
    margin-top: 3rem;
    display: flex;
    gap: 2rem;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.countdown > :first-child {
    margin-left: auto;
}

.countdown > :last-child {
    margin-right: auto;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    min-width: 8em;
}

.countdown-number {
    font-size: 2.6rem;
    font-weight: bold;
    display: block;
}

.countdown-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero p.password-text {
    animation: fadeInUp 1s ease-out 0.6s backwards;   
}

.hero form {
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.form-group-password {
    margin: 1.5rem 0;
    text-align: left;
}

input[type="password"] {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input[type="password"]:focus {
    outline: none;
    border-color: #667eea;
}

button {
    background: linear-gradient(135deg, #44AD44 0%, #228B22 100%);
    color: white;
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

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

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-20px); }
    60% { transform: translateX(-50%) translateY(-10px); }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    backdrop-filter: blur(10px);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

nav.visible {
    transform: translateY(0);
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 3rem;
    list-style: none;
}

nav a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s;
    letter-spacing: 1px;
}

nav a:hover {
    color: #228B22;
}

/* Sections */
section {
    padding: 4.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    border-top: 2px solid #eee;
}

section h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #55BF55, #228B22);
    margin: 1rem auto 0;
}

/* Our Story */
.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.story-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.story-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.story-card h3 {
    color: #667eea;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.story-card p {
    line-height: 1.8;
    color: #444;
}

/* Wedding Details */
.details-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.detail-card {
    background: linear-gradient(135deg, #7DA542 0%, #B2C48F 100%);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.detail-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.detail-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.detail-card p {
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Travel Info */
.travel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.travel-card {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s;
}

.travel-card:hover {
    border-color: #228B22;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
}

.travel-card h3 {
    color: #228B22;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.travel-card ul {
    list-style: none;
    line-height: 2;
}

.travel-card li::before {
    content: '• ';
    margin-right: 0.4rem;
}

.travel-card span.tijd {
    display: inline-block;
    min-width: 11ex;
}

/* RSVP Section */
.rsvp-form {
    max-width: 600px;
    margin: 3rem auto;
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

input, select, textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #667eea;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.radio-group {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
}

.radio-group input[type="radio"] {
    width: auto;
}

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

.gallery-item {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    transition: transform 0.3s;
    cursor: pointer;
}

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

/* Footer */
footer {
    background: url('/images/footer.jpg') no-repeat #F0F3ED;
    background-position: bottom;
    color: #333;
    text-align: center;
    padding: 2.5rem 2rem;
    min-height: 400px;
    text-shadow: 0px 0px 1px #ddd, 1px 1px 4px #fff;
}

footer p {
    margin-bottom: 1rem;
}

footer a {
    color: #888;
}

footer a:hover, footer a:visited {
    color: #777;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.social-links a {
    color: white;
    font-size: 2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #667eea;
}

/* Modal styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    padding: 2rem;
    overflow: auto;
}

.modal-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    position: relative;
    width: 80%;
    max-width: 750px;
    height: auto;
    max-height: 90vh;
    max-height: 90dvh;
    border-radius: 15px;
    background: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

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

.modal-close {
    position: absolute;
    top: 0.6rem;
    right: 0.8rem;
    background: white;
    border: 1px solid #666;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s;
    color: #666;
    border-radius: 5px;
    padding: 0px;
}

.modal-close:hover {
    background: #d15a4d;
    color: white;
}

.modal-iframe {
    width: 100%;
    max-height: 90vh;
    max-height: 90dvh;
    border: none;
}

.info-button {
    background: white;
    color: #667eea;
    padding: 0.5rem 1.5rem;
    border: 2px solid white;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
    transition: all 0.3s;
}

.info-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 0;
    }
    
    .modal-content {
        width: 95%;
    }
}

/* Responsive */
@media (max-width: 768px) {
    section {
        padding: 1.5rem 1rem;
    }
    .hero h1 {
        font-size: 3rem;
    }
    .hero p {
        font-size: 1.2rem;
    }
    
    .countdown {
        flex-wrap: wrap;
        gap: 1rem;
    }
    .countdown-number {
        font-size: 2.5rem;
    }
    .countdown-label {
        font-size: 0.8rem;
    }
    .countdown-item {
        padding: 1.0rem;
        min-width: 7em;
    }
    .countdown-days {
        margin: 0 auto;
    }
    .countdown-hours, .countdown-minutes, .countdown-seconds {
        display: none;
    }
    
    nav ul {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
}
