/*=============================================
  1. CSS VARIABLES & GLOBAL RESETS
=============================================*/
:root {
    --primary-color: #2E7D32;   /* Green */
    --primary-color-dark: #256a28;
    --secondary-color: #F9A825; /* Gold/Amber */
    --secondary-color-dark: #e09920;
    --danger-color: #d32f2f;      /* Red for errors */

    --text-color-dark: #212121;
    --text-color-light: #616161;
    --text-color-white: #f8f9fa;
    --text-color-footer: rgba(255, 255, 255, 0.7);

    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --footer-bg: #222831;
    --border-color: #e0e0e0;
    --overlay-dark: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%);
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.06);

    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Nunito', sans-serif;

    --header-height: 70px;
    --container-width: 1200px;
    --container-padding: 20px;
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.7;
    color: var(--text-color-dark);
    background-color: var(--bg-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75em;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); } /* Responsive font size */
h2 { font-size: clamp(2rem, 4vw, 2.5rem); }
h3 { font-size: 1.4rem; font-weight: 600; }

p {
    margin-bottom: 1rem;
    color: var(--text-color-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}
a:hover { color: var(--secondary-color); }

ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: transparent; }

/*=============================================
  2. UTILITY CLASSES
=============================================*/
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.content-section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin: 0 auto 4rem;
    max-width: 700px;
}

.section-title {
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-color-light);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-speed) ease-in-out;
    text-align: center;
    letter-spacing: 0.5px;
}
.btn:hover { transform: translateY(-3px); }

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-color);
}
.btn-primary:hover {
    background-color: var(--primary-color-dark);
    color: var(--bg-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-color-dark);
}
.btn-secondary:hover {
    background-color: var(--secondary-color-dark);
    color: var(--text-color-dark);
}

/*=============================================
  3. LAYOUT: HEADER & NAVIGATION
=============================================*/
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: background-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.sticky-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo img {
    height: 55px;
}
.logo span {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-color-dark);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}
.nav-menu a {
    position: relative;
    padding: 5px 0;
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--text-color-light);
}
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transform: translateX(-50%);
    transition: width var(--transition-speed) ease;
}
.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}
.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    z-index: 1001;
}
.hamburger {
    position: relative;
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color-dark);
    transition: all 0.3s ease;
}
.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--text-color-dark);
    transition: all 0.3s ease;
}
.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

.menu-toggle.active .hamburger { background-color: transparent; }
.menu-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
.menu-toggle.active .hamburger::after { bottom: 0; transform: rotate(-45deg); }

/*=============================================
  4. PAGE SECTIONS
=============================================*/
/* Hero Section */
#hero {
    position: relative;
    height: calc(100vh - var(--header-height));
    min-height: 600px;
    color: var(--text-color-white);
    overflow: hidden;
}
.hero-slider .slide {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}
.hero-slider .slide.active { opacity: 1; z-index: 2; }
.hero-slider .slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--overlay-dark);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    animation: fadeInUp 1s ease-out forwards;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero-content h1 {
    color: var(--bg-color);
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
}
.hero-content p {
    font-size: 1.3rem;
    color: var(--text-color-white);
    max-width: 600px;
    margin: 0 auto 2rem;
}
.hero-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}
.hero-controls button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: var(--bg-color);
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    transition: background-color var(--transition-speed) ease;
}
.hero-controls button:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}
.about-text h3 { color: var(--primary-color); }
.about-values { display: flex; gap: 2rem; margin-top: 2.5rem; }
.value-item { text-align: center; }
.value-item i {
    display: block;
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}
.value-item span {
    font-family: var(--font-primary);
    font-weight: 600;
}

/* Work Section */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.work-item {
    padding: 2.5rem 2rem;
    text-align: center;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.work-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}
.work-icon i {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    font-size: 3rem;
    color: var(--primary-color);
    background-color: #e8f5e9;
    border-radius: 50%;
    transition: all var(--transition-speed) ease;
}
.work-item:hover .work-icon i {
    background-color: var(--primary-color);
    color: var(--bg-color);
    transform: rotate(15deg);
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}
.stat-number {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}
.stat-label {
    font-size: 1rem;
    letter-spacing: 1px;
    color: var(--text-color-light);
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}
.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: var(--text-color-white);
    background: var(--overlay-dark);
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h3, .gallery-overlay p {
    color: var(--bg-color);
    transform: translateY(10px);
    transition: transform 0.4s ease;
    margin-bottom: 0.25rem;
}
.gallery-overlay p {
    font-size: 0.9rem;
    color: var(--text-color-white);
    transition-delay: 0.1s;
}
.gallery-item:hover .gallery-overlay h3,
.gallery-item:hover .gallery-overlay p {
    transform: translateY(0);
}

/* Involved Section */
.involved-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.involved-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 2rem;
    text-align: center;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
}
.involved-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}
.involved-icon i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}
.involved-item p {
    flex-grow: 1; /* Makes paragraphs have equal height */
    margin-bottom: 1.5rem;
}

/* Projects & Donation Section */
#projects, #donate {
    background-color: var(--bg-light);
}

/* Partners Section */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}
.partner-logo img {
    max-width: 140px;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.4s ease-in-out;
}
.partner-logo:hover img {
    filter: none;
    opacity: 1;
    transform: scale(1.05);
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}
.contact-info h3 { color: var(--primary-color); }
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
}
.info-item i {
    font-size: 1.2rem;
    color: var(--secondary-color);
    width: 25px;
    text-align: center;
    margin-top: 0.2em;
}
.info-item p { margin-bottom: 0; }

/*=============================================
  5. COMPONENT STYLES
=============================================*/
/* Project Cards */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}
.project-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}
.project-image { height: 220px; overflow: hidden; }
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.project-card:hover .project-image img { transform: scale(1.05); }
.project-content { padding: 1.8rem; flex-grow: 1; display: flex; flex-direction: column; }
.project-title { color: var(--primary-color); }
.project-description { flex-grow: 1; }
.project-progress { margin-bottom: 1.5rem; }
.progress-bar-container {
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background-color: var(--secondary-color);
    border-radius: 4px;
}
.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-color-light);
}
.progress-stats strong { color: var(--primary-color); }
.project-donate-btn { margin-top: auto; }

/* Forms (Donation & Contact) */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group .error-message { /* Error styling for forms */
    color: var(--danger-color);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}
.form-group input.error {
    border-color: var(--danger-color);
}

.contact-form-wrapper {
    background-color: var(--bg-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}
.contact-form-wrapper h3, .donor-info h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
}
.contact-form-wrapper button { width: 100%; }

/* Donation Flow */
.donation-flow { position: relative; min-height: 500px; }
.donation-step { display: none; animation: fadeIn 0.5s ease; }
.donation-step.active { display: block; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.donor-info {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--bg-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}
.gender-options {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.gender-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
}
.gender-options input[type="radio"] { accent-color: var(--primary-color); }
.form-actions { text-align: center; margin-top: 2rem; }
.step-navigation { display: flex; justify-content: center; gap: 1.5rem; margin-top: 2.5rem; }

/* Donation Amount Picker */
.donate-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}
.donate-options {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}
.donate-options-title {
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}
.donate-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.btn-donate {
    padding: 12px;
    font-weight: 600;
    background-color: var(--bg-color);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
}
.btn-donate:hover { background-color: #e8f5e9; }
.btn-donate.active { background-color: var(--primary-color); color: var(--bg-color); }
.currency { font-size: 0.85rem; font-weight: normal; }

.custom-donate {
    position: relative;
    margin-bottom: 2.5rem; /* Space for error message */
}
#custom-amount-input { font-size: 16px; } /* Prevent iOS zoom */
.currency-label {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-color-light);
    pointer-events: none;
}
.custom-donate .error-message {
    position: absolute;
    bottom: -22px;
    left: 0;
    opacity: 0;
    transform: translateY(5px);
    transition: all var(--transition-speed) ease;
    user-select: none;
}
.custom-donate .error-message.show { opacity: 1; transform: translateY(0); }
.custom-donate input.error { border-color: var(--danger-color); }
.custom-donate input.error + .currency-label { color: var(--danger-color); }

/* QR Code Display */
.qr-code-display {
    text-align: center;
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    min-height: 440px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.qr-code-placeholder i { font-size: 3rem; color: var(--primary-color); margin-bottom: 1rem; }
#qr-image {
    max-width: 220px;
    margin: 0 auto 1.5rem;
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: var(--border-radius);
}
.bank-details {
    text-align: left;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
}
.bank-details p { font-size: 0.9rem; margin-bottom: 0.5rem; }
.payment-methods p { font-size: 0.9rem; margin-bottom: 0.5rem; color: var(--text-color-light); }
.payment-logos { display: flex; justify-content: center; gap: 1rem; }
.payment-logos img { height: 30px; }

/* Modals (Gallery & Thank You) */
.gallery-modal, .modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}
.gallery-modal.active, .modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.4s ease;
}
.modal-content {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-color-light);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s ease;
}
.close-modal:hover { color: var(--primary-color); }

/* Gallery Modal specific */
.gallery-modal .modal-content { background: transparent; padding: 0; box-shadow: none; max-width: 85%;}
.modal-caption { margin-top: 15px; color: var(--text-color-white); }
.modal-prev, .modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.4);
    transition: background-color var(--transition-speed);
}
.modal-prev:hover, .modal-next:hover { background-color: rgba(0, 0, 0, 0.7); }
.modal-prev { left: 15px; }
.modal-next { right: 15px; }

/* Thank You Modal specific */
.checkmark-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background-color: #e8f5e9;
    display: flex;
    justify-content: center;
    align-items: center;
}
.checkmark {
    width: 40px;
    height: 20px;
    border-left: 5px solid var(--primary-color);
    border-bottom: 5px solid var(--primary-color);
    transform: rotate(-45deg);
}
.donation-summary {
    background-color: var(--bg-light);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
    text-align: left;
}
.donation-summary p { margin-bottom: 0.5rem; }

/*=============================================
  6. LAYOUT: FOOTER
=============================================*/
footer {
    padding: 60px 0 0;
    background-color: var(--footer-bg);
    color: var(--text-color-footer);
    font-size: 0.95rem;
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 50px;
}
footer h3 {
    font-size: 1.2rem;
    color: var(--bg-color);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-about p { color: rgba(255, 255, 255, 0.6); }
.footer-links ul li { margin-bottom: 0.8rem; }
.footer-links ul a {
    color: var(--text-color-footer);
    transition: color var(--transition-speed), padding-left var(--transition-speed);
}
.footer-links ul a:hover {
    color: var(--secondary-color);
    padding-left: 8px;
}
.footer-contact p {
    display: flex;
    gap: 12px;
    margin-bottom: 1rem;
}
.footer-contact i {
    color: var(--secondary-color);
    margin-top: 5px;
    width: 16px;
    text-align: center;
}
.footer-bottom {
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/*=============================================
  7. OTHER COMPONENTS
=============================================*/
#backToTop {
    display: none;
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    width: 48px;
    height: 48px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 1.3rem;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) ease;
}
#backToTop.show {
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: visible;
    opacity: 1;
}
#backToTop:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-3px);
}

/*=============================================
  8. RESPONSIVE MEDIA QUERIES
=============================================*/
/* For Tablets */
@media (max-width: 992px) {
    .menu-toggle { display: block; }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 320px;
        height: 100vh;
        padding: calc(var(--header-height) + 40px) 30px;
        background-color: var(--bg-color);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        gap: 1.8rem;
        transition: right var(--transition-speed) cubic-bezier(0.77, 0, 0.175, 1);
    }
    .nav-menu.active { right: 0; }
    .nav-menu li a { font-size: 1.2rem; }

    .about-content, .contact-container {
        grid-template-columns: 1fr;
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    .footer-about, .footer-contact {
        grid-column: 1 / -1;
        text-align: center;
    }
    .footer-contact p { justify-content: center; }
}

/* For larger phones */
@media (max-width: 768px) {
    .content-section { padding: 60px 0; }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero-content p { font-size: 1.1rem; }

    .donate-container { grid-template-columns: 1fr; }
    .qr-code-display { min-height: auto; }
    .step-navigation { flex-direction: column; gap: 1rem; }
    .step-navigation .btn { width: 100%; }
}

/* For smaller phones */
@media (max-width: 576px) {
    .footer-content { grid-template-columns: 1fr; }
    .footer-links { text-align: center; }
    .donate-buttons { grid-template-columns: 1fr; }
}