html{
    scroll-behavior:smooth;
    scroll-padding-top: 100px;
}
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial, sans-serif;
    background:#f5f5f5;
}

/* Header */

header{
    background: linear-gradient(90deg, #2E8B57, #3CB371);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header{
    padding: 12px 35px;
}
.logo-section{
    display:flex;
    align-items:center;
    gap:12px;
}
.logo-section h1{
    font-size:18px;
    font-weight:700;
    color:white;
}

.logo{
    width:60px;
    height:60px;
    border-radius:50%;
    margin-right:15px;
    object-fit:cover;
}

nav a{
    color: white;
    text-decoration: none;
    margin-left: 25px;
    font-weight: bold;
    transition: 0.3s;
    padding: 8px 12px;
    border-radius: 6px;
}

nav a:hover{
    background: white;
    color: #2E8B57;
}

/* Hero */

.hero{
    text-align:center;
    padding:40px 20px 20px;
}

.hero-image{
    width:80%;
    max-width:1100px;
    height:350px;
    object-fit:cover;
    border-radius:15px;
    box-shadow:0 8px 20px rgba(0,0,0,0.2);
}

.welcome h2{
    margin-top:20px;
    color:#2E8B57;
    font-size:36px;
}

.welcome p{
    margin-top:10px;
    font-size:18px;
    color:#555;
}

/* Buttons */

.buttons{
    margin-top:30px;
}

.btn{
    display:inline-block;
    text-decoration:none;
    background:#2E8B57;
    color:white;
    padding:15px 35px;
    margin:10px;
    border-radius:50px;
    font-size:18px;
    font-weight:bold;
    transition:0.3s;
}

.btn:hover{
    transform:scale(1.05);
    background:#1d6e44;
}

.whatsapp{
    background:#25D366;
}

.whatsapp:hover{
    background:#1DA851;
}

/* About Section */

.about{
    background:white;
    margin:50px auto;
    width:90%;
    max-width:1000px;
    padding:45px;
    border-radius:18px;
    box-shadow:0 8px 20px rgba(0,0,0,0.08);
}

.about h2{
    text-align:center;
    color:#2E8B57;
    margin-bottom:25px;
    font-size:38px;
    font-weight: 700;
}

.about p{
    font-size:18px;
    line-height:1.9;
    color:#555;
    text-align:justify;
    margin-bottom:18px;
}

/* Services Section */

.services{
    width:90%;
    max-width:1100px;
    margin:40px auto;
    text-align:center;
}

.services h2{
    color:#2E8B57;
    font-size:35px;
    margin-bottom:30px;
}

.service-container{
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    gap:20px;
}

.service-card{
    background:white;
    padding:25px;
    border-radius:15px;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
    flex:1;
}

.service-card h3{
    color:#2E8B57;
    margin-bottom:15px;
}

.service-card p{
    color:#555;
    line-height:1.6;
}
.service-card:hover{
    transform: translateY(-8px);
    transition: 0.3s;
    box-shadow:0 10px 20px rgba(0,0,0,0.2);
}

/* Products Section */

.products{
    width:90%;
    max-width:1100px;
    margin:50px auto;
    text-align:center;
}

.products h2{
    color:#2E8B57;
    font-size:35px;
    margin-bottom:30px;
}

.product-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
}

.product-card{
    background:white;
    padding:25px;
    border-radius:15px;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
    transition:0.3s;
    cursor:pointer;
}


.product-card h3{
    color:#2E8B57;
    margin-bottom:15px;
}

.product-card p{
    color:#555;
    display: flex;
    flex-direction: column;
    text-align: center;
}
.product-card:hover{
    transform:translateY(-8px);
    box-shadow:0 10px 20px rgba(0,0,0,0.2);
}

.product-card img{
    width:100%;
    height:220px;
    object-fit:cover;
    border-radius:10px;
    margin-top:20px;
}

.whatsapp-float{
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1000;
}

.whatsapp-float:hover{
    background: #1DA851;
}

/* Reviews Section */

.reviews{
    width:90%;
    max-width:1100px;
    margin:50px auto;
    text-align:center;
}

.reviews h2{
    color:#2E8B57;
    font-size:35px;
    margin-bottom:30px;
}

.review-container{
    display:flex;
    justify-content:space-between;
    gap:20px;
}

.review-card{
    flex:1;
    background:white;
    padding:25px;
    border-radius:15px;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
}

.review-card h3{
    margin-bottom:15px;
}

.review-card p{
    color:#555;
    line-height:1.6;
}

.review-card h4{
    margin-top:15px;
    color:#2E8B57;
}

/* Contact Section */

.contact{
    width:90%;
    max-width:800px;
    margin:60px auto;
    background:white;
    padding:40px;
    border-radius:15px;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
    text-align:center;
}

.contact h2{
    color:#2E8B57;
    font-size:35px;
    margin-bottom:20px;
}

.contact p{
    font-size:18px;
    margin:12px 0;
}
.contact h3{
    color:#2E8B57;
    margin-top:25px;
    margin-bottom:10px;
}

/* Footer */

footer{
    background:#2E8B57;
    color:white;
    text-align:center;
    padding:20px;
    margin-top:40px;
}

/* Google Map */

.map{
    width:90%;
    max-width:1100px;
    margin:60px auto;
    text-align:center;
}

.map h2{
    color:#2E8B57;
    font-size:35px;
    margin-bottom:25px;
}

.map iframe{
    border-radius:15px;
    box-shadow:0 5px 15px rgba(0,0,0,0.15);
}

/* Mobile Responsive */

@media (max-width:768px){

    .service-container,
    .review-container,
    .tips-container{
        flex-direction:column;
    }

    .product-grid{
        grid-template-columns:1fr;
    }

    .hero-image{
        width:100%;
    }

    .about,
    .contact,
    .reviews,
    .products,
    .services,
    .map,
    .why-choose{
        width:95%;
    }

    .why-container{
        grid-template-columns:1fr;
    }
}

/* Back to Top Button */

.back-to-top{
    position:fixed;
    bottom:20px;
    right:20px;
    width:50px;
    height:50px;
    background:#2E8B57;
    color:white;
    text-decoration:none;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:24px;
    box-shadow:0 5px 15px rgba(0,0,0,0.3);
    transition:0.3s;
}

.back-to-top:hover{
    background:#1d6e44;
    transform:scale(1.1);
}

.tagline{
    font-size:18px;
    color:#666;
    margin-top:10px;
    font-style:italic;
}

/* Social Media */

footer h3{
    font-size:25px;
    margin-bottom:15px;
}

.social-links{
    margin-bottom:20px;
}

.social-links a{
    display:inline-flex;
    justify-content:center;
    align-items:center;
    width:50px;
    height:50px;
    background:#1877F2;
    color:white;
    border-radius:50%;
    text-decoration:none;
    font-size:25px;
    transition:0.3s;
}

.social-links a:hover{
    transform:scale(1.1);
}

/* Card Hover Effects */

.service-card,
.review-card{
    transition: 0.3s;
}

.service-card:hover,
.review-card:hover{
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Product Search */



/* Medicine Request */

#medicineName{
    width:80%;
    max-width:500px;
    padding:15px;
    border:2px solid #2E8B57;
    border-radius:10px;
    font-size:16px;
}

/* Contact Buttons */

.contact-buttons{
    margin-top:20px;
}

.call{
    background:#007BFF;
    color:white;
    margin-right:10px;
}

.call:hover{
    background:#0056b3;
}

/* Why Choose Us */

.why-choose{
    width:90%;
    max-width:1100px;
    margin:50px auto;
    text-align:center;
}

.why-choose h2{
    color:#2E8B57;
    font-size:35px;
    margin-bottom:30px;
}

.why-container{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
}

.why-card{
    background:white;
    padding:25px;
    border-radius:15px;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
    transition:0.3s;
}

.why-card:hover{
    transform:translateY(-8px);
    box-shadow:0 10px 20px rgba(0,0,0,0.2);
}

.why-card h3{
    color:#2E8B57;
    margin-bottom:15px;
}

.why-card p{
    color:#555;
    line-height:1.6;
}

/* Health Tips */

.health-tips{
    width:90%;
    max-width:1100px;
    margin:50px auto;
    text-align:center;
}

.health-tips h2{
    color:#2E8B57;
    font-size:35px;
    margin-bottom:30px;
}

.tips-container{
    display:flex;
    justify-content:space-between;
    gap:20px;
}

.tip-card{
    flex:1;
    background:white;
    padding:25px;
    border-radius:15px;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
    transition:0.3s;
}

.tip-card:hover{
    transform:translateY(-8px);
    box-shadow:0 10px 20px rgba(0,0,0,0.2);
}

.tip-card h3{
    color:#2E8B57;
    margin-bottom:15px;
}

.tip-card p{
    color:#555;
    line-height:1.6;
}

/* Fade In Animation */

.fade-in{
    opacity:0;
    transform:translateY(30px);
    animation:fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp{
    from{
        opacity:0;
        transform:translateY(30px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

@media (max-width: 600px) {

    .hero {
        padding: 20px 10px;
    }

    .hero-image {
    width: 100%;
    max-width: 1100px;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: 0.3s;
    margin: 0 auto 20px;
}

.hero-image:hover {
    width: 90%;
    max-width: 1200px;
    transform: scale(1.02);
}

    .welcome h2 {
        font-size: 28px;
        margin-top: 20px;
        animation: fadeUp 1s ease;
    }

    .welcome p {
        font-size: 16px;
        animation: fadeUp 1.3s ease;
    }

}

.menu-icon {
    display: none;
    font-size: 30px;
    cursor: pointer;
}

@media (max-width: 600px) {

    .menu-icon {
        display: block;
    }

    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    nav.active {
        display: flex;
    }

    nav a {
        padding: 12px;
    }

}

/* Mobile Header */
@media (max-width: 600px) {

    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
        position: relative;
    }

    .logo-section {
        display: flex;
        align-items: center;
    }

    .logo {
        width: 45px;
        height: 45px;
    }

    .logo-section h1 {
        font-size: 22px;
        margin-left: 10px;
    }

    .menu-icon {
        display: block;
        position: static;
        font-size: 32px;
        color: white;
        cursor: pointer;
        z-index: 1001;
    }

    #nav-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

#nav-menu.active {
    max-height: 400px;
}

    #nav-menu a {
        padding: 15px 20px;
        text-align: left;
        color: #2E8B57;
        text-decoration: none;
        border-bottom: 1px solid #eee;
    }
    .contact {
    padding: 25px 18px;
}

.contact h2 {
    font-size: 32px;
}

.contact p {
    font-size: 16px;
    line-height: 1.6;
    word-break: break-word;
}

.contact .btn {
    width: 90%;
    max-width: 320px;
    margin: 10px auto;
    display: block;
}
}

.hero {
    animation: heroFade 1.2s ease-in-out;
}

@media (max-width: 600px) {

    .about{
    padding:25px 20px;
}

.about h2{
    font-size:32px;
}

    .about p {
        text-align: left;
        font-size: 16px;
        line-height: 1.8;
    }

    .service-container{
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
}

@keyframes heroFade {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width:600px){

    footer{
        padding:25px 15px;
    }

    footer h3{
        font-size:22px;
        margin-bottom:15px;
    }

    .social-links a{
        width:45px;
        height:45px;
        font-size:22px;
    }

    footer p{
        font-size:14px;
        line-height:1.6;
        margin-top:10px;
    }

    .back-to-top{
        width:45px;
        height:45px;
        font-size:20px;
        bottom:15px;
        right:15px;
    }
}