:root {
    --color-bg: #f9f7f4;
    --color-white: #ffffff;
    --color-text: #4a4540;
    --color-text-light: #8e8781;
    --color-accent: #c9b09a;
    --color-divider: #e8e2dc;
    --font-serif: 'Marcellus', 'Noto Serif KR', serif;
    --font-sans: 'Noto Sans KR', sans-serif;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.03);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-sans);
    background-color: #ebe7e3;
    color: var(--color-text);
    line-height: 1.8;
    overflow-x: hidden;
    word-break: keep-all;
}

.phone-container {
    max-width: 960px;
    margin: 0 auto;
    background: var(--color-bg);
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 50px rgba(0,0,0,0.05);
}

section {
    padding: 80px 30px;
    text-align: center;
    position: relative;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero {
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 60px;
    position: relative;
    z-index: 1;
    color: var(--color-white);
    text-align: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: -10%; left: 0; width: 115%; height: 120%;
    background: url('../images/Wedding_01.jpg') center/cover no-repeat;
    z-index: -1;
    will-change: transform;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 70%, rgba(0,0,0,0.5) 100%);
    z-index: -1;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 0.1rem;
    margin-bottom: 20px;
    animation: fadeInUp 1.5s ease;
}

.hero-info {
    font-size: 0.9rem;
    letter-spacing: 0.1rem;
    opacity: 0.9;
    animation: fadeInUp 2s ease;
}

/* Introduction */
.intro-title {
    font-family: var(--font-serif);
    color: var(--color-accent);
    letter-spacing: 0.4rem;
    font-size: 0.8rem;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.intro-content {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--color-text);
    margin-bottom: 50px;
}

.intro-couple {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-top: 30px;
    border-top: 1px solid var(--color-divider);
    padding-top: 30px;
    display: inline-block;
}

.couple-name {
    display: inline-block;
    margin: 0 10px;
}

/* Gallery */
.gallery-main {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
    cursor: pointer;
}

.gallery-main img {
    width: 100%; height: 100%; object-fit: cover;
    transition: opacity 0.5s ease-in-out;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.thumb {
    aspect-ratio: 1/1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.thumb.active {
    opacity: 1;
    box-shadow: 0 0 0 2px var(--color-accent);
}

.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Video */
.video-wrapper {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Location */
.location-venue {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.location-address {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 30px;
}

.map-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.map-icon {
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.map-icon img {
    width: 54px; height: 54px;
    border-radius: 15px;
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
}

/* Guestbook */
.gb-form {
    background: var(--color-white);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
    text-align: left;
}

.gb-input {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--color-divider);
    border-radius: 10px;
    font-family: inherit;
    margin-bottom: 15px;
    outline: none;
    transition: border-color 0.3s;
}

.gb-input:focus { border-color: var(--color-accent); }

.gb-submit {
    width: 100%;
    padding: 15px;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.gb-submit:active { transform: scale(0.98); }

.gb-list { text-align: left; }
.gb-card {
    background: var(--color-white);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 15px;
    border-left: 4px solid var(--color-accent);
}

.gb-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.gb-name { font-weight: 600; }
.gb-date { color: var(--color-text-light); }
.gb-text { font-size: 0.9rem; line-height: 1.6; }

/* Footer */
footer {
    padding: 60px 20px;
    font-size: 0.75rem;
    color: var(--color-text-light);
    text-align: center;
    border-top: 1px solid var(--color-divider);
}

/* Modal & Slider */
.modal {
    display: none; position: fixed; z-index: 1000;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    justify-content: center; align-items: center;
    user-select: none;
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-img { 
    max-width: 100%; 
    max-height: 100vh; 
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.2);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 1100;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(5px);
}

.nav-area {
    position: absolute;
    top: 0;
    height: 100%;
    width: 30%;
    z-index: 1050;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.nav-prev { left: 0; justify-content: flex-start; padding-left: 20px; }
.nav-next { right: 0; justify-content: flex-end; padding-right: 20px; }

.nav-arrow {
    color: white;
    font-size: 30px;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.nav-area:hover .nav-arrow { opacity: 1; }

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
