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

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #fefefe;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header și decor - lipit de top fără margini, complet responsive */
.header {
    text-align: center;
    margin-bottom: 0;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    width: 100%;
    position: relative;
    left: 0;
    max-height: 400px;
}

.decor-img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

/* Asigură că headerul ocupă întreaga lățime chiar și pe ecrane mici */
@media (max-width: 768px) {
    .header {
        max-height: 300px;
    }
    
    .decor-img {
        max-height: 300px;
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .header {
        max-height: 250px;
    }
    
    .decor-img {
        max-height: 250px;
        min-height: 180px;
    }
}

/* Secțiunea cu nume */
.names-section {
    text-align: center;
    margin: 40px 0;
    padding: 20px;
    animation-delay: 0.3s;
}

.main-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.amp {
    color: #e74c3c;
    font-weight: 700;
    margin: 0 10px;
}

.subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Fotografii */
.photo-section {
    text-align: center;
    margin: 50px 0;
    padding: 0 10px;
}

.couple-photo {
    width: 100%;
    max-width: 500px;
    height: 500px;
    object-fit: cover;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.rounded-photo {
    border-radius: 15px;
}

.couple-photo:hover {
    transform: scale(1.02);
}

/* Text invitație */
.invitation-text {
    max-width: 800px;
    margin: 60px auto;
    padding: 40px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    animation-delay: 0.5s;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
}

.invitation-paragraph {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #555;
    text-align: justify;
}

.invitation-paragraph strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Stil pentru link-ul restaurantului */
.restaurant-link {
    color: #2c3e50;
    text-decoration: none;
    border-bottom: 1px dotted #e74c3c;
    transition: all 0.3s ease;
    position: relative;
}

.restaurant-link:hover {
    color: #e74c3c;
    border-bottom: 1px solid #e74c3c;
}

.note-box {
    background-color: #f8f9fa;
    border-left: 4px solid #e74c3c;
    padding: 20px;
    margin-top: 30px;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.note-box i {
    font-size: 1.8rem;
    color: #e74c3c;
    flex-shrink: 0;
}

.note-box p {
    margin: 0;
    font-style: italic;
    color: #666;
}

/* Timer - versiune inline pentru ecrane mici */
.timer-section {
    text-align: center;
    margin: 70px 0;
    padding: 40px 20px;
    background-color: #f8f9fa;
    border-radius: 15px;
    animation-delay: 0.7s;
}

.timer-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 40px;
}

.timer-box {
    background-color: white;
    border-radius: 10px;
    padding: 15px 10px;
    min-width: auto;
    flex: 1;
    max-width: 150px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.timer-box:hover {
    transform: translateY(-5px);
}

.timer-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

.timer-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 40px;
    color: #7f8c8d;
    border-top: 1px solid #eee;
}

.footer p:first-child {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2c3e50;
    font-weight: 500;
}

.footer-note {
    font-style: italic;
}

/* Animații */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Confetti */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

/* Responsivitate generală */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .couple-photo {
        height: 400px;
    }
    
    .invitation-text {
        padding: 25px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .couple-photo {
        height: 300px;
    }
}

/* Ajustări pentru timer pe ecrane mici */
@media (max-width: 768px) {
    .timer-container {
        gap: 10px;
        padding: 0 5px;
    }
    
    .timer-box {
        padding: 12px 8px;
        max-width: 130px;
    }
    
    .timer-number {
        font-size: 2.2rem;
    }
    
    .timer-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 600px) {
    .timer-container {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: space-between;
        padding: 0;
        gap: 8px;
    }
    
    .timer-box {
        flex: 1 0 auto;
        padding: 10px 5px;
        max-width: none;
        min-width: 0;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    }
    
    .timer-number {
        font-size: 1.8rem;
    }
    
    .timer-label {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }
}

@media (max-width: 400px) {
    .timer-number {
        font-size: 1.6rem;
    }
    
    .timer-label {
        font-size: 0.7rem;
    }
    
    .timer-box {
        padding: 8px 4px;
    }
}