/* Global Styles */
:root {
    --primary-color: #E3F2FD;
    /* Light Blue */
    --accent-color: #FFF3E0;
    /* Warm Gold/Orange */
    --text-color: #2c3e50;
    --text-light: #ecf0f1;
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.4);
    --font-heading: 'Nanum Myeongjo', serif;
    --font-body: 'Noto Sans KR', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--primary-color);
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 2rem;
    transition: background 0.3s;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
}

.main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.main-header nav ul {
    display: flex;
    gap: 2rem;
}

.main-header nav ul li a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 500;
}

.main-header nav ul li a:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 50, 100, 0.2);
    /* Slight blue tint */
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: #fff;
    z-index: 10;
    padding: 0 1rem;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -2px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 300;
}

.btn-scroll {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    color: #fff;
    font-size: 1rem;
}

.btn-scroll:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* Common Section Styles */
section {
    padding: 6rem 1rem;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #34495e;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #bdc3c7;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Glass Effect Class */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    padding: 2rem;
    margin: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.12);
    background: rgba(255, 255, 255, 0.35);
}

/* About Section */
.section-about {
    background: linear-gradient(135deg, #e0f7fa 0%, #ffffff 100%);
}

.about-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.about-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
}

.about-card h3 {
    margin-bottom: 1rem;
    color: #2980b9;
}

.about-card p {
    color: #555;
    font-size: 0.95rem;
}

/* Memories Section */
.section-memories {
    background: #fff;
    /* Snow texture simulation via CSS could go here, keeping it clean for now */
    background-image:
        radial-gradient(circle at 50% 50%, transparent 0%, transparent 100%),
        radial-gradient(circle at 10% 10%, rgba(200, 200, 220, 0.1) 1%, transparent 1%);
    background-size: 100px 100px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.gallery-item {
    padding: 0;
    overflow: hidden;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-info {
    padding: 1.5rem;
}

.gallery-info h4 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-size: 1.2rem;
}

.gallery-info p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Footer */
.main-footer {
    background: #2c3e50;
    color: rgba(255, 255, 255, 0.6);
    padding: 2rem 0;
    font-size: 0.9rem;
}

.main-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0 2rem;
}

.social-links span {
    margin-left: 1rem;
    cursor: pointer;
    transition: color 0.3s;
}

.social-links span:hover {
    color: #fff;
}

/* Animations */
.fade-in {
    animation: fadeIn 1.5s ease-out forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .main-header nav ul {
        display: none;
        /* Mobile menu simplification */
    }
}