/* assets/css/style.css - Main frontend styles */

:root {
    --primary: #E63946;
    --secondary: #1D3557;
    --accent: #F1A208;
    --bg-light: #F8F9FA;
    --text-dark: #333;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 20px rgba(0,0,0,0.15);
    --radius: 12px;
}

body {
    font-family: 'Hind Siliguri', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

a { text-decoration: none; }

/* Navbar */
.navbar {
    transition: all 0.3s ease;
}
.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
}
.navbar .nav-link {
    font-family: 'Inter', 'Hind Siliguri', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem !important;
}

/* Hero */
.hero-section .carousel-item {
    position: relative;
}
.hero-section .carousel-caption {
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
}
.hero-section .carousel-caption h1 {
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}
.hero-section .carousel-caption p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* Service Cards */
.service-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid rgba(0,0,0,0.05);
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}
.service-card i {
    transition: transform 0.3s ease;
}
.service-card:hover i {
    transform: scale(1.1);
}

/* Product Cards */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: var(--radius);
    overflow: hidden;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}
.product-card .card-img-top {
    transition: transform 0.3s ease;
}
.product-card:hover .card-img-top {
    transform: scale(1.03);
}

/* Buttons */
.btn-danger {
    background: var(--primary);
    border-color: var(--primary);
    transition: all 0.3s ease;
}
.btn-danger:hover {
    background: #c5303e;
    border-color: #c5303e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230,57,70,0.3);
}
.btn-outline-danger {
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline-danger:hover {
    background: var(--primary);
    color: #fff;
}

/* Section Spacing */
section {
    padding: 4rem 0;
}
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1rem;
}

/* Cards */
.card {
    border-radius: var(--radius);
    transition: all 0.3s ease;
}
.card.shadow-sm:hover {
    box-shadow: var(--shadow-hover) !important;
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Counter Section */
.counter {
    font-weight: 700;
    animation: fadeInUp 0.6s ease;
}

/* Footer */
footer a {
    transition: color 0.2s;
}
footer a:hover {
    color: var(--primary) !important;
}

/* Responsive */
@media (max-width: 767px) {
    .hero-section .carousel-caption h1 {
        font-size: 1.5rem;
    }
    .hero-section .carousel-caption p {
        font-size: 1rem;
    }
    section {
        padding: 2rem 0;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.fade-in-up {
    animation: fadeInUp 0.5s ease;
}

/* Price Animation */
/* ===== DARK MODE REINFORCED ===== */
body.dark-mode {
    background-color: #0f111a !important;
    color: #e0e6ed !important;
}
body.dark-mode .bg-white,
body.dark-mode .bg-light,
body.dark-mode .navbar,
body.dark-mode .card,
body.dark-mode .footer,
body.dark-mode .modal-content,
body.dark-mode .dropdown-menu,
body.dark-mode footer {
    background-color: #161925 !important;
    color: #e0e6ed !important;
}
body.dark-mode .text-dark,
body.dark-mode .text-muted,
body.dark-mode .card-title,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode p,
body.dark-mode span,
body.dark-mode li {
    color: #e0e6ed !important;
}
body.dark-mode .border,
body.dark-mode .border-top,
body.dark-mode .border-bottom {
    border-color: #2a2e3f !important;
}
body.dark-mode .form-control,
body.dark-mode .form-select {
    background-color: #0f111a !important;
    border-color: #2a2e3f !important;
    color: #e0e6ed !important;
}
body.dark-mode .nav-link {
    color: #b0b8c1 !important;
}
body.dark-mode .nav-link:hover {
    color: var(--primary) !important;
}
body.dark-mode .service-card {
    background-color: #1c2030 !important;
    border-color: #2a2e3f !important;
}
body.dark-mode #site-dark-toggle i {
    color: #f1c40f !important;
}

.stats-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
}