/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #2E7D32;
    --secondary-green: #4CAF50;
    --sky-blue: #4FC3F7;
    --saffron: #FF9800;
    --yellow: #FDD835;
    --light-bg: #F5F5F5;
    --white: #FFFFFF;
    --text-dark: #212121;
    --text-gray: #757575;
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles - Logo Left, Menu Right */
header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--yellow);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--sky-blue) 0%, var(--primary-green) 100%);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    animation: fadeIn 1s ease-in;
    line-height: 1.3;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeIn 1.5s ease-in;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.cta-btn {
    background-color: var(--saffron);
    color: var(--white);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.cta-btn:hover {
    background-color: #F57C00;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.5);
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-green);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--saffron), var(--yellow));
    border-radius: 2px;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F5F5 100%);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--primary-green);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(46, 125, 50, 0.2);
}

.about-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-card h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.about-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* Importance Section */
.importance-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #E8F5E9 0%, #F1F8E9 100%);
}

.importance-main {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow);
}

.importance-main h3 {
    color: var(--primary-green);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.importance-main p {
    font-size: 1.2rem;
    color: var(--text-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-box {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s;
    border-left: 5px solid var(--sky-blue);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(79, 195, 247, 0.3);
    border-left-color: var(--saffron);
}

.feature-box h4 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-box p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* Data Section */
.data-section {
    padding: 4rem 0;
    background-color: var(--white);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.search-container {
    max-width: 600px;
    margin: 0 auto 3rem;
}

#searchInput {
    width: 100%;
    padding: 1rem 2rem;
    border: 2px solid var(--secondary-green);
    border-radius: 50px;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s;
    box-shadow: 0 2px 10px var(--shadow);
}

#searchInput:focus {
    border-color: var(--primary-green);
    box-shadow: 0 4px 20px rgba(46, 125, 50, 0.2);
}

/* Districts Grid */
.districts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.district-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F5F5 100%);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    display: block;
}

.district-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.1), transparent);
    transition: left 0.5s;
}

.district-card:hover::before {
    left: 100%;
}

.district-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(46, 125, 50, 0.3);
    border-color: var(--secondary-green);
}

.district-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.district-card h3 {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.district-card p {
    color: var(--saffron);
    font-weight: 600;
    font-size: 1rem;
    margin-top: 1rem;
}

/* Footer */
footer {
    background-color: #1B5E20;
    color: var(--white);
    padding: 3rem 0 1rem;
}

.disclaimer {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    padding: 2.5rem;
    border-radius: 15px;
    border-left: 6px solid var(--saffron);
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.disclaimer h3 {
    color: var(--saffron);
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    font-weight: 700;
}

.disclaimer p {
    color: var(--text-dark);
    line-height: 1.9;
    font-size: 1.05rem;
}

.disclaimer strong {
    color: var(--primary-green);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    color: var(--white);
    margin: 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
}

/* WhatsApp Popup Styles */
.whatsapp-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whatsapp-popup.show {
    opacity: 1;
    visibility: visible;
}

.whatsapp-popup-content {
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F5F5 100%);
    padding: 2.5rem;
    border-radius: 20px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.4s ease-out;
}

@keyframes popupSlideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.whatsapp-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #757575;
    cursor: pointer;
    transition: all 0.3s;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.whatsapp-close:hover {
    background-color: #f0f0f0;
    color: #212121;
    transform: rotate(90deg);
}

.whatsapp-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.whatsapp-popup-content h3 {
    color: var(--primary-green);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.whatsapp-popup-content p {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    width: 100%;
    justify-content: center;
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Navigation for Mobile */
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    nav.active {
        max-height: 300px;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }

    nav li {
        width: 100%;
    }

    nav a {
        display: block;
        padding: 1rem 2rem;
        border-radius: 0;
    }

    /* Logo */
    .logo h1 {
        font-size: 1.2rem;
    }

    /* Hero Section */
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }

    /* Districts Grid */
    .districts-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1.5rem;
    }
    
    .district-card {
        padding: 1.5rem;
    }
    
    .district-icon {
        font-size: 2.5rem;
    }
    
    .district-card h3 {
        font-size: 1.2rem;
    }

    /* Disclaimer */
    .disclaimer {
        padding: 1.5rem;
    }

    .disclaimer h3 {
        font-size: 1.3rem;
    }

    .disclaimer p {
        font-size: 0.95rem;
    }

    /* WhatsApp Popup */
    .whatsapp-popup-content {
        padding: 2rem 1.5rem;
    }

    .whatsapp-popup-content h3 {
        font-size: 1.4rem;
    }

    .whatsapp-popup-content p {
        font-size: 1rem;
    }

    .whatsapp-btn {
        font-size: 1rem;
        padding: 0.9rem 1.5rem;
    }

    .whatsapp-icon {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 0;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .cta-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .about-card, .feature-box {
        padding: 1.5rem;
    }

    .districts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .logo h1 {
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .hero-content h2 {
        font-size: 1.3rem;
    }

    .logo h1 {
        font-size: 0.9rem;
    }

    .district-card {
        padding: 1rem;
    }
}
