/* Elegant Design CSS */
:root {
    --primary-color: #d4a574;
    --secondary-color: #2c3e50;
    --accent-color: #e8b4b8;
    --background-light: #faf9f6;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
}

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

body {
    font-family: 'Noto Sans KR', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
}

/* Language Toggle */
.language-toggle {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 15px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-size: 0.9rem;
}

.lang-active {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.lang-switch {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.lang-switch:hover {
    color: var(--primary-color);
}

/* Intro Section */
.intro-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.intro-image {
    display: block;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
}

.intro-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.intro-text {
    color: white;
    font-size: 3.5rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 60px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    color: white;
    font-size: 2rem;
}

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

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

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 20px;
}

.hero-animation {
    animation: fadeInUp 1.5s ease;
}

/* Couple Photos in Hero */
.couple-photos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.individual-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.individual-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.names-container {
    text-align: center;
}

.names {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 2px;
}

.heart {
    color: var(--accent-color);
    animation: pulse 2s infinite;
    display: inline-block;
    margin: 0 20px;
}

.wedding-date {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.wedding-message {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Photo Gallery */
.photo-gallery {
    padding: 80px 20px;
    background: white;
}

.photo-gallery h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 50px;
    font-weight: 300;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    min-height: 400px;
    background: #f5f5f5;
}

.photo-item:hover {
    transform: translateY(-10px);
}

/* Loading state */
.photo-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-size: 14px;
    z-index: 1;
}

.photo-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.photo-item img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    background: #f5f5f5;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.photo-item img.loaded {
    opacity: 1;
}

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

/* Video Section */
.video-section {
    padding: 80px 20px;
    background: var(--background-light);
}

.video-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 50px;
    font-weight: 300;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.video-container video {
    width: 100%;
    height: auto;
}

/* Wedding Info */
.wedding-info {
    padding: 80px 20px;
    background: white;
}

.wedding-info h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 50px;
    font-weight: 300;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.info-item {
    text-align: center;
    padding: 30px;
    background: var(--background-light);
    border-radius: 15px;
}

.info-item h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.info-item p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Map Section */
.map-section {
    padding: 80px 20px;
    background: var(--background-light);
}

.map-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 50px;
    font-weight: 300;
}

.map-container {
    width: 100%;
    max-width: 1000px;
    height: 400px;
    margin: 0 auto 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.transport-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.transport-item {
    padding: 25px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.transport-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* RSVP Section */
.rsvp-section {
    padding: 80px 20px;
    background: white;
}

.rsvp-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 50px;
    font-weight: 300;
}

.rsvp-form {
    max-width: 500px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.radio-group {
    display: flex;
    gap: 30px;
    margin-top: 10px;
}

.radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    margin-right: 8px;
}

/* Account Section */
.account-section {
    padding: 80px 20px;
    background: var(--background-light);
}

.account-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 50px;
    font-weight: 300;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.account-item {
    padding: 30px;
    background: white;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.account-item h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.account-bank {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.account-number {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    padding: 12px 15px;
    background: var(--background-light);
    border-radius: 8px;
}

.account-holder {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* Messages Section */
.messages-section {
    padding: 80px 20px;
    background: white;
}

.messages-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 50px;
    font-weight: 300;
}

.message-form {
    max-width: 600px;
    margin: 0 auto 50px;
}

.message-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    resize: vertical;
    font-family: inherit;
}

.messages-list {
    max-width: 800px;
    margin: 0 auto;
}

.message-item {
    padding: 20px;
    background: var(--background-light);
    border-radius: 10px;
    margin-bottom: 20px;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.message-name {
    font-weight: 600;
    color: var(--primary-color);
}

.message-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.message-content {
    color: var(--text-dark);
    line-height: 1.6;
}

/* Buttons */
.btn-submit, .btn-copy {
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover, .btn-copy:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-submit {
    width: 100%;
    margin-top: 10px;
}

/* View More Button */
.view-more-container {
    text-align: center;
    margin-top: 40px;
}

.btn-view-more {
    padding: 14px 40px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-view-more:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 165, 116, 0.3);
}

/* Footer */
.footer {
    padding: 40px 20px;
    background: var(--secondary-color);
    color: white;
    text-align: center;
}

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

.lightbox-modal.active {
    display: flex;
}

.lightbox-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 2001;
    background: none;
    border: none;
    font-weight: bold;
}

.lightbox-close:hover {
    color: var(--primary-color);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: white;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    padding: 15px 20px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 20px;
}

/* 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.1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .language-toggle {
        position: fixed !important;
        top: 10px !important;
        right: 10px !important;
        padding: 5px 10px !important;
        gap: 6px !important;
        font-size: 0.8rem !important;
        background: rgba(255, 255, 255, 0.98) !important;
        border-radius: 18px !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.12) !important;
        z-index: 9999 !important;
    }

    .lang-active, .lang-switch {
        font-size: 0.8rem !important;
    }

    .lang-active {
        font-weight: 600;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .language-toggle {
        top: 8px !important;
        right: 8px !important;
        padding: 4px 8px !important;
        gap: 5px !important;
        font-size: 0.75rem !important;
    }

    .lang-active, .lang-switch {
        font-size: 0.75rem !important;
    }

    .intro-text {
        font-size: 2rem;
    }

    .scroll-indicator {
        bottom: 20px;
    }
    .couple-photos {
        flex-direction: column;
        gap: 20px;
    }

    .individual-photo {
        width: 150px;
        height: 150px;
    }

    .names {
        font-size: 2rem;
    }

    .wedding-date {
        font-size: 1.2rem;
    }

    /* Keep language toggle fixed, remove design toggle */
    .design-toggle {
        display: none;
    }

    .photo-grid, .info-grid, .transport-info, .account-grid {
        grid-template-columns: 1fr;
    }

    .map-container {
        height: 300px;
    }
}