/* =====================================
   GOOGLE FONT
===================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

/* =====================================
   ROOT
===================================== */

:root{

    --primary:#16a34a;
    --primary-dark:#15803d;
    --secondary:#22c55e;
    --light:#f0fdf4;
    --white:#ffffff;
    --black:#111827;
    --gray:#6b7280;

}

/* =====================================
   RESET
===================================== */

*{

    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Montserrat',sans-serif;

}

html{

    scroll-behavior:smooth;

}

body{

    background:#f8fafc;

    color:var(--black);

    overflow-x:hidden;

}

/* =====================================
   HERO SECTION
===================================== */

.hero{

    width:100%;

    min-height:320px;

    background:linear-gradient(135deg,#16a34a,#15803d);

    display:flex;

    justify-content:center;

    align-items:center;

    text-align:center;

    padding:80px 20px;

}

.hero-content h1{

    font-size:72px;

    font-weight:900;

    color:white;

    letter-spacing:2px;

    margin-bottom:20px;

}

.hero-content span{

    color:#bbf7d0;

}

.hero-content p{

    font-size:22px;

    color:white;

    font-weight:500;

    opacity:.95;

}

/* =====================================
   SEARCH SECTION
===================================== */

.search-section{

    width:100%;

    display:flex;

    justify-content:center;

    align-items:center;

    padding:60px 20px;

    background:white;

}

.search-section input{

    width:100%;

    max-width:700px;

    height:65px;

    border:none;

    outline:none;

    padding:0 30px;

    font-size:18px;

    font-weight:600;

    border-radius:18px;

    background:#f3f4f6;

    transition:.3s;

    box-shadow:

    0 10px 30px rgba(0,0,0,.08);

}

.search-section input:focus{

    background:white;

    border:2px solid var(--primary);

    box-shadow:

    0 15px 35px rgba(22,163,74,.18);

}

/* =====================================
   MACHINE SECTION
===================================== */

.machine-section{

    width:100%;

    padding:20px 7% 80px;

}

.machine-grid{

    display:grid;

    grid-template-columns:

    repeat(auto-fit,minmax(280px,1fr));

    gap:35px;

}

/* =====================================
   MACHINE CARD
===================================== */

.machine-card{

    background:white;

    border-radius:25px;

    overflow:hidden;

    text-decoration:none;

    color:var(--black);

    transition:.35s ease;

    box-shadow:

    0 15px 35px rgba(0,0,0,.08);

    position:relative;

}

.machine-card:hover{

    transform:translateY(-12px);

    box-shadow:

    0 25px 60px rgba(22,163,74,.18);

}

/* =====================================
   IMAGE
===================================== */

.machine-card img{

    width:100%;

    height:260px;

    object-fit:cover;

    transition:.5s;

    display:block;

}

.machine-card:hover img{

    transform:scale(1.08);

}

/* =====================================
   CARD TITLE
===================================== */

.machine-card h3{

    text-align:center;

    padding:25px 15px;

    font-size:22px;

    font-weight:800;

    color:var(--black);

    transition:.3s;

}

.machine-card:hover h3{

    color:var(--primary);

}

/* =====================================
   BOTTOM LINE ANIMATION
===================================== */

.machine-card::after{

    content:"";

    position:absolute;

    left:0;

    bottom:0;

    width:0%;

    height:5px;

    background:linear-gradient(90deg,#16a34a,#22c55e);

    transition:.35s;

}

.machine-card:hover::after{

    width:100%;

}

/* =====================================
   IMAGE OVERLAY
===================================== */

.machine-card::before{

    content:"VIEW MACHINE";

    position:absolute;

    top:45%;

    left:50%;

    transform:translate(-50%,-50%);

    background:rgba(22,163,74,.92);

    color:white;

    padding:14px 22px;

    border-radius:12px;

    font-size:14px;

    font-weight:700;

    letter-spacing:1px;

    opacity:0;

    transition:.35s;

    z-index:10;

}

.machine-card:hover::before{

    opacity:1;

}

/* =====================================
   IMAGE DARK OVERLAY
===================================== */

.machine-card:hover img{

    filter:brightness(.75);

}

/* =====================================
   GRID ANIMATION
===================================== */

.machine-card{

    animation:fadeUp .8s ease forwards;

}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(50px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/* =====================================
   SCROLLBAR
===================================== */

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-thumb{

    background:#16a34a;

    border-radius:20px;

}

::-webkit-scrollbar-track{

    background:#e5e7eb;

}

/* =====================================
   SELECTION
===================================== */

::selection{

    background:#16a34a;

    color:white;

}

/* =====================================
   FOOTER
===================================== */

footer{

    width:100%;

    background:#0f172a;

    color:white;

    text-align:center;

    padding:70px 20px 40px;

    margin-top:80px;

}

footer h2{

    font-size:42px;

    font-weight:800;

    color:#22c55e;

    margin-bottom:15px;

}

footer p{

    font-size:16px;

    color:#d1d5db;

    margin:10px 0;

    line-height:30px;

}

/* =====================================
   HOVER SMOOTH
===================================== */

a{

    transition:.3s;

}

img{

    user-select:none;

    -webkit-user-drag:none;

}

/* =====================================
   TABLET
===================================== */

@media(max-width:1024px){

.hero{

    min-height:260px;

    padding:60px 20px;

}

.hero-content h1{

    font-size:56px;

}

.hero-content p{

    font-size:18px;

}

.machine-grid{

    grid-template-columns:

    repeat(2,1fr);

    gap:25px;

}

.machine-card img{

    height:220px;

}

.machine-card h3{

    font-size:20px;

}

}

/* =====================================
   MOBILE
===================================== */

@media(max-width:768px){

.hero{

    min-height:220px;

    padding:50px 15px;

}

.hero-content h1{

    font-size:40px;

    line-height:50px;

}

.hero-content p{

    font-size:16px;

}

.search-section{

    padding:35px 15px;

}

.search-section input{

    height:55px;

    font-size:16px;

    padding:0 20px;

}

.machine-section{

    padding:10px 5% 50px;

}

.machine-grid{

    grid-template-columns:1fr;

    gap:22px;

}

.machine-card{

    border-radius:18px;

}

.machine-card img{

    height:240px;

}

.machine-card h3{

    font-size:19px;

    padding:20px 12px;

}

.machine-card::before{

    padding:10px 18px;

    font-size:12px;

}

footer{

    padding:50px 15px 30px;

}

footer h2{

    font-size:30px;

}

footer p{

    font-size:14px;

    line-height:24px;

}

}

/* =====================================
   LARGE DESKTOP
===================================== */

@media(min-width:1400px){

.machine-grid{

    grid-template-columns:

    repeat(4,1fr);

}

.machine-card img{

    height:280px;

}

}

/* =====================================
   CARD CLICK EFFECT
===================================== */

.machine-card:active{

    transform:scale(.97);

}

/* =====================================
   IMAGE LOADING EFFECT
===================================== */

.machine-card img{

    background:#f1f5f9;

}

/* =====================================
   FINAL POLISH
===================================== */

body{

    background:linear-gradient(

    180deg,

    #ffffff 0%,

    #f8fafc 100%

    );

}

.hero{

    box-shadow:

    inset 0 -60px 80px

    rgba(255,255,255,.08);

}

.machine-card{

    border:1px solid

    rgba(22,163,74,.08);

}

.machine-card:hover{

    border-color:#22c55e;

}

.search-section input::placeholder{

    color:#9ca3af;

}

footer{

    border-top:4px solid #22c55e;


}

@media(max-width:768px){

.hero{

    min-height:220px;

    padding:50px 15px;

}

.hero-content h1{

    font-size:38px;

    line-height:46px;

}

.hero-content p{

    font-size:16px;

}

.search-section{

    padding:30px 15px;

}

.search-section input{

    height:55px;

    font-size:16px;

}

/* ===== TWO CARDS PER ROW ===== */

.machine-section{

    padding:10px 4% 50px;

}

.machine-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:15px;

}

.machine-card{

    border-radius:18px;

}

.machine-card img{

    height:150px;

    object-fit:cover;

}

.machine-card h3{

    font-size:15px;

    padding:15px 8px;

    line-height:20px;

}

.machine-card::before{

    font-size:11px;

    padding:8px 14px;

}

footer{

    padding:45px 15px;

}

footer h2{

    font-size:28px;

}

footer p{

    font-size:13px;

}

}

/* =====================================
   END
===================================== */

