/* GLOBAL RESET */

*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{
font-family:'Segoe UI', Arial, sans-serif;
background:#0f1117;
color:#ffffff;
line-height:1.6;

display:flex;
flex-direction:column;
min-height:100vh;
}

main{
flex:1;
}

/* NAVBAR */

header{
position:sticky;
top:0;
z-index:1000;

display:flex;
justify-content:space-between;
align-items:center;
padding:15px 60px;
background:#0b0d12;
border-bottom:1px solid #1c1f26;
}

.logo img{
height:50px;
}

nav a{
margin-left:30px;
text-decoration:none;
color:#ddd;
font-weight:500;
transition:0.3s;
position:relative;
}

nav a::after{
content:'';
position:absolute;
bottom:-6px;
left:0;
width:0;
height:2px;
background:#4da3ff;
transition:0.3s;
}

nav a:hover{
color:white;
}

nav a:hover::after{
width:100%;
}

/* HERO SLIDER */

.hero-slider{
position:relative;
width:100%;
height:85vh;
overflow:hidden;
}

.slides{
position:relative;
width:100%;
height:100%;
}

.slide{
position:absolute;
width:100%;
height:100%;
opacity:0;
transition:opacity 1s ease;
z-index:1;
}

.slide.active{
opacity:1;
z-index:2;
}

.slide img{
width:100%;
height:100%;
object-fit:cover;
filter:brightness(70%);
}

/* SLIDE TEXT */

.slide-content{
position:absolute;
top:50%;
left:8%;
transform:translateY(-50%);
max-width:500px;
animation:fadeUp 1s ease;
}

.slide-content h1{
font-size:52px;
margin-bottom:10px;
}

.slide-content p{
font-size:20px;
color:#ccc;
margin-bottom:25px;
}

/* HERO BUTTON */

.hero-btn{
display:inline-block;
padding:14px 28px;
background:#4da3ff;
color:white;
text-decoration:none;
border-radius:6px;
font-weight:600;
transition:0.3s;
}

.hero-btn:hover{
background:#2b7be0;
transform:translateY(-2px);
}

/* SLIDER ARROWS */

.prev,
.next{
position:absolute;
top:50%;
transform:translateY(-50%);
font-size:34px;
background:rgba(0,0,0,0.45);
border:none;
color:white;
padding:14px 20px;
cursor:pointer;
border-radius:6px;
z-index:10;
transition:0.3s;
}

.prev:hover,
.next:hover{
background:#4da3ff;
}

.prev{ left:30px; }
.next{ right:30px; }

/* DOTS */

.dots{
position:absolute;
bottom:30px;
width:100%;
text-align:center;
z-index:20;
}

.dot{
display:inline-block;
width:12px;
height:12px;
margin:0 6px;
background:#777;
border-radius:50%;
cursor:pointer;
transition:0.3s;
}

.dot.active{
background:white;
transform:scale(1.2);
}

/* FEATURED PRODUCTS */

.featured{
padding:90px 80px;
}

.featured h2{
font-size:36px;
margin-bottom:50px;
text-align:center;
}

/* PRODUCT GRID */

.product-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:35px;
}

/* PRODUCT CARD */

.product-card{
background:#161a22;
border-radius:10px;
padding:22px;
border:1px solid #1e222b;
transition:0.35s;
overflow:hidden;
}

.product-card:hover{
transform:translateY(-8px) scale(1.02);
box-shadow:0 20px 40px rgba(0,0,0,0.5);
}

.product-card img{
width:100%;
height:190px;
object-fit:cover;
border-radius:8px;
margin-bottom:15px;
}

.product-card h3{
margin-bottom:10px;
font-size:20px;
}

.product-card p{
font-size:14px;
color:#bbb;
}

/* BUTTON */

.btn{
display:inline-block;
margin-top:15px;
padding:10px 18px;
background:#4da3ff;
color:white;
text-decoration:none;
border-radius:6px;
font-weight:600;
transition:0.3s;
}

.btn:hover{
background:#2b7be0;
transform:translateY(-2px);
}

/* WHY SECTION */

.why{
padding:90px 80px;
background:#0b0d12;
}

.why h2{
text-align:center;
margin-bottom:50px;
font-size:34px;
}

.why-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
gap:30px;
text-align:center;
}

.why-grid div{
background:#161a22;
padding:35px;
border-radius:8px;
border:1px solid #1e222b;
transition:0.3s;
}

.why-grid div:hover{
transform:translateY(-6px);
box-shadow:0 10px 25px rgba(0,0,0,0.4);
}

/* CTA */

.cta{
padding:90px 80px;
text-align:center;
}

.cta h2{
margin-bottom:25px;
font-size:36px;
}

/* PRODUCT PAGE */

.product-section{
padding:120px 80px;
max-width:1300px;
margin:auto;
}

.product-wrapper{
display:grid;
grid-template-columns:1fr 1fr;
gap:80px;
align-items:center;
}

.product-gallery{
background:#161a22;
padding:40px;
border-radius:12px;
border:1px solid #1e222b;
}

.product-gallery img{
width:100%;
border-radius:10px;
transition:0.4s;
}

.product-gallery img:hover{
transform:scale(1.05);
}

.product-details h1{
font-size:44px;
margin-bottom:20px;
}

.product-desc{
font-size:18px;
color:#bbb;
line-height:1.7;
margin-bottom:25px;
}

.product-price{
font-size:32px;
font-weight:700;
color:#4da3ff;
margin-bottom:30px;
}

.cart-form{
display:flex;
align-items:center;
gap:15px;
}

.cart-form input{
width:80px;
padding:10px;
border-radius:6px;
border:none;
font-size:16px;
}

.cart-form button{
padding:12px 25px;
font-size:16px;
}

/* CART */

ul{
padding:50px;
list-style:none;
}

li{
margin-bottom:12px;
font-size:18px;
}

/* FOOTER */

footer{
text-align:center;
padding:35px;
background:#0b0d12;
margin-top:80px;
color:#aaa;
}

/* ANIMATIONS */

@keyframes fadeUp{
from{
opacity:0;
transform:translateY(40px);
}
to{
opacity:1;
transform:translateY(0);
}
}

/* MOBILE */

@media(max-width:900px){

header{
padding:15px 30px;
}

.hero-slider{
height:65vh;
}

.slide-content h1{
font-size:32px;
}

.slide-content p{
font-size:16px;
}

.product-wrapper{
grid-template-columns:1fr;
text-align:center;
}

.product-gallery{
padding:20px;
}

.product-gallery img{
width:90%;
margin:auto;
}

}