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

body {
    font-family: 'Georgia', serif;
    background: #f5f1e8;
    color: #5a4a3a;
    overflow-x: hidden;
}

.opening-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #8b7355;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.opening-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.wood-texture {
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(90deg,
            rgba(139, 115, 85, 0.1) 0px,
            rgba(139, 115, 85, 0.1) 2px,
            transparent 2px,
            transparent 4px),
        linear-gradient(180deg, #8b7355 0%, #6d5a47 100%);
    opacity: 0.8;
}

.opening-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

.vintage-frame {
    background: rgba(245, 241, 232, 0.95);
    padding: 60px 80px;
    border: 8px solid #5a4a3a;
    box-shadow:
        inset 0 0 0 4px #f5f1e8,
        inset 0 0 0 8px #8b7355,
        0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.opening-title {
    font-size: 3.5rem;
    color: #5a4a3a;
    margin-bottom: 20px;
    font-weight: 300;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.opening-subtitle {
    font-size: 1.3rem;
    color: #8b7355;
    margin-bottom: 40px;
    font-style: italic;
}

.open-button {
    padding: 15px 50px;
    background: #8b7355;
    color: #f5f1e8;
    border: 2px solid #5a4a3a;
    border-radius: 0;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Georgia', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.open-button:hover {
    background: #5a4a3a;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.main-content {
    display: none;
    animation: fadeIn 1s ease;
}

.main-content.visible {
    display: block;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(rgba(90, 74, 58, 0.7), rgba(90, 74, 58, 0.7)),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect fill="%238b7355" width="100" height="100"/><circle fill="%236d5a47" cx="50" cy="50" r="40"/></svg>');
    background-size: cover;
    position: relative;
}

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
}

.hero-content {
    position: relative;
    text-align: center;
    background: rgba(245, 241, 232, 0.95);
    padding: 80px 60px;
    border: 6px solid #5a4a3a;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    animation: fadeInScale 1.2s ease;
}

.leaf-decoration {
    height: 40px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 40"><path d="M10,20 Q20,10 30,20 T50,20 T70,20 T90,20 T110,20 T130,20 T150,20 T170,20 T190,20" stroke="%238b7355" fill="none" stroke-width="2"/></svg>') center/contain no-repeat;
    margin: 20px 0;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #8b7355;
    margin-bottom: 20px;
    font-style: italic;
}

.hero-title {
    font-size: 4rem;
    color: #5a4a3a;
    margin: 30px 0;
    font-weight: 300;
}

.hero-date {
    font-size: 1.3rem;
    color: #8b7355;
    margin-top: 30px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    color: #5a4a3a;
    margin-bottom: 60px;
    position: relative;
    font-weight: 300;
    font-style: italic;
}

.section-title::after {
    content: '❦';
    display: block;
    font-size: 2rem;
    color: #8b7355;
    margin-top: 15px;
}

.couple-section {
    background: #f5f1e8;
}

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

.couple-card {
    background: #fff;
    padding: 50px 30px;
    text-align: center;
    border: 4px solid #8b7355;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease;
}

.vintage-border {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px dashed #8b7355;
    pointer-events: none;
}

.couple-card h3 {
    font-size: 2.5rem;
    color: #5a4a3a;
    margin-bottom: 10px;
    font-weight: 300;
}

.couple-subtitle {
    font-size: 1.2rem;
    color: #8b7355;
    font-style: italic;
    margin-bottom: 20px;
}

.couple-card p {
    color: #6d5a47;
    line-height: 1.8;
}

.couple-divider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.heart-icon {
    font-size: 3rem;
    color: #8b7355;
    animation: heartbeat 2s infinite;
}

.event-section {
    background: #e8dfc8;
}

.event-card {
    background: #fff;
    padding: 60px;
    text-align: center;
    border: 4px solid #8b7355;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    animation: fadeInScale 1s ease;
}

.rope-decoration {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 40px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 40"><path d="M0,20 Q25,0 50,20 T100,20" stroke="%238b7355" fill="none" stroke-width="4"/></svg>') center/contain no-repeat;
}

.event-card h3 {
    font-size: 2.5rem;
    color: #5a4a3a;
    margin-bottom: 30px;
    font-weight: 300;
}

.event-details p {
    color: #6d5a47;
    margin: 15px 0;
    font-size: 1.2rem;
}

.countdown-section {
    background: #8b7355;
    position: relative;
    color: #f5f1e8;
}

.wood-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 3px,
        rgba(0, 0, 0, 0.1) 3px,
        rgba(0, 0, 0, 0.1) 6px
    );
    opacity: 0.3;
}

.countdown-section .container {
    position: relative;
    z-index: 1;
}

.countdown-section .section-title {
    color: #f5f1e8;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
    background: rgba(245, 241, 232, 0.1);
    padding: 30px;
    border: 3px solid #f5f1e8;
    min-width: 120px;
    animation: fadeInUp 1s ease;
}

.countdown-item span {
    display: block;
    font-size: 4rem;
    color: #f5f1e8;
    font-weight: bold;
    margin-bottom: 10px;
}

.countdown-item p {
    color: #f5f1e8;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.gallery-section {
    background: #f5f1e8;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    padding-top: 100%;
    border: 8px solid #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    animation: fadeInScale 0.6s ease;
    transition: all 0.4s ease;
}

.gallery-item:hover {
    transform: rotate(-2deg) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rsvp-section {
    background: #e8dfc8;
}

.rsvp-card {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 50px;
    border: 4px solid #8b7355;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 1s ease;
}

.guest-name {
    text-align: center;
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: #5a4a3a;
}

.rsvp-message {
    text-align: center;
    margin-bottom: 40px;
    font-style: italic;
    color: #8b7355;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #5a4a3a;
    font-size: 1.1rem;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: #f5f1e8;
    border: 2px solid #8b7355;
    color: #5a4a3a;
    font-size: 1rem;
    font-family: 'Georgia', serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #5a4a3a;
    background: #fff;
}

.submit-button {
    width: 100%;
    padding: 15px;
    background: #8b7355;
    color: #f5f1e8;
    border: 2px solid #5a4a3a;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Georgia', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.submit-button:hover {
    background: #5a4a3a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

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

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

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

@media (max-width: 768px) {
    .opening-title { font-size: 2.5rem; }
    .hero-title { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .couple-grid { grid-template-columns: 1fr; }
    .couple-divider { margin: 20px 0; }
    .countdown { gap: 20px; }
    .countdown-item { min-width: 100px; padding: 20px; }
    .countdown-item span { font-size: 3rem; }
}

/* Navigation Menu */
#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 a {
    color: #8b6f47;
    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: #a0826d;
    transform: translateY(-5px);
    background: rgba(139, 111, 71, 0.1);
}

#navbar a.active {
    background: linear-gradient(135deg, #8b6f47, #a0826d);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(139, 111, 71, 0.4);
}

@media (max-width: 768px) {
    #navbar {
        gap: 15px;
        padding: 12px 20px;
    }

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