/* ===================================================
   CoffeeTime Portfolio
=================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ===========================
        RESET
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#fafafa;
    color:#333;
    overflow-x:hidden;
    transition:.35s ease;
}

/* ===========================
        VARIABLES
=========================== */

:root{

    --primary:#6F4E37;
    --secondary:#C48A52;
    --light:#f8f5f2;
    --white:#ffffff;
    --dark:#222;
    --gray:#666;

    --shadow:0 15px 35px rgba(0,0,0,.08);

    --transition:.35s ease;

}

/* ===========================
        DARK MODE
=========================== */

body.dark{

    background:#181818;
    color:white;

}

body.dark header,
body.dark .products,
body.dark .contact{

    background:#181818;

}

body.dark .about{

    background:#202020;

}

body.dark .card,
body.dark form,
body.dark .info-item{

    background:#2a2a2a;

}

body.dark p{

    color:#ddd;

}

body.dark input,
body.dark textarea{

    background:#333;
    color:white;
    border:1px solid #444;

}

/* ===========================
        HEADER
=========================== */

header{

    width:100%;
    min-height:100vh;
    background:var(--light);

}

/* ===========================
        NAVBAR
=========================== */

.navbar{

    width:100%;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:25px 10%;

    position:fixed;

    top:0;

    left:0;

    z-index:999;

    background:rgba(248,245,242,.9);

    backdrop-filter:blur(12px);

    transition:var(--transition);

}

.navbar.sticky{

    padding:18px 10%;

    box-shadow:0 5px 20px rgba(0,0,0,.08);

}

.logo{

    font-size:34px;

    color:var(--primary);

    font-weight:700;

    cursor:pointer;

}

.logo span{

    color:var(--secondary);

}

.menu{

    display:flex;

    list-style:none;

    gap:35px;

}

.menu li{

    position:relative;

}

.menu a{

    text-decoration:none;

    color:inherit;

    font-weight:500;

    transition:.3s;

}

.menu a:hover{

    color:var(--secondary);

}

.menu a::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-8px;

    width:0;

    height:2px;

    background:var(--secondary);

    transition:.3s;

}

.menu a:hover::after,
.menu a.active::after{

    width:100%;

}

.menu a.active{

    color:var(--secondary);

}

/* ===========================
        NAV BUTTONS
=========================== */

.nav-buttons{

    display:flex;

    align-items:center;

    gap:15px;

}

.theme-btn{

    width:45px;

    height:45px;

    border:none;

    border-radius:50%;

    cursor:pointer;

    background:var(--secondary);

    color:white;

    font-size:18px;

    transition:.3s;

}

.theme-btn:hover{

    transform:rotate(180deg);

}

.menu-toggle{

    display:none;

    font-size:30px;

    cursor:pointer;

}

/* ===========================
        HERO
=========================== */

.hero{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:70px;

    padding:140px 10% 90px;

}

.hero-text{

    flex:1;

}

.hero-text h1{

    font-size:62px;

    color:var(--primary);

    margin-bottom:20px;

    line-height:1.2;

}

.hero-text p{

    color:var(--gray);

    line-height:1.9;

    margin-bottom:35px;

}

.hero-buttons{

    display:flex;

    gap:20px;

    flex-wrap:wrap;

}

.hero-image{

    flex:1;

}

.hero-image img{

    width:100%;

    border-radius:25px;

    box-shadow:var(--shadow);

    transition:.4s;

}

.hero-image img:hover{

    transform:scale(1.03);

}

/* ===========================
        BUTTON
=========================== */

.btn{

    display:inline-block;

    padding:15px 35px;

    border-radius:12px;

    text-decoration:none;

    background:var(--secondary);

    color:white;

    font-weight:600;

    transition:.3s;

    border:none;

    cursor:pointer;

}

.btn:hover{

    background:var(--primary);

    transform:translateY(-3px);

}

.btn-outline{

    background:transparent;

    color:var(--primary);

    border:2px solid var(--primary);

}

.btn-outline:hover{

    background:var(--primary);

    color:white;

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

.products{

    padding:100px 10%;
    text-align:center;

}

.products h2{

    font-size:46px;
    color:var(--primary);
    margin-bottom:30px;

}

/* ===========================
        MENU FILTER
=========================== */

.menu-filter{

    display:flex;
    justify-content:center;
    gap:15px;
    flex-wrap:wrap;
    margin-bottom:50px;

}

.filter-btn{

    padding:12px 28px;

    border:none;

    border-radius:30px;

    background:white;

    color:var(--primary);

    font-weight:600;

    cursor:pointer;

    transition:.3s;

    box-shadow:var(--shadow);

}

.filter-btn:hover,
.filter-btn.active{

    background:var(--secondary);
    color:white;

}

/* ===========================
        CARDS
=========================== */

.cards{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));

    gap:30px;

}

.card{

    background:white;

    border-radius:18px;

    overflow:hidden;

    box-shadow:var(--shadow);

    transition:.35s ease;

    display:flex;

    flex-direction:column;

}

.card:hover{

    transform:translateY(-10px);

}

.card img{

    width:100%;
    height:230px;
    object-fit:cover;

}

.card h3{

    color:var(--primary);

    font-size:24px;

    margin:20px;

}

.card p{

    color:var(--gray);

    line-height:1.8;

    margin:0 20px 25px;

}

/* ===========================
        ABOUT
=========================== */

.about{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:70px;

    padding:100px 10%;

    background:white;

    flex-wrap:wrap;

}

.about-image{

    flex:1;

}

.about-image img{

    width:100%;

    border-radius:25px;

    box-shadow:var(--shadow);

}

.about-text{

    flex:1;

}

.about-text h2{

    font-size:46px;

    color:var(--primary);

    margin-bottom:20px;

}

.about-text p{

    color:var(--gray);

    line-height:2;

    margin-bottom:20px;

}

/* ===========================
        CONTACT
=========================== */

.contact{

    padding:100px 10%;

    background:var(--light);

}

.contact h2{

    text-align:center;

    font-size:46px;

    color:var(--primary);

    margin-bottom:50px;

}

.contact-container{

    display:flex;

    gap:60px;

    flex-wrap:wrap;

}

.contact-info{

    flex:1;

}

.contact-info h3{

    font-size:30px;

    color:var(--primary);

    margin-bottom:20px;

}

.contact-info > p{

    color:var(--gray);

    line-height:1.8;

    margin-bottom:30px;

}

.info-item{

    background:white;

    padding:20px;

    border-radius:15px;

    margin-bottom:20px;

    box-shadow:var(--shadow);

}

.info-item h4{

    margin-bottom:10px;

    color:var(--primary);

}

.info-item p{

    color:var(--gray);

}

form{

    flex:1;

    background:white;

    padding:35px;

    border-radius:20px;

    box-shadow:var(--shadow);

    display:flex;

    flex-direction:column;

}

label{

    margin-bottom:8px;

    font-weight:600;

    color:var(--primary);

}

input,
textarea{

    padding:16px;

    margin-bottom:20px;

    border:1px solid #ddd;

    border-radius:10px;

    font-size:16px;

    font-family:'Poppins',sans-serif;

}

textarea{

    resize:none;

}

input:focus,
textarea:focus{

    outline:none;

    border-color:var(--secondary);

}

#formMessage{

    margin-top:10px;

    color:green;

    font-weight:600;

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

footer{

    background:var(--primary);

    color:white;

    text-align:center;

    padding:50px 20px;

}

footer h3{

    font-size:30px;

    margin-bottom:15px;

}

footer p{

    opacity:.9;

    line-height:1.8;

}

/* ===========================
        BACK TO TOP
=========================== */

#topBtn{

    position:fixed;

    right:30px;

    bottom:30px;

    width:55px;

    height:55px;

    border:none;

    border-radius:50%;

    background:var(--secondary);

    color:white;

    font-size:22px;

    cursor:pointer;

    box-shadow:var(--shadow);

    opacity:0;

    visibility:hidden;

    transition:.35s;

    z-index:999;

}

#topBtn.show{

    opacity:1;

    visibility:visible;

}

#topBtn:hover{

    background:var(--primary);

    transform:translateY(-5px);

}

/* ===========================
      SCROLL ANIMATIONS
=========================== */

.from-left,
.from-right,
.from-bottom{

    opacity:0;

    transition:1s ease;

}

.from-left{

    transform:translateX(-80px);

}

.from-right{

    transform:translateX(80px);

}

.from-bottom{

    transform:translateY(80px);

}

.show{

    opacity:1;

    transform:translate(0);

}

/* ===========================
        SCROLLBAR
=========================== */

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#eee;

}

::-webkit-scrollbar-thumb{

    background:var(--secondary);

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:var(--primary);

}

/* ===========================
      DARK MODE EXTRAS
=========================== */

body.dark .navbar{

    background:rgba(30,30,30,.92);

}

body.dark .filter-btn{

    background:#2b2b2b;

    color:white;

}

body.dark .filter-btn.active{

    background:var(--secondary);

}

body.dark .btn-outline{

    color:white;

    border-color:white;

}

body.dark .btn-outline:hover{

    background:white;

    color:#222;

}

body.dark footer{

    background:#111;

}

body.dark .logo{

    color:white;

}

/* ===========================
        RESPONSIVE
=========================== */

@media(max-width:992px){

.hero{

    flex-direction:column;

    text-align:center;

}

.about{

    flex-direction:column;

    text-align:center;

}

.contact-container{

    flex-direction:column;

}

.hero-buttons{

    justify-content:center;

}

}

@media(max-width:768px){

.navbar{

    padding:20px 8%;

}

.menu{

    position:absolute;

    top:100%;

    left:0;

    width:100%;

    background:white;

    display:none;

    flex-direction:column;

    align-items:center;

    padding:25px;

    gap:25px;

}

body.dark .menu{

    background:#222;

}

.menu.active{

    display:flex;

}

.menu-toggle{

    display:block;

}

.hero{

    padding:120px 8% 70px;

}

.hero-text h1{

    font-size:42px;

}

.products,
.about,
.contact{

    padding:80px 8%;

}

.products h2,
.about h2,
.contact h2{

    font-size:36px;

}

.cards{

    grid-template-columns:1fr;

}

}

@media(max-width:500px){

.hero-text h1{

    font-size:34px;

}

.logo{

    font-size:28px;

}

.btn{

    width:100%;

    text-align:center;

}

.hero-buttons{

    flex-direction:column;

}

#topBtn{

    right:15px;

    bottom:15px;

    width:50px;

    height:50px;

}

}