:root {
    --primary: #1a936f;
    --primary-dark: #114b5f;
    --secondary: #f3e9d2;
    --accent: #f9a03f;
    --light: #f8f9fa;
    --dark: #212529;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    line-height: 1.7;
    background-color: var(--light);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.3;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* ======== Header & Time Display ======== */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.header-scrolled {
    padding: 15px 0;
    background-color: rgba(26, 147, 111, 0.98);
}

.header-scrolled .logo h1,
.header-scrolled nav a {
    color: white !important;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* Time and Date Display */

.time-date-container {
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    background-color: rgba(17, 75, 95, 0.9);
    color: white;
    text-align: center;
    padding: 10px 0;
    z-index: 999;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.header-scrolled+.time-date-container {
    top: 65px;
}

.time-display {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.date-display {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 3px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary);
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition);
}

nav {
    display: flex;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}


/* ======== Hero Section ======== */

.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(26, 147, 111, 0.9), rgba(17, 75, 95, 0.9)), url('https://images.unsplash.com/photo-1518544866330-95a2b41394b5?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding-top: 120px;
    /* Adjusted for time display */
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--light), transparent);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 150px;
    background: url('https://www.transparenttextures.com/patterns/water.png');
    opacity: 0.3;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
    box-shadow: 0 10px 20px rgba(249, 160, 63, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(249, 160, 63, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    margin-left: 15px;
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary);
}


/* ======== Story Section ======== */

.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent);
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.story-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.story-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.story-card-img {
    height: 200px;
    overflow: hidden;
}

.story-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.story-card:hover .story-card-img img {
    transform: scale(1.1);
}

.story-card-content {
    padding: 30px;
}

.story-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
}

.story-card h3 i {
    margin-right: 10px;
    color: var(--accent);
}


/* Highlight Box */

.highlight-box {
    background-color: rgba(26, 147, 111, 0.1);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 4px 4px 0;
}


/* ======== Budget Section ======== */

.budget-section {
    background-color: var(--secondary);
    position: relative;
    overflow: hidden;
}

.budget-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/fish-scale.png');
    opacity: 0.05;
    pointer-events: none;
}

.budget-container {
    background-color: white;
    border-radius: 15px;
    padding: 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.budget-header {
    text-align: center;
    margin-bottom: 40px;
}

.budget-header h3 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.budget-header p {
    max-width: 700px;
    margin: 0 auto;
}

.budget-table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
}

.budget-table thead {
    background-color: var(--primary);
    color: white;
}

.budget-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.budget-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.budget-table tr:last-child td {
    border-bottom: none;
}

.budget-table tr:hover {
    background-color: #f9f9f9;
}

.amount {
    font-weight: 700;
    color: var(--primary-dark);
    text-align: right;
}

.budget-total {
    font-weight: 700;
    font-size: 1.1rem;
    background-color: var(--secondary);
}

.budget-note {
    text-align: center;
    margin-top: 30px;
    font-style: italic;
    color: #666;
}


/* ======== Detailed Breakdown Section ======== */

.budget-category {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(26, 147, 111, 0.05);
    border-radius: 8px;
}

.budget-category h4 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.budget-summary-table {
    overflow-x: auto;
    margin: 30px 0;
}

.budget-summary-table table {
    width: 100%;
    border-collapse: collapse;
}

.budget-summary-table th {
    background: var(--primary);
    color: white;
    padding: 12px;
    text-align: left;
}

.budget-summary-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.budget-notes {
    background: var(--secondary);
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}


/* ======== Impact Section ======== */

.impact-section {
    background-color: var(--primary-dark);
    color: white;
}

.impact-section .section-title h2 {
    color: white;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.impact-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.impact-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.15);
}

.impact-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.impact-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}


/* ======== Progress Section ======== */

.progress-section {
    text-align: center;
}

.progress-container {
    max-width: 800px;
    margin: 0 auto;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 600;
}

.progress-bar-container {
    height: 30px;
    background-color: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--accent));
    width: 0;
    transition: width 1.5s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}


/* Fundraising Thermometer */

.thermometer {
    max-width: 600px;
    margin: 40px auto;
    position: relative;
}

.thermometer-body {
    height: 300px;
    width: 40px;
    background: linear-gradient(to top, #f0f0f0, #e0e0e0);
    border-radius: 20px;
    border: 3px solid var(--dark);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.thermometer-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10%;
    /* Update this percentage */
    background: linear-gradient(to top, var(--primary), var(--accent));
    transition: height 1s ease-out;
}

.thermometer-markings {
    position: absolute;
    left: 50px;
    top: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.thermometer-marking {
    display: flex;
    align-items: center;
}

.thermometer-marking span {
    margin-left: 10px;
    font-weight: bold;
}

.thermometer-bulb {
    width: 80px;
    height: 80px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    border-radius: 50%;
    margin: -20px auto 0;
    border: 3px solid var(--dark);
    position: relative;
    z-index: 2;
}

.updates-container {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.update {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.update:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.update-date {
    font-weight: 700;
    color: var(--primary);
    min-width: 100px;
}


/* ======== Donation Section ======== */

.donation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 2rem;
}

.donation-option {
    flex: 1;
    min-width: 250px;
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.donation-option:hover {
    transform: translateY(-10px);
}

.donation-option h3 {
    color: blue;
    margin-bottom: 1rem;
    font-weight: bold;
}

.donation-amount {
    font-size: 2rem;
    font-weight: bold;
    color: green;
    margin-bottom: 1rem;
}

.paypal-button {
    margin-top: 1rem;
}


/* ======== Gallery Section ======== */

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    aspect-ratio: 16/9;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}


/* Custom Donation Form */

.donation-flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
}

.qr-code-container {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.qr-code {
    width: 128px;
    height: 128px;
    margin: 0 auto;
    display: block;
    border: 1px solid #eee;
    padding: 10px;
    background: white;
    object-fit: contain;
}

.qr-code-label {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--dark);
}

.custom-amount-container {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

#custom-donation-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#custom-amount {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    max-width: 200px;
    min-width: 150px;
}


/* PayPal Button Styling */

.paypal-button {
    margin-top: 1rem;
}


/* ======== Donor Wall ======== */

.donor-wall-section {
    background-color: var(--secondary);
}

.donor-wall {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
}

.donor {
    background-color: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    font-weight: 600;
    color: var(--primary-dark);
}


/* ======== Contact Section ======== */

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.contact-info {
    background-color: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.contact-details {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-icon {
    font-size: 1.2rem;
    color: var(--accent);
    margin-right: 15px;
    margin-top: 5px;
}

.contact-form {
    background-color: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 147, 111, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}


/* Map styles */

.map-container {
    margin-top: 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}


/* Thank You Popup */

.thank-you-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.thank-you-popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.popup-content h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.close-popup {
    margin-top: 1.5rem;
}


/* ======== Footer ======== */

footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 80px 0 30px;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent);
}

.footer-column p {
    margin-bottom: 15px;
    opacity: 0.8;
}

.footer-column input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 5px;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}


/* ======== Responsive Design ======== */

@media (max-width: 992px) {
    .hero h2 {
        font-size: 3rem;
    }
    .section {
        padding: 80px 0;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        gap: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: var(--transition);
        z-index: 999;
    }
    nav.active {
        transform: translateY(0);
    }
    .hero {
        min-height: 600px;
        padding-top: 150px;
        /* Adjusted for mobile header and time display */
    }
    .hero h2 {
        font-size: 2.5rem;
    }
    .hero-content {
        text-align: center;
    }
    .btn-group {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .btn-outline {
        margin-left: 0;
    }
    .budget-container {
        padding: 30px 20px;
    }
    .section-title h2 {
        font-size: 2rem;
    }
    .donation-flex-container {
        flex-direction: column;
    }
    .time-date-container {
        top: 80px;
    }
    .header-scrolled+.time-date-container {
        top: 65px;
    }
}

@media (max-width: 576px) {
    .hero h2 {
        font-size: 2rem;
    }
    .logo h1 {
        font-size: 1.5rem;
    }
    .logo img {
        height: 40px;
    }
    .story-card-content {
        padding: 20px;
    }
    .budget-table th,
    .budget-table td {
        padding: 10px 5px;
        font-size: 0.9rem;
    }
    .update {
        flex-direction: column;
        gap: 10px;
    }
    .update-date {
        min-width: 100%;
    }
    .time-display {
        font-size: 1rem;
    }
    .date-display {
        font-size: 0.8rem;
    }
}