/* Google Font */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background:#0b0b0b;
    color:#fff;
    overflow-x:hidden;
}

/* Navbar */

header{
    width:100%;
    position:fixed;
    top:0;
    left:0;
    z-index:1000;
    backdrop-filter:blur(15px);
    background:rgba(0,0,0,.4);
}

.navbar{
    width:90%;
    margin:auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 0;
}

.logo{
    font-size:30px;
    font-weight:800;
    letter-spacing:2px;
}

.logo span{
    color:#ff4d4d;
}

.nav-links{
    display:flex;
    list-style:none;
    gap:40px;
}

.nav-links a{
    color:#fff;
    text-decoration:none;
    transition:.3s;
}

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

.btn{
    background:#ff4d4d;
    color:#fff;
    padding:12px 25px;
    border-radius:30px;
    text-decoration:none;
    transition:.3s;
}

.btn:hover{
    background:#fff;
    color:#000;
}

/* Hero */

.hero{
    min-height:100vh;
    width:90%;
    margin:auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:50px;
}

.hero-left{
    flex:1;
}

.hero-left h1{
    font-size:65px;
    line-height:1.2;
    margin-bottom:20px;
}

.hero-left p{
    color:#aaa;
    line-height:1.8;
    margin-bottom:35px;
}

.buttons{
    display:flex;
    gap:20px;
}

.primary-btn,
.secondary-btn{
    padding:15px 35px;
    border-radius:40px;
    text-decoration:none;
    transition:.4s;
}

.primary-btn{
    background:#ff4d4d;
    color:#fff;
}

.secondary-btn{
    border:2px solid #fff;
    color:#fff;
}

.primary-btn:hover{
    transform:translateY(-5px);
}

.secondary-btn:hover{
    background:#fff;
    color:#000;
}

.hero-right{
    flex:1;
    display:flex;
    justify-content:center;
}

.hero-card{
    width:420px;
    background:#181818;
    border-radius:25px;
    overflow:hidden;
    box-shadow:0 0 40px rgba(255,77,77,.25);
    transition:.4s;
}

.hero-card:hover{
    transform:translateY(-15px) scale(1.03);
}

.hero-card img{
    width:100%;
    display:block;
}

/* Flash Sale */

.sale{
    text-align:center;
    padding:100px 20px;
}

.sale h2{
    font-size:42px;
    margin-bottom:50px;
}

#countdown{
    display:flex;
    justify-content:center;
    gap:30px;
    flex-wrap:wrap;
}

#countdown div{
    background:#161616;
    padding:30px;
    width:150px;
    border-radius:20px;
}

#countdown h3{
    font-size:42px;
    color:#ff4d4d;
}

/* Products */

.products{
    width:90%;
    margin:100px auto;
}

.products h2{
    text-align:center;
    font-size:45px;
    margin-bottom:50px;
}

.product-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:30px;
}

.card{
    background:#161616;
    border-radius:20px;
    overflow:hidden;
    transition:.4s;
}

.card:hover{
    transform:translateY(-10px);
    box-shadow:0 20px 40px rgba(255,77,77,.2);
}

.card img{
    width:100%;
    height:250px;
    object-fit:cover;
}

.card h3{
    margin:20px;
}

.card p{
    margin:0 20px 20px;
    color:#ff4d4d;
    font-size:22px;
    font-weight:600;
}

.card button{
    width:calc(100% - 40px);
    margin:0 20px 20px;
    padding:15px;
    border:none;
    border-radius:30px;
    background:#ff4d4d;
    color:#fff;
    cursor:pointer;
    transition:.3s;
}

.card button:hover{
    background:#fff;
    color:#000;
}

/* Newsletter */

.newsletter{
    padding:100px 20px;
    text-align:center;
}

.newsletter h2{
    font-size:45px;
}

.newsletter p{
    margin:20px 0;
    color:#aaa;
}

.newsletter input{
    width:350px;
    max-width:90%;
    padding:16px;
    border:none;
    border-radius:40px;
    margin:10px;
}

.newsletter button{
    padding:16px 35px;
    border:none;
    border-radius:40px;
    background:#ff4d4d;
    color:#fff;
    cursor:pointer;
}

/* Footer */

footer{
    text-align:center;
    padding:30px;
    color:#888;
    border-top:1px solid #222;
}

/* Responsive */

@media(max-width:900px){

.hero{
    flex-direction:column;
    text-align:center;
    padding-top:120px;
}

.hero-left h1{
    font-size:45px;
}

.buttons{
    justify-content:center;
}

.nav-links{
    display:none;
}

.hero-card{
    width:320px;
}

}
