


/* common css*/
:root{
    --yellow:#d0ad6c;
    --blue:#303f65;
    --darkblue:#01123f;
    --darkyellow:#614207;
    --white:#fff;
    --black:#000;
    --text:#555;
    --heading-font:Poppins, serif;
    --shadow:5px 3px 2px 2px #dad7d73b;
    --max:1200px;
}

html{
    scroll-behavior: smooth;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Poppins, serif;
}
body{overflow-x: hidden;}
body::-webkit-scrollbar{width: 10px;}
body::-webkit-scrollbar-thumb{
    background: var(--yellow);
    border-radius: 10px;
}
.container{
    max-width: var(--max);
    margin: auto;
    padding: 0 15px;
}
.flex{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sub-title{
    color: var(--yellow);
    font-weight: 600;
    display: block;
    margin-bottom: 15px;
}
.heading{
    font-size: 46px;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--dark);
}
.desc{
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 40px;
}
.btn{
     padding: 14px 28px;
    background: var(--darkblue);
    color: white;
    border-radius: 30px;
    transition: 0.4s ease-in-out;
    text-decoration: none;
}
.btn:hover{
    background: var(--darkyellow);
}
.btn.dark{background-color:var(--darkblue)}
.btn.dark:hover{
    background: var(--yellow);
}

/*header*/
.topbar{
    background: var(--blue);
    color: #fff;
    padding: 10px;
    font-size: 14px;
}
.topbar span{margin-right: 20px;}
.top-right{
    display: flex;
    align-items: center;
    gap: 15px;
}
.social i{
    margin-right: 8px;
    cursor: pointer;
}

header{
    width: 100%;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 9999;
    box-shadow: 5px 5px 5px #1f1f1f0f;
}
.navbar{
    padding: 25px 20px;
    background: white;
    top: 0;
}
.navbar .container{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo{
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 20px;

}
.logo span img{
    width: 150px;
    padding-right: 5px;
    margin-bottom: -5px;
}
.nav-links{
    display: flex;
    list-style: none;
    gap: 25px;
}
.nav-links a{
    text-decoration: none;
    font-weight: 500;
    color: var(--text);
}
.nav-links a:hover{
    color: var(--yellow);
}
.headerButtons{
    position: revert;
}
.hamburger{
display: none;
flex-direction: column;
cursor: pointer;
}

.hamburger span{
    height: 3px;
    width: 25px;
    background: var(--black);
    margin: 4px 0;
    border-radius: 2px;
}

/*hero section*/
.hero{
    position: relative;
    background: url(images/h2.JPG) no-repeat center center/cover;
    padding: 180px 0;
    color: #fff;
    overflow: hidden;
}

/* Dark overlay */
.hero::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55); /* adjust darkness here */
    z-index: 1;
}

/* Keep content above overlay */
.hero .container{
    position: relative;
    z-index: 2;
}

.hero-flex{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 60vh;
}

.hero-content{
    max-width: 600px;
}

.tag{
    color: var(--yellow);
    margin-bottom: 15px;
    display: inline-block;
    font-weight: 600;
    letter-spacing: 1px;
}

.hero h1{
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 20px;
}

.hero h1 span{
    color: var(--yellow);
}

.hero p{
    color: #ddd;
    margin-bottom: 30px;
    line-height: 1.6;
    font-size: 1.05rem;
}

.hero-btns{
    display: flex;
    gap: 15px;
}

/* Buttons styling improvement */
.btn{
    padding: 12px 28px;
    border-radius: 30px;
    background: var(--yellow);
    color: #000;
    font-weight: 600;
    transition: 0.3s;
    text-decoration: none;
}

.btn:hover{
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn.dark{
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn.dark:hover{
    background: #fff;
    color: #000;
}

/*features Section*/

.features{
    background: transparent; /* IMPORTANT */
    margin-top: -120px; /* controls overlap */
    position: relative;
    z-index: 10;
}

/* This is the floating card container */
.feature-flex{
    display: flex;
    gap: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden; /* keeps edges clean */
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

/* Individual cards */
.feature-card{
    flex: 1;
    text-align: center;
    padding: 50px 30px;
    background: #fff;
    border-right: 1px solid #eee;
    transition: 0.3s;
}

/* Remove border on last card */
.feature-card:last-child{
    border-right: none;
}

/* Hover effect */
.feature-card:hover{
    background: #f9f9f9;
    transform: translateY(-5px);
}

/* Typography */
.feature-card h3{
    font-size: 26px;
    color: var(--darkblue);
    margin-bottom: 15px;
}

.feature-card p{
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 25px;
}
.feature-card img {
    width: 100%;
    height: 220px;
    object-fit: cover; /* prevents distortion */
    border-radius: 10px;
    display: block;
}
@media (max-width: 768px) {
    .feature-card img {
        height: 180px;
    }
}



/*about Section*/
.about{
    padding: 120px 0;
    background: whitesmoke;
}
.about-flex{
    display: flex;
    align-items: center;
    gap: 60px;
}
.about-content{
    flex: 1;
}
.about-features{
    display: flex;
    margin-top: 40px;
    border-top: 1px solid var(--darkblue);
    padding-top: 30px;
}
.feature{
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}
.feature i{
    font-size: 34px;
    color: var(--darkblue);
}
.feature span{
    font-weight: 600;
    color: var(--dark);
}
.about-img{
    flex: 1;
    position: relative;
}
.about-img img{
    width: 100%;
    border-radius: 6px;
}
.experience{
    position: absolute;
    bottom: 40px;
    left: -40px;
    background: var(--darkblue);
    color: var(--white);
    padding: 30px 40px;
}
.experience h3{
    font-size: 32px;
    margin-bottom: 5px;
}
.experience p{
    font-size: 14px;
    opacity: .9;
}

.works{
    padding: 120px 0;
    background: linear-gradient(to bottom, #f8fafc, #eef2f7);
}

/* Section heading */
.section-head .heading{
    color: var(--darkblue);
    font-weight: 600;
    letter-spacing: 1px;
}

.section-head h2{
    font-size: 2.2rem;
    color: var(--darkblue);
    margin: 10px 0;

}

.section-head p{
    color: #666;
    line-height: 1.6;
}

/* Layout */
.work-flex{
    display: flex;
    gap: 30px;
}

/* Card */
.work-card{
    flex: 1;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: 0.3s;
    border: none;
}

.work-card:hover{
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

/* Image */
.img-box img{
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* Icon */
.icon{
    position: absolute;
    right: 20px;
    bottom: 5px;
    width: 55px;
    height: 55px;
    background: var(--green);
    color:var(--darkyellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Content */
.content{
    padding: 60px 25px 35px;
}

.content h3{
    font-size: 22px;
    color: var(--darkblue);
    margin-bottom: 10px;
}

.content .intro{
    color: #555;
    margin-bottom: 15px;
}

/* Subheading */
.content h4{
    margin-top: 15px;
    margin-bottom: 10px;
    color: var(--green);
    font-size: 16px;
}

/* Lists */
.content ul{
    padding-left: 18px;
    margin-bottom: 15px;
}

.content ul li{
    font-size: 14px;
    color: #666;
    margin-bottom: 6px;
    line-height: 1.6;
}

/* Button */
.content .btn{
    display: inline-block;
    margin-top: 10px;
    padding: 10px 22px;
    border-radius: 25px;
    background: var(--green);
    color: var(--darkblue);
    font-size: 14px;
    transition: 0.3s;
}

.content .btn:hover{
    background: #0c8f3a;
}
/*why choose us Section*/
.choose{
    width: 100%;
}
.choose-flex{
    display: flex;
    min-height: 400px;
}
.choose-img{flex: 1;}
.choose-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.choose-content{
    flex: 1;
    background: var(--darkblue);
    color: white;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.intro{
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 500px;
}
.choose-item{
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.whyIcon{
    border: 2px solid rgb(225, 225, 225, .7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    padding: 10px;
    color: var(--darkyellow);
}
.text h4{
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--darkyellow);
}
.text p{
    line-height: 1.2;
    opacity: .95;
}
.divider{
    height: 1px;
    background: rgb(225, 225, 225, .4);
    margin: 35px 0;
}


/*footer Section*/
#backToTop{
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background: var(--darkblue);
    border: 3px solid var(--darkblue);
    padding: 7px 8px;
    color: white;
    font-size: 16px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgb(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}
#backToTop .bx{font-size: 40px;}
#backToTop:hover{
    background: var(--white);
    border: 3px solid var(--darkblue);
    color: var(--darkblue);
}
.email-wrapper{
    position: relative;
    width: 100%;
    height: 200px;
    margin-bottom: -100px;
}
.emailform{
    background: var(--darkblue);
    padding: 20px 40px;
    border-radius: 10px;
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 10px 20px rgb(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.emailform-content{
    flex: 1 1 400px;
    padding: 10px;
}
.emailform-form{
    flex: 1 1 300px;
    padding: 10px;
    display: flex;
    justify-content: flex-end;
}
.emailform h2{
    font-size: 2rem;
    margin-bottom: 10px;
    color: white;
}
.emailform p{
    margin-bottom: 10px;
    color: white;
}
.emailform input{
    padding: 20px;
    width: 300px;
    border: none;
    border-radius: 4px 0 0 4px;
}
.emailform button{
    padding: 10px 20px;
    border: none;
    background: var(--dark);
    color: white;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}
footer{
    background-color: var(--darkyellow);
    color: var(--white);
    padding: 80px 20px 40px;
    position: relative;
    background-size: 100%;
}
.footer-container{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    margin-top: 100px;
}
.footer-section{
    flex: 1 1 200px;
    margin: 20px;
}
.footer-section h3{
    margin-bottom: 10px;
    font-size: 1.3rem;
}
.footer-section p{
    color: var(--black);
    opacity: 0.7;
}
.footer-section h3 img{
    width: 40px;
    vertical-align: bottom;
    margin-right: 10px;
    line-height: 49px;
}
.footer-section ul{
    list-style: none;
    padding: 0px;
}
.footer-section ul li{
    margin-bottom: 8px;
    opacity: 0.7;
    font-weight: 300;
    padding-left: 20px;
}
.footer-section ul li:hover{
    color: var(--green);
}
.footer-section ul li::before{
    position: absolute;
    z-index: 1;
    content: "";
    top: 10px;
    left: 2px;
    width: 10px;
    height: 2px;
    border-radius: 50%;
    background: var(--green);
}
.social-icons{
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.social-icons a{
    color: var(--green);
    color: var(--white);
    padding: 8px;
    border-radius: 4px;
    text-decoration: none;
    width: 40px;
    text-align: center;
    padding: 10px;
}
.social-icons a .bx{
    font-size: 20px;
}
.social-icons a:hover{
    background: var(--text);
}
.footer-bottom{
    text-align: center;
    border-top: 1px solid var(--text);
    margin-top: 20px;
    margin-top: 20px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-bottom p{
    font-weight: 400;
}


/*responsive Section*/

/* ============================= */
/* RESPONSIVE DESIGN */
/* ============================= */

/* Tablets */
@media (max-width: 992px){

    .heading{
        font-size: 32px;
    }

    .hero h1{
        font-size: 2.5rem;
    }

    .about-flex{
        flex-direction: column;
    }

    .work-flex{
        flex-direction: column;
    }

    .feature-flex{
        flex-direction: column;
    }

    .choose-flex{
        flex-direction: column;
    }

    .choose-img,
    .choose-content{
        width: 100%;
    }

    .emailform{
        flex-direction: column;
        text-align: center;
    }

    .emailform-form{
        justify-content: center;
    }

    .footer-container{
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom{
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}


/* Mobile Devices */
@media (max-width: 768px){

    .topbar .flex{
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .navbar .container{
        flex-wrap: wrap;
    }

    /* NAV MENU */
    .nav-links{
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 20px 0;
        display: none;
    }

    .nav-links.active{
        display: flex;
    }

    .hamburger{
        display: flex;
    }

    .headerButtons{
        display: none;
    }

    .hero{
        padding: 120px 0;
        text-align: center;
    }

    .hero-flex{
        justify-content: center;
    }

    .hero-btns{
        flex-direction: column;
        align-items: center;
    }

    .about-features{
        flex-direction: column;
        gap: 20px;
    }

    .experience{
        position: static;
        margin-top: 20px;
        text-align: center;
    }

    .img-box img{
        height: 200px;
    }

    .content{
        padding: 30px 20px;
    }

    .emailform input{
        width: 100%;
    }

}


/* Small Phones */
@media (max-width: 480px){

    .heading{
        font-size: 26px;
    }

    .hero h1{
        font-size: 2rem;
    }

    .btn{
        padding: 10px 20px;
        font-size: 14px;
    }

    .logo span img{
        width: 120px;
    }

    .feature-card{
        padding: 30px 20px;
    }

    .content h3{
        font-size: 18px;
    }

}

/* Hide topbar on small devices */
@media (max-width: 768px){
    .topbar{
        display: none;
    }

    header{
        top: 0;
    }
}

/* Add breathing space between header and hero */
.hero{
    margin-top: 20px;
}

/* Better spacing on desktop too */
@media (min-width: 992px){
    .hero{
        margin-top: 30px;
    }
}


.section-head,
.hero-content,
.feature-card,
.about-content,
.content{
    text-align: center;
}

.section-head{
    margin-bottom: 50px;
}

.section-head p{
    max-width: 600px;
    margin: 10px auto 0;
}

.hero-content p{
    max-width: 550px;
    margin: 0 auto 30px;
}

.feature-card p{
    max-width: 300px;
    margin: 0 auto 20px;
}

section{
    padding: 100px 0;
}

.features{
    margin-top: -100px; /* adjust overlap nicely */
}

.about,
.works,
.choose{
    padding: 100px 0;
}

.feature-flex{
    gap: 0;
}

.feature-card{
    transition: all 0.3s ease;
}

.feature-card:hover{
    transform: translateY(-8px);
}



/* Mobile dividers (horizontal) */
@media (max-width: 768px){

    .feature-card{
        position: relative;
    }

    .feature-card:not(:last-child)::after{
        content: "";
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60%;
        height: 1px;
        background: linear-gradient(to right, transparent, #ddd, transparent);
    }

}



/* ========================= */
/* FOOTER FIX (MOBILE) */
/* ========================= */
@media (max-width: 768px){

    .email-wrapper{
        height: auto;
        margin-bottom: 0;
    }

    .emailform{
        width: 95%;
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .emailform-content{
        flex: unset;
    }

    .emailform-form{
        flex: unset;
        width: 100%;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .emailform input{
        width: 100%;
        border-radius: 5px;
    }

    .emailform button{
        width: 100%;
        border-radius: 5px;
        padding: 12px;
    }

    /* Footer sections stack nicely */
    .footer-container{
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-section{
        margin: 10px 0;
    }

    /* Fix footer bottom */
    .footer-bottom{
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding-top: 20px;
    }

    /* Fix back to top button */
    #backToTop{
        right: 15px;
        bottom: 15px;
    }

}

.email-wrapper{
    margin-bottom: -80px; /* reduce from -100px */
}
