/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Updated Color Theme */
    --primary-blue: #1e40af;
    --secondary-blue: #3b82f6;
    --accent-orange: #f97316;
    --accent-yellow: #fbbf24;
    --accent-green: #10b981;
    --light-bg: #eff6ff;
    --white: #FFFFFF;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.2);
}

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 */
header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(30, 64, 175, 0.3);
    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;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

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

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

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

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

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

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

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

nav a:hover {
    color: var(--accent-yellow);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-blue) 100%);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-orange);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
    animation: fadeInUp 1.2s ease;
}

.cta-button:hover {
    background-color: #ea580c;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
}

/* About Section */
.about {
    padding: 4rem 0;
    background-color: var(--white);
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-blue);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-yellow));
    border-radius: 2px;
}

.subsection-title {
    font-size: 1.5rem;
    margin: 3rem 0 1.5rem 0;
    color: var(--secondary-blue);
    text-align: center;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    text-align: justify;
    padding: 1.5rem;
    background-color: var(--light-bg);
    border-radius: 10px;
    border-left: 4px solid var(--accent-orange);
}

/* Data Section - Modern District Cards */
.data {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--light-bg) 0%, #dbeafe 100%);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.search-container {
    max-width: 600px;
    margin: 0 auto 3rem;
}

#districtSearch {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border: 2px solid var(--secondary-blue);
    border-radius: 50px;
    outline: none;
    transition: all 0.3s ease;
    background-color: var(--white);
}

#districtSearch:focus {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.districts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Modern District Card Design with Gradient Header */
.district-card {
    background: linear-gradient(135deg, var(--white) 0%, #f8fafc 100%);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    position: relative;
}

.district-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-yellow), var(--accent-green));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.district-card:hover::before {
    transform: scaleX(1);
}

.district-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px var(--shadow-hover);
    border-color: var(--accent-orange);
}

.district-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    padding: 2rem;
    text-align: center;
    position: relative;
}

.district-icon {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.district-header h3 {
    font-size: 1.4rem;
    color: var(--white);
    margin: 0;
    font-weight: 600;
}

.district-footer {
    padding: 1.5rem 2rem;
    text-align: center;
    background-color: var(--white);
}

.view-link {
    color: var(--secondary-blue);
    font-weight: 600;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.district-card:hover .view-link {
    color: var(--accent-orange);
    transform: translateX(5px);
}

.no-results {
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
    color: var(--text-gray);
}

/* Features/Benefits Section */
.importance {
    padding: 4rem 0;
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-box {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
    padding: 2rem;
    border-radius: 15px;
    text-align: left;
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent-orange);
    box-shadow: 0 4px 6px var(--shadow);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-hover);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-orange);
    margin-bottom: 1rem;
}

.feature-box h3 {
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.feature-box p {
    color: var(--text-dark);
    line-height: 1.6;
}

/* When Section */
.when-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
}

.when-content {
    max-width: 900px;
    margin: 0 auto;
}

.when-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    text-align: justify;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: 10px;
    border-left: 4px solid var(--secondary-blue);
    box-shadow: 0 4px 6px var(--shadow);
}

/* How to Check Section */
.how-to-check-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.steps-container {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.step-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

.step-number {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.step-content p {
    color: var(--text-gray);
    line-height: 1.6;
}

.step-content a {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 600;
}

.step-content a:hover {
    text-decoration: underline;
}

/* App Section */
.app-section {
    padding: 4rem 0;
    background: var(--white);
}

.app-content {
    margin: 1.5rem 0;
}

.app-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--accent-orange);
}

.benefits-list,
.features-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.benefits-list li,
.features-list li {
    padding: 0.8rem 0;
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.7;
    border-bottom: 1px solid #e5e7eb;
}

.benefits-list li:last-child,
.features-list li:last-child {
    border-bottom: none;
}

.app-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.benefit-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.benefit-card p {
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
}

/* Download App Section */
.download-section {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem 0;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, #34A853 0%, #0F9D58 100%);
    color: var(--white);
    padding: 1.5rem 3rem;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(52, 168, 83, 0.3);
}

.download-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(52, 168, 83, 0.4);
}

.download-icon {
    font-size: 3rem;
}

.download-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.download-text strong {
    font-size: 1.3rem;
    display: block;
    margin-bottom: 0.3rem;
}

.download-text small {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 400;
}

/* FAQ Section - Professional Accordion Style */
.faq-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
}

.faq-accordion {
    max-width: 900px;
    margin: 2rem auto 0;
}

.faq-item {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 15px var(--shadow-hover);
}

.faq-question-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    border: none;
    padding: 1.5rem 2rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.faq-question-btn:hover {
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-blue) 100%);
}

.faq-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.faq-question-btn span:nth-child(2) {
    flex: 1;
}

.faq-toggle {
    font-size: 1.8rem;
    font-weight: bold;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background-color: var(--light-bg);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 1.5rem 2rem;
}

.faq-answer p {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1.05rem;
    margin: 0;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0f172a 100%);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

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

.footer-disclaimer {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.footer-social {
    margin: 2rem 0;
}

.footer-social p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.whatsapp-link {
    display: inline-block;
    background-color: #25D366;
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-link:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.footer-copyright {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent-orange);
    color: var(--white);
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-top-btn:hover {
    background-color: #ea580c;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.scroll-top-btn.show {
    display: flex;
}

/* WhatsApp Popup */
.whatsapp-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.whatsapp-popup.show {
    display: flex;
}

.popup-content {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideInDown 0.5s ease;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-gray);
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.popup-close:hover {
    background-color: var(--light-bg);
    color: var(--text-dark);
}

.popup-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.popup-content h3 {
    font-size: 1.6rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.popup-content p {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.popup-button {
    display: inline-block;
    background-color: #25D366;
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.popup-button:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--light-bg);
    border-top: 5px solid var(--accent-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
        flex-direction: column;
        padding: 2rem;
        gap: 0;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }

    nav.active {
        right: 0;
    }

    nav a {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

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

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

    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .popup-content {
        padding: 2rem 1.5rem;
    }

    .step-card {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        margin: 0 auto;
    }

    .app-benefits-grid {
        grid-template-columns: 1fr;
    }

    .download-button {
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1rem;
    }

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

    .download-text strong {
        font-size: 1.1rem;
    }

    .download-text small {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.3rem;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .about-description,
    .when-description {
        font-size: 1rem;
        padding: 1rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .subsection-title {
        font-size: 1.2rem;
    }

    .faq-question-btn {
        font-size: 1rem;
        padding: 1.2rem 1.5rem;
    }

    .faq-answer p {
        font-size: 0.95rem;
    }

    .district-header h3 {
        font-size: 1.2rem;
    }

    .district-icon {
        font-size: 3rem;
    }
}