*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Arial, sans-serif;
}

body{
background:#050505;
color:white;
overflow-x:hidden;
}
body {
    background-image: url('../images/background5.png');
    background-size: cover;        /* makes it fill screen */
    background-position: center;   /* keeps it centered */
    background-repeat: no-repeat;  /* prevents repeating */
    background-attachment: fixed;  /* optional: parallax effect */
}
/* header */

header{
display:flex;
justify-content:space-between;
align-items:center;
padding:20px 8%;
background:black;
position:fixed;
top:0;
width:100%;
z-index:1000;
}

.logo img{
height:35px;
}

nav a{
color:white;
margin-left:25px;
text-decoration:none;
font-weight:bold;
}

.menu-btn{
display:none;
font-size:26px;
cursor:pointer;
}

/* hero */

.hero{
height:100vh;
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
text-align:center;
padding-top:80px;
}

.hero-logo{
width:320px;
margin-bottom:20px;
animation:float 4s infinite ease-in-out;
}

.hero-text{
opacity:0.8;
margin-bottom:30px;
max-width:500px;
}

.cta{
background:white;
color:black;
padding:12px 30px;
text-decoration:none;
font-weight:bold;
transition:0.3s;
}

.cta:hover{
transform:scale(1.05);
}

/* floating logo */

@keyframes float{
0%{transform:translateY(0)}
50%{transform:translateY(-12px)}
100%{transform:translateY(0)}
}

/* home grid */

.home-products{
padding:120px 8%;
}

.home-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:30px;
}

.home-card img{
width:100%;
display:block;
transition:0.4s;
}

.home-card:hover img{
transform:scale(1.05);
}

/* shop */

.shop{
padding:120px 8%;
text-align:center;
}

.product-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:40px;
margin-top:40px;
}

.product-img{
position:relative;
overflow:hidden;
}

.product-img img{
width:100%;
display:block;
transition:0.4s;
}

.product-img .back{
position:absolute;
top:0;
left:0;
opacity:0;
}

.product-img:hover .back{
opacity:1;
}

.product-img:hover .front{
opacity:0;
}

.price{
margin:10px 0;
opacity:0.8;
}

.order-btn{
padding:10px;
background:white;
color:black;
border:none;
font-weight:bold;
cursor:pointer;
width:100%;
transition:0.3s;
}

.order-btn:hover{
background:#ddd;
}

/* about contact */
.love-text {
    font-family: 'Grinched', cursive;
}

.about,.contact{
padding:120px 8%;
text-align:center;
}

.about-text{
max-width:600px;
margin:20px auto;
line-height:1.6;
opacity:0.8;
}

/* footer */

footer{
padding:60px;
text-align:center;
background:black;
margin-top:80px;
}

footer img{
height:40px;
margin-bottom:10px;
}

/* mobile */

@media(max-width:768px){

nav{
display:none;
position:absolute;
top:70px;
left:0;
background:black;
width:100%;
flex-direction:column;
text-align:center;
}

nav a{
margin:15px 0;
}

nav.active{
display:flex;
}

.menu-btn{
display:block;
}

.hero-logo{
width:200px;
}

}