/* --- Base Reset & Variables --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #0c0d12;
    --card-bg: #12141c;
    --primary-orange: #ff7a00;
    --primary-hover: #e06b00;
    --text-white: #ffffff;
    --text-gray: #a3a3a3;
    --text-light: #e5e7eb;
    --font-title: 'Cinzel', serif;
    --font-serif: 'Lora', serif;
    --font-sans: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-light);
    font-family: var(--font-sans);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-family: 'Cinzel', serif;
}

.logo-area { 
    display: flex; 
    align-items: center; 
    gap: 10px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-icon img {    
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.brand-name { 
    color: #ea580c; 
    font-size: 1.25rem; 
    font-weight: 700;
    font-family: 'Cinzel', serif;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: #ea580c;
    cursor: pointer;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-family: 'Cinzel', serif;
}

.nav-links a:hover { 
    color: #ea580c;
}

.nav-links li {
    position: relative; 
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #1e293b; 
    min-width: 180px; 
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.3); 
    list-style: none;
    padding: 6px 0;
    margin: 0;
    z-index: 100;
    top: 100%;
    left: 0;
    border-radius: 6px; 
    border-top: 3px solid #ea580c; 
}

.dropdown-content li {
    width: 100%;
}

.dropdown-content li a {
    color: #f1f5f9; 
    padding: 12px 18px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-content li a:hover {
    background-color: #f1f1f1;
    color: #e67e22;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Buttons */
.btn-donate {
    background: #ea580c;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
}

/* --- Layout Grids --- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* --- 1. Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    padding: 48px 16px;
    background-image: linear-gradient(to bottom, rgba(12, 13, 18, 0.4), rgba(12, 13, 18, 0.95)), url('background.png');
    background-size: cover;
    background-position: center;
}

.sub-title {
    color: var(--primary-orange);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 34px;
    font-weight: 600;
    font-family: var(--font-title);
    display: block;
    margin-bottom: 8px;
}

.line {
    width: 64px;
    height: 1px;
    background-color: var(--primary-orange);
    margin: 0 auto;
}

.main-heading {
    font-family: var(--font-title);
    font-size: 56px;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.2;
    margin-bottom: 16px;
}

.highlight {
    color: var(--primary-orange);
}

.hero-desc {
    color: #d1d5db;
    max-width: 600px;
    margin: 0 auto;
    font-size: 18px;
    font-family: var(--font-serif);
    font-style: italic;
    line-height: 1.6;
}

.scroll-down {
    cursor: pointer;
    animation: bounce 2s infinite;
}

.scroll-down i {
    color: var(--primary-orange);
    font-size: 28px;
}

/* --- 2. About Mission Section --- */
.mission-about {
    padding: 80px 0;
}

.image-side {
    position: relative;
    display: flex;
    justify-content: center;
}

.blur-bg {
    position: absolute;
    inset: 0;
    background: rgba(255, 122, 0, 0.1);
    filter: blur(60px);
    border-radius: 50%;
    width: 280px;
    height: 280px;
    margin: auto;
}

.leader-img {
    position: relative;
    z-index: 10;
    border-radius: 8px;
    width: 100%;
    max-width: 350px;
    border: 1px solid rgba(255, 122, 0, 0.2);
    object-fit: cover;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s ease;
}

.leader-img:hover {
    transform: scale(1.05);
}

.section-title {
    color: var(--primary-orange);
    font-size: 28px;
    font-family: var(--font-title);
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

.short-line {
    width: 48px;
    height: 2px;
    background-color: var(--primary-orange);
    margin-bottom: 24px;
}

.text-side p {
    color: var(--text-gray);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.text-side .bold-p {
    color: var(--text-light);
    font-weight: 500;
}

/* --- 3. Core Pillars (Cards with BG Images) --- */
.pillars {
    padding: 48px 0;
}

.card {
    position: relative;
    border: 1px solid rgba(154, 52, 18, 0.3);
    border-radius: 12px;
    height: 380px; 
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    background-size: cover;
    background-position: center;
}

.card-edu {
    background-image: url('1STSURVEY08.jpeg');
}

.card-food {
    background-image: url('WORK06.jpeg');
}

.card-spiritual {
    background-image: url('DISTRIBUTION.jpeg');
}

.card-rural {
    background-image: url('RURAL.jpeg');
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(12, 13, 18, 0.65), rgba(12, 13, 18, 0.92));
    z-index: 1;
    transition: background 0.4s ease;
}

.card:hover .card-overlay {
    background: linear-gradient(to bottom, rgba(12, 13, 18, 0.5), rgba(12, 13, 18, 0.85));
}

.card:hover {
    border-color: rgba(255, 122, 0, 0.6);
    transform: translateY(-8px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.7);
}

.card-content {
    position: relative;
    z-index: 2; 
    padding: 24px;
    text-align: center;
    width: 100%;
}

.icon-box {
    width: 56px;
    height: 56px;
    background-color: var(--primary-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    box-shadow: 0 10px 15px -3px rgba(255, 122, 0, 0.3);
    transition: transform 0.4s ease;
}

.card:hover .icon-box {
    transform: rotate(12deg) scale(1.05);
}

.icon-box i {
    color: var(--text-white);
    font-size: 20px;
}

.card h3 {
    color: var(--text-white);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.card p {
    color: #cbd5e1; 
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.card-line {
    width: 32px;
    height: 2px;
    background-color: #c2410c;
    margin: 0 auto;
    transition: all 0.4s ease;
}

.card:hover .card-line {
    width: 64px;
    background-color: var(--primary-orange);
}

/* --- 4. Quote Section --- */
.quote-section {
    padding: 48px 0;
}

.quote-box {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background-image: linear-gradient(to right, rgba(12, 13, 18, 0.9), rgba(12, 13, 18, 0.4)), url('vivekanandanew02.png');
    background-size: cover;
    background-position: center;
    height: 224px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 64px;
    border: 1px solid rgba(154, 52, 18, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.quote-mark {
    font-family: var(--font-serif);
    font-size: 36px;
    color: var(--primary-orange);
    line-height: 1;
    display: block;
}

.quote-box blockquote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 24px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.quote-box cite {
    color: var(--primary-orange);
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    letter-spacing: 1px;
}

/* --- 5. Our Impact Section --- */
.impact {
    padding: 64px 0;
}

.center {
    text-align: center;
}

.center-line {
    margin: 0 auto 48px auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.stat-item {
    padding: 16px;
    border-right: 1px solid rgba(67, 20, 7, 0.4);
}

.stat-item:last-child {
    border-right: none;
}

.stat-item i {
    color: var(--primary-orange);
    font-size: 24px;
    margin-bottom: 12px;
}

.stat-number {
    font-family: var(--font-title);
    font-size: 36px;
    font-weight: 700;
    color: var(--text-white);
}

.stat-label {
    color: var(--primary-orange);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* --- 6. CTA Section --- */
.cta {
    padding-bottom: 80px;
}

.cta-box {
    background: linear-gradient(to right, rgba(67, 20, 7, 0.4), rgba(69, 26, 3, 0.2), rgba(67, 20, 7, 0.4));
    border: 1px solid rgba(154, 52, 18, 0.3);
    border-radius: 16px;
    padding: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.cta-text h3 {
    font-family: var(--font-title);
    font-size: 24px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 8px;
}

.cta-text p {
    color: var(--text-gray);
    font-size: 14px;
}

.cta-btn {
    background-color: var(--primary-orange);
    color: var(--text-white);
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 16px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 10px 15px -3px rgba(255, 122, 0, 0.2);
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background-color: var(--primary-hover);
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(255, 122, 0, 0.4);
}


/* --- REGISTRATION MODAL STYLES --- */
.modal-overlay {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(6px);
    z-index: 99999 !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background: #ffffff !important;
    padding: 32px;
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    position: relative !important;
    z-index: 100000 !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    color: #1e293b !important;
    animation: popupFade 0.3s ease-out forwards;
}

@keyframes popupFade {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #64748b;
    cursor: pointer;
}

.close-btn:hover {
    color: #ea580c;
}

.modal-content h2 {
    font-family: 'Cinzel', serif;
    color: #1e3a8a;
    font-size: 24px;
    margin-bottom: 6px;
}

.modal-subtitle {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 22px;
    line-height: 1.4;
}

.modal-form .form-field {
    margin-bottom: 16px;
    text-align: left;
}

.modal-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #334155;
}

.modal-form input, 
.modal-form textarea,
.modal-form select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13.5px;
    outline: none;
    box-sizing: border-box;
    background-color: #f8fafc;
    color: #0f172a;
    transition: border-color 0.2s;
}

.modal-form input:focus, 
.modal-form textarea:focus,
.modal-form select:focus {
    border-color: #ea580c;
    background-color: #ffffff;
}

.submit-volunteer-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.3);
    transition: transform 0.2s;
}

.submit-volunteer-btn:hover {
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: #0f172a;
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
    font-size: 0.9rem;
}

/* --- Animations & Responsive Media Queries --- */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@media (max-width: 992px) {
    .navbar {
        flex-wrap: wrap;
        padding: 0.8rem 4%;
    }

    .menu-toggle {
        display: block;
    }

    .brand-name {
        font-size: 0.95rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        order: 4;
        background: #ffffff;
        padding: 10px 0;
        margin-top: 10px;
        border-top: 1px solid #e2e8f0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 10px 15px;
        text-align: center;
        width: 100%;
    }

    .dropdown {
        width: 100%;
        text-align: center;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        background-color: #1e293b;
        text-align: center;
    }

    .dropdown-content li a {
        text-align: center;
    }

    .grid-4, .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .stat-item {
        border-right: none;
    }
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .sub-title {
        font-size: 24px;
    }

    .main-heading {
        font-size: 32px;
    }

    .hero-desc {
        font-size: 15px;
    }

    .quote-box {
        padding: 32px 20px;
        height: auto;
    }

    .quote-box blockquote {
        font-size: 18px;
    }

    .cta-box {
        flex-direction: column;
        text-align: center;
        gap: 24px;
        padding: 32px 20px;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 0.8rem;
    }

    .logo-icon {
        width: 45px;
        height: 45px;
    }

    .btn-donate {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .grid-4, .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-item {
        border-bottom: 1px solid rgba(67, 20, 7, 0.4);
        padding-bottom: 20px;
    }

    .stat-item:last-child {
        border-bottom: none;
    }
}