:root {
    --primary: #417E38;
    --primary-hover: #32642a;
    --bg-color: #ffffff;
    --text-dark: #111827;
    --text-light: #4b5563;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    overflow-x: hidden;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    
    /* Footer Fix ke liye Flexbox add kiya */
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Body ko kam az kam puri screen ki height de di */
}

.container {
    max-width: 1150px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* ======== HEADER ======== */
.main-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    /* Border nikal kar aapka shadow laga diya */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 65px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}
.logo:hover {
    filter: brightness(0.85); /* Logo ke color ko 25% dark kar dega */
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-login {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 15px;
    padding: 10px 24px;
    border-radius: 50px;
    transition: background 0.2s;
}
.btn-login:hover { background: #f3f4f6; }

.btn-signup {
    text-decoration: none;
    background: var(--primary);
    color: #fff;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(65, 126, 56, 0.2);
}
.btn-signup:hover { 
    background: var(--primary-hover); 
    transform: translateY(-2px);
}

/* ======== HERO SECTION ======== */
.hero-section {
    padding: 40px 0;
    background: radial-gradient(circle at top left, #f8fbf9 0%, #ffffff 50%);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content { flex: 1.1; }

.modern-badge {
    display: inline-block;
    background: #ffffff;
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 24px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.hero-content h1 {
    font-size: clamp(40px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.highlight { color: var(--primary); }

.hero-content p {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons { display: flex; }

.btn-primary {
    text-decoration: none;
    background: var(--primary);
    color: #ffffff;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 17px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(65, 126, 56, 0.25);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(65, 126, 56, 0.35);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}
.stylish-blob-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: cover;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    box-shadow: 0 20px 50px rgba(65, 126, 56, 0.15);
    animation: morphing 8s ease-in-out infinite;
}

@keyframes morphing {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

/* ======== FEATURES SECTION (PREMIUM CARDS) ======== */
.features-section {
    padding: 20px 0 20px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: #ffffff;
    padding: 40px 32px;
    border-radius: 16px; /* Zyada modern look ke liye curves thode sharp kiye hain */
    border: 1px solid #eaebef;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02); /* Ek bohot subtle default shadow */
    transition: all 0.3s ease;
    position: relative;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
    border-color: var(--primary); /* Hover par card ka border primary color ka ho jayega */
}

.icon-wrap {
    width: 52px;
    height: 52px;
    background: #f0fdf4;
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 24px;
    box-shadow: 0 4px 10px rgba(65, 126, 56, 0.1); /* Icon par halka sa glow */
}

.feature-card h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #111827;
}
.feature-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
}

/* ================= ULTRA-MODERN FLOATING PILL FOOTER ================= */
.footer-container { 
    background: #ffffff; 
    max-width: 1150px; 
    margin: 20px auto 20px auto; /* Dono files ke liye standard spacing */
    padding: 16px 40px; 
    border-radius: 50px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); 
    border: 1px solid rgba(0, 0, 0, 0.03); 
    display: flex;
    justify-content: space-between; 
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links { 
    display: flex; 
    gap: 30px; 
    margin-bottom: 0; 
    flex-wrap: wrap; 
}

.footer-links a { 
    color: #64748b; 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 14px; 
    transition: all 0.2s ease; 
}

.footer-links a:hover { 
    color: var(--primary); 
    transform: translateY(-1px);
}

.footer-copyright { 
    color: #94a3b8; 
    font-size: 13.5px; 
    font-weight: 500;
}

/* ================= HOMEPAGE HEADER FULL-WIDTH FIX ================= */
header, 
.main-header, 
.navbar {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
}

/* ======== MOBILE RESPONSIVE (Perfected Layout) ======== */
@media (max-width: 992px) {
    header, 
    .main-header, 
    .navbar {
        padding-left: 20px !important;
        padding-right: 20px !important;
        border: none !important;
        border-bottom: 1px solid #eaeaea !important; /* Sirf neechay ek clean line */
    }
    
    /* Agar header kisi wrapper ke andar hai jiski wajah se space aa rahi hai */
    .header-wrapper, 
    .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 900px) {
    .features-grid { grid-template-columns: 1fr;
    padding: 20px;
    }
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 30px;
        padding: 0 20px;
    }
    .hero-content h1 { font-size: 38px; }
    .hero-content p { margin: 0 auto 30px auto; }
    .hero-buttons { justify-content: center; }
    
    .footer-container {
        max-width: 90%;
        border-radius: 25px; /* Mobile par rounded rectangle */
        flex-direction: column;
        justify-content: center;
        padding: 20px;
        /* Bottom margin 80px rakhi hai taake global pages par mobile bottom nav ke oopar overlap na ho */
        margin: 30px auto 80px auto; 
        text-align: center;
    }
    .footer-links {
        justify-content: center;
        gap: 15px;
    }
}

@media (max-width: 600px) {
    .header-container {
        padding: 0 20px;
    }
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 30px;
        padding: 0 20px;
    }
    /* 1. Login aur Sign Up buttons ko choti screen ke liye adjust kiya */
    .header-actions .btn-login { 
        display: inline-block; /* Gayab hone se roka */
        padding: 8px 16px; 
        font-size: 14px; 
    }
    .header-actions .btn-signup { 
        padding: 8px 16px; 
        font-size: 14px; 
    }
    .logo img { height: 45px;}
    
    /* 2. Oopar neechay ki faltu space (padding/gap) kam ki */
    .hero-section { padding: 40px 20px 20px; }
    .features-section { padding: 30px 0 30px 0; }
    .hero-container { gap: 20px; }
    .features-grid { gap: 15px; padding: 20px 30px; }
    
    /* 3. Cards ko mobile par center align kiya taake side ki khali jagah khatam ho */
    .feature-card {
        padding: 25px 20px; /* Andar ki padding kam ki taake text ko jagah mile */
        text-align: center;
    }
    .feature-card .icon-wrap {
        margin: 0 auto 15px auto; /* Icon ko center kiya */
    }

    /* Footer Mobile Fix: Puranay conflicting classes hata di hain */
    .footer-container { flex-direction: column; gap: 15px; text-align: center; }
    .footer-links { gap: 15px; flex-wrap: wrap; justify-content: center; }
}