:root {
    --primary-color: #e63946;
    --secondary-color: #f1faee;
    --accent-color: #a8dadc;
    --dark-color: #1d3557;
    --light-color: #ffffff;
    --text-color: #2b2d42;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

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

/* Navigation */
.navbar {
    background-color: var(--dark-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--box-shadow);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-family: 'Libre Caslon Text', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--light-color);
    letter-spacing: 1.5px;
    max-width: 600px;
    line-height: 1.6;
    text-transform: uppercase;
    position: relative;
}

.logo-icon {
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    position: absolute;
    left: -90px;
    top: 50%;
    transform: translateY(-50%);
}

.logo-text {
    flex: 1;
    border: 3px double var(--light-color);
    padding: 0.75rem 1.25rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.12) 100%);
    border-radius: 2px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.3),
        0 3px 10px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow:
        0 1px 1px rgba(0, 0, 0, 0.8),
        0 2px 3px rgba(0, 0, 0, 0.5);
    font-variant: small-caps;
}

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

.nav-menu a {
    color: var(--light-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

.nav-menu a:hover {
    background-color: var(--primary-color);
}

/* Hero Section */
.hero {
    background-color: var(--dark-color);
    background-image:
        linear-gradient(135deg, rgba(29, 53, 87, 0.15) 0%, rgba(230, 57, 70, 0.1) 100%),
        url('hero-background.png');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    color: var(--light-color);
    padding: 120px 20px 100px;
    text-align: center;
    position: relative;
    /* Force hardware acceleration on mobile */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

/* Parallax only on desktop - doesn't work on mobile */
@media (min-width: 769px) {
    .hero {
        background-attachment: fixed;
    }
}

/* Mobile-specific background fixes */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll !important;
        background-position: center top;
        /* Ensure background loads on iOS */
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.05);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.hero-logo {
    width: 280px;
    height: 280px;
    object-fit: contain;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.7));
    animation: fadeInScale 1s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-content h1 {
    font-size: 6rem;
    margin: 0;
    letter-spacing: 8px;
    font-weight: 900;
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.7);
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: 1px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.8;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.btn-primary:hover {
    background-color: #d62839;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--light-color);
    border: 2px solid var(--light-color);
}

.btn-secondary:hover {
    background-color: var(--light-color);
    color: var(--dark-color);
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

/* Section Styles */
.section {
    padding: 80px 20px;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--dark-color);
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--text-color);
    line-height: 1.8;
}

/* About Section */
.about {
    background-color: var(--secondary-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.highlight-box {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-top: 2rem;
}

.highlight-box h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.highlight-box ul {
    list-style: none;
    padding: 0;
}

.highlight-box ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.highlight-box ul li:last-child {
    border-bottom: none;
}

.funding-box {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    color: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.funding-box h3 {
    color: var(--light-color);
    margin-bottom: 1rem;
}

.funding-box p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.funding-box ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.funding-box ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.funding-box ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.funding-box a {
    color: var(--accent-color);
    text-decoration: underline;
}

.progress-bar {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    height: 40px;
    margin-top: 1.5rem;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    background-color: var(--accent-color);
    height: 100%;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.5s ease;
    min-width: 80px;
}

.progress-text {
    color: var(--dark-color);
    font-weight: bold;
    font-size: 0.9rem;
}

/* Themes Section */
.themes {
    background-color: var(--light-color);
}

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

.theme-card {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.theme-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

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

.theme-card h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.theme-card p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Apply Section */
.apply {
    background-color: var(--secondary-color);
}

.application-form {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--light-color);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-section-title {
    color: var(--dark-color);
    font-size: 1.5rem;
    margin: 2.5rem 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.form-section-title:first-of-type {
    margin-top: 0;
}

.artwork-section {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent-color);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

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

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

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

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

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

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
}

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

.form-message {
    margin-top: 2rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    display: none;
}

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

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

/* Donate Section */
.donate {
    background-color: var(--light-color);
}

.donate-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.donation-tiers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.tier-card {
    background-color: var(--secondary-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 3px solid transparent;
}

.tier-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.tier-card.selected {
    border-color: var(--primary-color);
    background-color: var(--light-color);
}

.tier-card h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.tier-card .amount {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.tier-card p {
    font-size: 0.9rem;
    color: var(--text-color);
}

.donation-form {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.amount-input {
    position: relative;
    display: flex;
    align-items: center;
}

.currency {
    position: absolute;
    left: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
}

.amount-input input {
    padding-left: 2.5rem;
}

.payment-note {
    margin-top: 1.5rem;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.donate-impact {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.impact-box h3, .impact-box h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.impact-box p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.impact-box ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.impact-box ul li {
    padding: 0.5rem 0;
    line-height: 1.6;
}

.acknowledgment {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

/* Contact Section */
.contact {
    background-color: var(--secondary-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.contact-methods {
    margin: 2rem 0;
}

.contact-methods p {
    margin-bottom: 0.5rem;
}

.contact-methods a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-methods a:hover {
    text-decoration: underline;
}

.acknowledgment-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.acknowledgment-box a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.acknowledgment-box a:hover {
    text-decoration: underline;
}

.contact-form {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    text-align: center;
    padding: 2rem 20px;
}

.footer p {
    margin: 0.5rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .logo {
        font-size: 0.85rem;
        max-width: 450px;
    }

    .logo-icon {
        width: 55px;
        height: 55px;
        left: -70px;
    }

    .hero-title-wrapper {
        gap: 2rem;
    }

    .hero-logo {
        width: 200px;
        height: 200px;
    }

    .hero-content h1 {
        font-size: 4rem;
        letter-spacing: 4px;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .about-grid,
    .donate-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-grid,
    .donation-tiers {
        grid-template-columns: 1fr;
    }

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

    .section {
        padding: 60px 20px;
    }

    .section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 10px;
    }

    .logo {
        font-size: 0.7rem;
        max-width: 320px;
    }

    .logo-icon {
        width: 45px;
        height: 45px;
        left: -55px;
    }

    .logo-text {
        padding: 0.5rem 0.8rem;
    }

    .hero-title-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-logo {
        width: 150px;
        height: 150px;
    }

    .hero-content h1 {
        font-size: 3rem;
        letter-spacing: 4px;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero {
        padding: 80px 20px 60px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .application-form {
        padding: 2rem 1.5rem;
    }
}