/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
    scroll-behavior:smooth;
}

body{
    background:#f5f5f5;
    color:#333;
}

/* ================= HEADER ================= */

header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 8%;
    background:#2f2f2f;
    box-shadow:0 3px 10px rgba(0,0,0,.2);
    position:sticky;
    top:0;
    z-index:1000;
}

.logo{
    display:flex;
    align-items:center;
    gap:15px;
}

.logo img{
    width:60px;
    height:60px;
    border-radius:50%;
    border:2px solid #bfbfbf;
}

.logo h2{
    color:#ffffff;
}

.logo p{
    color:#d9d9d9;
    font-size:14px;
}

/* ================= NAVBAR ================= */

nav ul{
    display:flex;
    list-style:none;
    gap:35px;
}

nav ul li a{
    text-decoration:none;
    color:white;
    font-size:17px;
    transition:.3s;
    position:relative;
}

nav ul li a:hover{
    color:#cfcfcf;
}

nav ul li a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-5px;
    width:0%;
    height:2px;
    background:#ffffff;
    transition:.3s;
}

nav ul li a:hover::after{
    width:100%;
}

/* ================= HERO ================= */

.hero{
    height:90vh;
    background:url(images/hero.jpg) center/cover no-repeat;
    position:relative;
}

.overlay{
    width:100%;
    height:100%;
    background:rgba(0,0,0,.65);
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    color:white;
    padding:20px;
}

.overlay h1{
    font-size:55px;
    margin-bottom:20px;
}

.overlay p{
    font-size:20px;
    width:70%;
    line-height:1.8;
}

/* ================= BUTTON ================= */

.btn{
    margin-top:30px;
    padding:14px 35px;
    background:#444;
    color:white;
    text-decoration:none;
    border-radius:40px;
    transition:.3s;
    border:2px solid white;
}

.btn:hover{
    background:white;
    color:#333;
}

/* ================= SECTION ================= */

section{
    padding:80px 8%;
}

section h2{
    text-align:center;
    font-size:38px;
    color:#333;
    margin-bottom:40px;
    position:relative;
}

section h2::after{
    content:"";
    width:80px;
    height:4px;
    background:#555;
    display:block;
    margin:10px auto;
}

/* ================= ABOUT ================= */

.about{
    background:white;
}

.about p{
    max-width:900px;
    margin:auto;
    text-align:center;
    line-height:1.9;
    color:#555;
    font-size:18px;
}

/* ================= PRODUCTS ================= */

.products{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
}

.card{
    background:white;
    padding:30px;
    border-radius:15px;
    text-align:center;
    transition:.4s;
    box-shadow:0 5px 15px rgba(0,0,0,.1);
}

.card:hover{
    transform:translateY(-10px);
    background:#3d3d3d;
    color:white;
}

.card i{
    font-size:45px;
    margin-bottom:20px;
    color:#666;
}

.card:hover i{
    color:white;
}

.card h3{
    margin-bottom:15px;
}

/* ================= GALLERY ================= */

.gallery{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:20px;
}

.gallery img{
    width:100%;
    height:250px;
    object-fit:cover;
    border-radius:12px;
    transition:.4s;
    box-shadow:0 5px 15px rgba(0,0,0,.15);
}

.gallery img:hover{
    transform:scale(1.05);
}

/* ================= CONTACT ================= */

.contact-box{
    max-width:700px;
    margin:auto;
    text-align:center;
    background:white;
    padding:40px;
    border-radius:15px;
    box-shadow:0 5px 15px rgba(0,0,0,.1);
}

.contact-box p{
    font-size:20px;
    margin:20px 0;
}

.contact-box i{
    color:#555;
    margin-right:10px;
}

/* ================= FOOTER ================= */

footer{
    background:#2f2f2f;
    color:white;
    text-align:center;
    padding:20px;
    margin-top:40px;
}

/* ================= RESPONSIVE ================= */

@media(max-width:768px){

header{
    flex-direction:column;
}

nav ul{
    flex-wrap:wrap;
    justify-content:center;
    margin-top:20px;
    gap:20px;
}

.overlay h1{
    font-size:35px;
}

.overlay p{
    width:90%;
    font-size:16px;
}

section{
    padding:60px 5%;
}

}

@media(max-width:480px){

header{
    flex-direction:column;
}

nav ul{
    flex-wrap:wrap;
    justify-content:center;
    margin-top:20px;
    gap:20px;
}

.overlay h1{
    font-size:35px;
}

.overlay p{
    width:90%;
    font-size:16px;
}

section{
    padding:60px 5%;
}

}

