
/* =========================================================
   RESET
========================================================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

/* =========================================================
   THEME VARIABLES
========================================================= */

:root{

    /* DARK */

    --bg:#050505;
    --bg2:#101010;
    --card:#161616;

    --text:#ffffff;
    --soft:#bdbdbd;

    --border:#262626;

    --primary:#3FA652;

    --shadow:0 10px 30px rgba(0,0,0,.35);
}

/* LIGHT MODE */

html.light{

    --bg:#f5f5f5;
    --bg2:#ffffff;
    --card:#ffffff;

    --text:#111111;
    --soft:#555555;

    --border:#dddddd;

    --primary:#3FA652;

    --shadow:0 10px 30px rgba(0,0,0,.08);
}

/* =========================================================
   BODY
========================================================= */

body{

    font-family:'Inter',sans-serif;

    background:var(--bg);
    color:var(--text);

    transition:
        background .3s ease,
        color .3s ease;
}

/* =========================================================
   NAVBAR
========================================================= */

.navbar{

    position:sticky;
    top:0;

    z-index:999999;

    backdrop-filter:blur(14px);

    background:rgba(0,0,0,.85);

    border-bottom:1px solid var(--border);
}

html.light .navbar{

    background:rgba(255,255,255,.85);
}

.nav-container{

    max-width:1400px;

    margin:auto;

    display:flex;

    align-items:center;
    justify-content:space-between;

    padding:18px 24px;
}

/* LOGO */

.logo{

    font-size:30px;
    font-weight:900;

    color:var(--primary);

    text-decoration:none;
}

/* NAV LINKS */

.nav-links{

    display:flex;

    align-items:center;

    gap:30px;
    
    
}



.nav-links a:hover{

    color:var(--primary);

    background:rgba(63,166,82,.12);

    transform:translateY(-1px);
}
.nav-links a.active{

    background:rgba(63,166,82,.15);

    color:var(--primary);
}
.nav-links a:focus,
.card-btn:focus,
.icon-btn:focus,
.search-box button:focus{

    outline:2px solid var(--primary);

    outline-offset:3px;
}

.search-box input,
.search-box button{

    box-sizing:border-box;
}

/* DROPDOWN */

.dropdown{

    position:relative;
    
}

.dropdown-menu{

    position:absolute;

    top:100%;
    left:0;

    z-index:9999;

    min-width:220px;

    background:var(--card);

    border:1px solid var(--border);

    border-radius:16px;

    display:none;

    flex-direction:column;

    overflow:hidden;

    box-shadow:var(--shadow);

    opacity:0;

    visibility:hidden;

    transform:translateY(10px);

    transition:
        opacity .25s ease,
        transform .25s ease,
        visibility .25s ease;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover{

    opacity:1;
    visibility:visible;
    transform:translateY(0);

    display:flex !important;
}

.dropdown-menu a{

    padding:14px 18px;
}

.dropdown-menu a:hover{

    background:var(--primary);

    color:white;
}
/* ACTIONS */

.nav-actions{

    display:flex;
    gap:10px;
}

/* BUTTONS */

.icon-btn{

    width:46px;
    height:46px;

    border:none;
    border-radius:14px;

    background:var(--card);

    color:var(--text);

    cursor:pointer;

    font-size:20px;

    transition:.25s;
}

.icon-btn:hover{

    transform:translateY(-2px);

    background:var(--primary);
    color:white;
}

/* MOBILE MENU BUTTON */

.mobile-btn{

    display:none;
}

/* =========================================================
   HERO
========================================================= */

.hero{

    min-height:70vh;

    display:flex;

    align-items:center;
    justify-content:center;

    padding:80px 20px;

    text-align:center;
}

.hero-inner{

    max-width:950px;

    width:100%;

    padding-top:40px;

    padding-left:10px;

    padding-right:10px;
}

.hero h1{

    font-size:70px;
    line-height:1.05;

    margin-bottom:25px;
}

.hero p{

    font-size:22px;

    color:var(--soft);

    line-height:1.7;

    margin-bottom:35px;
}


/* SEARCH */

.search-box{

    width:100%;

    max-width:760px;

    margin:0 auto;

    display:flex;

    gap:12px;
}

.search-box input{

    flex:1;

    height:60px;

    border:none;
    border-radius:16px;

    padding:0 20px;

    background:var(--card);

    color:var(--text);

    font-size:30px;

    outline:none;

    border:1px solid var(--border);
}

.search-box button{

    width:160px;

    border:none;
    border-radius:16px;

    background:var(--primary);

    color:white;

    font-size:16px;
    font-weight:700;

    cursor:pointer;
}

/* =========================================================
   SECTION
========================================================= */

.section{

    max-width:1400px;

    margin:auto;

    padding:5px 20px;
}

/* =========================================================
   TITLE
========================================================= */

.section-title{

    font-size:42px;

    margin-bottom:50px;
}

/* =========================================================
   GRID
========================================================= */

.grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(320px,1fr));

    gap:30px;
}

/* =========================================================
   CARD
========================================================= */

.card{

    background:var(--card);

    border:1px solid var(--border);

    border-radius:24px;

    overflow:hidden;

    transition:.3s;

    box-shadow:var(--shadow);
}

.card:hover{

    transform:translateY(-5px);
}

.card img{

    width:100%;
    height:220px;

    object-fit:cover;
}

/* CARD BODY */

.card-body{

    padding:24px;
}

.category{

    display:inline-block;

    margin-bottom:14px;

    color:var(--primary);

    font-size:13px;
    font-weight:800;

    text-transform:uppercase;

    letter-spacing:1px;
}

.card h3{

    font-size:24px;

    margin-bottom:16px;
}

.card p{

    color:var(--soft);

    line-height:1.7;

    margin-bottom:24px;
}

.card-btn{

    display:inline-flex;

    align-items:center;
    justify-content:center;

    height:48px;

    padding:0 20px;

    border-radius:14px;

    background:var(--primary);

    color:white;

    text-decoration:none;

    font-weight:700;
}

/* =========================================================
   FOOTER
========================================================= */

.footer{

    border-top:1px solid var(--border);

    padding:40px 20px;

    text-align:center;

    color:var(--soft);
}

.footer a{

    color:var(--soft);

    text-decoration:none;

    transition:.25s;
}

.footer a:hover{

    color:var(--primary);
}

/* =========================================================
   MOBILE
========================================================= */
@media(max-width:480px){

    .nav-container{

        padding:12px;
    }

    .logo{

        font-size:20px;
    }

    .icon-btn{

        width:38px;
        height:38px;

        font-size:16px;
    }

    .hero h1{

        font-size:34px;
    }

    .section-title{

        font-size:30px;
    }

}
@media(max-width:900px){
    .search-box{

        flex-direction:column;
    
        width:100%;
    
        max-width:100%;
    }
    
    .search-box input,
    .search-box button{
    
        width:100%;
    
        min-width:100%;
    }
    
    .search-box input{
    
        height:64px;
    
        font-size:25px;
    
        padding:0 18px;
    }
    
    .search-box button{
    
        height:64px;
    
        font-size:16px;
    }
    
    .mobile-btn{

        display:block;
    }

    .nav-links{

        position:absolute;

        top:84px;
        left:0;

        width:100%;

        background:var(--bg2);

        border-top:1px solid var(--border);

        display:none;

        flex-direction:column;

        align-items:flex-start;

        padding:20px;
        max-height:80vh;

        overflow-y:auto;
    }

    .nav-links.show{

        display:flex;
    }

    .nav-links a{

        width:100%;

        padding:14px 12px;
        
        border-bottom:1px solid var(--border);
    }

    .hero h1{

        font-size:44px;
    }
    .hero{

        min-height:auto;
    
        padding:10px 20px 80px;
    }

    .hero p{

        font-size:18px;
    }

    .search-box{

        flex-direction:column;
    
        width:100%;
    }
    
    .search-box input,
    .search-box button{
    
        width:100%;
    }

    .search-box button{

        width:100%;
        height:35px;
    }
    
    
    
    .nav-container{

        gap:12px;
    }
    
    
    .dropdown{

        width:100%;
    }
    
    .dropdown-menu{
    
        display:none;
    
        position:static;
    
        border:none;
    
        box-shadow:none;
    
        margin-left:10px;
    
        margin-top:8px;
        width:calc(100% - 10px);
    }
    
    .dropdown.show .dropdown-menu{
    
        display:flex;
    }
    
    
        .nav-container{

        padding:14px 14px;

        flex-wrap:wrap;
    }

    .logo{

        font-size:24px;
    }

    .nav-actions{

        gap:6px;
    }

    .icon-btn{

        width:42px;
        height:42px;

        font-size:18px;
    }

    .nav-links{

        top:72px;

        width:100%;

        left:0;
    }
    
    
    
    
    
}



/* =========================================================
   ADD HOVER EFFECT TO CARDS
========================================================= */

.card:hover img{

    transform:scale(1.03);
}

.card img{

    transition:.4s ease;
}


img{

    content-visibility:auto;
}

.search-box input:focus{

    border-color:var(--primary);

    box-shadow:0 0 0 4px rgba(63,166,82,.2);
}

.card-btn,
.search-box button{

    transition:.25s;
}

.card-btn:hover,
.search-box button:hover{

    transform:translateY(-2px);

    opacity:.92;
}


.search-box{

    position:relative;

    z-index:2;
}

.hero-inner,
.section{

    width:100%;
}

.nav-links a{

    color:var(--text);

    text-decoration:none;

    font-size:15px;
    font-weight:600;

    transition:.25s;

    padding:10px 14px;

    border-radius:12px;
}

.card{

    display:flex;

    flex-direction:column;
}
.card img{

    display:block;
}
.card-body{

    display:flex;

    flex-direction:column;

    height:100%;
}

.card p{

    flex:1;
}


a,
button{

    cursor:pointer;
}

::selection{

    background:var(--primary);

    color:white;
}

/* SCROLLBAR */

::-webkit-scrollbar{

    width:10px;
}

::-webkit-scrollbar-track{

    background:var(--bg);
}

::-webkit-scrollbar-thumb{

    background:var(--primary);

    border-radius:20px;
}


