/* Import base styles */
@import url('base.css');

/* Modern Navigation */
.modern-nav {
    background: rgba(17,60,116,255);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0;
    transition: var(--transition);
}

.logo-img {
    height: 90px;
    width: 90px;
    border-radius: 8px;
    object-fit: cover;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
}

.brand-tagline {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.7rem 1.2rem !important;
    border-radius: 8px;
    margin: 0 0.2rem;
    transition: var(--transition);
    position: relative;
}

.donate-btn {
    background: transparent !important;
    color: var(--white) !important;
    font-weight: 600;
    padding: 0.7rem 1.5rem !important;
    border-radius: 25px !important;
    margin-left: 1rem !important;
}

.donate-btn:hover {
    background: var(--secondary-color) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Modern Hero Section */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.8) 0%, rgba(59, 130, 246, 0.6) 100%);
    z-index: -1;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.floating-element {
    position: absolute;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    bottom: 30%;
    left: 5%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    top: 60%;
    right: 30%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    color: var(--white);
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.modern-btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary.modern-btn {
    background: var(--gradient-secondary);
    color: var(--white);
}

.btn-primary.modern-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-outline-light.modern-btn {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline-light.modern-btn:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Hero Image */
.hero-image-container {
    position: relative;
    z-index: 2;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 29, 98, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.hero-image-wrapper:hover .image-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: var(--white);
}

.floating-card {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 280px;
}

.card-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

.card-content h6 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.card-content p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Sections */
.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

/* Mission Overview */
.mission-overview {
    background: var(--light-bg);
    padding: 5rem 0;
}

.mission-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(30, 64, 175, 0.1);
}

.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.mission-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
}

.mission-icon.education {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.mission-icon.women {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.mission-icon.environment {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.mission-icon.health {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.mission-card h5 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.mission-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Impact Section */
.impact-section {
    padding: 5rem 0;
    background: var(--white);
}

.impact-content {
    padding-right: 2rem;
}

.impact-features {
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-right: 1rem;
    flex-shrink: 0;
}

.feature-content h6 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature-content p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

.impact-visual {
    position: relative;
}

.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 150px;
    gap: 1rem;
}

.grid-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.grid-item.large {
    grid-row: 1 / 3;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.grid-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline-primary.modern-btn {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline-primary.modern-btn:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-brand {
    margin-bottom: 2rem;
}

.footer-logo {
    height: 90px;
    width: 90px;
    border-radius: 8px;
    object-fit: cover;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-top: 1rem;
}

.footer h6 {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.contact-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: var(--secondary-color);
    color: var(--dark-bg);
    transform: translateY(-3px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0 1rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

/* Loading and Performance */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
.navbar-nav .nav-link:focus,
.modern-btn:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Mobile-First Base Styles */
@viewport {
    width: device-width;
    zoom: 1.0;
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        padding-top: 48px;
    }
    .modern-nav {
        position: fixed;
        width: 100%;
        top: 0;
        z-index: 1000;
        height: auto;
        padding: 0.25rem 0.5rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .brand-text {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.1rem;
    }
    .brand-name {
        font-size: 1.05rem;
        font-weight: 700;
    }
    .brand-tagline {
        font-size: 0.7rem;
        color: rgba(255,255,255,0.8);
        margin-top: 0.1rem;
    }
    .logo-img {
        height: 48px;
        width: 48px;
    }
    .navbar-toggler {
        font-size: 1.2rem !important;
        padding: 0.3rem 0.6rem !important;
        margin-right: 0;
        margin-left: auto;
        display: flex;
        align-items: center;
        order: 2;
    }
    .navbar-nav .nav-link {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.8rem;
        margin: 0.1rem 0;
    }
    .container, .container-fluid {
        padding-left: 4px;
        padding-right: 4px;
    }
    .hero-section {
        padding-top: 48px;
        min-height: 90vh;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .section-title {
        font-size: 2rem;
    }
}
@media (max-width: 576px) {
    body {
        padding-top: 40px;
    }
    .brand-name {
        font-size: 0.95rem;
    }
    .brand-tagline {
        font-size: 0.65rem;
    }
    .logo-img {
        height: 36px;
        width: 36px;
    }
    .navbar-toggler {
        font-size: 1rem !important;
        padding: 0.2rem 0.4rem !important;
    }
    .container, .container-fluid {
        padding-left: 2px;
        padding-right: 2px;
    }
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    .donate-btn {
        padding: 0.3rem 0.6rem !important;
        margin-left: 0.1rem !important;
    }
    .hero-subtitle {
        font-size: 0.85rem;
    }
    .section-title {
        font-size: 1.3rem;
    }
    .modern-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.7rem;
    }
    .mission-card {
        padding: 0.8rem 0.5rem;
    }
}

/* Improve touch targets */
a, button, input, textarea {
    touch-action: manipulation;
}

/* Optimize font loading */
body {
    font-display: swap;
}

.center-btn-sm {
    padding: 0.4rem 1.2rem !important;
    font-size: 0.95rem !important;
    border-radius: 20px !important;
}

.trust-indicators {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.trust-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: var(--transition);
    text-align: left;
}

.trust-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.trust-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-right: 1rem;
    flex-shrink: 0;
    font-size: 1.5rem;
}

.trust-card h6 {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.trust-card p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 992px) {
    .trust-indicators {
        flex-direction: column;
        gap: 1.2rem;
    }
    .trust-card {
        flex-direction: row;
        text-align: left;
        align-items: center;
    }
}
@media (max-width: 576px) {
    .trust-card {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 1.2rem;
    }
    .trust-icon {
        margin-right: 0;
        margin-bottom: 0.7rem;
    }
}