* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: -apple-system, sans-serif;
}

:root {
    --bg-color: #fff;
    --snd-bg-color: #d5fdf9;
    --text-color: #000;
    --main-color: #007F73;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

/* Header & NavBar Section */

.header {
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 5%;
    background: var(--main-color);
    backdrop-filter: blur(10px);
    transition: all 0.5s ease;
}

.logo {
    font-size: 3rem;
    color: var(--bg-color);
    font-weight: 700;
    cursor: default;
    transition: 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.navbar a {
    font-size: 1.9rem;
    color: var(--bg-color);
    margin-left: 4rem;
    font-weight: 700;
    transition: 0.3s ease-in-out;
}

.navbar a:hover,
.navbar a.active {
    color: var(--text-color);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--bg-color);
    cursor: pointer;
    display: none;
}

/* Home Section */

.home {
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-img img {
    width: 25vw;
    animation: floatImage 4s ease-in-out infinite;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
    transition: 0.4s ease-in-out;
}

.home-img img:hover {
    box-shadow: 0 0 25px var(--main-color),
                0 0 35px var(--main-color),
                0 0 55px var(--main-color);
}

@keyframes floatImage {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2.4rem);
    }

    100% {
        transform: translateY(0);
    }
}

.home-content {
    margin-left: 5rem;
}

.home-content h3 {
    font-size: 3.7rem;
    font-weight: 700;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 2rem;
}

span {
    color: var(--main-color);
}

.home-content h1 {
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content p {
    font-size: 1.6rem;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: .3s ease-in-out;
}

.social-media a:hover {
    transform: scale(1.2)translateY(-10px);
    background-color: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 25px var(--main-color); 
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: none;
    font-size: 1.6rem;
    color: var(--bg-color);
    letter-spacing: .1rem;
    font-weight: 600;
    transition: .5s ease;
}

.btn:hover {
    box-shadow: 0 0 1.6rem var(--main-color);
}

/* About Section */

.about {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: var(--snd-bg-color);
}

.about-img img {
width: 320px; /* ছবির সাইজ আগের মতোই রাখুন */
    height: 320px;
    object-fit: cover; /* ছবি যেন ফেটে না যায় */
    
    /* ১. ছবির কোণাগুলো কিছুটা গোল (Soft edges) */
    border-radius: 2.5rem; /* এটি পুরোপুরি গোল না করে মডার্ন চারকোণা লুক দেবে */
    
    /* ২. Neon/Glow Effect (Teal কালার দিয়ে) */
    border: 3px solid var(--main-color); /* ছবির চারপাশে একটি বর্ডার */
    box-shadow: 0 0 20px var(--main-color),  /* ভেতরের গ্লো */
                0 0 40px rgba(0, 255, 229, 0.4); /* বাইরের হালকা গ্লো */
    
    /* ৩. অ্যানিমেশন (ঐচ্ছিক - মাউস নিলে গ্লো বাড়বে) */
    transition: 0.5s ease-in-out;
}

.about-img img:hover {
                box-shadow: 0 0 25px var(--main-color),
                0 0 60px rgba(0, 255, 229, 0.6);
    transform: scale(1.02);
}

.heading {
    text-align: center;
    font-size: 6rem;
}

.about-content {
    padding: 0 4rem;
}

.about-content h2 {
    text-align: left;
    line-height: 1.2;
}

.about-content h3 {
    font-size: 3rem;
}

.about-content p {
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
}






/* ===== MY WORK =====*/
.work__container {
    display: grid;
    /* এটি ইমেজগুলোকে অটোমেটিক পাশে পাশে সাজাবে */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2rem;
}

.work__img {
    box-shadow: 0 4px 25px rgba(135, 179, 205, 0.15);
    border-radius: .5rem;
    overflow: hidden;
}

.work__img img {
    width: 100%;
    height: 250px;
    object-fit: cover; /* এটি ইমেজকে চ্যাপ্টা হতে দেবে না, সুন্দরভাবে ক্রপ করবে */
    transition: 1s;
    cursor: pointer;
}

.work__img img:hover {
    transform: scale(1.1);
}

.heading {
    text-align: center;
    font-size: 6rem;
    margin-bottom: 5rem; /* এই লাইনটি লেখা এবং ইমেজের মাঝে গ্যাপ তৈরি করবে */
}


.work__box {
    display: flex; /* ফ্লেক্সবক্স ব্যবহার করা */
    flex-direction: column; /* কন্টেন্টগুলো উপর-নিচ থাকবে */
    align-items: center; /* সবকিছুকে মাঝখানে (Horizontal center) নিয়ে আসবে */
    text-align: center;
    padding-bottom: 2rem;
    /* আপনার আগের অন্য ডিজাইনগুলো এখানে থাকবে */
}



/* প্রজেক্টের নাম ও ইনফো বক্স */
.work__info {
    padding: 1.5rem;
    text-align: center; /* সবকিছু মাঝখানে রাখার জন্য */
}

/* প্রজেক্টের নামের ডিজাইন */
.work__info h3 {
    font-size: 2rem;
    color: #fff; /* বা আপনার থিমের টেক্সট কালার */
    margin-bottom: .5rem;
    font-weight: 700;
}

/* টেকনোলজি বা ডেসক্রিপশনের ডিজাইন */
.work__info p {
    font-size: 1.4rem;
    color: var(--main-color); /* আপনার সেই সুন্দর টিল কালার */
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-style: italic; /* একটু বাঁকা হলে দেখতে ভালো লাগে */
}

/* বাটনটিকে লেখা থেকে একটু দূরত্ব দেওয়া */
.work__info .work__btn {
    margin-top: 0; /* প্যাডিং এর ভেতর থাকায় মার্জিন দরকার নেই */
}

/* ==================== WORK BUTTON DESIGN ==================== */

.work__btn {
    display: inline-flex;
    align-items: center;
    gap: .8rem; /* আইকন ও লেখার মাঝে গ্যাপ */
    background: var(--main-color); /* বাটনের পেছনের রঙ (আপনার থিম কালার) */
    color: #fff; /* লেখার রঙ সাদা */
    font-size: 1.8rem; /* লেখার সাইজ একটু বড় করা */
    font-weight: 600;
    padding: 1.2rem 3rem; /* বাটনের ভেতর খালি জায়গা (এতে বাটন বড় হবে) */
    border-radius: 5rem; /* বাটন গোল করার জন্য */
    text-decoration: none; /* লেখার আন্ডারলাইন মুছে ফেলা */
    transition: .5s; /* হোভার ইফেক্ট স্মুথ করার জন্য */
    margin-top: 2rem; /* ছবি থেকে বাটনের দূরত্ব */
    border: 2px solid var(--main-color); /* বাটনের বর্ডার */
}

/* বাটনের উপর মাউস নিলে যা হবে (Hover Effect) */
.work__btn:hover {
    background: transparent;
    color: var(--main-color);
    box-shadow: 0 0 1.5rem var(--main-color); /* হালকা গ্লো এফেক্ট */
}

/* আইকনের সাইজ */
.work__btn i {
    font-size: 2.2rem;
}

/* Services Section */

.services h2 {
    margin-bottom: 5rem;
}

.services-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.services-container .services-box {
    flex: 1 1 30rem;
    background: var(--snd-bg-color);
    padding: 6rem 2rem 6rem;
    border-radius: 2rem;
    text-align: center;
    border: .3rem solid var(--bg-color);
    transition: .5s ease;
}

.services-container .services-box:hover {
    border-color: var(--main-color);
    transform: scale(1.02);
}

.services-box i {
    font-size: 7rem;
    color: var(--main-color);
}

.services-box h3 {
    font-size: 2.6rem;
}

.services-box p {
    font-size: 1.6rem;
    margin: 1rem 0 3rem;
}


/* ******************Testimonials Section********************* */

.testimonials{
    background: var(--snd-bg-color);
}
.testimonials-box{
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.testimonials .heading{
    margin-bottom: 5rem;
}
.testimonials-box img{
    width: 15rem;
    border-radius: 50%;
    border: 3px solid var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
}
.wrapper{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 3rem;
}
.testimonial-item{
    min-height: 450px;
    max-width: 450px;
    background: var(--bg-color);
    border: .3rem solid var(--bg-color);
    border-radius: 2rem;
    margin: 0 2rem;
    padding: 20px 20px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-color);
    transition: 0.5s ease;
}
.testimonial-item:hover{
    border-color: var(--main-color);
    transform: scale(1.02);
}
.testimonial-item h2{
    font-size: 3rem;
}
.testimonial-item p{
    font-size: 1.8rem;
}
#star{
    color: gold;
    font-size: 2rem;
}

/* ******************Contact Section********************* */

.contact {
    background-color: var(--bg-color);
}

.contact h2 {
    margin-bottom: 3rem;
    color: var(--main-color);
}

.contact form {
    max-width: 80rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}

.contact form .input-box {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--bg-color);
    border-radius: 0.8rem;
    border: 0.25rem solid var(--main-color);
    margin: 0.7rem 0;
    resize: none;
}

.contact form .input-box input {
    width: 49%;
    margin: 0.7rem 0.35rem;
}

.contact form .btn {
    margin-top: 2rem;   

}



/* ম্যাপের বক্স ডিজাইন */
.contact-map {
    width: 100%; /* কন্টেইনারের পুরোটা জুড়ে থাকবে */
    height: 500px; /* উচ্চতা বাড়িয়ে ফুল স্ক্রিন ফিল দেওয়া */
    border-radius: 2rem;
    overflow: hidden;
    border: 3px solid var(--main-color);
    box-shadow: 0 0 20px var(--main-color);
    margin-top: 3rem;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* মোবাইল ভিউতে প্যাডিং কমানো */
@media (max-width: 768px) {
    .contact {
        padding: 8rem 3% 2rem;
    }
    .contact-map {
        height: 350px;
    }

}

/* ******************Footer Section********************* */

.footer{
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 40px 0;
    background-color: var(--snd-bg-color);
}
.footer .social{
    text-align: center;
    padding-bottom: 25px;
    color: var(--main-color);
}
.footer .social a{
    font-size: 25px;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    width: 42px;
    height: 42px;
    line-height: 42px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    margin: 0 10px;
    transition: 0.3s ease-in-out;
}
.footer .social a:hover{
    transform: scale(1.2)translateY(-10px);
    background-color: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 25px var(--main-color);
}
.footer .copyright{
    margin-top: 20px;
    text-align: center;
    font-size: 16px;
    color: var(--text-color);
}

/* BreakPoint */

@media (max-width:1200px) {
    html {
        font-size: 55%;
    }
}

@media (max-width:991px) {
    .header {
        padding: 2rem 3%;
    }
    section{
        padding: 10rem 3%;
    }
    .services{
        padding: 7rem
    }
    
    .testimonials .wrapper{
        grid-template-columns: repeat(1,1fr);
    }
    .contact form .input-box input {
        width: 100%;
    }
    .footer{
        padding: 2rem 3%;
    }
}
@media (max-width:786px) {
    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        right: -100%;
        width: 255px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        background: var(--main-color);
        transition: all 0.5s ease;
        backdrop-filter: blur(10px);
    }

    .navbar a {
        display: block;
        padding: 17px;
        font-size: 22px;
    }

    .navbar.active {
        right: 0;
    }
    .home{
        flex-direction: column;
    }
    .home-content h3{
        font-size: 2.6rem;
    }
    .home-content h1{
        font-size: 5rem;
    }
    .home-content{
        order: 2;
        margin-left: 1rem;
    }
    .home-img img{
        width: 70vw;
        margin-top: 4rem;
    }
    .about{
        flex-direction: column-reverse;
    }
    .about-img img{
        width: 70vw;
        margin-top: 4rem;
    }
    .services h2{
        margin-bottom: 3rem;
    }
}

@media (max-width:617px) {
    .home-img img{
        width: 70vw;
        margin-top: 8rem;
    }
    .about-img img{
        width: 70vw;
        margin-top: 4rem;
    }
}
@media (max-width:450px) {
    html{
        font-size: 50%;
    }
}