html,
body {
    overflow-x: hidden;
    /* Prevents horizontal scrolling */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

html {
    font-size: 60%;
    overflow-x: hidden;
}

:root {
    --bg--color: #ffffff;
    --second--bg--color: #001005;
    ---text--color: white;
    --main--color: #0068CB;
}

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

/* <!-- -----header---section--start----- --> */

.header {
    position: fixed;
    top: 0;
    left: 0;
    padding: 4rem 12%;
    width: 100%;
    /* background: rgba(15, 14, 14, 0); */
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
}

#menu-icon {
    font-size: 2.6rem;
    color: var(--main--color);
    display: none;
}

.logo {
    font-size: 3rem;
    font-weight: 600;
    color: black;
    cursor: pointer;
    transition: .3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

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

.navbar a {
    font-size: 1.7rem;
    color: black;
    margin-left: 4rem;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: .2s ease;
}

.navbar a:hover {
    border-bottom: 3px solid var(--main--color);
    color: var(--main--color);
}

/* <!-- -- End---header---section--End----- --> */

section {
    min-height: 100vh;
    padding: 10rem 12%;
}

.Home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15rem;
}

.Home-content {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.Home-content h1 {
    font-size: 5rem;
    margin-top: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: black;
}

.Home-content h3 {
    font-weight: 6rem;
    margin: 1rem 0;
    font-size: 2rem;
    margin-top: 2rem;
    color: black;
}

.Home-content p {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 3rem;
    color: #000000;
}

.Home-imeage {
    /* Remove these debug styles */
    /* Add a border to see the container */
    /* border: 2px solid red; */
    /* Ensure the container has dimensions */
    /* min-width: 300px; */
    /* min-height: 300px; */
}

.Home-imeage img {
    /* Keep these styles */
    display: block;
    width: 28vw;
    border-radius: 50%;
    transition: .4s ease-in-out;
    box-shadow: 0 0 10px var(--main--color);
    object-fit: cover;
}

.Home-imeage img:hover {
    box-shadow: 0 0 30px var(--main--color);
}

#typing-text {
    font-weight: bold;
    color: var(--main--color);
    border-right: 2px solid var(--main--color);
    /* Cursor effect */
    white-space: nowrap;
    overflow: hidden;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink-caret {
    from,
    to {
        border-color: transparent;
    }
    50% {
        border-color: var(--main--color);
    }
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    padding: 1rem;
    background: transparent;
    border: 2px solid var(--main--color);
    border-radius: 50%;
    color: var(--main--color);
    margin: 3rem 0.5rem;
    transition: 0.3s ease;
}

.social-icons a:hover {
    color: var(---text--color);
    background-color: var(--main--color);
    transform: scale(1.2)translateY(-5px);
    box-shadow: 0 0 25px var(--main--color);
}

.btn-group {
    display: flex;
    gap: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 4rem;
    background: var(--main--color);
    color: var(---text--color);
    /* box-shadow: 0 0 25px var(--main--color); */
    border-radius: 3rem;
    font-size: 1.4rem;
    transition: .3s ease;
}

.btn:hover {
    transform: scale(1.0s);
    box-shadow: 0 0 25px var(--main--color);
}

.btn-group a:nth-of-type(2) {
    background-color: rgba(0, 0, 0, 0);
    color: var(--main--color);
    border: 2px solid var(--main--color);
    box-shadow: 0 0 25px transparent;
    font-weight: 700;
}

.btn-group a:nth-of-type(2):hover {
    box-shadow: 0 0 25px var(--main--color);
    background-color: var(--main--color);
    color: var(---text--color);
}

/* <!-- -----About---section--start----- --> */

.About {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10rem;
    background-color: #0169d92a;
}

.About-img img {
    width: 28vw;
    border-radius: 50%;
    transition: 0.4s ease;
    box-shadow: 0 0 30px var(--main--color);
}

.About-img img:hover {
    box-shadow: 0 0 50px var(--main--color);
}

.About-content h2 {
    font-size: 7rem;
    color: black;
}

.About-content p {
    font-size: 1.6rem;
    color: black;
    line-height: 2.9rem;
}

.About-content .btn {
    margin: 3rem 0;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--main--color);
}

::-webkit-scrollbar-track {
    background-color: var(--bg--color);
}

/* <!-- -----About---section--End----- --> */

/* <!-- -----Services---section--start----- --> */

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

.Services {
    background-color: var(--bg--color);
    color: #000000;
}

.Services h2 {
    color: black;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.4rem;
    margin-left: -1.3rem;
}

.service-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0169D9;
    height: 300px;
    border-radius: 3rem;
    cursor: pointer;
    border: 4px solid transparent;
    transition: 0.4s ease-in-out;
    color: white;
}

.service-box:hover {
    background-color: #0169D9;
    color: white;
    border: 4px solid var(--main--color);
    transform: scale(1.03);
}

.service-box2 {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0169D9;
    height: 300px;
    border-radius: 3rem;
    cursor: pointer;
    border: 4px solid transparent;
    transition: 0.4s ease-in-out;
    background-color: #4d74e04f;
    color: var(--main--color);
    border: 4px solid var(--main--color);
    transform: scale(1.03);
}

.service-info {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 5rem;
}

.service-info i {
    font-size: 6rem;
}

.service-info h4 {
    font-size: 2.3rem;
    margin: 2rem 0;
}

.service-info p {
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 2rem;
}

/* <!-- -----Services---section--End----- --> */

/* Projects Section Styling */
.Projects {
    background-color: #0169d92a;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.project-box {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease;
    position: relative;
}

.project-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(0, 104, 203, 0.3);
}

.project-box img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 2rem;
}

.project-info h4 {
    font-size: 2rem;
    color: black;
    margin-bottom: 1rem;
}

.project-info p {
    font-size: 1.4rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.project-tech span {
    background: var(--main--color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 1.2rem;
}

.project-links {
    display: flex;
    gap: 1.5rem;
}

.project-links a {
    font-size: 2rem;
    color: var(--main--color);
    transition: 0.3s ease;
}

.project-links a:hover {
    color: #004c96;
}

/* Responsive Design for Projects */
@media (max-width: 768px) {
    .projects-container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .project-box {
        max-width: 100%;
    }

    .project-info h4 {
        font-size: 1.8rem;
    }

    .project-info p {
        font-size: 1.3rem;
    }

    .project-tech span {
        font-size: 1.1rem;
    }
}

/* <!-- -----contact---section---start------ --> */

.Contact {
    background-color: #0169D9;
    width: 100%;
}

.Contact h2 {
    margin-bottom: 3rem 0;
    color: var(---text--color);
}

.Contact form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin: 5rem 0;
    text-align: center;
}

.heading span {
    color: black;
}

.btn1 {
    display: inline-block;
    padding: 1rem 4rem;
    background: #0169D9;
    color: white;
    border: 2px solid white;
    /* box-shadow: 0 0 25px var(--main--color); */
    border-radius: 3rem;
    font-size: 1.4rem;
    transition: .3s ease;
    font-weight: 600;
    cursor: pointer;
}

.btn1:hover {
    background: #ffffff;
    color: rgb(0, 0, 0);
    border: 2px solid white;
    transition: .3s;
}

.Contact form .input-box input,
.Contact form textarea {
    width: 100%;
    padding: 2.4rem;
    font-size: 1.6rem;
    color: black;
    background-color: var(--bg--color);
    border-radius: 2rem;
    border: 2px solid var(--main--color);
    margin: 1.5rem;
    resize: none;
    margin-left: 0.1rem;
}

.footer {
    background-color: #ffffff;
    padding: 50px 0;
}

.footer .social-icons {
    text-align: center;
    background-color: white;
}

.footer ul {
    text-align: center;
    font-size: 1.4rem;
}

.footer ul li {
    display: inline-block;
    margin-left: 20px;
}

.footer ul li a {
    color: rgb(0, 0, 0);
    border-bottom: 2px solid transparent;
    transition: 0.3s ease-in-out;
    font-weight: 600;
}

.footer ul li a:hover {
    border-bottom: 3px solid var(--main--color);
}

.footer .copyright {
    text-align: center;
    margin-top: 30px;
    font-size: 1.2rem;
    color: black;
}

/* <!-- !-- -----contact---section---End------ -->   */

/* ----reponsiveness start----- */

@media (max-width:1024px) {
    #menu-icon {
        display: block;
    }
    .navbar {
        position: absolute;
        top: 100%;
        right: 0;
        width: 50%;
        padding: 1rem 3rem;
        background-color: rgba(27, 26, 26, 0.342);
        border-left: 2px solid var(--main--color);
        border-bottom: 2px solid var(--main--color);
        border-bottom-left-radius: 2.2rem;
        display: none;
        transition: transform .4s ease-in-out;
    }
    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
        color: var(---text--color);
    }
    .navbar.active {
        display: block;
        transition: .5s;
    }
    .Home {
        flex-direction: column-reverse;
        margin: 5rem 0;
        gap: 4rem;
    }
    .Home-content {
        align-items: center;
        text-align: center;
    }
    .Home-imeage img {
        width: 40vw;
    }
    .Home-content h1 {
        font-size: 2.8rem;
    }
    .Home-content p {
        font-size: 1.3rem;
    }
    .About {
        flex-direction: column-reverse;
        text-align: center;
    }
    .About h2 {
        text-align: center;
        margin: 3rem 0;
        font-size: 3.4rem;
    }
    .About p {
        font-size: 1.2rem;
        line-height: 2.3rem;
    }
    .About-img img {
        width: 45vw;
        margin-top: -50px;
    }
    .service-box2 {
        margin-bottom: 2rem;
    }
    .service-box {
        margin-bottom: 2rem;
    }
    .service-info p {
        font-size: 1.2rem;
        width: 28rem;
    }
    .Services h2 {
        font-size: 3.4rem;
    }
    .Contact h2 {
        font-size: 3.4rem;
    }
    .Contact form {
        flex-direction: column;
    }
    .btn-group a {
        font-size: 12px;
        padding: 1rem 2rem;
    }
}