/* C:\wamp64\www\biteweb\inventory\public\frontend\style.css */
:root {
    --primary-color: #1976d2; /* A nice blue from MUI palette */
    --secondary-color: #f50057; /* A vibrant pink for accents */
    --background-color: #f5f5f5;
    --surface-color: #ffffff;
    --on-background-color: #212121;
    --on-surface-color: #212121;
    --text-light-color: #666;
    --text-dark-color: #333;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-hover-color: rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Roboto', 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--on-background-color);
    line-height: 1.6;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Navbar */
.navbar {
    background-color: var(--surface-color);
    box-shadow: 0 2px 4px var(--shadow-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.brand-logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--on-surface-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.sidenav-trigger {
    display: none; /* Hidden on desktop */
    color: var(--primary-color);
}

/* Hero Swiper Slider */
.hero-slider {
    width: 100%;
    height: 85vh;
    max-height: 600px;
    position: relative;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
}

.swiper-slide .content {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem 3rem;
    border-radius: 8px;
}

.swiper-slide h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.swiper-slide p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn:hover {
    background-color: #1565c0; /* Darker blue */
    transform: translateY(-2px);
}

/* Section general styling */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 50px;
}

/* About Us Section */
#about {
    background-color: var(--surface-color);
}

.about-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
}

.about-content, .about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 8px 20px var(--shadow-color);
}

/* Product Section */
#products {
    background-color: var(--background-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--surface-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px var(--shadow-hover-color);
}

.product-image-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.product-content {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-name {
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--on-surface-color);
}

.product-description {
    color: var(--text-light-color);
    font-size: 0.9rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Contact Us Section */
#contact {
    background-color: var(--surface-color);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    /* align-items: center; */
}

.contact-info h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-info ul {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.contact-info ul li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.contact-map iframe {
    border-radius: 8px;
    box-shadow: 0 8px 20px var(--shadow-color);
    width: 100%;
    height: 450px;
}

/* Footer */
.footer {
    background-color: #212121;
    color: #f5f5f5;
    padding: 40px 0;
}

.footer-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-links a {
    color: #f5f5f5;
    text-decoration: none;
    margin-left: 1.5rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #424242;
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 700px;
    border-radius: 8px;
    position: relative;
    animation: slide-down 0.4s ease-out;
}

.modal-close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-close:hover,
.modal-close:focus {
    color: black;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.modal-image img {
    width: 100%;
    border-radius: 8px;
}

.modal-details #modal-product-name {
    font-size: 2rem;
    margin-top: 0;
}

@keyframes slide-down {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide desktop nav links */
    }

    .sidenav-trigger {
        display: block; /* Show hamburger icon */
    }

    .hero-slider {
        height: 60vh;
    }

    .swiper-slide h1 {
        font-size: 2rem;
    }

    .swiper-slide p {
        font-size: 1rem;
    }

    .swiper-slide .content {
        padding: 1.5rem;
        margin: 1.5rem;
    }

    .about-wrapper {
        flex-direction: column;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        margin-top: 1rem;
    }

    .footer-links a {
        margin: 0 10px;
    }

    .modal-content {
        width: 90%;
        margin: 20% auto;
    }
    .modal-body {
        grid-template-columns: 1fr;
    }
}

/* Sidenav for mobile */
.sidenav {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background-color: var(--surface-color);
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    z-index: 1001;
    padding-top: 60px;
}

.sidenav.active {
    left: 0;
}

.sidenav ul {
    list-style: none;
}

.sidenav ul li a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--on-surface-color);
    font-weight: 500;
}

.sidenav ul li a:hover {
    background-color: var(--background-color);
}

.sidenav-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2rem;
    color: var(--on-surface-color);
    cursor: pointer;
}

/* Swiper Customizations */
.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.8);
    width: 10px;
    height: 10px;
    opacity: 1;
    transition: background-color 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
}

.swiper-button-next, .swiper-button-prev {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, background-color 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 70%;
}

.swiper-button-next::after, .swiper-button-prev::after {
    display: none;
}

.swiper-button-prev {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231976d2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E");
}

.swiper-button-next {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231976d2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E");
}

.hero-slider:hover .swiper-button-next,
.hero-slider:hover .swiper-button-prev {
    opacity: 1;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    transform: scale(1.1);
    background-color: #ffffff;
}

.swiper-button-next svg,
.swiper-button-prev svg {
    display: none;
}