/* Root Variables (CSS Custom Properties) */
:root {
    --primary-color: #007bff;
    --secondary-color: #0056b3;
    --text-color: #333;
    --background-color: #f8f9fa;
    --light-text-color: #fff;
    --footer-background-color: #333;
    --font-family: 'Poppins', sans-serif;
    --transition-duration: 0.3s;
    --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    --border-radius: 5px;
    --header-height: 80px; /* Define header height for consistent spacing */
}

/* General Styles */
body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    opacity: 0; /* Initially hide content */
    animation: fadeInBody 0.6s forwards ease-in-out 0.2s; /* Fade-in animation */
}

/* Fade-in animation for the body */
@keyframes fadeInBody {
    to {
        opacity: 1;
    }
}

/* smooth transition */
body {
    transition: opacity var(--transition-duration) ease-in-out;
}

/* Fade out when navigating */
body.fade-out {
    opacity: 0;
}

/* Background image optimization */
body::before {
    content: ""; /* Required for pseudo-elements */
    position: fixed; /* Cover the entire viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(Donate\ Photo.jpg);
    background-size: cover; /* Cover the viewport */
    background-repeat: no-repeat;
    background-position: center center;
    opacity: 0.1; /* Adjust opacity for the background image */
    z-index: -1; /* Place behind all other content */
}

/* Enhanced container styling (consider using rem for font size for accessibility) */
.container {
    width: 100%; /* Use percentage for responsiveness */
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex; /* Use flexbox for easy vertical centering */
    flex-direction: column; /* Stack elements vertically */
}

/* Link styles */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-duration) ease;
}

a:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

/* Header Styles */
header {
    position: absolute; /* Changed to fixed for consistent position */
    top: 0;
    left: 0;
    width: 100%;
    background: transparent; /* Kept Transparent for Overlap*/
    color: var(--text-color);
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* Soft thin border */
    box-shadow: var(--box-shadow); /* Gentle depth effect */
    opacity: 0; /*Hide Initially for transition*/
    animation: fadeInHeader 0.6s forwards ease-in-out 0.3s; /* Fade-in animation */
    height: var(--header-height);
}

/* Fade-in animation for the Header */
@keyframes fadeInHeader {
    to {
        opacity: 1;
    }
}

.logo {
    font-size: 1.4rem;
    font-weight: 900;
    padding-left: 20px;
}

.logo i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* Imported Font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat+Alternates:wght@500&display=swap');

.cursive-green {
    font-family: 'Montserrat Alternates', sans-serif;
    color: var(--primary-color);
    font-weight: 600;
}

nav ul {
    list-style: none;
    padding-right: 20px;
    margin: 0;
    display: flex;
}

nav li {
    margin-left: 2rem;
}

nav a {
    color: var(--text-color);
    font-weight: 500;
    transition: color var(--transition-duration) ease;
    text-shadow: 0.5px 0.5px 3px rgba(0, 0, 0, 0.3);
}

nav a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

nav a.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Donation Page Specific Styles */
.donation-hero {
    background-color: transparent; /* Keep Transparent and blended */
    color: var(--text-color);
    text-align: center;
    padding: 5rem 2rem;
    margin-top: var(--header-height); /* Adjust to account for fixed header */
    opacity: 0; /*Hide Initially for transition*/
    animation: fadeInHero 0.6s forwards ease-in-out 0.4s; /* Fade-in animation */
}

/* Fade-in animation for the Hero section */
@keyframes fadeInHero {
    to {
        opacity: 1;
    }
}

.donation-content h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
}

.donation-content p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    color: var(--text-color);
}

.donation-options {
    text-align: center;
    padding: 3rem rem;
    opacity: 0; /*Hide Initially for transition*/
    animation: fadeInOptions 0.6s forwards ease-in-out 0.5s; /* Fade-in animation */
}

/* Fade-in animation for the Options section */
@keyframes fadeInOptions {
    to {
        opacity: 1;
    }
}

.donation-amounts {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.amount-button {
    background-color: var(--light-text-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-duration) ease;
}

.amount-button:hover,
.amount-button.selected {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border: none;
}

.custom-amount {
    background-color: #f0f0f0;
    color: var(--text-color);
    border: 1px solid #ccc;
}

#customAmount {
    border-radius: 30px;
}

.custom-donation-input {
    margin-bottom: 2rem;
}

.custom-donation-input label {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.custom-donation-input input[type="number"] {
    padding: 0.7rem 1rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    width: 200px;
    max-width: 100%;
    margin: 0 auto;
    display: block;
}

.donate-button {
    background: linear-gradient(135deg, #0b4c92, #00d4ff);
    color: var(--light-text-color);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all var(--transition-duration) ease-in-out;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.12);
}

.donate-button:hover {
    background: linear-gradient(135deg, var(--secondary-color), #009dff);
    transform: scale(1.06);
}
#payment-link :hover{
    text-decoration: none;

}

.impact-section {
    padding: 3rem 2rem;
    text-align: center;
    background-color: transparent; /* Keep Transparent and blended */
    opacity: 0; /*Hide Initially for transition*/
    animation: fadeInImpact 0.6s forwards ease-in-out 0.6s; /* Fade-in animation */
}

/* Fade-in animation for the Impact section */
@keyframes fadeInImpact {
    to {
        opacity: 1;
    }
}

.impact-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.impact-section ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.impact-section li {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 500;
}

.impact-section i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--primary-color);
}

.partners-section {
    padding: 3rem 2rem;
    text-align: center;
    background-color: transparent; /* Keep Transparent and blended */
    opacity: 0; /*Hide Initially for transition*/
    animation: fadeInPartners 0.6s forwards ease-in-out 0.7s; /* Fade-in animation */
}

/* Fade-in animation for the Partners section */
@keyframes fadeInPartners {
    to {
        opacity: 1;
    }
}

.partners-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.partners-section p {
    margin-bottom: 2rem;
}

.partners-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.partners-grid img {
    width: 150px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Footer Styles */
footer {
    background-color: var(--footer-background-color);
    opacity: 0;
    color: var(--light-text-color);
    text-align: center;
    padding: 3rem 0;
    margin-top: 3rem;
    border-top: 3px solid #444;
    position: relative;
    overflow: hidden;
    animation: fadeInFooter 0.6s forwards ease-in-out 0.8s; /* Fade-in animation */
}

@keyframes fadeInFooter {
    to {
        opacity: 1;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-section {
    text-align: left;
}

.footer-section h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--light-text-color);
    border-bottom: 2px solid #777;
    padding-bottom: 0.5rem;
}

/* About Section */
.footer-section.about .footer-logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--light-text-color);
}

.footer-section.about p {
    font-size: 0.9rem;
    color: #ddd;
    line-height: 1.6;
}

.footer-section.about .contact span {
    display: block;
    margin-bottom: 0.5rem;
    color: #ddd;
}

/* Social Icons */
.footer-section.about .socials a {
    display: inline-block;
    margin-right: 0.5rem;
    font-size: 1.1rem;
    color: var(--light-text-color);
    transition: color var(--transition-duration) ease;
}

.footer-section.about .socials a:hover {
    color: var(--primary-color);
}

/* Links Section */
.footer-section.links ul {
    list-style: none;
    padding: 0;
}

.footer-section.links ul li {
    margin-bottom: 0.7rem;
}

.footer-section.links ul li a {
    color: #ddd;
    text-decoration: none;
    transition: color var(--transition-duration) ease;
}

.footer-section.links ul li a:hover {
    color: var(--light-text-color);
}

/* Contact Form */
.footer-section.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-section.contact-form form input.contact-input,
.footer-section.contact-form form textarea.contact-input {
    background: #444;
    color: #ddd;
    border: none;
    border-radius: var(--border-radius);
    padding: 0.7rem;
    font-size: 1rem;
    transition: background-color var(--transition-duration) ease;
    width: 100%;
}

.footer-section.contact-form form textarea.contact-input {
    resize: vertical;
    min-height: 100px;
}

.footer-section.contact-form form input.contact-input:focus,
.footer-section.contact-form form textarea.contact-input:focus {
    outline: none;
    background-color: #555;
}

.footer-section.contact-form form button.btn {
    background: var(--primary-color);
    color: var(--light-text-color);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    transition: color var(--transition-duration), background-color var(--transition-duration);
    width: auto;
    align-items: baseline;
}

.footer-section.contact-form form button.btn:hover {
    background-color: var(--secondary-color);
}

/*Footer Bottom*/
.footer-bottom {
    padding: 1rem;
    font-size: 0.9rem;
    color: #ccc;
}

/* Media Queries for Responsiveness */

/* Small screens (phones) */
@media (max-width: 576px) {
    .logo {
        font-size: 1.2rem;
    }

    nav ul {
        padding-right: 10px;
    }

    nav li {
        margin-left: 1rem;
    }

    .donation-content h1 {
        font-size: 2.2rem;
    }

    .donation-content p {
        font-size: 1rem;
    }

    .impact-section ul {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .partners-grid img {
        width: 100px;
    }
}

/* Medium screens (tablets) */
@media (min-width: 577px) and (max-width: 992px) {
    .logo {
        font-size: 1.3rem;
    }

    .donation-content h1 {
        font-size: 2.5rem;
    }

    .donation-content p {
        font-size: 1.1rem;
    }
}