/* === TOKENS & VARIABLES === */
:root {
    --primary: #eb8022; /* BVP brand saffron / Orange */
    --hover: #d35400;
    --strong-saffron: #eb8022; 
    --secondary: #000080; /* BVP Navy Blue for strong nationalist contrast */
    --accent: #138808; /* BVP Indian Green */
    
    --bg-light: #f8fafc;
    --bg-dark: #0f172a; 
    --text-main: #334155;
    --text-heading: #000080; /* Headings in Navy Blue */
    --text-light: #64748b;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    
    --transition: all 0.3s ease-in-out;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius: 12px;
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 100%; /* 16px */
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main);
    background-color: #ffffff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* === UTILITIES === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.pt-50 { padding-top: 50px; }
.pb-50 { padding-bottom: 50px; }
.pt-100 { padding-top: 100px; }
.pb-100 { padding-bottom: 100px; }
.pt-150 { padding-top: 150px; }
.mt-30 { margin-top: 30px; }
.mt-50 { margin-top: 50px; }

.text-white { color: #f8fafc !important; }
.text-white h1, .text-white h2, .text-white h3 { color: #ffffff; }
.text-white p { color: #cbd5e1; }

.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-dark); }
.bg-orange { background-color: rgba(235, 128, 34, 0.1); color: var(--primary); }
.bg-green { background-color: rgba(19, 136, 8, 0.1); color: var(--accent); }
.bg-blue { background-color: rgba(0, 0, 128, 0.1); color: var(--secondary); }

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

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

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

.container-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

/* Typography styles */
.section-tag {
    font-family: var(--font-body);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}
.section-tag-light {
    color: #fca5a5;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    color: var(--text-heading);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: #ffffff;
}

.btn-secondary {
    background-color: var(--secondary);
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #000050;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: #ffffff;
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    z-index: 101;
}

.logo-bvp {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    color: var(--primary);
}

.logo-branch {
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-main);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    font-size: 1rem;
    color: var(--text-main);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.btn-primary-nav {
    background-color: var(--primary);
    color: #ffffff !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
}
.btn-primary-nav::after { display: none; }
.btn-primary-nav:hover {
    background-color: var(--hover);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 101;
    color: var(--text-heading);
}

/* === HERO SECTION (LIGHT) === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--bg-light);
    padding-top: 100px;
    padding-bottom: 60px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.hero-text {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    color: var(--text-light);
    max-width: 550px;
}

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

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

.hero-img-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
    transition: transform 0.5s ease;
}

.hero-image:hover .hero-img-main {
    transform: scale(1.05);
}

.hero-badge {
    position: absolute;
    bottom: -1px;
    left: -1px;
    background-color: var(--primary);
    color: #ffffff;
    padding: 1.5rem;
    border-top-right-radius: var(--radius);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

/* === PAGE HEADER (Subpages) === */
.page-header {
    background: linear-gradient(135deg, var(--bg-light) 0%, #e2e8f0 100%);
}

.page-title {
    font-size: 3.5rem;
    color: var(--text-heading);
}

/* === ABOUT SECTION === */
.about-desc p {
    font-size: 1.125rem;
    color: var(--text-light);
}

.about-image-wrapper {
    position: relative;
}

.about-image-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image {
    width: 100%;
    transform: scale(1.05);
    transition: transform 0.5s ease;
    object-fit: cover;
    aspect-ratio: 4/4;
}

.about-image-card:hover .about-image {
    transform: scale(1);
}

.about-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background-color: var(--secondary);
    color: #ffffff;
    padding: 1.5rem;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

/* === PILLARS SECTION === */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.pillar-card {
    background-color: #ffffff;
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.pillar-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.pillar-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(235, 128, 34, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.pillar-card:hover .pillar-icon {
    background-color: var(--primary);
    color: #ffffff;
}

.pillar-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
    color: var(--text-heading);
}

.pillar-card h4 {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 1rem;
}

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

/* === RECENT PROJECTS === */
.recent-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.project-preview-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-img-placeholder {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-img-placeholder img {
    transition: transform 0.5s ease;
}

.project-preview-card:hover .card-img-placeholder img {
    transform: scale(1.05);
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

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

/* === PROJECTS HUB LAYOUT === */
.projects-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.projects-sidebar {
    width: 25%;
    position: sticky;
    top: 100px;
    background: #ffffff;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.project-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tab-link {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.tab-link:hover {
    background-color: var(--bg-light);
    color: var(--primary);
}

.tab-link.active {
    background-color: rgba(235, 128, 34, 0.1);
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 700;
}

.projects-display {
    width: 75%;
    background: #ffffff;
    border-radius: var(--radius);
    padding: 3rem;
    box-shadow: var(--shadow-sm);
    min-height: 60vh;
}

.project-pane {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.project-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.project-pane h2 {
    font-size: 2.5rem;
    color: var(--text-heading);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 1rem;
}

.project-importance {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.8;
    background-color: var(--bg-light);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    margin-bottom: 2rem;
}

.project-importance strong {
    color: var(--secondary);
}

/* === CAROUSEL === */
.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
}

.carousel-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 1rem;
    scroll-behavior: smooth;
}
.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-track img {
    flex: 0 0 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    scroll-snap-align: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--primary);
    z-index: 2;
    transition: var(--transition);
}
.carousel-btn:hover {
    background: var(--primary);
    color: #fff;
}
.carousel-prev { left: -20px; }
.carousel-next { right: -20px; }

/* === DONATE & CONTACT === */
.donate-section.bg-dark {
    background-color: var(--secondary); /* Dark Navy */
}

.contact-info li {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #e2e8f0;
}
.contact-info li i {
    color: var(--primary);
    font-size: 1.25rem;
}

.qr-card {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 3rem;
    text-align: center;
    color: var(--text-main);
    box-shadow: var(--shadow-lg);
}

.qr-card h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-heading);
}

.qr-image-wrapper {
    margin: 2rem auto;
    width: 220px;
    height: 220px;
    border: 1px solid #e2e8f0;
    padding: 10px;
    border-radius: 8px;
    background: #f8fafc;
}

.qr-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-note {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.25rem;
}

/* === FOOTER === */
.footer {
    background-color: var(--bg-dark); /* Very dark navy/black */
    color: #ffffff;
    padding: 4rem 0 0;
}

.footer-brand h2 {
    color: #ffffff;
    margin-bottom: 0.2rem;
}

.footer-brand p {
    color: var(--primary);
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 2rem;
}
.footer-links a:hover {
    color: var(--primary);
}

.footer-social {
    display: flex;
    gap: 1rem;
}
.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-text {
        margin: 0 auto 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-title { font-size: 3.5rem; }
    
    .projects-layout {
        flex-direction: column;
    }
    .projects-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        max-height: none;
        padding: 1rem;
        display: flex;
        flex-direction: column;
    }
    .project-tabs {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
        white-space: nowrap;
        scrollbar-width: none;
        gap: 0.5rem;
    }
    .project-tabs::-webkit-scrollbar { display: none; }
    
    .tab-link {
        border-left: none;
        border-bottom: 3px solid transparent;
        padding: 0.75rem 1.25rem;
        background: var(--bg-light);
        border-radius: 30px;
    }
    .tab-link.active {
        border-bottom-color: transparent;
        border-radius: 30px;
        background: var(--primary);
        color: white;
    }
    .projects-display {
        width: 100%;
        padding: 1.5rem;
    }
    .carousel-track img {
        height: 250px;
    }
    .carousel-prev { left: 5px; }
    .carousel-next { right: 5px; }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        z-index: 99;
        box-shadow: var(--shadow-sm);
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .hamburger { display: block; }
    
    .hero {
        padding-top: 120px;
    }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.25rem; }
    .hero-buttons { flex-direction: column; }
    
    .about-badge {
        left: 50%;
        transform: translateX(-50%);
        bottom: -25px;
        width: 80%;
        text-align: center;
    }
    
    .container-flex { flex-direction: column; text-align: center; }
    .project-header { text-align: center; }
}

/* === MOBILE DONATE CTA === */
.mobile-donate-fab {
    display: none;
}
@media (max-width: 768px) {
    .mobile-donate-fab {
        display: flex;
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        background-color: var(--primary);
        color: white !important;
        padding: 12px 24px;
        border-radius: 30px;
        box-shadow: 0 4px 15px rgba(235, 128, 34, 0.5);
        z-index: 1000;
        font-weight: 700;
        align-items: center;
        gap: 8px;
        text-decoration: none;
        width: 90%;
        justify-content: center;
        font-size: 1.1rem;
    }
    body { padding-bottom: 80px; }
}
