/* Reset & base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background: #f9f9f9;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: #0d47a1;
    color: white;
}
header .logo {
    font-size: 1.5rem;
    font-weight: bold;
}
header nav ul {
    display: flex;
    list-style: none;
}
header nav ul li {
    margin-left: 20px;
}
header nav ul li a {
    color: white;
    text-decoration: none;
}
.search-bar input {
    padding: 5px;
    border-radius: 5px;
    border: none;
}

/* Hero */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: url('../images/hero-banner.jpg') no-repeat center center/cover;
    color: white;
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.hero .btn {
    padding: 10px 20px;
    margin: 10px;
    background: #ff6f00;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}
.hero .btn-secondary {
    background: #00796b;
}

/* Featured Products */
.featured-products {
    padding: 50px 20px;
    text-align: center;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.product-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.product-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}
.product-card button {
    margin-top: 10px;
    padding: 10px;
    background: #0d47a1;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: #0d47a1;
    color: white;
}
/* Header Styling */
header {
    background-color: #0d47a1;
    color: white;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 1px;
}

nav ul.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav ul.nav-links li a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
}

nav ul.nav-links li a:hover {
    background-color: #ff6f00;
    color: white;
}

.search-bar {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 25px;
    overflow: hidden;
}

.search-bar input {
    border: none;
    padding: 6px 12px;
    outline: none;
    border-radius: 25px 0 0 25px;
    width: 150px;
    transition: width 0.3s;
}

.search-bar input:focus {
    width: 250px;
}

.search-bar button {
    background: #ff6f00;
    border: none;
    color: white;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 0 25px 25px 0;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}

/* Responsive */
@media screen and (max-width: 900px) {
    nav ul.nav-links {
        display: none;
        position: absolute;
        top: 60px;
        right: 20px;
        flex-direction: column;
        background: #0d47a1;
        width: 200px;
        padding: 15px;
        border-radius: 8px;
    }
    nav ul.nav-links.show {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
}
/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.5); /* darken video for text readability */
}

.hero-overlay {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;
}

.carousel-item {
    display: none;
    animation: fade 1s;
}

.carousel-item.active {
    display: block;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.btn {
    padding: 12px 25px;
    margin: 5px;
    background: #ff6f00;
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn:hover {
    background: #ffa000;
}

.btn-secondary {
    background: #00796b;
}

.btn-secondary:hover {
    background: #004d40;
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    width: 100%;
    top: 50%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
}

.carousel-controls span {
    cursor: pointer;
    font-size: 3rem;
    color: white;
    transition: 0.3s;
}

.carousel-controls span:hover {
    color: #ff6f00;
}

/* Fade animation */
@keyframes fade {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* Responsive */
@media screen and (max-width: 768px){
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1.2rem;
    }
}
/* Featured Products */
.featured-products {
    padding: 50px 20px;
    text-align: center;
    background: #f9f9f9;
}

.featured-products h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.product-filters {
    margin-bottom: 30px;
}

.product-filters .filter-btn {
    background: #0d47a1;
    color: white;
    border: none;
    padding: 10px 18px;
    margin: 5px;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s;
}

.product-filters .filter-btn:hover,
.product-filters .filter-btn.active {
    background: #ff6f00;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.product-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

.product-card .view-details {
    display: inline-block;
    margin-top: 8px;
    text-decoration: none;
    color: #0d47a1;
    font-weight: bold;
}

.product-card button.add-cart {
    padding: 8px 15px;
    margin-top: 8px;
    background: #ff6f00;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.product-card button.add-cart:hover {
    background: #ffa000;
}