/* Theme Variables */
:root {
    --bg-color: #f8f9fa;
    --text-color: #212529;
    --header-bg: #ffffff;
    --header-border: #e9ecef;
    --nav-link-color: #495057;
    --accent-color: #0d6efd;
    --accent-hover-bg: #0d6efd;
    --accent-hover-text: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --noise-opacity: 0.02;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #f0f0f0;
    --header-bg: #242424;
    --header-border: #333333;
    --nav-link-color: #ced4da;
    --accent-color: #4da6ff;
    --accent-hover-bg: #4da6ff;
    --accent-hover-text: #1a1a1a;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --noise-opacity: 0.05;
}

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

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
    background-attachment: fixed;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: var(--noise-opacity);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    text-decoration: underline;
}

header {
    background-color: var(--header-bg);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--header-border);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

header h1 a {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-color);
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

nav ul li a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--nav-link-color);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    background-color: var(--accent-hover-bg);
    color: var(--accent-hover-text);
    box-shadow: 0 0 15px rgba(13, 110, 253, 0.4);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-link {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--accent-color);
    border-radius: 20px;
    color: var(--accent-color) !important;
}

.contact-link:hover {
    background-color: var(--accent-color);
    color: white !important;
}

#theme-toggle {
    background: none;
    border: 1px solid var(--header-border);
    color: var(--text-color);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

main {
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.board-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 0;
    border-bottom: 1px solid var(--header-border);
}

.board-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Form & UI components remain similar but updated for responsiveness */
#contact {
    background-color: var(--header-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--header-border);
}

@media (max-width: 992px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }
    nav {
        flex-direction: column;
        width: 100%;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}
