/* ===========================
   ALOFT PREMIUM WEBSITE CSS
   PART 1
=========================== */

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

body{
    background:#ffffff;
    color:#111;
    overflow-x:hidden;
}

/* Navbar */

.navbar{
    position:fixed;
    top:0;
    width:100%;
    background:#fff;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 8%;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
    z-index:1000;
}

.logo h1{
    font-size:34px;
    letter-spacing:8px;
    font-weight:800;
}

.logo span{
    font-size:12px;
    letter-spacing:5px;
    color:#777;
}

nav{
    display:flex;
    gap:35px;
}

nav a{
    text-decoration:none;
    color:#111;
    font-weight:600;
    transition:.3s;
}

nav a:hover{
    color:#777;
}

.icons{
    display:flex;
    gap:15px;
}

.icons button{
    border:none;
    background:#111;
    color:#fff;
    width:42px;
    height:42px;
    border-radius:50%;
    cursor:pointer;
    transition:.3s;
}

.icons button:hover{
    transform:scale(1.1);
}

/* Hero */

.hero{
    margin-top:90px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:80px 8%;
    min-height:90vh;
}

.hero-text{
    width:48%;
}

.hero-text h1{
    font-size:70px;
    line-height:1.1;
    margin-bottom:20px;
}

.hero-text p{
    font-size:20px;
    color:#666;
    margin-bottom:40px;
}

.hero-text button{
    padding:18px 45px;
    border:none;
    background:#111;
    color:#fff;
    font-size:18px;
    cursor:pointer;
    transition:.3s;
    border-radius:40px;
}

.hero-text button:hover{
    transform:translateY(-5px);
    background:#333;
}

.hero-image{
    width:45%;
}

.hero-image img{
    width:100%;
}
/* ===========================
   FEATURES
=========================== */

.features{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:30px;
    padding:80px 8%;
    background:#f8f8f8;
}

.feature{
    background:#fff;
    padding:40px;
    text-align:center;
    border-radius:18px;
    transition:.3s;
    box-shadow:0 10px 30px rgba(0,0,0,.05);
}

.feature:hover{
    transform:translateY(-10px);
}

.feature h2{
    font-size:36px;
    margin-bottom:10px;
}

.feature p{
    color:#666;
}

/* ===========================
   PRODUCTS
=========================== */

.products{
    padding:100px 8%;
}

.products h1{
    text-align:center;
    font-size:48px;
    margin-bottom:60px;
}

.product-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:40px;
}

.card{
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 15px 40px rgba(0,0,0,.08);
    transition:.35s;
}

.card:hover{
    transform:translateY(-12px);
}

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

.card h3{
    padding:20px;
    font-size:24px;
}

.card p{
    padding:0 20px;
    font-size:20px;
    font-weight:700;
}

.card button{
    margin:20px;
    padding:15px 35px;
    border:none;
    background:#111;
    color:#fff;
    border-radius:40px;
    cursor:pointer;
    transition:.3s;
}

.card button:hover{
    background:#444;
}

/* ===========================
   FOOTER
=========================== */

footer{
    background:#111;
    color:#fff;
    text-align:center;
    padding:80px 20px;
}

footer h2{
    font-size:40px;
    letter-spacing:10px;
    margin-bottom:20px;
}

footer p{
    margin:8px 0;
    color:#ccc;
}
/* ===========================
   PREMIUM ANIMATIONS
=========================== */

html{
    scroll-behavior:smooth;
}

.hero-text,
.hero-image,
.feature,
.card{
    animation:fadeUp 1s ease;
}

@keyframes fadeUp{
    from{
        opacity:0;
        transform:translateY(40px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

.card img{
    transition:0.5s;
}

.card:hover img{
    transform:scale(1.05);
}

.hero-image img{
    transition:0.5s;
}

.hero-image img:hover{
    transform:scale(1.03);
}

/* Scrollbar */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#f2f2f2;
}

::-webkit-scrollbar-thumb{
    background:#111;
    border-radius:20px;
}

::-webkit-scrollbar-thumb:hover{
    background:#444;
}

/* Buttons */

button{
    font-weight:600;
}

button:hover{
    box-shadow:0 10px 25px rgba(0,0,0,.25);
}

/* Links */

a{
    transition:0.3s;
}

/* Selection */

::selection{
    background:#111;
    color:#fff;
}
/* ===========================
   RESPONSIVE DESIGN
=========================== */

@media(max-width:1100px){

.hero{
    flex-direction:column;
    text-align:center;
}

.hero-text{
    width:100%;
}

.hero-image{
    width:80%;
    margin-top:50px;
}

.hero-text h1{
    font-size:54px;
}

.features{
    grid-template-columns:repeat(2,1fr);
}

.product-grid{
    grid-template-columns:repeat(2,1fr);
}

}

@media(max-width:768px){

.navbar{
    flex-direction:column;
    gap:20px;
}

nav{
    flex-wrap:wrap;
    justify-content:center;
}

.hero{
    padding:50px 6%;
}

.hero-text h1{
    font-size:42px;
}

.hero-text p{
    font-size:18px;
}

.hero-image{
    width:100%;
}

.features{
    grid-template-columns:1fr;
}

.product-grid{
    grid-template-columns:1fr;
}

.products h1{
    font-size:36px;
}

.card img{
    height:350px;
}

footer h2{
    font-size:28px;
    letter-spacing:5px;
}

}

@media(max-width:480px){

.hero-text h1{
    font-size:34px;
}

.hero-text button{
    width:100%;
}

.navbar{
    padding:20px;
}

.logo h1{
    font-size:28px;
}

.logo span{
    font-size:10px;
}

nav{
    gap:18px;
}

.icons button{
    width:38px;
    height:38px;
}

}
.logo-image {
    width: 180px;
    height: auto;
    display: block;
}