/* Core Variables - Light Green Elegant Theme */
:root {
    /* Palette */
    --bg-main: #f0fdf4;
    /* Very light mint/green tint */
    --bg-surface: #ffffff;

    --primary-dark: #1f3b2f;
    /* Deep Forest Green for Typography */
    --primary: #65a30d;
    /* Lime/Leaf Green */
    --primary-light: #84cc16;
    /* Bright Green */
    --button-green: #68bd62;
    /* Soft but vibrant button green */

    /* Text */
    --text-main: #334155;
    --text-muted: #64748b;

    /* Borders & Shadows */
    --border-light: #e2e8f0;
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 15px 35px rgba(104, 189, 98, 0.15);

    /* Transitions */
    --transition-smooth: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
    background-image: radial-gradient(circle at 10% 20%, rgba(132, 204, 22, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(101, 163, 13, 0.05) 0%, transparent 20%);
}

::selection {
    background: var(--primary-light);
    color: white;
}

.highlight {
    color: var(--button-green);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: rgba(104, 189, 98, 0.2);
    z-index: -1;
}

/* Header */
.glass-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    transition: var(--transition-smooth);
}

.glass-header.scrolled {
    padding: 0.8rem 5%;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
}

.logo {
    height: 44px;
    width: 44px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 100, 0, 0.1);
}

.logo-container h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.logo-container span {
    color: var(--button-green);
}

nav {
    display: flex;
    gap: 2.5rem;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

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

.nav-cta {
    display: block;
}

.primary-btn-small {
    background-color: var(--button-green);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.primary-btn-small:hover {
    background-color: #56a551;
    box-shadow: 0 4px 10px rgba(104, 189, 98, 0.3);
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    color: var(--primary-dark);
}

/* Hero Section */
.hero {
    min-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7rem 5% 4rem 5%;
    gap: 3rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    max-width: 550px;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.language-selection-large {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.2rem 1.5rem;
    border-radius: 16px;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(101, 163, 13, 0.2);
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.lang-prompt {
    font-size: 0.95rem;
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.lang-buttons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.lang-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    background: white;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.lang-btn:hover {
    border-color: var(--button-green);
    color: var(--button-green);
}

.lang-btn.active {
    background: var(--button-green);
    color: white;
    border-color: var(--button-green);
    box-shadow: 0 4px 10px rgba(104, 189, 98, 0.2);
}

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

.primary-btn,
.secondary-btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.primary-btn {
    background-color: var(--button-green);
    color: white;
}

.primary-btn:hover {
    background-color: #56a551;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(104, 189, 98, 0.4);
}

.secondary-btn {
    background: transparent;
    color: var(--button-green);
    border: 2px solid var(--button-green);
}

.secondary-btn:hover {
    background: rgba(104, 189, 98, 0.05);
}

/* New Hero Image Card Layout */
.hero-image-wrapper {
    flex: 1.2;
    display: flex;
    justify-content: flex-end;
}

.image-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.2rem;
    border-radius: 28px;
    box-shadow: 0 25px 50px rgba(101, 163, 13, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    position: relative;
    max-width: 650px;
    width: 100%;
}

.badge-floating {
    position: absolute;
    top: 2.5rem;
    right: 2.5rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-dark);
    z-index: 10;
}

.badge-floating .material-icons {
    font-size: 16px;
    color: var(--button-green);
}

.hero-image-crop {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
}

.hero-image {
    width: 100%;
    height: 120%;
    /* Scaled to push top navigation out of view */
    object-fit: cover;
    object-position: center bottom;
    display: block;
}

.image-footer {
    display: flex;
    justify-content: space-between;
    padding: 1.2rem 1rem 0.5rem 1rem;
    border-top: 1px solid rgba(101, 163, 13, 0.1);
    margin-top: 0.5rem;
}

.img-caption {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.img-caption .material-icons {
    font-size: 16px;
    color: var(--button-green);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    animation: fadeInRight 0.8s ease forwards;
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* About Section */
.about-section {
    padding: 2rem 5% 0 5%;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row !important;
    gap: 3rem;
    padding: 3rem;
    align-items: center;
}

.about-content {
    flex: 1 1 500px;
}

.about-text {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-stats {
    flex: 1 1 300px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-box {
    background: rgba(255, 255, 255, 0.4);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(101, 163, 13, 0.1);
    text-align: center;
    transition: var(--transition-smooth);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(101, 163, 13, 0.1);
    background: white;
}

/* --- Government Schemes & Directory --- */
.schemes-section,
.directory-section {
    position: relative;
    z-index: 1;
}

.scheme-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scheme-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.directory-grid .member-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.directory-grid .member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* --- Advanced Floating Action Button (SOS) --- */
.fab-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.fab-options {
    list-style: none;
    margin: 0;
    padding: 0;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab-container:hover .fab-options,
.fab-container.active .fab-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-options li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fab-label {
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
}

.fab-option {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s;
}

.fab-option:hover {
    transform: scale(1.1);
}


.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    color: var(--primary-dark);
    font-weight: 800;
}

@media (max-width: 768px) {
    .about-container {
        padding: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }
}

/* Services Section */
.bento-section {
    padding: 6rem 5% 4rem 5%;
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(101, 163, 13, 0.1);
    border-radius: 24px;
    padding: 2.8rem 2.5rem;
    box-shadow: 0 10px 40px rgba(101, 163, 13, 0.05);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.glass-card>form {
    margin-top: auto;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(101, 163, 13, 0.12);
    border: 1px solid rgba(101, 163, 13, 0.2);
}

.card-icon {
    height: 50px;
    width: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    background: #f0fdf4;
    color: var(--button-green);
}

.card-icon .material-icons {
    font-size: 28px;
}

.bento-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
}

.bento-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Forms */
.payment-form,
.complaint-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.3rem;
    display: block;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon .material-icons {
    position: absolute;
    left: 1.2rem;
    color: #94a3b8;
    font-size: 1.2rem;
}

.input-with-icon input {
    padding-left: 3rem !important;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-smooth);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    border-color: var(--button-green);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(104, 189, 98, 0.15);
}

.solid-btn-green,
.outline-btn-green {
    padding: 1rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: 1rem;
    font-size: 1.05rem;
}

.solid-btn-green {
    background-color: var(--button-green);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(104, 189, 98, 0.2);
}

.solid-btn-green:hover {
    background-color: #56a551;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(104, 189, 98, 0.35);
}

.outline-btn-green {
    background-color: transparent;
    color: var(--button-green);
    border: 2px solid var(--button-green);
}

.outline-btn-green:hover {
    background-color: rgba(104, 189, 98, 0.05);
}


/* Complaints */
.complaints-section {
    padding: 2rem 5% 6rem 5%;
}

.complaint-container {
    max-width: 800px;
    margin: 0 auto;
}

.complaint-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.instruction-box {
    background: rgba(104, 189, 98, 0.1);
    border: 1px solid rgba(104, 189, 98, 0.2);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.instruction-icon {
    background: var(--button-green);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.instruction-text {
    flex: 1;
}

.instruction-text ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.instruction-text li {
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.instruction-text small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

textarea {
    resize: vertical;
}

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    appearance: none;
    cursor: pointer;
}

.select-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

/* Notice Board */
.notices-section {
    padding: 2rem 5%;
}

.notices-container {
    padding: 1.5rem 2.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-left: 6px solid var(--button-green);
}

.notice-ticker {
    overflow: hidden;
    position: relative;
    max-height: 250px;
}

.notice-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notice-list li {
    padding: 1rem;
    background: rgba(104, 189, 98, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(104, 189, 98, 0.1);
    color: var(--text-main);
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}

/* Photo Gallery */
.gallery-section {
    padding: 4rem 5%;
    background: linear-gradient(to bottom, #f8fafc, #f1f5f9);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    position: relative;
    aspect-ratio: 4/3;
}

.gallery-item.wide {
    grid-column: span 2;
    aspect-ratio: 21/9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover {
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .gallery-item.wide {
        grid-column: span 1;
        aspect-ratio: 4/3;
    }
}

/* Important Contacts */
.contacts-section {
    padding: 4rem 5%;
}

.contacts-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem;
    background: rgba(59, 130, 246, 0.03);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

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

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-light);
    transition: var(--transition-smooth);
}

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

.contact-icon {
    font-size: 36px;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    padding: 12px;
    border-radius: 50%;
}

.contact-card h4 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 0.3rem;
}

.contact-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Footer & Extras */
.glass-footer {
    background: white;
    padding: 2rem 5%;
    border-top: 1px solid var(--border-light);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-logo img {
    height: 32px;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Floating Chat/Action Bubble */
.fab {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    height: 60px;
    width: 60px;
    background-color: var(--button-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(104, 189, 98, 0.4);
    cursor: pointer;
    z-index: 100;
    transition: var(--transition-smooth);
}

.fab:hover {
    transform: scale(1.1);
}

.whatsapp-fab:hover {
    transform: scale(1.1) !important;
}

.fab .material-icons {
    font-size: 28px;
}

/* Toast */
.toast {
    position: fixed;
    top: 5rem;
    right: 2rem;
    background: white;
    border: 1px solid var(--border-light);
    color: var(--text-main);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 2000;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    background: #f0fdf4;
    color: var(--button-green);
    height: 40px;
    width: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-content h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.toast-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
        gap: 3rem;
    }

    .hero-content {
        max-width: 100%;
    }

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

    .hero-image-wrapper {
        justify-content: center;
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    nav,
    .nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .fab {
        bottom: 1.5rem;
        right: 1.5rem;
        height: 50px;
        width: 50px;
    }

    /* Mobile Responsive Grid Fixes */
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .glass-card {
        padding: 2rem 1.5rem;
    }
}