/* Base styles */
:root {
    --bg: #050507;
    --panel: rgba(18, 18, 22, 0.82);
    --accent: #58d68d;
    --muted: #cfd2dc;
    --card-border: rgba(255, 255, 255, 0.08);
    --shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
}

body {
    background: radial-gradient(circle at 20% 20%, rgba(88, 214, 141, 0.08), transparent 30%), radial-gradient(circle at 80% 0%, rgba(77, 127, 255, 0.1), transparent 28%), var(--bg);
    font-family: 'Ubuntu', sans-serif;
    color: var(--muted);
    user-select: none;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.content-container {
    width: min(1200px, 90%);
    margin: 0 auto;
}


/* Hero section */
.hero-section {
    min-height: 95vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('/static/ngo/second_landing_image.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 40px 0;
    position: relative;
    isolation: isolate;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(5, 5, 7, 0.9) 40%, rgba(5, 5, 7, 0.5) 70%, rgba(5, 5, 7, 0.25));
    z-index: -1;
}

.hero-text-col {
    width: 100%;
    max-width: 520px;
}

.hero-heading {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #f7f8fb;
    letter-spacing: 0.02em;
}

.hero-para {
    font-size: 1.625rem;
    margin-bottom: 1.5rem;
    color: var(--muted);
}

.hero-btn-main {
    background-color: #333333;
    border: 1px solid #333333;
    color: white;
    font-size: 1.25rem;
    padding: 12px 24px;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hero-btn-main:hover {
    background-color: #000000;
    border: 1px solid white;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.earth-container {
    text-align: center;
    overflow: hidden;
    max-width: 520px;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.earth-img {
    max-width: 100%;
    transition: transform 0.5s ease;
    display: block;
}

.earth-img:hover {
    transform: scale(1.2);
}

/* Who we are section */
.who-we-are-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 60px 0;
    color: white;
    background: linear-gradient(180deg, rgba(18, 18, 22, 0.9), rgba(5, 5, 7, 0.9));
}

.who-we-are-image {
    width: 80%;
    max-width: 300px;
    margin: 0 auto;
    transition: transform 0.3s ease;
    padding: 14px;
    border-radius: 18px;
}

.who-we-are-image:hover {
    transform: scale(1.05);
}

.who-we-are-image img {
    width: 100%;
    height: auto;
    display: block;
}

.description-para {
    font-size: 1.0625rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--muted);
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-left {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.btn-right {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* What we do section */
.what-we-do-section {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-image: url('Templates/Wallpaper_lockscreen 1.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 60px 0;
    position: relative;
    isolation: isolate;
}

.what-we-do-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 5, 7, 0.88), rgba(5, 5, 7, 0.92));
    z-index: -1;
}

.what-we-do-card {
    padding: 20px;
    transition: transform 0.5s ease;
    height: 100%;
}

.what-we-do-card:hover {
    transform: scale(1.05);
}

/* Card styles */
.card-link {
    color: white;
    text-decoration: none;
    display: block;
    height: 100%;
}

.card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--card-border);
    background-color: rgba(9, 9, 12, 0.7);
    border-radius: 14px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    height: 100%;
    backdrop-filter: blur(8px);
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.35);
}

.card-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 12px 12px 0 0;
    background-color: #0d0d10;
}

.card-title {
    font-size: 1.5rem;
    text-align: center;
    margin: 0;
    padding: 15px;
    color: white;
    background-color: rgba(37, 37, 38, 0.95);
    border-radius: 0 0 12px 12px;
    position: relative;
    z-index: 2;
    transition: background-color 0.3s ease;
}

.card:hover .card-title {
    background-color: rgba(0, 0, 0, 0.95);
    border: 1px solid rgb(179, 177, 177);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    padding: 20px;
    border-radius: 12px;
    z-index: 1;
    backdrop-filter: blur(6px);
}

.card:hover .card-overlay {
    opacity: 1;
}

.card-overlay p {
    font-size: 1rem;
    line-height: 1.5;
}

.stats-section {
    padding: 60px 0;
    color: #fff;
    background: radial-gradient(circle at 10% 10%, rgba(88, 214, 141, 0.1), transparent 30%), rgba(7, 7, 10, 0.95);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.stats-section h3 {
    color: #ffffff;
}

.stats-section p {
    font-size: 1.2rem;
    color: #ccc;
}


/* Responsive Media Queries */
/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .hero-heading {
        font-size: 2.5rem;
    }
    
    .hero-para {
        font-size: 1.5rem;
    }
    
    .description-para {
        font-size: 1rem;
    }
    
    .signature-font {
        font-size: 2.3rem;
    }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    .hero-heading {
        font-size: 2.25rem;
    }
    
    .hero-para {
        font-size: 1.35rem;
    }
    
    .hero-btn-main {
        font-size: 1.1rem;
        padding: 10px 20px;
    }
    
    .description-para {
        font-size: 0.95rem;
    }
    
    .signature-font {
        font-size: 2.1rem;
    }
    
    .card-title {
        font-size: 1.3rem;
        padding: 12px;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
    .content-container {
        width: 95%;
        padding: 0 10px;
    }
    
    .hero-section,
    .who-we-are-section,
    .what-we-do-section {
        padding: 40px 0;
    }
    
    .hero-heading {
        font-size: 2rem;
    }
    
    .hero-para {
        font-size: 1.2rem;
    }
    
    .description-para {
        font-size: 0.9rem;
    }
    
    .who-we-are-image {
        width: 60%;
        margin-bottom: 30px;
    }
    
    .signature-font {
        font-size: 1.9rem;
    }
    
    .what-we-do-card {
        padding: 15px;
    }
    
    .card-title {
        font-size: 1.2rem;
        padding: 10px;
    }
    
    .button-group {
        justify-content: center;
    }
    
    .hero-btn-main {
        width: 100%;
        max-width: 200px;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .hero-section {
        min-height: auto;
        padding: 60px 0 50px;
        text-align: center;
        overflow: hidden;
    }

    .hero-text-col {
        text-align: center;
        margin: 0 auto;
    }
    
    .hero-heading {
        font-size: 1.8rem;
    }
    
    .hero-para {
        font-size: 1.1rem;
    }
    
    .hero-btn-main {
        font-size: 1rem;
        padding: 8px 16px;
        width: 100%;
        max-width: 260px;
        border-radius: 999px;
        display: inline-block;
    }
    
    .description-para {
        font-size: 0.85rem;
    }
    
    .who-we-are-image {
        width: 50%;
        margin: 0 auto 20px;
    }
    
    .signature-font {
        font-size: 1.7rem;
    }

    .earth-container {
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        max-width: 280px;
    }
    
    .earth-img {
        width: 75%;
        margin: 0 auto;
    }

    .who-we-are-section {
        text-align: center;
    }

    .button-group {
        justify-content: center;
        width: 100%;
    }
    
    .button-group .hero-btn-main {
        max-width: 280px;
        border-radius: 999px;
    }
    
    .card-title {
        font-size: 1.1rem;
        padding: 8px;
    }
    
    .card-overlay p {
        font-size: 0.9rem;
    }
    
    .footer-col h3 {
        font-size: 1.3rem;
    }
    
    .footer-links li {
        margin-bottom: 8px;
    }
}

/* Very small devices (small portrait phones, less than 400px) */
@media (max-width: 399.98px) {
    .hero-heading {
        font-size: 1.6rem;
    }
    
    .hero-para {
        font-size: 1rem;
    }
    
    .description-para {
        font-size: 0.8rem;
    }
    
    .signature-font {
        font-size: 1.5rem;
    }
    
    .navbar-logo {
        width: 45px;
        height: 45px;
    }
    
    .card-title {
        font-size: 1rem;
    }
}
