:root {
    --bg-color: #fdfaf5;
    --navy-dark: #3e2723;
    --glow-color: #ffd600;
    --secondary-glow: #ffb300;
    --text-color: #3e2723;
    --accent-color: #795548;
    --white-soft: #ffffff;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(253, 250, 245, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(62, 39, 35, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy-dark);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--secondary-glow);
}

main section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    text-align: center;
}

#hero {
    background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), url('반딧불이빵 홍보물.png');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--navy-dark);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #5d4037;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--glow-color);
    border: none;
    color: var(--navy-dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 214, 0, 0.3);
}

.btn:hover {
    background-color: var(--secondary-glow);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 179, 0, 0.4);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--navy-dark);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.feature-item {
    padding: 2rem;
    background: var(--white-soft);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

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

.feature-item .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.image-placeholder {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--white-soft);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.main-img {
    width: 100%;
    max-width: 800px;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.img-hint {
    color: #795548;
    font-size: 0.9rem;
}

footer {
    padding: 2rem;
    text-align: center;
    background: #3e2723;
    color: #fff;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Firefly Container */
.firefly-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.firefly {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--glow-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--glow-color), 0 0 20px var(--glow-color);
    animation: move 10s infinite linear, flicker 2s infinite ease-in-out;
}

@keyframes move {
    0% { transform: translate(0, 0); }
    25% { transform: translate(100px, 50px); }
    50% { transform: translate(50px, 150px); }
    75% { transform: translate(-50px, 100px); }
    100% { transform: translate(0, 0); }
}

@keyframes flicker {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    nav ul {
        display: none; /* Hide nav on mobile for simplicity */
    }
}
