/*========================================================================
                           RESET & DEFAULTS
========================================================================*/

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: #f0f8ff;
    color: #333;
    padding-top: 80px; /* Adjust this value based on actual header height */
}

/*========================================================================
                           VARIABLES
========================================================================*/

:root {
    --primary-color: #007bff;
    --secondary-color: #e91e63;
    --dark-color: #333;
    --light-color: #f4f4f4;
    --white-color: #fff;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --spacing-unit: 1rem;
}

/*========================================================================
                           TYPOGRAPHY
========================================================================*/

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.2;
}

h1 {
    font-size: 3em;
}

h2 {
    font-size: 2.5em;
    margin-bottom: var(--spacing-unit);
}

h3 {
    font-size: 1.5em;
    margin-bottom: var(--spacing-unit);
}

p {
    font-size: 1.1em;
    margin-bottom: var(--spacing-unit);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

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

/*========================================================================
                           LAYOUT
========================================================================*/

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 2);
}

.content-section {
    padding: calc(var(--spacing-unit) * 4) 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
}

/*========================================================================
                           HEADER & FOOTER
========================================================================*/

header, footer {
    background-color: var(--white-color);
    padding: var(--spacing-unit) 0;
    box-shadow: var(--box-shadow);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: calc(var(--spacing-unit) * 0.5) 0; /* Adjusted padding */
    background-color: var(--white-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 2);
}

.logo-img {
    height: 70px; /* Adjusted height for GIF */
    width: auto; /* Maintain aspect ratio */
    max-width: 100%; /* Ensure responsiveness */
}

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

.nav-links li {
    margin-left: calc(var(--spacing-unit) * 2);
}

.nav-links a {
    font-weight: 600;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background: var(--dark-color);
}

.mobile-only {
    display: none;
}

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

.footer-logo {
    height: 60px;
    margin-bottom: var(--spacing-unit);
}

.footer-bottom {
    text-align: center;
    padding: var(--spacing-unit) 0;
    border-top: 1px solid var(--light-color);
}

footer {
    background-color: var(--primary-color);
    color: var(--white-color);
}

footer h1, footer h2, footer h3, footer h4, footer h5, footer h6 {
    color: var(--white-color);
}

footer a {
    color: var(--white-color);
    text-decoration: underline;
}

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

footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/*========================================================================
                           HERO SECTION
========================================================================*/

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('img/children.JPG') no-repeat center center/cover;
    color: var(--white-color);
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 4em;
    color: var(--white-color);
}

.hero-content p {
    font-size: 1.5em;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

/*========================================================================
                           BUTTONS
========================================================================*/

.cta {
    display: inline-block;
    padding: calc(var(--spacing-unit) * 1.2) calc(var(--spacing-unit) * 2.5);
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    color: var(--white-color);
}

.cta.secondary {
    background: #fff;
    color: var(--primary-color);
}

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


/*========================================================================
                           CARDS
========================================================================*/

.card {
    background: var(--white-color);
    padding: calc(var(--spacing-unit) * 2);
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    font-size: 1.5em;
    color: var(--dark-color);
    margin-bottom: var(--spacing-unit);
}

.card p {
    font-size: 1em;
    color: #666;
    line-height: 1.6;
}

/*========================================================================
                           FORMS
========================================================================*/

form {
    display: flex;
    flex-direction: column;
}

input, textarea {
    padding: var(--spacing-unit);
    margin-bottom: var(--spacing-unit);
    border: 1px solid #c2dfe4;
    border-radius: 5px;
}

/*========================================================================
                           MISC
========================================================================*/

#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5em;
    cursor: pointer;
    display: none;
    box-shadow: var(--box-shadow);
    transition: background-color 0.3s ease;
}

#back-to-top:hover {
    background-color: var(--secondary-color);
}

/*========================================================================
                           VIDEO MODAL
========================================================================*/

#video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.6s;
}

#video-modal.active {
    display: flex;
    animation: fadeIn 0.6s;
}

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

#video-modal .modal-content {
    position: relative;
    background: #fff;
    border-radius: 18px;
    padding: 0;
    max-width: 640px;
    width: 95%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    overflow: hidden;
    animation: popIn 0.5s;
}

@keyframes popIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

#close-video {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #2fa4da;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.7em;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(47,164,218,0.15);
    transition: background 0.2s;
    z-index: 2;
}

#close-video:hover {
    background: #007bff;
}

#video-modal video {
    width: 100%;
    border-radius: 0 0 18px 18px;
    display: block;
    background: #000;
}

@media (max-width: 700px) {
    #video-modal .modal-content {
        max-width: 98vw;
    }
}

/*========================================================================
                           UTILITIES
========================================================================*/

.text-center {
    text-align: center;
}

/*========================================================================
                           ABOUT PAGE
========================================================================*/

.about-hero {
    height: 50vh;
}

.impact-icon-modern {
    font-size: 2.5em;
    margin-bottom: var(--spacing-unit);
}

.impact-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary-color);
}

.impact-label {
    font-size: 1.2em;
    color: #666;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-item {
    padding: var(--spacing-unit) calc(var(--spacing-unit) * 4);
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: white;
    border: 4px solid var(--primary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.right::after {
    left: -16px;
}

.timeline-content {
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 3);
    background-color: white;
    position: relative;
    border-radius: 6px;
    box-shadow: var(--box-shadow);
}

.mvv-icon, .project-icon, .team-avatar {
    font-size: 3em;
    margin-bottom: var(--spacing-unit);
}

.team-name {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: calc(var(--spacing-unit) / 2);
}

.team-role {
    color: #777;
}

.team-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.team-member-card {
    text-align: center;
}

.team-member-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--spacing-unit);
    border: 4px solid var(--primary-color);
    box-shadow: var(--box-shadow);
}

.team-member-name {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: calc(var(--spacing-unit) / 2);
}

.team-member-role {
    color: #777;
    font-size: 1em;
    margin-bottom: var(--spacing-unit);
}

.team-member-description {
    font-size: 0.9em;
    color: #555;
    line-height: 1.5;
}

/*========================================================================
                           CONTACT PAGE
========================================================================*/

.contact-hero {
    height: 50vh;
}

.contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li {
    margin-bottom: var(--spacing-unit);
}

/*========================================================================
                           GET INVOLVED PAGE
========================================================================*/

.get-involved-hero {
    height: 50vh;
}

.involve-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.involve-icon {
    font-size: 3em;
    margin-bottom: var(--spacing-unit);
}

.cta-section {
    background: var(--primary-color);
    color: var(--white-color);
    padding: calc(var(--spacing-unit) * 3);
    border-radius: 15px;
    text-align: center;
    margin-top: calc(var(--spacing-unit) * 3);
}

.cta-section h2 {
    color: var(--white-color);
}

.cta-buttons {
    margin-top: calc(var(--spacing-unit) * 1.5);
}

.cta-buttons .cta {
    margin: 0 calc(var(--spacing-unit) / 2);
}

/*========================================================================
                           PARTNER PAGE
========================================================================*/

.partner-hero {
    height: 50vh;
}

.partner-grid {
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 2);
    align-items: start;
}

.partner-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-unit);
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.partner-option {
    background: var(--light-color);
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: var(--spacing-unit);
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.partner-option:hover {
    background-color: var(--secondary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
}

.partner-option .amount {
    font-size: 1.5em;
    font-weight: bold;
}

.custom-amount-group {
    margin-top: calc(var(--spacing-unit) * 1.5);
}

.payment-methods .payment-tab {
    margin-bottom: var(--spacing-unit);
}

.payment-details p {
    margin-bottom: var(--spacing-unit);
}

.upi-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-unit);
    margin-bottom: var(--spacing-unit);
}

.upi-qr {
    width: 150px;
    height: 150px;
}

.copy-btn {
    background: var(--secondary-color);
    color: var(--white-color);
    border: none;
    padding: calc(var(--spacing-unit) / 2) var(--spacing-unit);
    border-radius: 5px;
    cursor: pointer;
}

.bank-info {
    list-style: none;
    padding: 0;
    margin-bottom: var(--spacing-unit);
}

.tax-exemption {
    margin-top: calc(var(--spacing-unit) * 1.5);
    background: var(--light-color);
    padding: var(--spacing-unit);
    border-radius: 10px;
    text-align: center;
}

/*========================================================================
                           PROGRAMS PAGE
========================================================================*/

.programs-hero {
    height: 50vh;
}

.programs-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.program-icon {
    font-size: 3em;
    margin-bottom: var(--spacing-unit);
}

.cta-impact {
    text-align: center;
    margin-top: calc(var(--spacing-unit) * 3);
}

/*========================================================================
                           IMPACT PAGE
========================================================================*/

.impact-hero {
    height: 50vh;
}

.impact-cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-unit);
}

.video-section {
    padding: calc(var(--spacing-unit) * 4) 0;
}

.video-container {
    max-width: 800px;
    margin: auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.video-container video {
    width: 100%;
    display: block;
}

.stories-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/*========================================================================
                           RESPONSIVE
========================================================================*/

@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3.5em;
    }
    .hero-content p {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5em;
    }

    h2 {
        font-size: 2em;
    }

    .hero-content h1 {
        font-size: 3em;
    }

    .hero-content p {
        font-size: 1.2em;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item.left::after, .timeline-item.right::after {
        left: 15px;
    }

    .timeline-item.right {
        left: 0%;
    }

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

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background: var(--white-color);
        padding: var(--spacing-unit) 0;
    }

    .nav-links.active {
        display: flex;
        transform: translateX(0%);
    }

    .nav-links li {
        margin: var(--spacing-unit) 0;
        text-align: center;
    }

    .hamburger-menu {
        display: block;
        position: relative;
        z-index: 1001;
        width: 30px;
        height: 20px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        transition: transform 0.3s ease;
    }

    .hamburger-menu span {
        background: var(--dark-color);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .hamburger-menu.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-donate-btn {
        display: none;
    }

    .mobile-only {
        display: block;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.5em;
    }
    .hero-content p {
        font-size: 1em;
    }
}