/* General Body Styles */
body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.7; /* Increased line height for better readability */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* General Section Spacing */
section {
    padding: 6rem 0; /* Increased vertical padding for more space */
}

/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #c0a16b; /* Main color */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Header and Navigation */
.header {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
}

.logo {
    height: 50px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #333;
    transition: color 0.3s;
    margin: 0 10px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #c0a16b;
}

/* Hero Section */
/* IMAGE TO REPLACE: This is the main background image for the top section. */
.hero-section {
    background: url('../img/hero-background.jpg') no-repeat center center/cover;
    min-height: 80vh;
    position: relative;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-logo {
    max-width: 250px;
    height: auto;
}

/* Icons Bar Section */
.icons-bar {
    padding: 5.5rem 0; /* Custom padding for this bar */
}
.fa-medal, .fa-shipping-fast, .fa-headset {
    color: #c0a16b;
}

/* Featured Section - Continuous Scroller */
.scrolling-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    height: 350px; /* ADJUSTABLE: Change this value (e.g., 200px, 300px) to control the height of the squares */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.scroller {
    display: flex;
    /* Width is calculated based on item size: 12 items * (250px width + 20px margin) */
    width: 3240px; 
    height: 100%;
    animation: scroll 30s linear infinite;
}

.scrolling-wrapper:hover .scroller {
    animation-play-state: paused;
}

.scroller-item {
    height: 100%;
    aspect-ratio: 1 / 1; /* This makes width equal to height */
    margin: 0 10px;
    flex-shrink: 0; /* Prevents items from shrinking */
}

.scroller-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents image distortion */
    border-radius: 8px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Move by the width of the original 6 images */
        /* 6 * (250px width + 20px margin) = 1620px */
        transform: translateX(-1620px);
    }
}


/* Products Section */
.products-section .card {
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 10px;
}

.products-section .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.products-section .card-title {
    color: #c0a16b;
}

/* Services Section */
/* IMAGE TO REPLACE: This is the background for the services section. */
.services-section {
    background: url('../img/services-background.jpg') no-repeat center center/cover;
    background-attachment: fixed; /* Parallax effect */
    background-color: rgba(0, 0, 0, 0.5)!important;
}

.service-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: 100%;
}

.service-box h3 {
    color: #333;
    border-bottom: 2px solid #c0a16b;
    padding-bottom: 10px;
    display: inline-block;
}

.service-box ul li {
    padding: 10px 0; /* More space between list items */
    font-size: 1.1rem;
}

.service-box .fas {
    color: #c0a16b;
    width: 25px; /* Align icons */
}

/* Contact Section */
.contact-section .form-control {
    border-radius: 8px;
    padding: 12px;
}

.contact-section .btn-primary {
    background-color: #c0a16b;
    border-color: #c0a16b;
    padding: 12px 30px;
    font-weight: 700;
    border-radius: 50px;
    transition: background-color 0.3s, border-color 0.3s;
}

.contact-section .btn-primary:hover {
    background-color: #a98c57;
    border-color: #a98c57;
}

#form-message.success {
    color: green;
    font-weight: bold;
}

#form-message.error {
    color: red;
    font-weight: bold;
}

/* Footer */
.footer {
    position: relative;
    background-color: #222; /* Dark fallback color */
    padding: 4rem 0;
    overflow: hidden; /* Important for the pseudo-element */
}

/* IMAGE TO REPLACE: This is the background for the footer. */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/hero-background.jpg') no-repeat center center/cover;
    opacity: 0.1; /* Adjust transparency here */
    z-index: 0;
}

.footer .container {
    position: relative; /* Ensure content is above the pseudo-element */
    z-index: 1;
}

.footer .footer-logo {
    height: 60px;
    margin-bottom: 1.5rem;
}

.footer .contact-info {
    margin-bottom: 2rem;
    color: #ccc;
    line-height: 1.8;
}

.footer .contact-info p {
    margin-bottom: 0.5rem;
}

.footer .contact-info a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer .contact-info a:hover {
    color: #c0a16b;
}

.footer .copyright {
    color: #888;
    font-size: 0.9rem;
    margin-top: 1rem;
}


/* Responsive Design */
@media (max-width: 991.98px) {
    .navbar-nav {
        text-align: center;
        background: #fff;
        padding: 10px;
        border-radius: 8px;
        margin-top: 10px;
    }
    
    .hero-section {
        min-height: 50vh;
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    .scrolling-wrapper {
        height: 200px; /* Smaller height on mobile */
    }

    .scroller {
        /* 12 items * (200px + 20px) */
        width: 2640px;
    }

    @keyframes scroll {
        100% {
            /* 6 * (200px + 20px) */
            transform: translateX(-1320px);
        }
    }
}
