/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #ffffff;
    --color-text: #1a1a1a;
    --color-gray: #666666;
    --color-light-gray: #e0e0e0;
    --color-border: #d0d0d0;
    --color-accent: #000000;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-heading: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --max-width: 1400px;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

a {
    color: var(--color-text);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.7;
}

/* Header and Navigation */
.header {
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    background: var(--color-bg);
    z-index: 100;
}

.nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

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

.nav-menu a {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: 2rem;
}

.lang-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid var(--color-border);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--color-text);
}

.lang-btn:hover {
    background: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

.lang-btn.active {
    background: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text);
}

/* Main Content */
.main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero .tagline {
    font-size: 1.1rem;
    color: var(--color-gray);
    line-height: 1.8;
}

/* Gallery Grid */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 3/4;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.gallery-item:hover img {
    filter: grayscale(0%);
}

.gallery-item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item-info {
    transform: translateY(0);
}

.gallery-item-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.gallery-item-info p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Content Pages */
.content-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.content-page article {
    line-height: 1.8;
}

.content-page h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
}

.content-page h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin: 2.5rem 0 1rem;
    letter-spacing: -0.02em;
}

.content-page h3 {
    font-size: 1.3rem;
    font-weight: 500;
    margin: 2rem 0 1rem;
}

.content-page p {
    margin-bottom: 1.2rem;
    color: var(--color-text);
}

.content-page a {
    color: var(--color-text);
    text-decoration: underline;
    text-decoration-color: var(--color-light-gray);
    text-underline-offset: 3px;
}

.content-page a:hover {
    text-decoration-color: var(--color-text);
}

.content-page ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.content-page li {
    margin-bottom: 0.5rem;
}

.intro {
    font-size: 1.2rem;
    color: var(--color-gray);
    margin-bottom: 2.5rem;
}

.about-section,
.contact-section {
    margin-bottom: 3rem;
}

/* Forms */
.submission-form {
    margin-top: 2rem;
}

.form-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-light-gray);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h2 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-group textarea {
    resize: vertical;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.75rem;
    border: 1px solid var(--color-light-gray);
    border-radius: 4px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.radio-label:hover {
    border-color: var(--color-border);
    background-color: #f9f9f9;
}

.radio-label input[type="radio"] {
    width: auto;
    cursor: pointer;
}

.radio-label span {
    font-size: 1rem;
}

.help-text {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-gray);
    margin-bottom: 0;
}

.form-group input[type="file"] {
    padding: 0.5rem;
    border: 2px dashed var(--color-border);
    background: #f9f9f9;
    cursor: pointer;
}

.form-group input[type="file"]:hover {
    border-color: var(--color-accent);
    background: #f5f5f5;
}

.photo-preview {
    margin-top: 1rem;
    display: none;
}

.photo-preview.active {
    display: block;
}

.photo-preview img {
    max-width: 300px;
    max-height: 400px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

.photo-preview-info {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-gray);
}

.form-actions {
    margin-top: 2rem;
}

.btn-primary {
    background: var(--color-accent);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary:hover {
    opacity: 0.8;
}

.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 4px;
    display: none;
}

.form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.submission-note {
    margin-top: 3rem;
    padding: 2rem;
    background: #f9f9f9;
    border-left: 3px solid var(--color-accent);
}

.submission-note h3 {
    margin-bottom: 1rem;
}

.contact-info {
    margin: 1.5rem 0;
}

.contact-info p {
    margin-bottom: 0.8rem;
}

/* Footer */
.footer {
    border-top: 1px solid var(--color-border);
    margin-top: 4rem;
    padding: 2rem;
    text-align: center;
    color: var(--color-gray);
    font-size: 0.9rem;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    margin: 0 1rem;
    color: var(--color-gray);
}

/* Person Detail Page */
.person-detail {
    max-width: 1000px;
    margin: 0 auto;
}

.person-header {
    margin-bottom: 3rem;
}

.person-image {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 2rem;
    display: block;
    filter: grayscale(100%);
}

.person-name {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    text-align: center;
}

.person-title {
    font-size: 1.2rem;
    color: var(--color-gray);
    text-align: center;
    margin-bottom: 2rem;
}

.person-story {
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.person-story p {
    margin-bottom: 1.5rem;
}

.person-links {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-light-gray);
}

.person-links a {
    display: inline-block;
    margin-right: 1.5rem;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        padding: 1rem;
        flex-wrap: wrap;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 1rem;
        padding-top: 1rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .lang-switcher {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .tagline {
        font-size: 1rem;
    }

    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .content-page {
        padding: 2rem 1rem;
    }

    .content-page h1 {
        font-size: 2rem;
    }

    .content-page h2 {
        font-size: 1.5rem;
    }

    .person-name {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
    }

    .btn-primary {
        width: 100%;
    }
}
