/* Modern Professional Styles for REVA Index Page */

/* Hero Section Enhancements */
.hero-section {
    position: relative;
    overflow: hidden;
}



.carousel-inner img {
    filter: brightness(0.7) contrast(1.1);
    transition: all 0.5s ease;
}

.carousel-caption {
    z-index: 2;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 1.5rem;
    margin: auto;
    max-height: 380px;
    max-width: 700px;
}

.carousel-caption h1 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
    font-size: 2.2rem;
    /* animation: fadeInUp 1s ease-out; */
}

.carousel-caption p {
    font-size: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.carousel-caption .btn {
    animation: fadeInUp 1s ease-out 0.6s both;
    padding: 8px 20px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
    font-size: 0.9rem;
}

.carousel-caption .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(50px);
    border-radius: 50%;
    top: 50%;
    color: white;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.599);
    transform: translateY(-50%) scale(1.1);
    backdrop-filter: blur(50px);

}

/* Section Spacing and Typography */
.container.my-5 {
    padding:  0 0 3rem  0;
}

.container h2 {
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
    position: relative;
    font-size: 1.8rem;
}

.container h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1e3c72, #2a5298);
    border-radius: 2px;
}

.text-muted {
    font-size: 0.95rem;
    margin: auto 0;
}

/* Product Cards Enhancement */
.product-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: #ffffff;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e3c72, #2a5298, #64b5f6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    transform: translateY(-6px);
box-shadow: 0 0 12px 0 rgba(30, 60, 114, 0.3) !important;

}

.product-card .card-img-top {
    transition: all 0.3s ease;
    padding: 15px;
}

.product-card:hover .card-img-top {
    transform: scale(1.1);
}

.product-card .card-body {
    padding: 1.2rem 1.2rem 0 1.2rem;
}

.product-card .card-title {
    font-weight: 600;
    color: #1e3c72;
    margin-bottom: 0;
    font-size: 1rem;
}

.product-card .btn {
    border-radius: 20px;
    padding: 8px 18px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border: none;
    font-size: 0.85rem;
}

.product-card .btn:hover {
    background: linear-gradient(135deg, #2a5298, #64b5f6);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
}

/* Features Section */
.bg-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    position: relative;
}

.bg-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23000" opacity="0.02"/><circle cx="75" cy="75" r="1" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
}

.bg-light .container {
    position: relative;
    z-index: 1;
}

.bg-light h3 {
    color: #1e3c72;
    font-weight: 700;
    margin-bottom: 1.2rem;
    position: relative;
    font-size: 1.4rem;
}

.bg-light h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #1e3c72, #64b5f6);
    border-radius: 2px;
}

.bg-light ul li {
    padding: 6px 0;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.bg-light ul li:hover {
    transform: translateX(5px);
    color: #1e3c72;
}

.bg-light ul li i {
    margin-right: 10px;
    font-size: 1rem;
}

/* Featured Products Links */
.bg-light a {
    color: #1e3c72;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    font-size: 0.95rem;
}

.bg-light a:hover {
    color: #2a5298;
    border-bottom-color: #64b5f6;
    transform: translateX(5px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Professional Modern Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
    background: #ffffff;
    border-radius: 6px;
    padding: 0.8rem;
    margin: 0.8rem auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8eaed;
    position: relative;
    max-width: 95%;
}

/* .animate-on-scroll.animated:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    transition: all 0.3s ease;
} */

.animate-on-scroll.animated h1,
.animate-on-scroll.animated h2,
.animate-on-scroll.animated h3 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.animate-on-scroll.animated h1 {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
}

.animate-on-scroll.animated h2 {
    font-size: 1.8rem;
}

.animate-on-scroll.animated h3 {
    font-size: 1.3rem;
}

.animate-on-scroll.animated p {
    color: #5a6c7d;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.animate-on-scroll.animated .btn {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 6px 18px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.animate-on-scroll.animated .btn:hover {
    background: #357abd;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .carousel-caption {
        padding: 1.2rem;
        margin: 0 0.8rem;
    }
    
    .carousel-caption h1 {
        font-size: 1.8rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev {
        left: 12px;
    }
    
    .carousel-control-next {
        right: 12px;
    }
    
    .container.my-5 {
        padding: 1.5rem 0;
    }
    
    .product-card:hover {
        transform: translateY(-4px);
    }
    
    .animate-on-scroll.animated {
        padding: 1rem 0.8rem;
        margin: 0.6rem;
    }
    
    .animate-on-scroll.animated h1 {
        font-size: 1.8rem;
    }
    
    .animate-on-scroll.animated h2 {
        font-size: 1.6rem;
    }
    
    .animate-on-scroll.animated h3 {
        font-size: 1.15rem;
    }
    
    .animate-on-scroll.animated p {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .carousel-caption h1 {
        font-size: 1.3rem;
    }
    
    .carousel-caption {
        padding: 0.8rem;
    }
    
    .container h2 {
        font-size: 1.6rem;
    }
    
    .animate-on-scroll.animated {
        padding: 0.8rem 0.6rem;
        margin: 0.3rem;
    }
    
    .animate-on-scroll.animated h1 {
        font-size: 1.5rem;
    }
    
    .animate-on-scroll.animated h2 {
        font-size: 1.3rem;
    }
    
    .animate-on-scroll.animated h3 {
        font-size: 1.1rem;
    }
    
    .animate-on-scroll.animated .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* Uniform Product Image Sizing */
.card-img-top,
.product-card .card-img-top {
    height: 170px;
    width: 100%;
    object-fit: contain;
    object-position: center;
    background: #f8f9fa;
    box-shadow: 0 0 12px 0 rgba(30, 60, 114, 0.3);
    padding: 0px !important;
    border-radius: 6px 6px 0 0;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .card-img-top,
    .product-card .card-img-top {
        height: 150px;
        padding: 12px;
    }
}

@media (max-width: 576px) {
    .card-img-top,
    .product-card .card-img-top {
        height: 130px;
        padding: 10px;
    }
}

/* Reduced margin for mb-4 elements */
.mb-4 {
    margin-bottom: 1.2rem !important;
}

/* Focus States for Accessibility */
.btn:focus,
.card:focus {
    outline: 2px solid #64b5f6;
    outline-offset: 2px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* ===== DYNAMIC PRODUCTS VIEW STYLES ===== */

/* Modern Breadcrumb */
.breadcrumb {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    padding: 0.8rem 1.2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(30, 60, 114, 0.1);
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: #1e3c72;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.breadcrumb-item a:hover {
    color: #2a5298;
    transform: translateX(2px);
}

.breadcrumb-item.active {
    color: #64b5f6;
    font-weight: 600;
}

/* Enhanced Sidebar */
.col-md-3 .card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    background: #ffffff;
    position: sticky;
    top: 15px;
}

.col-md-3 .card-header {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    border: none;
    padding: 1rem 1.2rem;
    position: relative;
}

.col-md-3 .card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #64b5f6, #42a5f5);
}

.col-md-3 .card-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.col-md-3 .card-body {
    padding: 1.2rem;
    background: #fafbfc;
}

/* Category Links in Sidebar */
.col-md-3 .card-body a {
    display: block;
    padding: 8px 12px;
    margin: 3px 0;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    background: #ffffff;
    border: 1px solid #e9ecef;
    font-size: 0.9rem;
}

.col-md-3 .card-body a:hover {
    background: linear-gradient(135deg, #f8f9ff, #e3f2fd);
    color: #1e3c72;
    transform: translateX(6px);
    box-shadow: 0 2px 12px rgba(30, 60, 114, 0.15);
    border-color: #64b5f6;
}

.col-md-3 .card-body a.fw-bold.text-primary {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white !important;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(30, 60, 114, 0.3);
    border-color: #1e3c72;
}

.col-md-3 .card-body a.fw-bold.text-primary:hover {
    background: linear-gradient(135deg, #2a5298, #64b5f6);
    transform: translateX(5px) scale(1.02);
}

/* Main Content Header */
.col-md-9 .d-flex.justify-content-between {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(30, 60, 114, 0.1);
    position: relative;
    overflow: hidden;
}

.col-md-9 .d-flex.justify-content-between::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e3c72, #2a5298, #64b5f6);
}

.col-md-9 h2 {
    color: #1e3c72;
    font-weight: 700;
    margin: 0;
    font-size: 1.7rem;
    position: relative;
}

.col-md-9 .text-muted {
    background: rgba(30, 60, 114, 0.1);
    color: #1e3c72 !important;
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: 500;
    font-size: 0.85rem;
}

/* Enhanced Product Cards */
.col-md-9 .product-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: #ffffff;
    position: relative;
    height: 100%;
}

.col-md-9 .product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e3c72, #2a5298, #64b5f6);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    z-index: 1;
}

.col-md-9 .product-card:hover::before {
    transform: scaleX(1);
}

.col-md-9 .product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(30, 60, 114, 0.2);
}

/* Product Card Images */
.col-md-9 .product-card .card-img-top {
    height: 180px;
    object-fit: contain;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    padding: 15px;
    transition: all 0.4s ease;
    border-bottom: 1px solid #e9ecef;
}

.col-md-9 .product-card:hover .card-img-top {
    transform: scale(1.10);
    background: linear-gradient(135deg, #ffffff, #f0f8ff);
}



/* Product Card Body */
.col-md-9 .product-card .card-body {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    height: calc(100% - 180px);
}

.col-md-9 .product-card .card-title {
    color: #1e3c72;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.6rem;
    line-height: 1.3;
    min-height: 2.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.col-md-9 .product-card .card-text {
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
    flex-grow: 1;
}

/* Product Card Buttons */
.col-md-9 .product-card .btn {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.col-md-9 .product-card .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.col-md-9 .product-card .btn:hover::before {
    left: 100%;
}

.col-md-9 .product-card .btn:hover {
    background: linear-gradient(135deg, #2a5298, #64b5f6);
    transform: translateY(-2px);
    color: white;
    padding-right: 25px;
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.3);
}

/* No Products Message */
.col-12.text-center p.text-muted {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
    color: #6c757d;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
}

.col-12.text-center p.text-muted::before {
    content: '\f06a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 2.5rem;
    color: #dee2e6;
    display: block;
    margin-bottom: 0.8rem;
}

/* Responsive Enhancements for Products View */
@media (max-width: 768px) {
    .col-md-3 .card {
        position: static;
        margin-bottom: 2rem;
    }
    
    .col-md-9 .d-flex.justify-content-between {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
        padding: 1rem 1.2rem;
    }
    
    .col-md-9 h2 {
        font-size: 1.5rem;
    }
    
    .col-md-9 .product-card:hover {
        transform: translateY(-6px);
    }
    
    .breadcrumb {
        padding: 0.6rem 0.8rem;
        margin-bottom: 1.2rem;
    }
}

@media (max-width: 576px) {
    .col-md-9 h2 {
        font-size: 1.3rem;
    }
    
    .col-md-9 .product-card .card-img-top {
        height: 150px;
        padding: 12px;
    }
    
    .col-md-9 .product-card .card-body {
        padding: 1rem;
    }
    
    .col-md-3 .card-body a {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    
    .breadcrumb {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }
}

/* Loading Animation for Product Cards */
@keyframes cardLoad {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.col-md-9 .product-card {
    animation: cardLoad 0.6s ease-out;
}

.col-md-9 .product-card:nth-child(1) { animation-delay: 0.1s; }
.col-md-9 .product-card:nth-child(2) { animation-delay: 0.2s; }
.col-md-9 .product-card:nth-child(3) { animation-delay: 0.3s; }
.col-md-9 .product-card:nth-child(4) { animation-delay: 0.4s; }
.col-md-9 .product-card:nth-child(5) { animation-delay: 0.5s; }
.col-md-9 .product-card:nth-child(6) { animation-delay: 0.6s; }

/* Enhanced Hover Effects */
.col-md-3 .card-body a::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid currentColor;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    opacity: 0;
    transition: all 0.3s ease;
}

.col-md-3 .card-body a:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(3px);
}