/* Modern CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --font-base: 1rem;
    --font-lg: 1.125rem;
    --font-xl: 1.25rem;
    --font-2xl: 1.5rem;
    --font-3xl: 2rem;
    --font-4xl: 2.5rem;
    --font-5xl: 3rem;
    --primary-color: #FF6D00;
    --primary-light: #FF8F00;
    --primary-dark: #E65100;
    --white-color: #fff;
    --secondary-color: #020D19;
    --dark-color: #111111;
    --dark-bg: rgba(20, 20, 20, 0.95);
    --gray-light: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    color: var(--white-color);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Main Header Styles */
.main-header {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.main-header::before {
    content: '';
    position: fixed;
    /* Changed from absolute to fixed */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3)),
        url('./Images/hero-bg.jpg') center/cover no-repeat;
    z-index: -1;
}

/* Navbar Styles */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 5%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(3px);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.5rem 5%;
    background: rgba(0, 0, 0, 0.558) !important;
    backdrop-filter: blur(25px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav-left .logo {
    max-height: 60px;
    transition: transform 0.3s ease;
}

.nav-left .logo:hover {
    transform: scale(1.05);
}

/* Desktop Navigation */
.nav-middle {
    flex: 1;
    display: flex;
    justify-content: center;
}

.desktop-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.desktop-menu>li {
    position: relative;
}

.desktop-menu a {
    color: var(--white-color);
    text-decoration: none;
    font-size: var(--font-lg);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.desktop-menu a:hover {
    color: var(--primary-color);
}

/* Desktop Dropdown - Improved */
.desktop-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-bg);
    min-width: 220px;
    padding: 10px 0;
    border-radius: 0.5rem;
    display: none;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.desktop-menu>li:hover .desktop-dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.desktop-menu>li {
    position: relative;
    padding-bottom: 5px;
}

.desktop-menu>li:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

.desktop-dropdown-menu li {
    list-style: none;
    /* Ensure no bullet points */
}

.desktop-dropdown-menu li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--white-color);
    transition: var(--transition);
    font-size: var(--font-base);
    margin: 0 10px;
    border-radius: 4px;
    text-decoration: none;
}

.desktop-dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
    padding-left: 1.75rem;
}

/* nav Right  */
/* Contact Info Styles */
.nav-right .contact-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--white-color);
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.nav-right .contact-info i {
    font-size: 2rem;
    color: var(--primary-color);
}

.nav-right .contact-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.nav-right .first-line {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 1px;
    font-style: italic;
    opacity: 0.9;
}

.nav-right .second-line {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Mobile Navigation */
.mobile-nav-container {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    z-index: 100000;
    display: flex;
    flex-direction: column;
    padding: 0;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.65, 0.05, 0.36, 1);
    overflow-y: auto;
}

.mobile-nav-container.active {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-logo {
    max-height: 50px;
    filter: brightness(0) invert(1);
}

.mobile-close-btn {
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.mobile-close-btn:hover {
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.2);
}

/* Mobile Menu */
.nav-menu {
    list-style: none;
    padding: 1.5rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-menu li {
    animation: slideIn 0.3s ease forwards;
    opacity: 0;
}

.nav-menu li a {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: white;
    font-size: var(--font-xl);
    padding: 1rem;
    border-radius: 0.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    font-weight: 500;
}

.nav-menu li a:before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    z-index: -1;
}

.nav-menu li a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.nav-menu li a:hover:before {
    left: 0;
}

.nav-menu li a i {
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
}

/* Mobile Dropdown */
.dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    cursor: pointer;
}

.dropdown-icon {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.dropdown.active .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    list-style: none;
    padding-left: 2.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.dropdown.active .dropdown-menu {
    max-height: 500px;
    padding: 0.5rem 0 0.5rem 2.5rem;
}

.dropdown-menu li a {
    font-size: var(--font-lg);
    padding: 0.8rem 1rem;
    opacity: 0.9;
}

/* Mobile Donate Button */
.mobile-donate-btn {
    margin-top: 1.5rem;
}

.mobile-donate-btn .donate-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    background: white;
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 1rem;
    transition: var(--transition);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.mobile-donate-btn .donate-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Social Links */
.mobile-social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem 0 1rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-social-links a {
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.mobile-social-links a:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
    color: var(--white-color);
}

/* Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.65, 0.05, 0.36, 1);
    transform-origin: center;
}

.hamburger.active .line-1 {
    transform: translateY(9.5px) rotate(45deg);
}

.hamburger.active .line-2 {
    opacity: 0;
}

.hamburger.active .line-3 {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* Hero Section */
.hero {
    height: calc(100%);
    padding-top: 80px;
    padding-left: 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 90%;
    position: relative;
    z-index: 1;
    /* background-color: red; */
}

.hero-content h3 {
    font-size: var(--font-xl);
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    color: var(--white-color);
    text-transform: uppercase;
    font-weight: 500;
}

.hero-content i {
    color: var(--primary-color);
    margin-right: 10px;
}

.hero-content h1 {
    font-size: var(--font-5xl);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-content h1 strong {
    color: var(--primary-color);
}

.hero-content p {
    margin: 0 auto 2.5rem 0;
    font-size: var(--font-xl);
    letter-spacing: 0.5px;
    max-width: 600px;
    opacity: 0.9;
    line-height: 1.7;
}

.hero-donate-btn {
    background: linear-gradient(to right, var(--secondary-color) 50%, var(--primary-color) 50%);
    background-size: 200% 100%;
    background-position: right;
    color: white;
    padding: 1rem 2rem;
    border: none;
    text-decoration: none;
    font-size: var(--font-lg);
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.5s ease-in-out;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.hero-donate-btn i {
    color: var(--white-color);
    transition: transform 0.3s ease;
}

.hero-donate-btn:hover {
    background-position: left;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hero-donate-btn:hover i {
    transform: translateX(3px);
}

.notes {
    display: flex;
    flex-direction: row;
    padding: 10px 0px;
    margin-top: 15px;
    gap: 25px;

}

.notes h3 {
    font-size: var(--font-xl);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    color: var(--white-color);
    text-transform: uppercase;
    font-weight: 500;
}

/* about Us section css  */
.aboutUs {
    width: 100%;
    padding: 7rem 10%;
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: center;
    overflow: hidden;
    background-color: #fff;
}

.aboutUs-Image-container {
    width: 100%;
    max-width: 600px;

}

.image-container {
    width: 100%;
    aspect-ratio: 1/1;
    position: relative;
    background-color: #ffff;

}

/* Main image now on the right */
.main-image {
    width: 80%;
    height: 60%;
    position: absolute;
    top: 0;
    right: 0;
    background-color: transparent;
    z-index: 1;
    opacity: 0;
    clip-path: polygon(0 0, 0% 0, 0% 100%, 0% 100%);
    transition: clip-path 1.5s ease-in-out, opacity 0.5s ease-in-out;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Secondary image now on the left */
.secondary-image {
    width: 70%;
    height: 60%;
    position: absolute;
    top: 35%;
    left: -1%;
    background-color: #ffff;
    border: 15px solid white;
    border-radius: 10px;
    z-index: 2;
    opacity: 0;
    clip-path: polygon(0 0, 0% 0, 0% 100%, 0% 100%);
    transition: clip-path 1.5s ease-in-out 0.2s, opacity 0.5s ease-in-out 0.2s;
}

.secondary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Third image in the middle */
.third-image {
    width: 30%;
    height: 30%;
    position: absolute;
    bottom: 7%;
    right: 0%;
    border-radius: 10px;
    z-index: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 7px;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to right, var(--primary-color) 50%, var(--secondary-color) 50%);
    background-size: 200% 100%;
    background-position: right;
    transition: all 0.5s ease-in-out;
    opacity: 0;
    clip-path: polygon(0 0, 0% 0, 0% 100%, 0% 100%);
    transition: clip-path 1.5s ease-in-out 0.4s, opacity 0.5s ease-in-out 0.4s, transform 0.5s ease-in-out, background-position 0.5s ease-in-out;
}

.third-image:hover {
    background-position: left;
    transform: translateY(-2px);
}

.funded-text {
    display: flex;
    flex-direction: column;
    gap: 0px;
    align-items: center;
}

.third-image svg {
    width: 50px;
    height: auto;
}

.third-image h3 {
    padding: 0;
    margin: 0;
    font-size: clamp(14px, 2.5vw, 18px);
    font-weight: 500;
    color: #ffff;
}

.aboutUs-Text-container {
    width: 100%;
    max-width: 600px;
    padding: 10px;
    color: var(--secondary-color);
}

.text-title {
    display: flex;
    flex-direction: row;
    gap: 5px;
    margin-bottom: 25px;
    align-items: center;
}

.text-title h3 {
    margin: 0;
    padding: 0;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--secondary-color);
    font-size: var(--font-lg);
}

.aboutUs-Text-container h1 {
    margin: 0;
    padding: 0;
    color: var(--secondary-color);
    font-size: var(--font-4xl);
    line-height: 1.2em;
    margin-bottom: 15px;
}

.aboutUs-Text-container p {
    margin: 0;
    padding: 0;
    font-size: var(--font-base);
    line-height: 1.8em;
    margin-bottom: 15px;
    color: #555;
}

.small-card {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px 5px;
    margin-top: 25px;
    border-bottom: 2px solid #020d1916;
}

.small-card svg {
    color: #E65100;
    width: 50px;
    height: auto;
}

.small-card h3 {
    margin: 0;
    padding: 0;
    font-size: var(--font-2xl);
    font-weight: 700;
    line-height: 1.2em;
}

.small-card p {
    margin: 0;
    padding: 0;
    font-size: var(--font-base);
    font-weight: 400;
    line-height: 1.8em;
    color: #555;
}

.about-us-btn {
    margin-top: 25px;
    background: linear-gradient(to right, var(--secondary-color) 50%, var(--primary-color) 50%);
    background-size: 200% 100%;
    background-position: right;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    text-decoration: none;
    font-size: var(--font-lg);
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.5s ease-in-out;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.about-us-btn i {
    color: var(--white-color);
    transition: transform 0.3s ease;
    font-size: var(--font-base);
}

.about-us-btn:hover {
    background-position: left;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.about-us-btn:hover i {
    transform: translateX(3px);
}

/* Animation classes */
.animate-image {
    opacity: 1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* Responsive Adjustments */
@media (min-width: 1025px) {
    .navbar {
        padding: 0.75rem 10%;
    }

    .navbar.scrolled {
        padding: 0.5rem 10% !important;
    }

    .hamburger {
        display: none;
    }

    .mobile-nav-container {
        display: none;
    }

    .hero {
        max-width: 60%;
        padding-left: 10%;
    }

    .hero-content h1 {
        font-size: var(--font-5xl);
        line-height: 1.3;
    }
}

@media (max-width: 1024px) {
    .nav-middle {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-right {
        display: none;
    }

    .hero-content h1 {
        font-size: var(--font-4xl);
    }

    .hero-content p {
        font-size: var(--font-lg);
    }

    .hero-donate-btn {
        padding: 0.875rem 1.75rem;
        font-size: var(--font-base);
    }

    .navbar.scrolled {
        padding: 0.5rem 5% !important;
        background-color: #020d199b !important;
        backdrop-filter: blur(25px);
    }

    /* about us section  */
    .aboutUs {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        padding: 3rem 5%;
    }

    .aboutUs-Image-container {
        flex: 1;
        max-width: none;
        order: 0;
    }

    .aboutUs-Text-container {
        flex: 1;
        max-width: none;
        padding: 10px 0px;
        order: 1;
    }

    .aboutUs-Text-container h1 {
        font-size: 26px;
    }

    .aboutUs-Text-container p {
        font-size: 16px;
    }


    .third-image svg {
        width: 40px;
    }

    .third-image h3 {
        font-size: clamp(12px, 3vw, 18px);
    }
}

@media (max-width: 480px) {
    .mobile-nav-container {
        width: 100%;
    }

    .hero {
        padding-top: 70px;
    }

    .hero-content h1 {
        font-size: var(--font-3xl);
    }

    .hero-content h3 {
        font-size: var(--font-base);
    }

    .hero-content p {
        font-size: var(--font-base);
    }
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utility Classes */
.no-scroll {
    overflow: hidden;
}

/* Staggered animations for menu items */
.nav-menu li:nth-child(1) {
    animation-delay: 0.1s;
}

.nav-menu li:nth-child(2) {
    animation-delay: 0.2s;
}

.nav-menu li:nth-child(3) {
    animation-delay: 0.3s;
}

.nav-menu li:nth-child(4) {
    animation-delay: 0.4s;
}

.nav-menu li:nth-child(5) {
    animation-delay: 0.5s;
}

.nav-menu li:nth-child(6) {
    animation-delay: 0.6s;
}

.nav-menu li:nth-child(7) {
    animation-delay: 0.7s;
}

.nav-menu li:nth-child(8) {
    animation-delay: 0.8s;
}