/* ===== Global Styles ===== */
:root {
    --saffron: #F27E00;
    --deep-green: #2B7C00;
    --bright-green: #85D24C;
    --light-bg: #F7F7F7;
    --white: #FFFFFF;
    --black: #333333;
    --transition: all 0.3s ease;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Noto Sans Devanagari', sans-serif;
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--light-bg);
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--deep-green);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
    scroll-margin-top: var(--header-height);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    color: var(--deep-green);
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--saffron);
    margin: 15px auto 0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--saffron);
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--saffron);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background: transparent;
    color: var(--saffron);
}

.btn-outline {
    background: transparent;
    color: var(--saffron);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--saffron);
}

/* ===== Header ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(247, 247, 247, 0.95);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
    height: var(--header-height);
}

header.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 22px;
    color: var(--deep-green);
    height: 100%;
}

.logo-img {
    height: 40px;
    margin-right: 10px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text span:first-child {
    font-size: 16px;
    color: var(--saffron);
}

.logo-text span:last-child {
    font-size: 14px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: var(--black);
    font-weight: 600;
    transition: var(--transition);
    font-size: 15px;
    display: block;
    padding: 5px 0;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--saffron);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--saffron);
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--deep-green);
    background: none;
    border: none;
    padding: 5px;
}

/* ===== Hero Section ===== */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    position: relative;
    margin-top: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('./assets/img/herobg.jpg') no-repeat center center/cover;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
}

.hero p {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ===== Social Fixed Sidebar ===== */
.social-fixed {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(255, 255, 255, 0.8);
    padding: 15px 10px;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-fixed a {
    color: var(--deep-green);
    font-size: 18px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.social-fixed a:hover {
    color: var(--saffron);
    transform: translateY(-3px);
    background: rgba(242, 126, 0, 0.1);
}

/* ===== About Section ===== */
.about {
    background: var(--light-bg);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    color: var(--deep-green);
    margin-bottom: 15px;
}

.about-text p {
    margin-bottom: 20px;
}

.about-images {
    flex: 1;
    min-width: 300px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.about-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-images img:hover {
    transform: translateY(-5px);
}

.about-images img:first-child {
    grid-column: span 2;
}

/* ===== Initiatives Section ===== */
.initiatives {
    background: var(--white);
}

.initiatives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.initiative-card {
    background: var(--light-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.initiative-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.initiative-icon {
    font-size: 50px;
    color: var(--saffron);
    margin-bottom: 20px;
    background: rgba(242, 126, 0, 0.1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.initiative-card h3 {
    margin-bottom: 15px;
    color: var(--deep-green);
}

/* ===== Gallery Section ===== */
.gallery {
    background: var(--light-bg);
}

.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    background: var(--light-bg);
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.filter-btn.active {
    background: var(--saffron);
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    aspect-ratio: 16/9;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.item-overlay i {
    color: white;
    font-size: 2rem;
    background: rgba(43, 124, 0, 0.7);
    padding: 10px;
    border-radius: 50%;
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Video Specific Styles */
.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yt-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item.video:hover .yt-iframe {
    opacity: 1;
}

.gallery-item.video:hover .video-thumb,
.gallery-item.video:hover .play-icon {
    opacity: 0;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 3rem;
    transition: opacity 0.3s ease;
    z-index: 1;
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 10;
}

.lightbox-content {
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    position: relative;
}

.lightbox-img {
    width: 100%;
    max-height: 90vh;
    object-fit: contain;
    display: none;
    border-radius: 5px;
}

.lightbox-video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    display: none;
    width: 100%;
}

.lightbox-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== Join Section ===== */
.join {
    background: var(--deep-green);
    color: var(--white);
}

.join .section-title {
    color: var(--white);
}

.join .section-title:after {
    background: var(--saffron);
}

.join-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--deep-green);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--saffron);
    outline: none;
    box-shadow: 0 0 0 3px rgba(242, 126, 0, 0.2);
}

.form-submit {
    text-align: center;
}

.join-btn {
    background: var(--saffron);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    max-width: 200px;
}

.join-btn:hover {
    background: var(--bright-green);
}

.form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    display: none;
}

.form-message.success {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    display: block;
}

.form-message.error {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    display: block;
}

/* ===== Contact Section ===== */
.contact {
    background: var(--white);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    color: var(--deep-green);
    margin-bottom: 20px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-details p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-details i {
    margin-right: 10px;
    color: var(--saffron);
    width: 20px;
    text-align: center;
    font-size: 18px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--deep-green);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--saffron);
    transform: translateY(-3px);
}

.map {
    margin-top: 30px;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== Footer ===== */
footer {
    background: var(--deep-green);
    color: var(--white);
    padding: 50px 0 20px;
    text-align: center;
}

.footer-logo {
    margin-bottom: 30px;
}

.footer-logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    gap: 15px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    padding: 5px 10px;
}

.footer-links a:hover {
    color: var(--saffron);
}

.footer-social {
    margin-bottom: 30px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    margin: 0 10px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--saffron);
    transform: translateY(-3px);
}

.copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Loading Spinner ===== */
.spinner {
    display: none;
    width: 40px;
    height: 40px;
    margin: 10px auto;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid var(--saffron);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== Responsive Styles ===== */
@media (max-width: 992px) {
    section {
        padding: 60px 0;
    }
    
    .initiative-card {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - var(--header-height));
        background: var(--white);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 999;
        padding: 30px;
        overflow-y: auto;
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 15px 0;
    }
    
    .social-fixed {
        display: none;
    }
    
    .hero {
        min-height: 600px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 576px) {
    section {
        padding: 50px 0;
    }
    
    .section-title {
        margin-bottom: 30px;
    }
    
    .btn {
        padding: 10px 25px;
        width: 100%;
        max-width: none;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .join-form,
    .contact-form {
        padding: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .about-images {
        grid-template-columns: 1fr;
    }
    
    .about-images img:first-child {
        grid-column: span 1;
    }
}