/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cormorant Garamond', serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

.hidden {
    display: none !important;
}

/* Welcome Screen */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.welcome-screen.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

.welcome-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.welcome-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    color: #e6c298;
    margin-bottom: 1rem;
    font-weight: 700;
}

.baby-name {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    color: #a68860;
    margin-bottom: 2rem;
    font-weight: 600;
}

.open-invitation {
    background: linear-gradient(45deg, #e6c298, #f0d7b3);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-family: 'Cormorant Garamond', serif;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.3);
    font-weight: 600;
}

.open-invitation:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(212, 165, 116, 0.4);
}

.language-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    display: flex;
    gap: 10px;
    z-index: 1001;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(212, 165, 116, 0.3);
    color: #a68860;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.lang-btn.active, .lang-btn:hover {
    background: #e6c298;
    color: white;
    border-color: #e6c298;
}

.background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 25% 25%, rgba(212, 165, 116, 0.1) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(139, 115, 85, 0.1) 0%, transparent 50%);
    opacity: 0.6;
}

/* Main Content */
.main-content {
    opacity: 0;
    transition: opacity 1s ease 0.5s;
}

.main-content.visible {
    opacity: 1;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.9), rgba(139, 115, 85, 0.8));
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-text {
    color: white;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.baby-name-main {
    font-family: 'Dancing Script', cursive;
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 1s forwards;
}

.event-date {
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.9;
    opacity: 0;
    animation: fadeInUp 1s ease 1.5s forwards;
}

.hero-image {
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1s ease 2s forwards;
}

.hero-image img {
    max-width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 5px solid rgba(255, 255, 255, 0.1);
}

/* Section Styles */
.section-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    text-align: center;
    color: #a68860;
    margin-bottom: 3rem;
    font-weight: 600;
}

/* Family Section */
.family-section {
    padding: 80px 0;
    background: #fafbfc;
}

.family-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

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

.family-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.family-member h3 {
    font-size: 1.3rem;
    color: #e6c298;
    margin-bottom: 1rem;
    font-weight: 600;
}

.family-member p {
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
}

.family-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #e6c298;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.family-photo:hover {
    transform: scale(1.05);
    border-color: #f0d7b3;
}

.family-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Specific positioning for mother's photo */
.family-member:nth-child(2) .family-photo img {
    object-position: center top;
}

/* Event Details */
.event-details {
    padding: 80px 0;
    background: white;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.event-item {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(139, 115, 85, 0.15);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(212, 165, 116, 0.1);
}

.event-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(139, 115, 85, 0.2);
}

.event-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

.event-info {
    width: 100%;
}

.event-info h3 {
    font-size: 1.6rem;
    color: #a68860;
    margin-bottom: 1rem;
    font-weight: 600;
}

.event-info p {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #333;
}

.event-info address {
    font-style: normal;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.time {
    font-size: 1.2rem;
    color: #e6c298;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: block;
}

.map-link {
    background: #e6c298;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.map-link:hover {
    background: #c19660;
    transform: translateY(-2px);
}

/* Gallery */
.gallery {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    cursor: pointer;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* Message Section */
.message {
    padding: 80px 0;
    background: linear-gradient(135deg, #fff8f0 0%, #f5f1eb 100%);
}

.message-card-single {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 4rem;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(139, 115, 85, 0.2);
    border: 1px solid rgba(212, 165, 116, 0.1);
    position: relative;
}

.message-card-single::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #e6c298, #f0d7b3);
    border-radius: 25px;
    z-index: -1;
}

.message-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    display: block;
    color: #e6c298;
}

.message-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #444;
    font-style: italic;
    font-weight: 400;
    font-family: 'Cormorant Garamond', serif;
}

/* RSVP Section */
.rsvp {
    padding: 80px 0;
    background: #a68860;
    color: white;
    text-align: center;
}

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

.rsvp-text {
    font-size: 1.3rem;
    margin-bottom: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-person {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    transition: background 0.3s ease;
}

.contact-person:hover {
    background: rgba(255, 255, 255, 0.15);
}

.contact-person h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #f5f1eb;
    font-weight: 500;
}

.phone-link {
    color: #e6c298;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-block;
}

.phone-link:hover {
    color: #f0d7b3;
    text-decoration: underline;
}

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

.footer p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1rem;
}

.website-link {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.website-link a {
    color: #e6c298;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    opacity: 0.8;
}

.website-link a:hover {
    color: #f0d7b3;
    text-decoration: underline;
    opacity: 1;
}

/* Music Control */
.music-control {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

.music-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e6c298;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(212, 165, 116, 0.5);
}

.music-btn.playing {
    animation: pulse 2s infinite;
}

.music-icon {
    font-size: 1.5rem;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.lightbox-prev, .lightbox-next {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    cursor: pointer;
    border-radius: 50%;
    pointer-events: all;
    transition: background 0.3s ease;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Language Toggle stays fixed for both welcome and main content */

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 2.5rem;
    }

    .baby-name {
        font-size: 3rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .baby-name-main {
        font-size: 3.5rem;
    }

    .hero-image img {
        height: 300px;
    }

    .section-title {
        font-size: 2.5rem;
    }

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

    .events-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .event-item {
        padding: 2rem;
    }

    .event-info h3 {
        font-size: 1.4rem;
    }

    .event-info p {
        font-size: 1.1rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .message-card-single {
        padding: 2.5rem;
        margin: 0 1rem;
    }

    .message-text {
        font-size: 1.1rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .contact-person {
        padding: 1.5rem;
    }

    .phone-link {
        font-size: 1.2rem;
    }

    .language-toggle {
        top: 20px;
        right: 20px;
    }

    .music-control {
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .welcome-title {
        font-size: 2rem;
    }

    .baby-name {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .baby-name-main {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

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

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

    .event-item {
        padding: 1.5rem;
    }

    .message-card-single {
        padding: 2rem;
        margin: 0 0.5rem;
    }

    .message-text {
        font-size: 1rem;
    }

    .message-icon {
        font-size: 3rem;
    }

    .contact-person {
        padding: 1.2rem;
    }

    .contact-person h3 {
        font-size: 1.1rem;
    }

    .phone-link {
        font-size: 1.1rem;
    }

    .open-invitation {
        padding: 12px 30px;
        font-size: 1.1rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}