/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styles */
body {
    font-family: 'Outfit', 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    background-color: #f7fafc;
    font-size: 16px;
    color: #2d3748;
}

/* Navigation styles (original design) */
nav {
    background: rgba(255, 255, 255, 0.85); /* Glassmorphism */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #1A4D4D;
    margin: 5px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-top: none;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: #1A4D4D;
    cursor: pointer;
    padding: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}

.nav-links li {
    margin: 0 10px;
}

.nav-links a {
    color: #1A4D4D;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    padding: 8px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    text-decoration: underline;
    color: #143737;
}

.nav-links a:focus {
    outline: 2px solid #23d331;
    outline-offset: 2px;
}

.donate-button {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 8px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.donate-button:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.donate-button:focus {
    outline: 2px solid #1A4D4D;
    outline-offset: 2px;
}

/* Section styles */
.hero, .about-section, .impact-section, .get-involved-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.about-section, .get-involved-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #bfdbfe 100%);
}

.impact-section {
    background: linear-gradient(135deg, #dcfce7 0%, #ecfdf5 100%);
}

/* Card Form Sections */
.card-section .section-content {
    background: rgba(255, 255, 255, 0.85); /* Glassmorphism */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.15);
    max-width: 900px;
    margin: 0 auto;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); box-shadow: 0 15px 50px rgba(16, 185, 129, 0.25); }
    100% { transform: translateY(0px); }
}

.card-section .section-content:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3);
    animation-play-state: paused;
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    /* CSS Slideshow removed due to JS implementation */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 2rem;
}

.hero .donate-button {
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
    display: inline-block;
}

/* About and Get Involved Sections (Non-Card) */

.section-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-content h2 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    width: 100%;
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 10px rgba(16, 185, 129, 0.2);
}

.text-content {
    flex: 1;
    min-width: 300px;
}

.section-image {
    flex: 1;
    max-width: 500px;
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.section-image:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.3);
}

/* Impact Section */
.impact-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat {
    text-align: center;
    min-width: 150px;
}

.progress-ring__circle {
    stroke-dasharray: 326.56;
    stroke-dashoffset: 326.56;
    transition: stroke-dashoffset 4s linear;
}

.stat.animated .progress-ring__circle {
    stroke-dashoffset: 0;
}

/* Buttons */
.learn-more-button {
    display: inline-block;
    background: linear-gradient(135deg, #1A4D4D 0%, #103333 100%);
    color: white;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 77, 77, 0.3);
}

.learn-more-button:hover {
    background: linear-gradient(135deg, #103333 0%, #0a2222 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 77, 77, 0.4);
}

.learn-more-button:focus {
    outline: 2px solid #23d331;
    outline-offset: 2px;
}

/* Footer Styles */
footer {
    background-color: #1A4D4D;
    color: white;
    padding: 2.5rem 1rem;
    margin-top: 0;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3 {
    border-bottom: 2px solid white;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.footer-section p, .footer-section ul {
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #a9dfbf;
}

.footer-section ul li a:focus {
    outline: 2px solid #23d331;
    outline-offset: 2px;
}

#map {
    height: 200px;
    width: 100%;
    margin-top: 1rem;
    border-radius: 10px;
}

.footer-bottom {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #1A4D4D;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.3s;
    z-index: 1000;
}

.scroll-to-top:hover {
    background-color: #143737;
    transform: scale(1.1);
}

.scroll-to-top:focus {
    outline: 2px solid #23d331;
    outline-offset: 2px;
}

.scroll-to-top::before {
    content: '↑';
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

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

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.animate-slide-up {
    opacity: 0;
    animation: slideUp 1s ease-out forwards;
}

.animate-scale {
    opacity: 0;
    animation: scaleIn 0.5s ease-out forwards;
}

.animated {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        padding: 1rem;
        border: 2px solid #1A4D4D;
        border-top: none;
        border-bottom-left-radius: 15px;
        border-bottom-right-radius: 15px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0.5rem 0;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .section-content {
        flex-direction: column;
        gap: 1rem;
    }

    .section-content h2 {
        font-size: 1.8rem;
    }

    .section-image {
        max-width: 100%;
    }

    .impact-stats {
        flex-direction: column;
    }

    .stat {
        min-width: 120px;
    }

    .footer-container {
        flex-direction: column;
    }

    .scroll-to-top {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}