:root{
    --primary-color: #53a653;
    --accent-color: #6dce6d;
    --bg: #f9f7f0;
    --dark: #263f2b;
    --light: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    --transperent:rgba(255, 255, 255, 0.05);

}

*{
  font-family: "Exo 2", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;

  box-sizing: border-box;
}

a {
    text-decoration: none;
    color: var(--light);
    font-weight: 600;
}

body{
    margin: 0;
    background: var(--bg);
    color: var(--dark);
}

/*NAVBAR STYLES*/
nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: var(--transperent);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    border-radius: .5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar_logo{
    align-items: center;
    margin-right: 0.7em;
}

.navbar-link{
    display: flex;
    gap: 2rem;
    align-items: center;
    transition: all 0.3s ease-in-out;
}

.navbar-link a{
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    padding: 0.35em 0.7em;
}

.navbar-link a:hover{
    background: var(--primary-color);
    color: var(--light);
    border-radius: 0.5rem;
}

.navbar-hamburger{
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.load {
    background-color: var(--accent-color);
    color: var(--light);
    box-shadow: var(--shadow);
    border-radius: 8px;

}

/*MOBILENAV STYLES*/
@media (max-width: 800px) {
    .navbar-link{
        display: none;
        position: absolute;
        top: 70px;
        right: 20px;
        background: var(--transperent);
        backdrop-filter: blur(20px);
        box-shadow: var(--shadow);
        border-radius: 0.5rem;
        flex-direction: column;
        width: 150px;
        padding: 1rem;
    }

    .navbar-link.active{
        display: flex;
    }

    .navbar-hamburger{
        display: flex;
    }
}


/*HERO SECTION STYLES*/
.hero-section{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    flex-wrap: wrap;
    background: url(Assests/hero_bg.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 100vh;
    width: 100%;
}

.hero-left{
    flex: none;
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    text-align: center;
    animation: fadeSlideUp 1.2s ease-out forwards;
}

.hero-left h1{
    font-size: clamp(30px, 6vw, 60px);
    color: var(--primary-color);
    margin: 0;
    line-height: 1.2;
    opacity: 0;
    animation: fadeSlideUp 1.4s ease-out forwards;
    animation-delay: 0.2s;
}

.hero-left p{
    font-size: clamp(15px, 1.6vw, 22px);
    color: #fff;
    line-height: 1.5;
    max-width: 600px;
    opacity: 0;
    animation: fadeSlideUp 1.6s ease-out forwards;
    animation-delay: 0.4s;
}

.hero-buttons{
    display: flex;
    gap: 1rem;
    opacity: 0;
    animation: fadeSlideUp 1.8s ease-out forwards;
    animation-delay: 0.6s;
}

@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons a{
    padding: 0.9em;
    border-radius: 30px;
    background-color: var(--primary-color);
    font-weight: bold;
    box-shadow: var(--shadow);
    color: #fff;
    transition: background-color .22s ease;
}

.hero-buttons a:hover{
    background-color: var(--accent-color);
}


@media (max-width: 992px){
    .hero-section{
        height: auto;
        padding: 4rem 2rem;
        text-align: center;
        justify-content: center;
    }

    .hero-left{
        padding: 0;
        align-items: center;
    }

    .hero-left .hero-buttons{
        justify-content: center;
    }
}

@media (max-width: 600px){
    .hero-section{
        padding: 2.5rem 1rem;
        height: 100vh;
        min-height: 100vh;
    }

    .hero-left h1{
        font-size: 8vw;
        
    }

    .hero-left p{
        font-size: 4vw;
        
    }

    .hero-left .hero-buttons{
        flex-direction: row;
        width: 100%;
    }

    .hero-left .hero-buttons a{
        width: 100%;
        text-align: center;
    }
}





/*ABOUT FARMKET SECTION STYLES*/
.about-section{
    padding: 4rem 2rem;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

 .about-left{
   flex: 1;
   display: block;
   text-align: center;
   position: relative;
}
.about-left img{
    width: 100%;
    max-width: 480px;
    height: auto;
    animation: aboutInOut 5s infinite alternate;
    
}   

.about-section .about-left h3{
    font-size: clamp(20px, 3vw, 32px);
    letter-spacing: 6px;
    color: var(--light);
    margin-top: 1rem;
}

@keyframes aboutInOut {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.07);
       
    }
}



.about-right{
    flex: 1.2;
    min-width: 320px;
    background: var(--light);
    border-radius: 20px;
    padding: 3.5rem 2rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    flex-direction: column;
    justify-content: center;
}

.about-right h2{
    margin: 0 0 0.7em 0;
    color: var(--primary-color);
    font-size: clamp(24px, 3vw, 38px);
}

.about-right p{
    color: #333;
    line-height: 1.7;
    margin: 0.5em 0;
    font-size: clamp(14px, 1.1vw, 18px);
}

.about-icons-grid{
    display: grid;
    margin-top: 2rem;
    grid-template-columns: repeat(4, 1fr);
    gap: 1em;
}

.about-icon-card{
    background: var(--accent-color);
    border-radius: 12px;
    padding: 0.8em;
    display: flex;
    text-align: center;
    flex-direction: column;
    align-items: center;
    gap: 0.4em;
    box-shadow: var(--shadow);
}


@media (max-width: 992px) {
      .about-section { 
        flex-direction: column; 
        gap: 3rem; 
    }


      .about-right { 
        padding: 2.5rem 1.5rem;
    }

    .about-icons-grid {
         grid-template-columns: repeat(3, 1fr);
    }

    }


    @media (max-width: 750px) {

      .about-icons-grid { 
        grid-template-columns: repeat(2, 1fr);
    }

    .about-right {
        padding: 2rem 1.2rem;
    }
    }

     @media (max-width: 520px) {
        .about-icons-grid {
            grid-template-rows: 1fr;
        }

        .about-right p {
            line-height: 1.6;
        }

        .about-section {
            padding: 3rem 1rem;
        }
     }


    /*Why choose Us Section*/

    .why-us-section {
        background: linear-gradient(98deg, #f0f9f5 55%, #e6ffe6 80%);
        padding: 4rem 1.6rem;
    }
    
     .why-us-section .why-header {
        text-align: center;
        margin-bottom: 2.5rem;
     }


    .why-us-section .why-header h2 {
        font-size: clamp(24px, 3vw, 40px);
        color: var(--primary-color);
        margin-bottom: 0.4rem;
        font-weight: 700;
    }

     .why-us-section .why-header p{
        font-size: clamp(14px, 1.3vw, 20px);
        max-width: 650px;
        margin: 0 auto;
        color: var(--primary);
        line-height: 1.5;
     }

     .why-content{
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        gap: 3rem;
        align-items: center;
     }

     .why-left-col,
     .why-right-col
     {
       display: flex;
       flex-direction: column;
       gap: 2.5rem;
     }


     .why {
       background: var(--light);
       padding: 1.5rem;
       border-radius: 14px;
       text-align: center;
       box-shadow: var(--shadow);
     }

     .why b{
        color: var(--primary);
        font-size: clamp(18px, 2vw, 24px);
     }

     .why span {
        display: block;
        margin-top: 0.5rem;
        font-size: clamp(14px, 1.2vw, 16px);
        color: #333;
        line-height: 1.5;
     }

     .why-center-image {
       display: flex;
       justify-content: center;
     }

     .why-center-image img {
        width: 100%;
        max-width: 460;
        height: auto;
        transition: transform .28s ease-in-out;
     }

    .why-center-image img:hover {
        transform: scale(1.03);
    }



    @media (max-width: 992px) {
      .why-content {
       grid-template-columns: 1fr;
       text-align: center;
      }

      .why-left-col,
      .why-right-col {
        gap: 2rem;
      }

      .why-center-image img { 
        max-width: 400px;
        }
    }

    @media (max-width: 600px) {
        .why-us-section {
            padding: 3rem 1rem;
        }

        .why-header p {
            font-size: 14px;
        }

        .why {
            padding: 1.2rem;
        }

        .why-center-image img {
            max-width: 320px;
        }
    }

    /*How Farmket Works*/
    .how-it-works-section{
        background: var(--primary-color);
        padding: 4rem 1.5rem;
        text-align: center;
        color: var(--light);
    }

     .how-header small {
      display: block;
      font-size: clamp(12px, 1vw, 14px);
      font-weight: 400;
      letter-spacing: 10px;
      color: var(--light);
      margin-bottom: 0.5rem;
     }

      .how-header h2 {
        font-size: clamp(28px, 4vw, 42px);
        color: var(--light);
        margin-bottom: 0.8rem;
      }

       .how-header p {
        font-size: clamp(14px, 1.3vw, 18px);
        color: var(--light);
        max-width: 650px;
        margin: 0 auto 2.5rem auto;
        line-height: 1.6;
       }

       .how-steps-grid {
        display: grid; 
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        justify-content: center; 
        gap: 1.8rem;
       }

       .how-step-card {
        background: #f0f9f5;
        border-radius: 12px;
        padding: 1.5em 1.2em;
        box-shadow: var(--shadow);
        text-align: center;
        flex: 1 1 180px;
        max-width: 220px;
        display: flex; 
        flex-direction: column;
        align-items: center; 
        color: var(--dark);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        width: 100%;
       } 

       .how-step-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba (0,0,0,0.12);
       }


       .how-step-card img {
        width: 60px;
        height: auto;
        margin-bottom: 0.8rem;
       }

        .how-step-card h3 {
            font-weight: bold; 
            font-size: clamp(16px, 1.3vw, 20px); 
            margin-bottom: 0.6em;
        }

         .how-step-card p {
            font-size: clamp(12px, 1vw, 14px);
            line-height: 1.5;
         }

         @media (max-width: 992px) {
            .how-header h2 {
                font-size: 32px;
            }

            .how-header p {
                font-size: 15px;
            }

            .how-step-card {
                flex: 1 1 200px;
                max-width: 200px;
            }
         }

         @media (max-width: 600px) {
            .how-it-works-section {
                padding: 3rem 1rem;
            }

            .how-header h2 {
                font-size: 28px;
            }

            .how-header p {
                font-size: 14px;
            }

           

            .how-step-card {
                max-width: 100%;
                padding: 1.2;
            }
         }



.contact-section {
    background: linear-gradient(98deg, #f0f9f5 55%, #e6ffe6 80%);
    color: var(--accent-color);
    padding: 4rem 2rem;
}

.contact-header small {
    display: block;
    font-size: clamp(12px, 1vw, 14px);
    letter-spacing: 10px;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.contact-header h2 {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 0.6rem;
}

.contact-header p {
    font-size: clamp(14px, 1.2vw, 18px);
    max-width: 650px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.6;
}

/* CONTACT CONTENT */
.contact-content {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* CONTACT INFO CARDS */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 250px;
}

.contact-card {
    background: var(--accent-color);
    color: var(--dark);
    padding: 1.2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.contact-card b {
    display: block;
    font-size: 1.2em;
    margin-bottom: 0.4rem;
    color: var(--light);
}

.contact-card span {
    font-size: 1em;
    color: var(--light);
}

/* CONTACT FORM */
.contact-form {
    min-width: 300px;
    max-width: 450px;
    width: 100%;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: none;
    outline: none;
    font-size: 1em;
    width: 100%;
}

.contact-form button {
    padding: 0.9rem 2rem;
    border-radius: 30px;
    border: none;
    background-color: var(--accent-color);
    color: var(--light);
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.22s ease;
}

.contact-form button:hover {
    background-color: var(--primary-color);
}



/* TABLETS */
@media (max-width: 992px) {
    .contact-content {
        flex-direction: column;
        align-items: center;
    }
}

/* MOBILE */
@media (max-width: 600px) {
    .contact-header h2 {
        font-size: 28px;
    }

    .contact-header p {
        font-size: 14px;
    }

    .contact-card b {
        font-size: 1.1em;
    }

    .contact-form button {
        width: 100%;
    }
}


/* FOOTER SECTION */
.footer-section {
    background: var(--primary-color);
    color: var(--light);
    padding: 3rem 2rem 1.5rem 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

/* Logo & Description */
.footer-logo-desc h3 {
    font-size: clamp(22px, 3vw, 32px);
    margin-bottom: 0.6rem;
}

.footer-logo-desc p {
    font-size: clamp(14px, 1.2vw, 16px);
    max-width: 300px;
    line-height: 1.5;
}

/* Quick Links */
.footer-links h4 {
    margin-bottom: 0.8rem;
    font-size: 1.2em;
    font-weight: bold;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    text-decoration: none;
    color: var(--light);
    transition: color 0.2s;
}

.footer-links ul li a:hover {
    color: var(--accent-color);
}

/* Contact & Socials */
.footer-contact h4 {
    margin-bottom: 0.8rem;
    font-size: 1.2em;
    font-weight: bold;
}

.footer-contact p {
    margin: 0.3em 0;
    font-size: 1em;
}

.footer-socials {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.footer-socials a img {
    transition: transform 0.3s ease;
}

.footer-socials a:hover img {
    transform: scale(1.1);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.3);
    padding-top: 1rem;
    text-align: center;
    font-size: 0.9em;
    color: rgba(255,255,255,0.7);
}

/* =================== */
/* RESPONSIVENESS */
/* =================== */

/* TABLETS & SMALL LAPTOPS */
@media (max-width: 992px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-logo-desc p {
        max-width: 100%;
    }
}

/* MOBILE */
@media (max-width: 600px) {
    .footer-logo-desc h3 {
        font-size: 24px;
    }

    .footer-links h4,
    .footer-contact h4 {
        font-size: 1.1em;
    }
}
