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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

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

/* Header */
header {
    background: linear-gradient(135deg, #8B4789 0%, #C74B6B 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.95;
    font-weight: 300;
}

/* Navigation */
nav {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav li {
    margin: 0;
}

nav a {
    display: block;
    padding: 1rem 1.5rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s, background-color 0.3s;
}

nav a:hover {
    color: #8B4789;
    background-color: #f0f0f0;
}

/* Hero Section */
.hero {
    background: white;
    padding: 4rem 0;
}

.hero h2 {
    font-size: 2.5rem;
    color: #8B4789;
    margin-bottom: 1.5rem;
    text-align: center;
}

.hero p {
    font-size: 1.1rem;
    text-align: center;
    color: #555;
    margin-bottom: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Impact Section */
.impact {
    background-color: #f9f9f9;
    padding: 4rem 0;
}

.impact h2 {
    font-size: 2.5rem;
    text-align: center;
    color: #8B4789;
    margin-bottom: 3rem;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.impact-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.impact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.impact-card h3 {
    color: #C74B6B;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.impact-card p {
    color: #666;
    font-size: 0.95rem;
}

/* Submit Section */
.submit-section {
    background: white;
    padding: 4rem 0;
}

.submit-section h2 {
    font-size: 2.5rem;
    text-align: center;
    color: #8B4789;
    margin-bottom: 1rem;
}

.submit-section > .container > p:nth-of-type(1) {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

#submitForm {
    max-width: 600px;
    margin: 2rem auto;
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea,
.form-group input[type="file"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus,
.form-group input[type="file"]:focus {
    outline: none;
    border-color: #8B4789;
    box-shadow: 0 0 0 3px rgba(139, 71, 137, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #999;
    font-size: 0.85rem;
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
}

.form-group.checkbox input[type="checkbox"] {
    width: auto;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.form-group.checkbox label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 0.95rem;
}

.btn {
    background: linear-gradient(135deg, #8B4789 0%, #C74B6B 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: opacity 0.3s, transform 0.2s;
}

.btn:hover {
    opacity: 0.95;
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

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

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

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

/* Gallery Section */
.gallery {
    background-color: #f9f9f9;
    padding: 4rem 0;
}

.gallery h2 {
    font-size: 2.5rem;
    text-align: center;
    color: #8B4789;
    margin-bottom: 3rem;
}

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

.gallery-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.gallery-item-info {
    padding: 1.5rem;
}

.gallery-item-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.gallery-item-story {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.no-submissions {
    text-align: center;
    color: #999;
    grid-column: 1 / -1;
    padding: 2rem;
}

/* Footer */
footer {
    background: #333;
    color: white;
    padding: 3rem 0;
    text-align: center;
}

footer h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #C74B6B;
}

footer p {
    margin-bottom: 0.5rem;
}

footer a {
    color: #8B4789;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

footer a:hover {
    color: #C74B6B;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .hero h2,
    .impact h2,
    .submit-section h2,
    .gallery h2 {
        font-size: 1.8rem;
    }

    nav ul {
        flex-direction: column;
    }

    nav a {
        padding: 0.75rem 1rem;
    }

    #submitForm {
        padding: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    header {
        padding: 2rem 0;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .hero h2,
    .impact h2,
    .submit-section h2,
    .gallery h2 {
        font-size: 1.5rem;
    }

    .hero p,
    .submit-section > .container > p:nth-of-type(1) {
        font-size: 1rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}
