/* ============================================
   ANANT SEVA FOUNDATION - DESIGN SYSTEM
   Premium NGO Website
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --primary-beige: #F5EDE3;
    --primary-warm: #E8D5C0;
    --secondary-green: #2D5A3D;
    --secondary-green-light: #3A7A52;
    --accent-gold: #C8A96E;
    --accent-gold-light: #D4BC8B;
    --neutral-white: #FEFCF9;
    --neutral-light: #F9F5F0;
    --neutral-grey: #E5E0DA;
    --text-dark: #2C2520;
    --text-medium: #5A4F45;
    --text-light: #8A7E72;
    --footer-dark: #1A1612;
    --footer-medium: #2C2520;
    --shadow-soft: 0 4px 30px rgba(44, 37, 32, 0.08);
    --shadow-medium: 0 8px 40px rgba(44, 37, 32, 0.12);
    --shadow-strong: 0 16px 60px rgba(44, 37, 32, 0.16);
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.25);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background: var(--neutral-white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h4 { font-size: clamp(1.2rem, 2vw, 1.6rem); }

p {
    font-family: 'Inter', sans-serif;
    color: var(--text-medium);
    line-height: 1.8;
    font-size: 1.05rem;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 100px 0;
}

/* ---------- Password Screen ---------- */
.password-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2D5A3D 0%, #1A3A25 30%, #2C2520 60%, #3A2A1E 100%);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.password-screen.hidden {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
}

.password-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(200, 169, 110, 0.3);
    border-radius: 50%;
    animation: floatParticle 8s infinite ease-in-out;
}

@keyframes floatParticle {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
    25% { opacity: 1; }
    50% { transform: translateY(-200px) translateX(50px); opacity: 0.5; }
    75% { opacity: 0.3; }
}

.password-box {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 60px 50px;
    text-align: center;
    max-width: 460px;
    width: 90%;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.password-box .logo-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 30px rgba(200, 169, 110, 0.3);
}

.password-box h2 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 8px;
    font-family: 'Playfair Display', serif;
}

.password-box .subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-bottom: 36px;
    font-family: 'Inter', sans-serif;
}

.password-input-group {
    position: relative;
    margin-bottom: 24px;
}

.password-input-group input {
    width: 100%;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: var(--transition-smooth);
}

.password-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.password-input-group input:focus {
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(200, 169, 110, 0.2);
}

.password-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: var(--transition-smooth);
    letter-spacing: 0.5px;
}

.password-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(200, 169, 110, 0.4);
}

.password-error {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.password-error.show {
    opacity: 1;
}

/* ---------- Navigation ---------- */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition-smooth);
    background: transparent;
}

.main-nav.scrolled {
    background: rgba(254, 252, 249, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.06);
    padding: 10px 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
}

.nav-logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--secondary-green), var(--secondary-green-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    font-family: 'Playfair Display', serif;
}

.nav-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.main-nav:not(.scrolled) .nav-logo-text {
    color: white;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-medium);
    position: relative;
    padding: 4px 0;
}

.main-nav:not(.scrolled) .nav-links a {
    color: rgba(255, 255, 255, 0.85);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

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

.nav-links a:hover {
    color: var(--accent-gold);
}

.nav-cta {
    padding: 10px 24px !important;
    background: var(--secondary-green);
    color: white !important;
    border-radius: var(--radius-sm);
    font-weight: 600 !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
    background: var(--secondary-green-light) !important;
    transform: translateY(-2px);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 4px;
}

.menu-toggle span {
    width: 28px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition-smooth);
    display: block;
}

.main-nav:not(.scrolled) .menu-toggle span {
    background: white;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ---------- Buttons ---------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: var(--secondary-green);
    color: white;
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    letter-spacing: 0.3px;
}

.btn-primary:hover {
    background: var(--secondary-green-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(45, 90, 61, 0.25);
    color: white;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: transparent;
    color: var(--secondary-green);
    border: 2px solid var(--secondary-green);
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: var(--secondary-green);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(45, 90, 61, 0.2);
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
    color: white;
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(200, 169, 110, 0.35);
}

/* ---------- Section Headers ---------- */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(45, 90, 61, 0.08);
    color: var(--secondary-green);
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-title {
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 600px;
    line-height: 1.8;
}

.section-header {
    margin-bottom: 60px;
}

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

.section-header.center .section-subtitle {
    margin: 0 auto;
}

/* ---------- Cards ---------- */
.card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.card-image {
    width: 100%;
    height: 260px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--neutral-light);
    transition: transform 0.6s ease;
}

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

.card-content {
    padding: 28px;
}

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

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

/* ---------- Glass Card ---------- */
.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-md);
    padding: 36px;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

/* ---------- Stats ---------- */
.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--secondary-green);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ---------- Scroll Animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* ---------- Page Hero ---------- */
.page-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--secondary-green) 0%, #1A3A25 100%);
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.03)" d="M0,128L48,138.7C96,149,192,171,288,176C384,181,480,171,576,149.3C672,128,768,96,864,101.3C960,107,1056,149,1152,154.7C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"/></svg>') no-repeat bottom;
    background-size: cover;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    color: white;
    margin-bottom: 20px;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    max-width: 600px;
}

.page-hero .breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

.page-hero .breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
}

.page-hero .breadcrumb a:hover {
    color: var(--accent-gold);
}

.page-hero .breadcrumb span {
    color: var(--accent-gold);
}

/* ---------- Footer ---------- */
.main-footer {
    background: var(--footer-dark);
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 20% 50%, rgba(45, 90, 61, 0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(200, 169, 110, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.footer-top {
    padding: 80px 0 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 50px;
}

.footer-about h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-smooth);
    font-size: 0.9rem;
}

.footer-social a:hover {
    background: var(--accent-gold);
    color: white;
    transform: translateY(-3px);
}

.footer-column h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 24px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition-smooth);
}

.footer-column ul li a:hover {
    color: var(--accent-gold);
    padding-left: 6px;
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-smooth);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-form input:focus {
    border-color: var(--accent-gold);
}

.newsletter-form button {
    padding: 12px 20px;
    background: var(--accent-gold);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--accent-gold-light);
}

.footer-map {
    margin-top: 24px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    height: 160px;
}

.footer-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(0.5) brightness(0.8);
}

.footer-bottom {
    padding: 24px 0;
    position: relative;
    z-index: 2;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--accent-gold);
}

.footer-bottom a:hover {
    color: var(--accent-gold-light);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-green);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    box-shadow: 0 6px 25px rgba(45, 90, 61, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--secondary-green-light);
    transform: translateY(-3px);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 380px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 40px 40px;
        gap: 24px;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        color: var(--text-dark) !important;
        font-size: 1.05rem;
    }

    .menu-toggle {
        display: flex;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .section-padding {
        padding: 70px 0;
    }
}

@media (max-width: 768px) {
    html { font-size: 15px; }

    .container { padding: 0 1.25rem; }

    .section-padding { padding: 50px 0; }

    .page-hero {
        height: 50vh;
        min-height: 400px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    html { font-size: 14px; }

    .password-box {
        padding: 40px 28px;
    }

    .nav-links {
        width: 100%;
        max-width: 100%;
    }
}

/* ---------- Utility Classes ---------- */
.text-center { text-align: center; }
.text-green { color: var(--secondary-green); }
.text-gold { color: var(--accent-gold); }
.text-light { color: var(--text-light); }
.bg-warm { background: var(--primary-beige); }
.bg-neutral { background: var(--neutral-light); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* Image contain rule */
.img-contain {
    object-fit: contain !important;
    background: var(--neutral-light);
}
