/* Theme Variables */
:root {
    --bg-color: #f4f4f4;
    --text-color: #333;
    --header-bg: #fff;
    --card-bg: #fff;
    --nav-link-color: #555;
    --footer-bg: #333;
    --footer-text: #fff;
    --accent-color: #e67e22;
    --accent-hover: #d35400;
    --input-bg: #fff;
    --input-border: #ccc;
    --input-focus: #3498db;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #f4f4f4;
    --header-bg: #2d2d2d;
    --card-bg: #2d2d2d;
    --nav-link-color: #ccc;
    --footer-bg: #000;
    --footer-text: #ccc;
    --input-bg: #333;
    --input-border: #555;
    --input-focus: #5dade2;
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.6;
}

/* Header */
header {
    background-color: var(--header-bg);
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

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

.logo a {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 1.5rem;
}

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

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

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 2px solid var(--text-color);
    color: var(--text-color);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    margin-left: 1.5rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
    transform: scale(1.05);
}

/* Hero Section */
#hero {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://via.placeholder.com/1500x600.png?text=Our+Neighborhood');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 6rem 1rem;
    margin-bottom: 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.cta-button {
    background-color: var(--accent-color);
    color: #fff;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.cta-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.2);
}

.cta-button:active {
    transform: translateY(0);
}

/* Sections */
section {
    padding: 4rem 1rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

/* Brand Grid */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.brand-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.brand-card img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Funding Options */
.funding-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.funding-card {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border: 1px solid transparent;
}

.funding-card:hover {
    transform: scale(1.02);
    border-color: var(--accent-color);
}

.funding-card .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    margin: 1rem 0;
}

.fund-button {
    background-color: #3498db;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.fund-button:hover {
    background-color: #2980b9;
}

/* Contact Form - The Fun Part! */
#contact {
    background-color: #eef2f7; /* 섹션 배경색 추가 */
    border-radius: 20px;
    margin: 4rem auto;
    padding: 4rem 2rem;
}

[data-theme="dark"] #contact {
    background-color: #24292e;
}

.fun-form {
    max-width: 600px;
    margin: 2rem auto;
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 2px solid var(--accent-color); /* 테두리 강조 */
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--input-border);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box; /* Important for padding */
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    pointer-events: none;
    transition: all 0.2s ease;
    color: #999;
    background-color: var(--input-bg);
    padding: 0 0.5rem;
}

/* Floating Label Logic */
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--input-focus);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.6rem;
    left: 0.8rem;
    font-size: 0.8rem;
    color: var(--input-focus);
    font-weight: bold;
}

#submit-btn {
    width: 100%;
    font-size: 1.2rem;
    margin-top: 1rem;
}

#form-status {
    margin-top: 1rem;
    font-weight: bold;
    min-height: 1.5rem;
}

.status-success {
    color: #27ae60;
}

.status-error {
    color: #c0392b;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 4rem;
}
