* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: 'Poppins';
    text-decoration: none;
}

:root {
    --main-color: #39AAAA;
    --text-color: white;
    --bg-color: #080808;
    --second-bg-color: #101010;
}

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

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

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

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

.logo {
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

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

span {
    background: linear-gradient(270deg,
            #23D5D5,
            #395555);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav a,
.footer ul li a {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-left: 4rem;
    transition: 0.3s ease-in-out;
    font-weight: 500;
    border-bottom: 3px solid transparent;
}

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

.gradient-btn {
    font-size: 1.8rem;
    padding: 1rem 2rem;
    border-radius: 3rem;
    background: linear-gradient(270deg,
            #23D5D5,
            #395555);
    letter-spacing: 1px;
    color: var(--text-color);
    border: none;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    text-wrap: nowrap;
}

.gradient-btn:hover {
    transform: scale(1.05);
}

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

.home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
}

.home-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.home-content h1 {
    font-size: 8rem;
    font-weight: 700;
    margin-top: 1.5rem;
    line-height: 1;
}

.home-content h3 {
    margin: 1rem 0;
    font-size: 4rem;
}

.home-content p {
    font-size: 1.8rem;
    line-height: 1.8;
    font-weight: 500;
}

.home-img img {
    width: 20vw;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    transition: 0.4s ease-in-out;
}

.home-img img:hover {
    box-shadow: 0 0 25px var(--main-color),
        0 0 50px var(--main-color),
        0 0 100px var(--main-color);
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    font-size: 2.5rem;
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    transition: 0.3s ease-in-out;
    cursor: pointer;
    color: var(--main-color);
    margin: 2rem 0.7rem;
}


.social-icons a:hover {
    color: var(--text-color);
    background: 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 3rem;
    background-color: var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
    color: black;
    font-size: 1.8rem;
    border-radius: 3rem;
    cursor: pointer;
    border: 2px solid transparent;
    font-weight: 600;
    transition: 0.3s ease-in-out;
}

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

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

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

.about {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10rem;
    background: var(--second-bg-color);
}

.about-img img {
    width: 20vw;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    transition: 0.4s ease-in-out;
}

.about-img img:hover {
    box-shadow: 0 0 25px var(--main-color),
        0 0 50px var(--main-color),
        0 0 100px var(--main-color);
}

.about-content h2 {
    font-size: 7rem;
    text-align: left;
}

.about-content p {
    font-size: 1.8rem;
}

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

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

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

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

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

.services {
    background-color: var(--bg-color);
    color: black;
}

.services h2 {
    color: var(--text-color);
}

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

.services-box {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--main-color);
    height: 500px;
    border-radius: 3rem;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    border: 5px solid transparent;
}

.services-box:hover {
    background: var(--second-bg-color);
    color: var(--main-color);
    border: 5px solid var(--main-color);
    transform: scale(1.03);
}

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

.services-info h4 {
    font-size: 3rem;
    margin: 2rem 0;
    font-weight: 800;
}

.services-info p {
    font-size: 1.4rem;
    line-height: 1.7;
    font-weight: 600;
}

.services-info i {
    font-size: 8rem;
}

.project-card {
    display: flex;
    text-align: center;
    font-size: 8rem;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    font-weight: 700;
}

.contact {
    background-color: var(--bg-color);

}

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

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

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 2.5rem;
    font-size: 1.8rem;
    color: var(--text-color);
    background-color: var(--bg-color);
    border-radius: 2rem;
    border: 2px solid var(--main-color);
    margin: 1.5rem 0;
    resize: none;
}


.footer {
    background-color: var(--second-bg-color);
    padding: 50px 0;
}

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

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

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



.footer .copyright {
    text-align: center;
    margin-top: 40px;
    font-size: 16px;
}

@media(max-width: 1285px) {
    html {
        font-size: 55%;
    }

    .header {
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3% 2rem;
    }

    .services {
        padding-bottom: 7rem;
    }

    .projects {
        padding-bottom: 7rem;
    }

    .contact {
        min-height: auto;
    }

    .footer {
        padding: 2rem 3%;
    }

    /* Fix footer alignment by using flexbox for centering instead of margins */
    .footer ul {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 2rem;
        margin: 2rem 0;
        padding: 0;
    }

    .footer ul li {
        margin-left: 0;
        /* Reset margin */
        display: block;
    }

    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: 1px solid rgba(0, 0, 0, 0.2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, 0.1);
        display: none;
        z-index: 999;
        /* Ensure it covers other content */
    }

    .navbar.active {
        display: block;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
        color: var(--text-color);
        transform: translateY(-20px);
        /* Animation start pos */
        opacity: 0;
        animation: fadeNav 0.3s ease forwards;
    }

    @keyframes fadeNav {
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .gradient-btn {
        display: none;
    }

    .home {
        flex-direction: column-reverse;
        /* Image on top (Img is 2nd child, so reverse puts it 1st) */
        margin: 5rem 0;
        gap: 5rem;
    }

    .home-content {
        text-align: center;
        align-items: center;
    }

    .home-content h1 {
        font-size: 5rem;
        /* Reduced from 8rem */
    }

    .home-content h3 {
        font-size: 2.5rem;
        /* Reduced from 4rem */
    }

    .home-img img {
        width: 50vw;
        margin-top: 4rem;
    }

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

    .about-img img {
        width: 50vw;
        margin-top: 4rem;
    }

    .about h2 {
        text-align: center;
        margin: 2rem 0;
    }

    .services-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        /* Keep responsive grid */
    }

    .contact form {
        flex-direction: column;
        width: 100%;
        max-width: 600px;
        /* Constrain width on tablets */
        margin: 5rem auto;
    }
}

@media(max-width: 991px) {

    /* Tablet specific adjustments if needed, mostly covered by above, but let's refine */
    .header {
        padding: 2rem 4%;
    }

    section {
        padding: 10rem 4% 2rem;
    }
}

@media(max-width: 768px) {

    /* Mobile/Small Tablet */
    html {
        font-size: 50%;
    }

    #menu-icon {
        display: block;
    }

    .home-img img {
        width: 55vw;
    }

    .about-img img {
        width: 55vw;
    }

    .services-container {
        grid-template-columns: 1fr;
        /* Stack strictly on smaller screens */
    }

    .contact form .input-group {
        width: 100%;
    }
}

@media(max-width: 617px) {
    .home-content h1 {
        font-size: 4rem;
        /* Further reduce */
    }

    .home-content h3 {
        font-size: 2rem;
    }

    .contact form .input-group {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .input-box input {
        width: 100%;
    }
}

@media(max-width: 450px) {
    .header {
        padding: 2rem 3%;
    }

    html {
        font-size: 45%;
    }

    .home-content h1 {
        font-size: 3.5rem;
    }

    .contact form .input-group {
        width: 100%;
    }

    /* Ensure no horizontal scroll */
    body {
        overflow-x: hidden;
    }
}