:root {
    /* Premium Color Palette */
    --primary: #2E7D32;
    /* Deep Forest Green */
    --primary-light: #4CAF50;
    /* Vibrant Green */
    --primary-dark: #1B5E20;
    /* Darker Green */
    --secondary: #FFB300;
    /* Rich Amber */
    --secondary-light: #FFCA28;
    --accent: #00E676;
    /* Neon Green Accent */

    --dark: #0f172a;
    /* Slate 900 */
    --dark-muted: #334155;
    /* Slate 700 */
    --light: #f8fafc;
    /* Slate 50 */
    --white: #ffffff;
    --gray: #64748b;
    /* Slate 500 */

    /* Effects */
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-blur: blur(12px);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-green: 0 10px 25px -5px rgba(46, 125, 50, 0.4);

    --radius: 16px;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Scroll Reveal Class */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Delays */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Hind Siliguri', 'Outfit', sans-serif;
    background-color: #f0f2f5;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
    background-image: radial-gradient(at 0% 0%, hsla(112, 65%, 89%, 1) 0, transparent 50%), radial-gradient(at 50% 100%, hsla(125, 97%, 93%, 1) 0, transparent 50%);
    background-attachment: fixed;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Hind Siliguri', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: var(--shadow-green);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    opacity: 0;
    z-index: -1;
    transition: var(--transition);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(46, 125, 50, 0.5);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid transparent;
    /* Changed from border to shadow for cleaner look */
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 16px;
    background: linear-gradient(to right, var(--primary-dark), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 16px 0;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo i {
    color: var(--primary-light);
    filter: drop-shadow(0 2px 4px rgba(46, 125, 50, 0.2));
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.location-select {
    padding: 10px 20px;
    border: 1px solid var(--primary-light);
    border-radius: 50px;
    color: var(--primary-dark);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.location-select:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-muted);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    font-size: 1.05rem;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 20px;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

/* Hero Section */
.hero {
    height: 100vh;
    /* Fill entire viewport */
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    background-image: url('https://images.unsplash.com/photo-1625246333195-78d9c38ad449?q=80&w=2000&auto=format&fit=crop');
    /* Better Rice Field Image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-bottom: 0px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    backdrop-filter: blur(2px);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 800px;
    /* Center visually */
    margin-top: 60px;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(to right, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
    animation: fadeUp 1s ease-out;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 650px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeUp 1s ease-out 0.2s backwards;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeUp 1s ease-out 0.4s backwards;
}

/* Market Section */
.market-section {
    position: relative;
    background: transparent;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.market-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.market-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary-light);
}

.market-info h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
    color: var(--dark);
}

.market-info p {
    font-size: 0.95rem;
    color: var(--gray);
}

.market-price {
    text-align: right;
}

.price-tag {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.price-unit {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 500;
}

.trend-up {
    color: #e53935;
    background: rgba(229, 57, 53, 0.1);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.trend-down {
    color: var(--primary);
    background: rgba(46, 125, 50, 0.1);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Weather Section */
.weather-section {
    background: linear-gradient(120deg, #2193b0, #6dd5ed);
    color: var(--white);
    padding: 80px 0;
    border-radius: 0;
    /* Full width bg */
    position: relative;
    overflow: hidden;
}

.weather-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.1;
}

.weather-section .section-header h2 {
    color: var(--white);
    background: none;
    -webkit-text-fill-color: var(--white);
}

.weather-section .section-header p {
    color: rgba(255, 255, 255, 0.9);
}

.weather-card-wrapper {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.weather-main-card {
    flex: 1;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.weather-location {
    font-size: 2rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.weather-current {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.weather-current .temp {
    font-size: 6rem;
    font-weight: 700;
    line-height: 1;
}

.weather-current .condition {
    font-size: 1.8rem;
    text-align: right;
    font-weight: 500;
}

.weather-forecast {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.forecast-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 16px 24px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.forecast-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

/* Advice Section */
.advice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.advice-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.advice-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.advice-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

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

.advice-card:hover .advice-img img {
    transform: scale(1.1);
}

.advice-content {
    padding: 28px;
}

.tag {
    background: #e8f5e9;
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.advice-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--dark);
    line-height: 1.3;
}

.advice-content p {
    color: var(--gray);
    margin-bottom: 8px;
    font-size: 1rem;
}

/* Ask Question Box / Form */
.ask-question-box {
    background: var(--white);
    padding: 48px;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

/* Decorative background circle */
.ask-question-box::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: var(--primary-light);
    opacity: 0.05;
    border-radius: 50%;
}

.ask-question-box h3 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary);
    font-size: 2rem;
}

.form-row {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    background: #f8fafc;
    color: var(--dark);
}

.form-input:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
}

.file-upload label {
    display: inline-block;
    padding: 12px 24px;
    background: #f1f5f9;
    border-radius: 12px;
    cursor: pointer;
    color: var(--dark-muted);
    font-weight: 600;
    transition: var(--transition);
    border: 2px dashed #cbd5e1;
    width: 100%;
    text-align: center;
}

.file-upload label:hover {
    background: #e2e8f0;
    border-color: var(--primary);
    color: var(--primary);
}

/* Video Section */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.video-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.video-thumb iframe {
    width: 100%;
    aspect-ratio: 16/9;
}

.video-info {
    padding: 24px;
}

.video-info h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--dark);
}

/* Community Section */
.community-card {
    background: var(--white);
    padding: 32px;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    border-top: 5px solid var(--secondary);
    transition: var(--transition);
}

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

.community-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--dark);
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 80px 0 30px;
    margin-top: 100px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    font-size: 2rem;
    margin-bottom: 24px;
    color: var(--secondary);
}

.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.05rem;
    display: block;
    padding: 4px 0;
}

.footer-col ul li a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .nav-links,
    .location-select {
        display: none;
    }

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

    .form-row {
        flex-direction: column;
        gap: 16px;
    }
}

/* Chatbot Styles */
.chatbot-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary), #FFA000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(255, 179, 0, 0.4);
    cursor: pointer;
    z-index: 9999;
    transition: var(--transition);
    animation: float 3s ease-in-out infinite;
}

.chatbot-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 179, 0, 0.6);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.chatbot-window {
    position: fixed;
    bottom: 100px;
    left: 30px;
    width: 350px;
    height: 500px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.chatbot-window.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.chatbot-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 15px 20px;
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h3 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-chat {
    cursor: pointer;
    opacity: 0.8;
}

.close-chat:hover {
    opacity: 1;
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f8fafc;
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.bot-message {
    background: white;
    align-self: flex-start;
    border-top-left-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    color: var(--dark);
    border: 1px solid #e2e8f0;
}

.user-message {
    background: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.2);
}

.chatbot-input {
    padding: 15px;
    background: white;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
}

.chatbot-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 25px;
    outline: none;
    font-family: inherit;
}

.chatbot-input input:focus {
    border-color: var(--primary);
}

.chatbot-input button {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.chatbot-input button:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Mobile Responsiveness for Chatbot */
@media (max-width: 480px) {
    .chatbot-window {
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .chatbot-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
    }
}