* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

:root {
    --bg-color: #f4f7f6;      /* Soft minty white */
    --snd-bg-color: #ffffff;  /* Pure white for cards */
    --text-color: #2c3e50;    /* Deep slate gray */
    --main-color: #16a085;    /* Sophisticated Teal */
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* --- REUSABLE COMPONENTS --- */
.contain {
    max-width: 1170px;
    margin-inline: auto;
    padding-inline: 2rem;
    width: 100%;
}

section {
    min-height: 100vh;
    padding-block: 2rem; 
}

.heading {
    font-size: 5rem;
    text-align: center;
    margin-bottom: 4rem;
}

.heading span {
    color: var(--main-color);
}

.btn {
    display: inline-block;
    padding: 1.2rem 2.8rem;
    background: var(--main-color);
    border-radius: .5rem;
    font-size: 1.6rem;
    color: #fff;
    letter-spacing: .1rem;
    font-weight: 600;
    transition: .3s ease;
    cursor: pointer;
}

.btn:hover {
    box-shadow: 0 0 1.6rem var(--main-color);
    transform: translateY(-2px);
}

/* --- HEADER & NAV --- */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background: var(--main-color);
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 2.8rem;
    color: #fff;
    font-weight: 700;
}

.navbar {
    display: flex;
    list-style: none;
}

.navbar a {
    font-size: 1.8rem;
    color: #fff;
    margin-left: 3.5rem;
    font-weight: 500;
    transition: .3s;
}

.navbar a:hover {
    opacity: 0.8;
}

/* --- SIDEBAR (MOBILE) --- */
.menu {
    display: none; /* Hidden on desktop */
    cursor: pointer;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden by default */
    width: 260px;
    height: 100vh;
    background: var(--snd-bg-color);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: 0.4s ease-in-out;
}

.sidebar li {
    list-style: none;
}

.sidebar a {
    display: block;
    padding: 1.5rem;
    font-size: 2rem;
    color: var(--text-color);
    font-weight: 600;
    border-bottom: 1px solid #eee;
}

.x {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
    cursor: pointer;
}

/* --- HOME SECTION --- */
.home {
    display: flex;
    align-items: center;

    .home-container {
        display: flex;
        justify-content: center;
        align-items: center;
        column-gap: 8rem;
        height: 100%;
    }
}

.home_content h3 {
    font-size: 3.2rem;
    font-weight: 700;
}

.home_content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.2;
}

.home_content p {
    font-size: 1.6rem;
    margin: 2rem 0;
    max-width: 500px;
}

.home_img img {
    width: 25vw;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    animation: floatImage 4s ease-in-out infinite;
}

@keyframes floatImage {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2rem); }
}

.social_media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 0 1.5rem 3rem 0;
    transition: .3s ease;
}

.social_media a:hover {
    background: var(--main-color);
    color: #fff;
    transform: translateY(-5px);
}

/* --- ABOUT SECTION --- */
.about {
    display: flex;
    align-items: center;
    background: var(--snd-bg-color);
    padding-block: 3rem 2rem;

    .about-container {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4rem;
        height: 100%;
    }
}

.about_image img {
    width: 25vw;
    border-radius: 50%;
    border: .2rem solid var(--main-color);
}

.about_content {

    h2 {
        text-align: left;
    }

    h3 {
        font-size: 2.6rem;
    }
}

.about_content p {
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
}

/* --- SERVICES --- */

.services {
    height: auto;
    padding-block: 3rem 4rem;
    display: flex;
    align-items: center;
}

.services_container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.services_box {
    background: var(--snd-bg-color);
    padding: 5rem 2rem;
    border-radius: 2rem;
    text-align: center;
    border: .3rem solid transparent;
    transition: .4s ease;
}

.services_box:hover {
    border-color: var(--main-color);
    transform: translateY(-10px);
}

.services_box i {
    font-size: 6rem;
    color: var(--main-color);
}

.services_box h3 {
    font-size: 2.4rem;
    margin: 1.5rem 0;
}

.services_box p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
}

/* --- TESTIMONIALS --- */
.testimonial {
    background: var(--snd-bg-color);
    display: flex;
    align-items: center;
}

.testimonial_box {
    text-align: center;
}

.wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.testimonial_item {
    background: var(--bg-color);
    padding: 3rem;
    border-radius: 2rem;
    transition: .3s;
}

.testimonial_item img {
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    object-fit: cover;
    border: .3rem solid var(--main-color);
    margin-bottom: 1.5rem;
}

#star {
    color: #f1c40f;
    font-size: 1.8rem;
}

/* --- CONTACT --- */
.contact {
    display: flex;
    align-items: center;

    form {
        max-width: 70rem;
        margin: 0 auto;
        text-align: center;
    }
} 

.input_box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.input_box input, 
textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: #fff;
    border-radius: .8rem;
    border: 1px solid #ddd;
}

textarea {
    resize: none;
    margin-bottom: 2rem;
}

/* --- FOOTER --- */
.footer {
    padding: 5rem 0;
    background: var(--snd-bg-color);
    text-align: center;
}

.footer .social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    border: 1px solid var(--main-color);
    border-radius: 50%;
    color: var(--main-color);
    margin: 0 1rem 2rem;
    font-size: 2rem;
}

/* --- MEDIA QUERIES --- */
@media (max-width: 991px) {
    .hideOnMobile {
        display: none;
    }

    .menu {
        display: block;
    }

    .home-container {
        flex-direction: column;
        text-align: center;
        padding-top: 15rem;
    }

    .home_img img {
        width: 60vw;
    }

    .about-container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .about h2 {
        text-align: center;
    }

    .about_image img {
        width: 60vw;
    }

    .input_box {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 450px) {
    html { font-size: 50%; }
    
    .sidebar {
        width: 100%;
    }
}