*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

body,html {
    overflow-x: hidden;
}

/* ########## NavBar ########## */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    padding: 15px 35px;
    position: fixed;
    width: 100%;
}

.logo {
    color: #fff;
    font-size: 2em;
    cursor: pointer;
    text-align: center;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 35px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2em;
    transition: .4s all ease-in-out;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    background-color: #fff;
    height: 3px;
    width: 25px;
    margin: 3px 0;
    transition: 0.3s;
}

/* ########## Hero ########## */
.hero {
    background-image: url(../img/home-background.webp);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    color: #fff;
    text-align: center;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 6.5rem;
    margin-bottom: 1.5rem;
    animation: fadeIn 2s ease-out;
    text-shadow: 2px 2px 10px #000;
}

.hero p {
    font-size: 3.2rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 3px #000;
}

.hero button {
    background-color: #f4a261;
    border: none;
    color: #fff;
    padding: 0.75rem 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    animation: slideIn 1s ease-out;
}

.hero button:hover {
    background-color: #e76f51;
}

/* Featured and Trending Products Section */
.featured-products h2,.trending-products h2{
    font-size: 3rem;
    padding: 10px 0;
    text-align: center;
}

.featured-products p, .trending-products p {
    text-align: center;
    padding: 10px 0 20px;
    font-size: 20px;
    color: red;
    font-weight: bold;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding: 40px;
    background-color: #f9f9f9;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 20px 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1s ease-out;
}

.product-card p{
    color: rgb(0, 255, 0);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.product-card img {
    width: 100%;
    height: auto;
    display: block;
}

.product-card h3 {
    margin: 1rem;
    font-size: 1.25rem;
}

.product-card p {
    margin: 0 1rem 1rem;
    font-size: 1.1rem;
}

.product-card a {
    background-color: #f4a261;
    text-decoration: none;
    border: none;
    color: #fff;
    padding: 0.5rem;
    width: calc(100% - 2rem);
    margin: 0 1rem 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.product-card button:hover {
    background-color: #e76f51;
}

/* Call-to-Action Section */
.cta {
    background-color: #333;
    color: #fff;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.cta h2 {
    margin-bottom: 1rem;
}

.cta p {
    margin-bottom: 1.5rem;
}

.cta input[type="email"] {
    padding: 0.75rem;
    width: 60%;
    max-width: 400px;
    border: none;
    border-radius: 5px;
    margin-right: 0.5rem;
}

.cta button {
    background-color: #f4a261;
    border: none;
    color: #fff;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta button:hover {
    background-color: #e76f51;
}

.cta ul {
    list-style: none;
    margin-top: 1.5rem;
}

.cta ul li {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.cta ul li i {
    margin-right: 0.5rem;
    color: #f4a261;
}

footer{
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 20px;
    font-weight: 600;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ########## Mobile ########## */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        right: 20px;
        background-color: #333;
        padding: 15px;
        width: 200px;
        border-radius: 5px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .nav-links li a:hover{
        color: #e76f51;
    }

    .menu-toggle {
        display: flex;
    }

    .logo{
        color: #fff;
        font-size: 1.4em;
        cursor: pointer;
        text-align: center;
        font-weight: bold;
    }

    .hero {
        background-image: url(../img/home-background.webp);
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
        height: 60vh;
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        color: #fff;
        text-align: center;
        margin-bottom: 2rem;
        margin-top: 40px;
    }
    
    .hero h1 {
        font-size: 2.6rem;
        margin-bottom: 1.1rem;
        animation: fadeIn 2s ease-out;
        text-shadow: 2px 2px 10px #000;
    }
    
    .hero p {
        font-size: 1.5rem;
        margin-bottom: 2rem;
        text-shadow: 2px 2px 3px #000;
    }
    
    .hero button {
        background-color: #f4a261;
        border: none;
        color: #fff;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        cursor: pointer;
        border-radius: 5px;
        transition: background-color 0.3s ease;
        animation: slideIn 1s ease-out;
    }

    .featured-products h2,.trending-products h2{
        font-size: 2.5rem;
        padding: 10px 0;
        text-align: center;
    }
    
    .featured-products p, .trending-products p {
        text-align: center;
        padding: 10px 0 20px;
        font-size: 18px;
        color: red;
        font-weight: bold;
    }
    
    .product-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 10px;
        background-color: #f9f9f9;
    }
    
    .product-card {
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        padding: 20px 10px;
        text-align: center;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        animation: fadeInUp 1s ease-out;
    }
    
    .product-card p{
        color: rgb(0, 255, 0);
    }
    
    .product-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    }
    
    .product-card img {
        width: 100%;
        height: auto;
        display: block;
    }
    
    .product-card h3 {
        margin: 1rem;
        font-size: 1.25rem;
    }
    
    .product-card p {
        margin: 0 1rem 1rem;
        font-size: 1.1rem;
    }
    
    .product-card a {
        background-color: #f4a261;
        text-decoration: none;
        border: none;
        color: #fff;
        padding: 0.5rem;
        width: calc(100% - 2rem);
        margin: 0 1rem 1rem;
        cursor: pointer;
        border-radius: 5px;
        transition: background-color 0.3s ease;
    }
    
    .product-card button:hover {
        background-color: #e76f51;
    }
    
}
