

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background:#eef7f1;
    color:#222;
    overflow-x:hidden;
}

a{
    text-decoration:none;
}

img{
    max-width:100%;
}



.hero-section{
    min-height:100vh;
    display:flex;
    align-items:center;
    padding:70px 0;
}

.badge{
    font-size:15px;
    font-weight:500;
    letter-spacing:.5px;
}

.display-4{
    line-height:1.2;
}

.text-success{
    color:#2E8B57 !important;
}

.lead{
    font-size:18px;
    line-height:1.8;
    color:#666 !important;
}



.info-card{

    background:#fff;
    border-radius:20px;
    padding:25px;
    text-align:center;
    margin-top:20px;

    box-shadow:
    0 12px 25px rgba(0,0,0,.08);

    transition:.35s;
}

.info-card:hover{

    transform:translateY(-8px);

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

}

.info-card i{

    font-size:45px;
    color:#2E8B57;

    margin-bottom:15px;

}

.info-card h5{

    font-weight:600;
    margin-bottom:12px;

}

.info-card p{

    color:#777;
    font-size:15px;
    line-height:1.6;

}



.bmi-card{

    background:#ffffff;

    border-radius:30px;

    padding:40px;

    box-shadow:
    0 20px 50px rgba(0,0,0,.12);

}

.bmi-card h3{

    font-weight:700;
    margin-bottom:30px;

}

.form-label{

    font-weight:600;
    margin-bottom:10px;

}



.gender-btn{

    height:65px;

    border-radius:16px;

    border:2px solid #d9e9de;

    background:#fff;

    font-weight:600;

    transition:.3s;

    font-size:17px;

}

.gender-btn i{

    font-size:22px;

    margin-right:8px;

}

.gender-btn:hover{

    background:#2E8B57;

    color:#fff;

    border-color:#2E8B57;

}

.gender-btn.active{

    background:#2E8B57;

    color:#fff;

    border-color:#2E8B57;

}

.age-box{

    display:flex;

    justify-content:space-between;

    align-items:center;

    background:#f4faf6;

    padding:15px 18px;

    border-radius:15px;

}

.age-box button{

    width:45px;

    height:45px;

    border:none;

    border-radius:50%;

    background:#2E8B57;

    color:#fff;

    font-size:24px;

    cursor:pointer;

    transition:.3s;

}

.age-box button:hover{

    transform:scale(1.08);

    background:#236c44;

}

#ageValue{

    font-size:24px;

    font-weight:700;

    color:#2E8B57;

}



label{

    font-weight:600;

    color:#444;

}

span{

    font-weight:600;

}


.form-control{

    border-radius:12px;

    border:1px solid #ddd;

    padding:12px;

}

.form-control:focus{

    box-shadow:none;

    border-color:#2E8B57;

}





      /* Range Slider */

.form-range{
    margin-top:10px;
    cursor:pointer;
}

.form-range::-webkit-slider-runnable-track{
    height:8px;
    background:#d9eadf;
    border-radius:20px;
}

.form-range::-webkit-slider-thumb{
    -webkit-appearance:none;
    appearance:none;
    width:22px;
    height:22px;
    border-radius:50%;
    background:#2E8B57;
    border:3px solid #fff;
    margin-top:-7px;
    box-shadow:0 3px 10px rgba(0,0,0,.2);
    cursor:pointer;
}

.form-range::-moz-range-track{
    height:8px;
    background:#d9eadf;
    border-radius:20px;
}

.form-range::-moz-range-thumb{
    width:22px;
    height:22px;
    border-radius:50%;
    border:none;
    background:#2E8B57;
    cursor:pointer;
}

      /* Calculate Button */

.btn-success{
    background:#2E8B57;
    border:none;
    border-radius:16px;
    padding:15px;
    font-size:18px;
    font-weight:600;
    transition:.3s;
}

.btn-success:hover{
    background:#236c44;
    transform:translateY(-3px);
    box-shadow:0 15px 30px rgba(46,139,87,.25);
}

      /* Result Section */

.result-section{
    padding-bottom:80px;
}

.result-card{

    background:#fff;

    border-radius:30px;

    padding:50px;

    max-width:700px;

    margin:auto;

    text-align:center;

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

}

.result-card h2{

    font-weight:700;

    margin-bottom:20px;

}

#bmiResult{

    font-size:70px;

    color:#2E8B57;

    font-weight:800;

    margin-bottom:10px;

}

#bmiStatus{

    font-weight:700;

    margin-bottom:15px;

}

#bmiMessage{

    color:#666;

    font-size:17px;

    line-height:1.7;

}

      /* Extra Cards */

.tip-card{

    background:#fff;

    border-radius:20px;

    padding:25px;

    margin-top:25px;

    box-shadow:0 12px 25px rgba(0,0,0,.08);

}

.tip-card h4{

    color:#2E8B57;

    font-weight:700;

    margin-bottom:15px;

}

.tip-card ul{

    padding-left:18px;

}

.tip-card li{

    margin-bottom:10px;

    color:#555;

}

      /* Animations */

.bmi-card,
.result-card,
.info-card{

    animation:fadeUp .8s ease;

}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(30px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

.btn,
.info-card,
.bmi-card{

    transition:.3s;

}

      /* Hover Effects */

.bmi-card:hover{

    transform:translateY(-6px);

    box-shadow:0 25px 55px rgba(0,0,0,.15);

}

.result-card:hover{

    transform:translateY(-5px);

    box-shadow:0 25px 60px rgba(0,0,0,.12);

}

      /* Responsive */

@media(max-width:992px){

    .hero-section{

        min-height:auto;

        padding:60px 0;

    }

    .display-4{

        font-size:42px;

    }

    .bmi-card{

        margin-top:30px;

    }

}

@media(max-width:768px){

    .display-4{

        font-size:34px;

        text-align:center;

    }

    .lead{

        text-align:center;

    }

    .badge{

        display:block;

        width:max-content;

        margin:auto;

    }

    .info-card{

        margin-bottom:20px;

    }

    .bmi-card{

        padding:30px;

    }

    #bmiResult{

        font-size:55px;

    }

}

@media(max-width:576px){

    .hero-section{

        padding:40px 0;

    }

    .display-4{

        font-size:30px;

    }

    .bmi-card{

        padding:20px;

        border-radius:20px;

    }

    .result-card{

        padding:30px 20px;

        border-radius:20px;

    }

    .gender-btn{

        font-size:15px;

        height:55px;

    }

    .age-box button{

        width:40px;

        height:40px;

    }

    #ageValue{

        font-size:20px;

    }

    #bmiResult{

        font-size:45px;

    }

}

/* Smooth Scroll */

html{

    scroll-behavior:smooth;

}