:root {
    --bg-color: #fdfcfb;
    --text-color: #333333;
    --accent-color: #d4af37; /* Gold */
    --accent-light: #e6d5a1;
    --muted-color: #777777;
    --card-bg: rgba(255, 255, 255, 0.8);
    --font-serif: 'Nanum Myeongjo', serif;
    --font-sans: 'Pretendard', 'Noto Sans KR', sans-serif;
    --spacing: 2rem;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.scroll-container {
    width: 100%;
}

.section {
    padding: 4rem 1.5rem;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Hero Section */
.hero {
    height: 100vh;
    padding: 0;
    overflow: hidden;
    position: relative;
    background-color: #000;
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    transform: scale(1.1);
    animation: zoomOut 10s ease-out forwards;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.5) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content .subtitle {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    letter-spacing: 0.3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-content .title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-content .names {
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
    font-weight: 300;
}

/* Animations */
@keyframes zoomOut {
    from { transform: scale(1.15); }
    to { transform: scale(1); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Sections General */
.section-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background-color: var(--accent-color);
}

.content-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem 2rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,255,255,0.3);
}

/* Message Section */
.message-text p {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 0.5rem;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 600px;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Registry/Account */
.registry-desc {
    font-size: 0.9rem;
    color: var(--muted-color);
    margin-bottom: 2rem;
}

.account-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.account-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(212, 175, 55, 0.05);
    padding: 1rem;
    border-radius: 12px;
    position: relative;
}

.account-item .label {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.account-item .account {
    font-family: monospace;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.copy-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.3s;
}

.copy-btn:hover {
    background: #b8962d;
}

/* Guestbook */
.guestbook-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 2rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-right: 10px;
}

.guest-post {
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.guest-post .name {
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: var(--accent-color);
}

.guest-post .msg {
    font-size: 0.95rem;
    color: #444;
}

.guestbook-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.guestbook-form input, .guestbook-form textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-sans);
}

.guestbook-form button {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.footer {
    padding: 2rem;
    font-size: 0.8rem;
    color: var(--muted-color);
    background: #f9f9f9;
    text-align: center;
}

/* Mobile Tweaks */
@media (max-width: 480px) {
    .hero-content .title {
        font-size: 2rem;
    }
    .content-card {
        padding: 2rem 1.5rem;
    }
}

/* Modal for Image Zoom */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--accent-color);
}

body.modal-open {
    overflow: hidden;
}
