*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, sans-serif;
}

html{
    scroll-behavior:smooth;
    scroll-padding-top:180px;
}

body{
    background:#f8fafc;
    color:#0f172a;
}

/* TOP BAR */
.topbar{
    background:#052e16;
    color:white;
    padding:8px 50px;
    font-size:14px;
    display:flex;
    justify-content:space-between;
}

/* NAVBAR */
nav{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 50px;
    background:white;
    position:sticky;
    top:0;
    z-index:1000;
    box-shadow:0 5px 20px rgba(0,0,0,0.08);
}

.logo{
    display:flex;
    align-items:center;
    gap:10px;
    font-weight:bold;
    font-size:28px;
    color:#166534;
}

.logo img{
    height:75px;
    width:auto;
    object-fit:contain;
}

.logo span{
    color:#166534;
}

nav ul{
    display:flex;
    list-style:none;
    gap:25px;
}

nav ul li a{
    text-decoration:none;
    color:#0f172a;
    font-weight:bold;
}

nav ul li a:hover{
    color:#16a34a;
}

/* HERO */
.hero{
    min-height:88vh;
    display:flex;
    align-items:center;
    padding:60px 50px;
    background:
    linear-gradient(rgba(5,46,22,0.88),rgba(5,46,22,0.88)),
    url("farm-bg.jpg");
    background-size:cover;
    background-position:center;
    color:white;
}

.hero-content{
    max-width:700px;
}

.hero h1{
    font-size:54px;
    line-height:1.1;
    margin-bottom:20px;
}

.hero p{
    font-size:18px;
    color:#e5e7eb;
    line-height:1.7;
    margin-bottom:30px;
}

.btn{
    display:inline-block;
    background:#84cc16;
    color:#052e16;
    padding:14px 28px;
    border-radius:40px;
    text-decoration:none;
    font-weight:bold;
    margin-right:10px;
}

.btn-outline{
    display:inline-block;
    border:2px solid white;
    color:white;
    padding:12px 26px;
    border-radius:40px;
    text-decoration:none;
    font-weight:bold;
}

/* STATS */
.stats{
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
    margin-top:-55px;
    position:relative;
    z-index:10;
}

.stat-box{
    background:white;
    width:230px;
    padding:25px;
    border-radius:18px;
    text-align:center;
    box-shadow:0 15px 35px rgba(0,0,0,0.12);
}

.stat-box h2{
    color:#16a34a;
    font-size:32px;
}

.stat-box p{
    color:#475569;
    margin-top:8px;
}

/* SECTIONS */
.section{
    padding:80px 50px;
    text-align:center;
}

.section-title{
    max-width:750px;
    margin:auto;
    margin-bottom:45px;
}

.section-title h2{
    font-size:36px;
    color:#14532d;
    margin-bottom:15px;
}

.section-title p{
    color:#64748b;
    line-height:1.7;
}

.about-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:35px;
    align-items:center;
    text-align:left;
}

.about-box{
    background:white;
    padding:35px;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
}

.about-box h3{
    color:#166534;
    margin-bottom:15px;
    font-size:26px;
}

.about-box p{
    color:#475569;
    line-height:1.8;
}

/* PRODUCTS */
.products{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

.card{
    background:white;
    border-radius:22px;
    padding:25px;
    text-align:left;
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
    border:1px solid #dcfce7;
    transition:0.3s;
}

.card:hover{
    transform:translateY(-8px);
}

.card h3{
    color:#166534;
    margin-bottom:12px;
}

.card p{
    color:#64748b;
    line-height:1.7;
}

.product-img{
    width:100%;
    height:210px;
    object-fit:contain;
    background:#f8fafc;
    border-radius:16px;
    padding:10px;
    margin-bottom:15px;
}

.price{
    margin-top:12px;
    margin-bottom:12px;
    font-weight:bold;
    color:#16a34a;
    font-size:18px;
}

button{
    padding:12px 18px;
    border:none;
    border-radius:12px;
    background:#16a34a;
    color:white;
    font-weight:bold;
    cursor:pointer;
}

/* QUALITY */
.quality{
    background:#052e16;
    color:white;
}

.quality .section-title h2{
    color:white;
}

.quality .section-title p{
    color:#d1d5db;
}

.quality-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:25px;
}

.quality-box{
    background:rgba(255,255,255,0.08);
    padding:25px;
    border-radius:18px;
    border:1px solid rgba(255,255,255,0.15);
}

.quality-box h3{
    color:#84cc16;
    margin-bottom:10px;
}

/* DEALER */
.dealer{
    background:#ecfccb;
}

.dealer-box{
    background:white;
    max-width:900px;
    margin:auto;
    padding:45px;
    border-radius:25px;
    box-shadow:0 15px 35px rgba(0,0,0,0.1);
}

.dealer-box h2{
    color:#14532d;
    font-size:34px;
    margin-bottom:15px;
}

.dealer-box p{
    color:#475569;
    line-height:1.7;
    margin-bottom:25px;
}

/* CONTACT */
.contact{
    background:white;
}

.contact-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:30px;
    text-align:left;
}

.contact-info{
    background:#052e16;
    color:white;
    padding:35px;
    border-radius:22px;
}

.contact-info h3{
    font-size:28px;
    margin-bottom:20px;
}

.contact-info p{
    margin-bottom:15px;
    color:#e5e7eb;
}

form{
    background:#f8fafc;
    padding:35px;
    border-radius:22px;
    display:flex;
    flex-direction:column;
    gap:15px;
}

input, textarea{
    padding:15px;
    border:1px solid #cbd5e1;
    border-radius:12px;
    outline:none;
    font-size:15px;
}

textarea{
    resize:none;
    height:120px;
}

/* ORDER POPUP */
.order-box{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.75);
    z-index:9999;
    align-items:center;
    justify-content:center;
}

.order-box form{
    width:90%;
    max-width:430px;
    background:white;
    padding:30px;
    border-radius:22px;
}

.order-box h2{
    color:#14532d;
}

.cancel-btn{
    background:#dc2626;
}

/* WHATSAPP */
.whatsapp{
    position:fixed;
    right:20px;
    bottom:20px;
    background:#22c55e;
    color:white;
    padding:14px 20px;
    border-radius:50px;
    text-decoration:none;
    font-weight:bold;
    box-shadow:0 10px 25px rgba(0,0,0,0.3);
    z-index:999;
}

footer{
    background:#020617;
    color:#cbd5e1;
    text-align:center;
    padding:25px;
}

/* WELCOME POPUP */
.welcome-popup{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.75);
    z-index:10000;
    display:flex;
    align-items:center;
    justify-content:center;
}

.welcome-box{
    background:linear-gradient(135deg,#ecfccb,#bbf7d0);
    width:90%;
    max-width:430px;
    padding:35px;
    border-radius:24px;
    text-align:center;
    position:relative;
    box-shadow:0 20px 50px rgba(0,0,0,0.35);
    animation:popupAnim 0.6s ease;
}

@keyframes popupAnim{
    from{
        transform:scale(0.6);
        opacity:0;
    }
    to{
        transform:scale(1);
        opacity:1;
    }
}

.close-popup{
    position:absolute;
    top:12px;
    right:15px;
    background:#dc2626;
    color:white;
    border:none;
    border-radius:50%;
    width:32px;
    height:32px;
    cursor:pointer;
}

.welcome-box button{
    background:#16a34a;
    color:white;
    padding:12px 22px;
    border:none;
    border-radius:30px;
    cursor:pointer;
    font-weight:bold;
}

/* SUCCESS POPUP */
.success-popup{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.75);
    z-index:999999;
    align-items:center;
    justify-content:center;
}

.success-box{
    background:white;
    width:90%;
    max-width:420px;
    padding:35px;
    border-radius:24px;
    text-align:center;
    box-shadow:0 20px 45px rgba(0,0,0,0.35);
    animation:popupAnim 0.4s ease;
}

.success-box h2{
    color:#16a34a;
    margin-bottom:12px;
}

.success-box p{
    color:#475569;
    margin-bottom:20px;
    line-height:1.6;
}

.success-box button{
    background:#16a34a;
    color:white;
    border:none;
    padding:12px 30px;
    border-radius:30px;
    font-weight:bold;
    cursor:pointer;
}

.size-select{
    width:100%;
    padding:10px;
    border:1px solid #cbd5e1;
    border-radius:10px;
    margin:10px 0;
    outline:none;
}

/* SCROLL EFFECT */
.scroll-page{
    opacity:1;
    transform:translateY(0);
}

.scroll-page.animate-ready{
    opacity:0;
    transform:translateY(120px) scale(0.92);
    filter:blur(8px);
    transition:all 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-page.animate-ready.show{
    opacity:1;
    transform:translateY(0) scale(1);
    filter:blur(0);
}

/* SLIDER */
.template-slider-section{
    text-align:center;
}

.template-slider-section h2{
    text-align:center;
    display:block;
    width:100%;
    margin:25px auto 25px;
}

.slider-wrapper{
    width:100%;
    max-width:1200px;
    margin:auto;
    text-align:center;
    position:relative;
}

.premium-slider{
    width:100%;
    max-width:1200px;
    height:420px;
    margin:auto;
    overflow:hidden;
    border-radius:18px;
    position:relative;
    background:#f8fff4;
}

.premium-track img{
    width:100%;
    height:100%;
    object-fit:contain;
    object-position:center;
    position:absolute;
    top:0;
    left:0;
    display:none;
    opacity:0;
    transition:opacity 0.8s ease;
}

.slider-controls{
    margin-top:15px;
    display:flex;
    justify-content:center;
    gap:15px;
}

.slider-arrow{
    background:#16a34a;
    color:white;
    border:none;
    width:35px;
    height:35px;
    border-radius:50%;
    font-size:22px;
    cursor:pointer;
    transition:0.3s;
}

.slider-arrow:hover{
    background:#166534;
    transform:scale(1.1);
}

/* TABLET */
@media(max-width:992px){
    .products{
        grid-template-columns:repeat(3,1fr);
    }
}

/* MOBILE FINAL FIX */
@media(max-width:768px){

    html{
        scroll-padding-top:130px;
    }

    .topbar{
        flex-direction:column;
        gap:3px;
        padding:7px 10px;
        text-align:center;
        font-size:12px;
    }

    nav{
        flex-direction:column;
        padding:8px 8px 10px;
    }

    .logo{
        width:100%;
        justify-content:center;
        align-items:center;
        gap:0;
        font-size:22px;
    }

    .logo img{
        height:58px;
        margin-right:2px;
    }

    .logo span{
        font-size:22px;
        margin-left:0;
        padding-left:0;
        line-height:1;
    }

    nav ul{
        flex-wrap:wrap;
        justify-content:center;
        gap:13px;
        margin-top:10px;
    }

    nav ul li a{
        font-size:16px;
    }

    .hero{
        min-height:auto;
        padding:45px 22px 42px;
        text-align:center;
    }

    .hero-content{
        max-width:100%;
        margin:auto;
    }

    .hero h1{
        font-size:32px;
        line-height:1.15;
        margin-bottom:16px;
    }

    .hero p{
        font-size:16px;
        line-height:1.7;
        margin-bottom:22px;
    }

    .btn,
    .btn-outline{
        padding:12px 20px;
        font-size:15px;
        margin:6px 4px;
    }

    .stats{
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:14px;
        padding:22px 16px;
        margin-top:0;
    }

    .stat-box{
        width:100%;
        padding:20px 8px;
        border-radius:16px;
    }

    .stat-box h2{
        font-size:27px;
    }

    .stat-box p{
        font-size:14px;
    }

    .about-grid,
    .contact-grid{
        grid-template-columns:1fr;
    }

    .section{
        padding:55px 18px;
    }

  .section-title{
    max-width:900px;
    margin:0 auto 45px;
    padding:35px 28px;
    background:linear-gradient(135deg,#ffffff,#f0fdf4);
    border:1px solid #bbf7d0;
    border-radius:24px;
    box-shadow:0 18px 45px rgba(22,101,52,0.12);
    position:relative;
    overflow:hidden;
}

.section-title h2{
    font-size:38px;
    color:#14532d;
    margin-bottom:18px;
    font-weight:800;
}

.section-title h2::after{
    content:"";
    display:block;
    width:80px;
    height:4px;
    background:#16a34a;
    border-radius:10px;
    margin:12px auto 0;
}

.section-title p{
    font-size:17px;
    color:#475569;
    line-height:1.9;
    text-align:justify;
}

@media(max-width:768px){
    .section-title{
        padding:26px 18px;
        border-radius:20px;
        margin-bottom:32px;
    }

    .section-title h2{
        font-size:30px;
    }

    .section-title p{
        font-size:15.5px;
        line-height:1.75;
        text-align:left;
    }
}
    .premium-slider{
        height:220px;
        border-radius:14px;
    }

    .slider-arrow{
        width:42px;
        height:42px;
        font-size:22px;
    }
}

/* SMALL MOBILE */
@media(max-width:600px){

    .products{
        grid-template-columns:repeat(2,1fr);
        gap:15px;
    }

    .card{
        padding:14px;
    }

    .product-img{
        height:150px;
    }

    .card h3{
        font-size:16px;
    }

    .card p{
        font-size:13px;
    }
}

/* QUALITY SECTION TITLE FIX */
.quality .section-title{
    background:transparent;
    box-shadow:none;
    border:none;
    padding:0;
    margin-bottom:35px;
}

.quality .section-title h2{
    color:white;
    opacity:1;
}

.quality .section-title p{
    color:#d1fae5;
    opacity:1;
    text-align:center;
}

.quality .section-title h2::after{
    background:#84cc16;
}