/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0 20px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 400;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: #f0f0f0;
    color: #e91e63;
}

.flag-link {
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.flag-link:hover {
    opacity: 1;
    transform: scale(1.1);
}

.flag-link.active {
    opacity: 1;
    background: rgba(233, 30, 99, 0.1);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    text-align: center;
    color: #333;
}

.hero-bg {
    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"><defs><pattern id="hearts" patternUnits="userSpaceOnUse" width="100" height="100"><path d="M50 25c-5-15-25-15-25 0 0 10 25 25 25 25s25-15 25-25c0-15-20-15-25 0z" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23hearts)"/></svg>') repeat;
    opacity: 0.1;
}

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

.hero-title {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-date {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.hero-date p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.hero-date h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: #e91e63;
    font-weight: 600;
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #e91e63;
}

/* Story Section */
.story-section {
    background: #f9f9f9;
}

.story-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.8;
}

.story-text ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
    color: #666;
}

.story-text li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.story-images {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.story-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
}

.story-image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, #e91e63, #ff6b9d, #ffecd2, #fcb69f);
    border-radius: 25px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.story-image:hover::before {
    opacity: 0.8;
}

.story-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    transition: transform 0.4s ease;
    filter: sepia(0.1) contrast(1.1) brightness(1.05);
}

.story-image:hover img {
    transform: scale(1.05);
}

.story-image.primary {
    transform: rotate(-2deg);
    z-index: 2;
}

.story-image.secondary {
    transform: rotate(3deg) scale(0.85);
    margin-top: -3rem;
    margin-left: 2rem;
    z-index: 1;
}

.story-image.primary:hover {
    transform: rotate(0deg) scale(1.02);
    z-index: 3;
}

.story-image.secondary:hover {
    transform: rotate(0deg) scale(0.9);
    z-index: 3;
}

/* Heart decoration overlay */
.story-image::after {
    content: '♥';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: rgba(233, 30, 99, 0.8);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    opacity: 0;
    transform: scale(0.5) rotate(15deg);
    transition: all 0.3s ease;
}

.story-image:hover::after {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

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

.detail-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-5px);
}

.detail-card h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: #e91e63;
    margin-bottom: 1.5rem;
}

.detail-card p {
    margin-bottom: 1rem;
    color: #666;
}

/* RSVP Section */
.rsvp-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.rsvp-section .section-title {
    color: white;
}

.rsvp-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

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

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

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    width: auto;
    margin: 0;
}

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: #e91e63;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #c2185b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.submit-btn.success {
    background: #4caf50;
    color: white;
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

.submit-btn.success:hover {
    background: #4caf50;
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

.submit-btn.loading {
    background: #9e9e9e;
    color: white;
    opacity: 0.7;
    cursor: not-allowed;
    transform: translateY(0);
}

.submit-btn.loading:hover {
    background: #9e9e9e;
    transform: translateY(0);
    box-shadow: none;
}

/* Contact Section */
.contact-section {
    background: #f9f9f9;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: #e91e63;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.contact-details {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-form .form-group input,
.contact-form .form-group textarea {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
    border-color: #e91e63;
    background: white;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.contact-form .form-group input:disabled,
.contact-form .form-group textarea:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Success Messages */
.success-message {
    background: rgba(76, 175, 80, 0.1);
    border: 2px solid #4caf50;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin-top: 2rem;
}

.success-message h3 {
    color: #4caf50;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-date h2 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .nav-container {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .story-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .story-images {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 1rem;
    }
    
    .story-image.secondary {
        margin-top: 0;
        margin-left: 0;
        transform: rotate(-3deg) scale(0.7);
    }
    
    .story-image.primary {
        transform: rotate(2deg) scale(0.8);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .rsvp-form,
    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-date {
        padding: 1.5rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .story-images {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .story-image.primary,
    .story-image.secondary {
        transform: rotate(0deg) scale(1);
        margin: 0;
    }
    
    .story-image::after {
        font-size: 1.5rem;
        top: 15px;
        right: 15px;
    }
    
    .story-text ul {
        padding-left: 1rem;
        margin: 0.5rem 0;
    }
    
    .story-text li {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
}
