/* ==================== GLOBAL VARIABLES & SETUP ==================== */
:root {
    --primary: #108954; /* Emerald Green */
    --primary-dark: #0a633b;
    --click-red: #d90429; /* Subtle Red for clicks */
    --bg-color: #f7f9fa;
    --white: #ffffff;
    --text-main: #111827;
    --text-light: #6b7280;
    --border-radius: 16px;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
}

.container {
    max-width: 600px; /* Mobile App feel, restricted width for desktop */
    margin: 0 auto;
    padding: 0 20px;
}

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

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

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

/* ==================== TYPOGRAPHY & BUTTONS ==================== */
h1, h2, h3, h4 { color: var(--text-main); }

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    font-size: 16px;
    border: 2px solid transparent;
}

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

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

/* CLICK EFFECT (Subtle Red & Scale) */
.btn:active {
    transform: scale(0.96);
    background-color: var(--click-red);
    border-color: var(--click-red);
    color: var(--white);
}

/* ==================== HEADER ==================== */
.main-header {
    padding: 20px 0;
    background: transparent;
}
.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    padding: 40px 0;
    animation: fadeInUp 0.6s ease-out forwards;
}
.hero-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
}
.hero-subtitle {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 30px;
}
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}
.hero-buttons .btn { flex: 1; max-width: 150px;}

/* ==================== GRID SYSTEM ==================== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 10px; 
    margin-top: 25px;
}

/* ==================== SECTIONS GENERAL ==================== */
.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
    margin-top: 40px;
}
.section-subtitle {
    font-size: 14px;
    color: var(--text-light);
}

/* Delaying animations so sections load step-by-step */
.stats-section { opacity: 0; animation: fadeInUp 0.6s ease-out 0.2s forwards; }
.how-it-works-section { opacity: 0; animation: fadeInUp 0.6s ease-out 0.4s forwards; }
.faq-section { opacity: 0; animation: fadeInUp 0.6s ease-out 0.6s forwards; }
.main-footer { opacity: 0; animation: fadeInUp 0.6s ease-out 0.8s forwards; }

/* ==================== CARDS ==================== */
.stat-card, .step-card {
    background: var(--white);
    padding: 15px 5px; 
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    text-align: center;
}

/* FLOATING ICONS ANIMATION */
.stat-icon, .step-icon {
    width: 45px; 
    height: auto;
    margin-bottom: 8px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

/* Timing alag ki hai taake teeno ek sath upar neechay na hon */
.stat-card:nth-child(1) .stat-icon, .step-card:nth-child(1) .step-icon { animation-delay: 0s; }
.stat-card:nth-child(2) .stat-icon, .step-card:nth-child(2) .step-icon { animation-delay: 0.5s; }
.stat-card:nth-child(3) .stat-icon, .step-card:nth-child(3) .step-icon { animation-delay: 1s; }

.stat-label {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 600;
}
.stat-value {
    font-size: 13px; 
    color: var(--primary);
    font-weight: 800;
    margin-top: 5px;
    word-wrap: break-word; 
}
.step-title {
    font-size: 12px;
    font-weight: 700;
    margin: 8px 0 4px;
}
.step-desc {
    font-size: 10px; 
    color: var(--text-light);
    line-height: 1.3;
}

/* ==================== FAQ SECTION (FIXED HIDING ISSUE) ==================== */
.faq-list {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.faq-item {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-question {
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    background: var(--white);
}
.faq-icon {
    color: var(--primary);
    font-size: 20px;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* PERFECTLY HIDDEN ANSWER */
.faq-answer {
    max-height: 0;
    overflow: hidden; /* Yeh line missing thi pehle jis wajah se text bahar tha */
    padding: 0 20px;
    background: #fdfdfd;
    transition: all 0.3s ease-in-out;
}
.faq-answer p {
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
    padding-bottom: 18px; /* Bottom spacing only applies when open */
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease-in-out;
}

/* WHEN ACTIVE (CLICKED) */
.faq-item.active .faq-answer {
    max-height: 200px;
    border-top: 1px solid #f0f0f0;
}
.faq-item.active .faq-answer p {
    opacity: 1;
    transform: translateY(0);
    padding-top: 15px;
}
.faq-item.active .faq-icon {
    transform: rotate(45deg); /* Plus icon turns into (x) */
    color: var(--click-red); /* Icon turns red */
}

/* ==================== FOOTER ==================== */
.main-footer {
    background: #eef2f3;
    padding: 40px 0 20px;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    font-size: 13px;
}
@media (max-width: 450px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .social-icons { justify-content: center; }
}
.footer-logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    grid-column: 1 / -1;
    margin-bottom: 10px;
}
.footer-links h4, .footer-social h4 {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text-main);
}
.footer-links a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 5px;
}
.social-icons {
    display: flex;
    gap: 10px;
}
.social-icons a {
    color: var(--primary);
    font-size: 20px;
}
.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    font-size: 12px;
    color: var(--text-light);
}
/* ==================== PREMIUM BOTTOM NAVBAR ==================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    pointer-events: none; /* Allows clicking through empty space */
}

.nav-container {
    pointer-events: auto;
    background: #ffffff;
    width: 100%;
    max-width: 600px; /* Restrict width for desktop to match app */
    display: flex;
    justify-content: space-around;
    padding: 10px 0 15px 0; /* Extra padding at bottom for modern phones */
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.08); /* Soft shadow */
    position: relative;
}

.nav-item {
    text-decoration: none;
    color: #94a3b8; /* Grey inactive color */
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
    width: 25%;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.icon-box {
    font-size: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    width: 30px;
    border-radius: 50%;
}

/* ==================== ACTIVE STATE ANIMATION ==================== */
.nav-item.active {
    color: var(--primary); /* Emerald Green */
    font-weight: 700;
}

.nav-item.active .icon-box {
    background-color: #e6f4ea; /* Light Green Circle Background */
    color: var(--primary);
    transform: translateY(-5px); /* Icon moves up slightly */
    box-shadow: 0 5px 15px rgba(16, 137, 84, 0.3); /* Green Glow */
}

/* Optional: Active Dot Indicator */
.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    width: 5px;
    height: 5px;
    background-color: var(--primary);
    border-radius: 50%;
}