/* ============================================
   KRISHNA AGRO - Main Stylesheet
   Modern Agriculture Company Website
============================================ */

/* ========== ROOT VARIABLES ========== */
:root {
    --primary-green: #2e7d32;
    --light-green: #81c784;
    --dark-green: #1b5e20;
    --success: #4caf50;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --border-radius: 12px;
    --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== GLOBAL STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.hindi-tagline {
    font-family: 'Noto Sans Devanagari', sans-serif;
}

/* ========== LOADING ANIMATION ========== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner i {
    animation: spin 2s linear infinite;
}

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

/* ========== NAVBAR ========== */
.navbar {
    padding: 1rem 0;
    transition: padding 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--box-shadow);
}

.brand-logo {
    height: 55px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
}

.footer-logo {
    height: 70px;
    width: auto;
    background: white;
    padding: 8px 12px;
    border-radius: 10px;
    object-fit: contain;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    letter-spacing: 1px;
}

.nav-link {
    font-weight: 500;
    color: var(--dark);
    padding: 0.5rem 1rem;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-green);
}

/* ========== BUTTONS ========== */
.btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.btn-success {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--dark-green), var(--primary-green));
}

.btn-outline-success {
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    background: transparent;
}

.btn-outline-success:hover {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-green);
}

/* ========== HERO SECTION ========== */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #1a5928 0%, #2e7d32 50%, #4caf50 100%);
    min-height: 100vh;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255,255,255,0.05) 0%, transparent 50%);
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.9);
}

.bg-success-gradient {
    background: linear-gradient(135deg, #66bb6a, #81c784);
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.hero-image-card {
    position: relative;
    z-index: 2;
    animation: float 3s ease-in-out infinite;
}

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

/* Hero Animated Shapes */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: float-shape 8s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 5%;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 15%;
    left: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 20%;
    animation-delay: 4s;
}

@keyframes float-shape {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* ========== STATISTICS SECTION ========== */
.stats-section {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
}

.counter {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* ========== TITLE STYLES ========== */
.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--light-green));
    border-radius: 10px;
    margin-top: 1rem;
}

/* ========== FEATURE CARDS ========== */
.feature-card {
    padding: 2.5rem 2rem;
    background: white;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(46, 125, 50, 0.15);
}

.icon-box {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.bg-success-light {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}

.feature-card:hover .icon-box {
    transform: scale(1.1) rotate(360deg);
}

/* ========== PRODUCT CARDS ========== */
.product-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 280px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

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

.product-content {
    padding: 1.5rem;
}

.product-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.product-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.home-price-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.25);
}

.home-price-tag span {
    font-size: 1.1rem;
    font-weight: 800;
    margin-left: 6px;
}

/* ========== TESTIMONIALS ========== */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(46, 125, 50, 0.12);
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.rating i {
    font-size: 1rem;
}

/* ========== CTA SECTION ========== */
.bg-gradient-success {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
}

/* ========== FOOTER ========== */
.footer {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--light-green);
    padding-left: 5px;
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    background: var(--primary-green);
    transform: translateY(-3px);
    color: white;
}

/* ========== SCROLL TO TOP BUTTON ========== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    background: var(--dark-green);
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 991px) {
    .hero-image-card {
        animation: none;
        margin-top: 2rem;
    }
    .hero-image-card img {
        position: relative;
        width: 100%;
        max-height: 350px;
        object-fit: cover;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .counter {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .product-image {
        height: 200px;
    }
    
    .hero-image-card {
        animation: none !important;
    }
    
    .hero-image-card img {
        max-height: 300px;
    }
}

/* ========== UTILITY CLASSES ========== */
.section-padding {
    padding: 80px 0;
}

.text-success {
    color: var(--primary-green) !important;
}

.bg-light {
    background-color: var(--light-bg) !important;
}