/* ====================
GLOBAL STYLES
==================== */

*{
margin:0;
padding:0;
box-sizing:border-box;
}

html{
scroll-behavior:smooth;
}

body{
font-family:'Poppins',sans-serif;
line-height:1.7;
color:#333;
background:#fff;
}

img{
width:100%;
display:block;
}

a{
text-decoration:none;
}

.section{
padding:80px 8%;
}

.section-title{
text-align:center;
font-size:2.3rem;
margin-bottom:50px;
color:#1f2937;
}

/* ====================
NAVBAR
==================== */

.navbar{
position:sticky;
top:0;
z-index:1000;

display:flex;
justify-content:space-between;
align-items:center;

padding:18px 8%;

background:#fff;
box-shadow:0 2px 15px rgba(0,0,0,.08);
}

.logo{
font-size:1.8rem;
font-weight:700;
color:#2563eb;
}

.nav-links{
display:flex;
list-style:none;
gap:30px;
}

.nav-links a{
color:#333;
font-weight:500;
transition:.3s;
}

.nav-links a:hover{
color:#2563eb;
}

.mobile-menu-btn{
display:none;
font-size:24px;
border:none;
background:none;
cursor:pointer;
}

/* ====================
HERO
==================== */

.hero{
height:90vh;
display:flex;
align-items:center;
justify-content:center;

background:
linear-gradient(rgba(0,0,0,.55),
rgba(0,0,0,.55)),
url('https://images.unsplash.com/photo-1441986300917-64674bd600d8');

background-size:cover;
background-position:center;

text-align:center;
padding:20px;
}

.hero-content{
max-width:800px;
color:#fff;
}

.hero h1{
font-size:3.5rem;
margin-bottom:20px;
}

.hero p{
font-size:1.1rem;
margin-bottom:30px;
}

.btn{
display:inline-block;
padding:14px 35px;
background:#2563eb;
color:white;
border-radius:8px;
transition:.3s;
}

.btn:hover{
background:#1d4ed8;
}

/* ====================
CATEGORIES
==================== */

.category-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:25px;
}

.category-card{
overflow:hidden;
border-radius:12px;
box-shadow:0 5px 20px rgba(0,0,0,.08);
background:#fff;
}

.category-card img{
height:220px;
object-fit:cover;
}

.category-card h3{
padding:20px;
text-align:center;
}

/* ====================
PRODUCTS
==================== */

.product-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:25px;
}

.product-card{
background:#fff;
border-radius:12px;
overflow:hidden;
box-shadow:0 5px 20px rgba(0,0,0,.08);
transition:.3s;
}

.product-card:hover{
transform:translateY(-5px);
}

.product-card img{
height:250px;
object-fit:cover;
}

.product-card h3{
padding:15px;
}

.product-card p{
padding:0 15px;
font-size:.95rem;
}

.product-card span{
display:block;
padding:15px;
font-size:1.2rem;
font-weight:600;
color:#2563eb;
}

/* ====================
BENEFITS
==================== */

.benefits{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:25px;
}

.benefit{
padding:30px;
text-align:center;
background:#f8fafc;
border-radius:10px;
}

/* ====================
CONTENT
==================== */

.content{
max-width:1100px;
margin:auto;
}

.content p{
margin-bottom:25px;
}

/* ====================
TESTIMONIALS
==================== */

.testimonial-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
gap:25px;
}

.testimonial{
padding:30px;
background:#f8fafc;
border-radius:12px;
}

/* ====================
NEWSLETTER
==================== */

.newsletter{
padding:80px 8%;
background:#2563eb;
text-align:center;
color:white;
}

.newsletter h2{
margin-bottom:20px;
}

.newsletter p{
margin-bottom:20px;
}

.newsletter form{
display:flex;
justify-content:center;
flex-wrap:wrap;
gap:10px;
}

.newsletter input{
padding:14px;
width:350px;
max-width:100%;
border:none;
border-radius:8px;
}

.newsletter button{
padding:14px 30px;
border:none;
border-radius:8px;
cursor:pointer;
font-weight:600;
}

/* ====================
FOOTER
==================== */

footer{
background:#111827;
color:white;
padding:60px 8% 20px;
}

.footer-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:30px;
}

.footer-grid a{
display:block;
color:#d1d5db;
margin-bottom:10px;
}

.footer-grid a:hover{
color:white;
}

.copyright{
text-align:center;
padding-top:30px;
margin-top:30px;
border-top:1px solid rgba(255,255,255,.1);
}

/* ====================
RESPONSIVE
==================== */

@media(max-width:768px){

.hero h1{
font-size:2.3rem;
}

.nav-links{
display:none;
}

.mobile-menu-btn{
display:block;
}

.section{
padding:60px 5%;
}

}
/* =====================================
   IMPROVED MOBILE MENU
===================================== */

@media (max-width:768px){

.navbar{
position:relative;
}

.nav-links{
display:none;
flex-direction:column;

position:absolute;
top:100%;
left:0;

width:100%;

background:#ffffff;

padding:20px 0;

box-shadow:
0 10px 25px rgba(0,0,0,.08);

z-index:999;
}

.nav-links.active{
display:flex;
}

.nav-links li{
text-align:center;
padding:10px 0;
}

.mobile-menu-btn{
display:block;
font-size:28px;
font-weight:700;
color:#111827;
}
}


/* =====================================
   NAVBAR SCROLL EFFECT
===================================== */

.navbar{
transition:
background .3s ease,
box-shadow .3s ease,
padding .3s ease;
}

.navbar-scrolled{
box-shadow:
0 10px 25px rgba(0,0,0,.12);
}


/* =====================================
   ANIMATIONS
===================================== */

.product-card,
.category-card,
.benefit,
.testimonial{
transition:
transform .3s ease,
box-shadow .3s ease;
}

.category-card:hover,
.benefit:hover,
.testimonial:hover{
transform:translateY(-5px);

box-shadow:
0 10px 25px rgba(0,0,0,.1);
}


/* =====================================
   BUTTON IMPROVEMENTS
===================================== */

.btn,
.newsletter button{
transition:
all .3s ease;
}

.btn:hover,
.newsletter button:hover{
transform:translateY(-2px);
}


/* =====================================
   ACCESSIBILITY IMPROVEMENTS
===================================== */

a:focus,
button:focus,
input:focus{
outline:3px solid rgba(37,99,235,.3);
outline-offset:2px;
}


/* =====================================
   IMAGE OPTIMIZATION
===================================== */

.product-card img,
.category-card img{
aspect-ratio:1/1;
object-fit:cover;
}