*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Poppins,sans-serif;
}

body{
    background:#fafafa;
    color:#333;
}

/* Entrance animations — only applied on mobile via the media query below */
@keyframes fadeInUp{
    from{
        opacity:0;
        transform:translateY(24px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* Header */

header{
    background:#df4b4b;
    padding:15px;
    position:sticky;
    top:0;
    z-index:1000;
}

nav{
    display:flex;
    justify-content:space-between;
    align-items:center;
    max-width:1200px;
    margin:auto;
}

nav h1{
    color:#fff;
}

nav ul{
    display:flex;
    list-style:none;
}

nav ul li{
    margin-left:20px;
}

nav a{
    color:#fff;
    text-decoration:none;
}

/* Hamburger toggle — hidden by default, only shown on mobile below */
.menu-toggle{
    display:none;
    flex-direction:column;
    justify-content:space-between;
    width:26px;
    height:20px;
    background:transparent;
    border:none;
    cursor:pointer;
    z-index:1100;
}

.menu-toggle span{
    display:block;
    height:3px;
    width:100%;
    background:#fff;
    border-radius:3px;
    transition:transform .35s ease, opacity .25s ease;
}

.menu-toggle.active span:nth-child(1){
    transform:translateY(8.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2){
    opacity:0;
}

.menu-toggle.active span:nth-child(3){
    transform:translateY(-8.5px) rotate(-45deg);
}

/* Hero */

.hero{
    height:100vh;
    background:
    linear-gradient(rgba(0,0,0,.45),rgba(0,0,0,.45)),
    url("image/hero.jpg");
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    color:#fff;
}

.hero h2{
    font-size:48px;
}

.hero p{
    margin:20px 0;
}

/* Button */

.btn{
    background:#0076ac;
    color:#fff;
    padding:12px 25px;
    border-radius:30px;
    text-decoration:none;
    display:inline-block;
}

/* Sections */

section{
    padding:60px 10%;
}

section h2{
    text-align:center;
    margin-bottom:30px;
}

/* Cards */

#products{
    padding:50px 8%;
    text-align:center;
}

.products-container{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:25px;
    margin-top:30px;
}

.card{
    width:220px;
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 4px 10px rgba(0,0,0,.15);
    transition:.3s;
}

.card:hover{
    transform:translateY(-8px);
}

.card img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.card h3{
    padding:15px;
}

.card-link{
    text-decoration:none;
    color:inherit;
}
/* About */

#about p{
    max-width:800px;
    margin:auto;
    text-align:center;
    line-height:1.8;
}

/* Contact */

#contact{
    text-align:center;
}

#contact a{
    color:#ff4081;
    text-decoration:none;
    font-weight:600;
}

#contact a:hover{
    text-decoration:underline;
}

/* Footer */

footer{
    background:#222;
    color:#fff;
    text-align:center;
    padding:20px;
    margin-top:40px;
}
/* ========================= */
/* Mobile Responsive Design  */
/* ========================= */

@media screen and (max-width:768px){

header{
    padding:10px 15px;
}

nav{
    flex-direction:row;
    text-align:left;
    position:relative;
}

nav h1{
    font-size:22px;
    margin-bottom:0;
}

.menu-toggle{
    display:flex;
}

nav ul{
    position:fixed;
    top:0;
    right:0;
    height:100vh;
    width:min(70%,280px);
    background:#df4b4b;
    flex-direction:column;
    justify-content:center;
    align-items:flex-start;
    gap:24px;
    padding:40px;
    box-shadow:-6px 0 20px rgba(0,0,0,.2);
    transform:translateX(100%);
    transition:transform .4s ease;
    z-index:1050;
}

nav ul.open{
    transform:translateX(0);
}

nav ul li{
    margin:0;
    width:100%;
}

nav ul li a{
    font-size:1.05rem;
}

.hero{
    height:70vh;
    padding:20px;
    animation:fadeInUp .8s ease both;
}

.hero h2{
    font-size:30px;
}

.hero p{
    font-size:16px;
}

.btn{
    padding:10px 20px;
    font-size:16px;
}

section{
    padding:40px 20px;
}

.products-container{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:15px;
}

.products-container .card{
    opacity:0;
    animation:fadeInUp .6s ease forwards;
}

.products-container .card:nth-child(1){ animation-delay:.05s; }
.products-container .card:nth-child(2){ animation-delay:.1s; }
.products-container .card:nth-child(3){ animation-delay:.15s; }
.products-container .card:nth-child(4){ animation-delay:.2s; }
.products-container .card:nth-child(5){ animation-delay:.25s; }
.products-container .card:nth-child(6){ animation-delay:.3s; }
.products-container .card:nth-child(7){ animation-delay:.35s; }
.products-container .card:nth-child(8){ animation-delay:.4s; }
.products-container .card:nth-child(9){ animation-delay:.45s; }

.card{
    width:100%;
}

.card img{
    height:170px;
}

.card h3{
    font-size:16px;
}

#about p{
    font-size:15px;
}

#contact p{
    font-size:15px;
}

footer{
    font-size:14px;
}
}


/* Small Mobile */

@media screen and (max-width:480px){

.hero{
    height:60vh;
}

.hero h2{
    font-size:24px;
}

.hero p{
    font-size:14px;
}

.products-container{
    grid-template-columns:1fr;
}

.card img{
    height:220px;
}

nav h1{
    font-size:22px;
}

nav ul{
    flex-direction:column;
}

nav ul li{
    margin:6px 0;
}
}
/* Product Details */

.cards{
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.cards .card{
    width: 220px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    text-align: center;
    transition: 0.3s;
}

.cards .card:hover{
    transform: translateY(-8px);
}

.cards .card img{
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.cards .card h3{
    padding: 15px;
    color: #333;
}

.cards .card-link{
    text-decoration: none;
    color: inherit;
}
