﻿body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

/* HERO SECTION */
.maize-hero {
    background: url('/Content/Image/MaizeRease.jpg') center/cover no-repeat;
    height: 85vh;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.55);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: #fff;
}

    .hero-content h1 {
        font-size: 60px;
        margin-bottom: 20px;
    }

    .hero-content p {
        font-size: 20px;
        margin-bottom: 30px;
    }

.hero-btn {
    background: #ffcc00;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    color: #000;
    font-weight: bold;
    display: inline-block;
    transition: 0.3s;
}

    .hero-btn:hover {
        background: #e6b800;
        transform: scale(1.05);
    }

/* ===== SECTION HEADER (PROFESSIONAL ADDITION) ===== */
.product-grid-section {
    background: #f8fbf8;
}

.section-header {
    text-align: center;
    padding-top: 60px;
    margin-bottom: 20px;
}

.section-badge {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 6px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.5rem;
    margin: 16px 0 12px 0;
    font-weight: 700;
    color: #1a2e1f;
}

.highlight {
    color: #2e7d32;
}

.section-subtitle {
    color: #5a6e5a;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* PRODUCT GRID */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    padding: 50px 80px 70px 80px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 40px 40px 60px 40px;
    }
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
        padding: 30px 20px 50px 20px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

/* ===== PRODUCT CARD (UPDATED FOR PROFESSIONAL IMAGES) ===== */
.product-card {
    border-radius: 22px;
    padding: 24px 20px 20px 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transition: 0.3s;
    cursor: pointer;
}

    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    }

/* ===== PROFESSIONAL IMAGE WRAPPER - FULL VISIBILITY, ZOOM-OUT, NO CROP ===== */
.product-image-wrapper {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 15px;
}

.image-frame {
    width: 100%;
    min-height: 240px;
    background: #ffffff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05), 0 2px 8px rgba(0, 0, 0, 0.02);
}

/* CRITICAL: FULL IMAGE VISIBLE, NO CROP, ZOOM-OUT EFFECT */
.product-card img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    /* ZOOM-OUT: image appears comfortably inside frame, fully visible */
    transform: scale(0.85);
    transition: transform 0.35s ease-out;
    border-radius: 12px;
}

/* On hover: subtle scaling but still NO ZOOM-IN, remains fully visible */
.product-card:hover img {
    transform: scale(0.93);
}

/* Remove old conflicting img styles */
.product-card img {
    /* Override previous object-fit: cover with contain */
    object-fit: contain !important;
}

.product-card h3 {
    margin: 15px 0 10px;
    font-size: 24px;
}

.product-card p {
    color: #555;
    margin-bottom: 15px;
}

/* CARD BACKGROUND COLORS */
.card-yodha {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
}

.card-arjun {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

.card-shikhar {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}

.card-kiran {
    background: linear-gradient(135deg, #fce4ec, #f8bbd0);
}

.card-dollar {
    background: linear-gradient(135deg, #fff9c4, #fff59d);
}

/* BUTTON STYLES */
.view-btn {
    margin-top: 18px;
    padding: 12px 28px;
    border: none;
    border-radius: 30px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

    .view-btn:hover {
        transform: scale(1.05);
    }

.yodha-btn {
    background: #fb8c00;
}

.arjun-btn {
    background: #1e88e5;
}

.shikhar-btn {
    background: #43a047;
}

.kiran-btn {
    background: #d81b60;
}

.dollar-btn {
    background: #f9a825;
}

/* DETAILS SECTION */
.details-section {
    background: #f6f7fb;
    padding-bottom: 60px;
}

/* DETAILS BOX - HIDDEN BY DEFAULT */
.details-box {
    display: none;
    background: #fff;
    margin: 60px 120px;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.15);
    position: relative;
}

    /* SHOW CLASS FOR VISIBLE DETAILS */
    .details-box.show {
        display: block;
        animation: fadeIn 0.4s ease;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.details-box h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #2c3e50;
}

/* TABLE STYLES */
.details-box table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.details-box td {
    padding: 14px;
    border-bottom: 1px solid #eee;
}

    .details-box td:first-child {
        font-weight: bold;
        width: 40%;
        background: #f9f9f9;
    }

/* LANGUAGE SWITCH BUTTONS */
.lang-switch {
    text-align: center;
    margin-bottom: 20px;
}

.lang-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 25px;
    margin: 5px 10px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}

    .lang-btn:hover {
        transform: scale(1.05);
        opacity: 0.9;
    }

.en-btn {
    background: #1976d2;
}

.hi-btn {
    background: #ff6f00;
}

/* LANGUAGE CONTENT - HIDDEN BY DEFAULT */
.lang-content {
    display: none;
}

    /* ACTIVE LANGUAGE CONTENT */
    .lang-content.active {
        display: block;
    }

/* CLOSE BUTTON */
.close-btn {
    float: right;
    font-size: 24px;
    cursor: pointer;
    color: #888;
    transition: 0.3s;
    position: absolute;
    top: 20px;
    right: 25px;
}

    .close-btn:hover {
        color: red;
        transform: scale(1.1);
    }

/* Responsive for details box */
@media (max-width: 768px) {
    .details-box {
        margin: 40px 20px;
        padding: 30px 20px;
    }

        .details-box h2 {
            font-size: 22px;
        }

    .lang-btn {
        padding: 8px 18px;
        margin: 5px;
    }
}

/* ===== ADDITIONAL RESPONSIVE FOR IMAGES ===== */
@media (max-width: 992px) {
    .image-frame {
        min-height: 210px;
    }

    .product-card img {
        transform: scale(0.83);
    }

    .product-card:hover img {
        transform: scale(0.91);
    }
}

@media (max-width: 600px) {
    .image-frame {
        min-height: 190px;
    }

    .product-card img {
        transform: scale(0.86);
        max-height: 160px;
    }

    .product-card:hover img {
        transform: scale(0.94);
    }

    .product-image-wrapper {
        padding: 15px;
    }
}

/* Large screens: maintain consistent zoom-out */
@media (min-width: 1600px) {
    .image-frame {
        min-height: 270px;
    }

    .product-card img {
        transform: scale(0.87);
    }
}

/* Guarantee no cropping ever */
.image-frame,
.product-image-wrapper,
.product-card img {
    overflow: visible;
}

/* Optional: add subtle loading effect */
.product-img {
    transition: transform 0.3s ease;
}
