* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  scroll-behavior: smooth;
  font-family: "Poppins";
}
:root {
  --bg-color: #080808;
  --second-bg-color: #101010;
  --text-color: white;
  --main-color: #ea580c;
}
html {
  font-size: 60%;
  overflow-x: hidden;
}
body{
    background: var(--bg-color);
    color: var(--text-color);
}

.header{
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 4rem 15%;
    background: 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,
        #DF8908 10%,
        #ff1d15 100%
    );
    background-clip: text;
color: transparent;
}
.navbar a{
    font-size: 1.8rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease-in-out;
    border-bottom: 3px solid transparent;
}

.navbar 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,
        #DF8908 10%,
        #ff1d15 100%
    );
    letter-spacing: 1px;
cursor: pointer;
transition: 0.3s ease-in-out;
color: white;
border: none;
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: 15rem;
}

.home-content{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.home-content h1{
    font-size: 5.5rem;
    font-weight: 700;
    margin-top: 1.5rem;
    line-height: 1;
}

.home-content h3{
    margin: 1rem 0;
    font-size: 4rem;
}

.home-content p{
    max-width: 650px;
    font-size: 2rem;
    line-height: 1.8;
    text-align: left;
    
}

.home-text{
    max-width: 680px;
    margin: 0 auto 1.2rem auto;
    font-size: 1.8rem;
    line-height: 1.9;
    text-align: left;
}

.home-img img{
    width: 32vw;
    height: 32vw;
    object-fit: cover;
    object-position: center 20%;
    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;
    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-in-out;
}

.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{
    display: inline-block;
    padding: 1rem 3rem;
    background-color: var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
    border-radius: 3rem;
    font-size: 1.8rem;
    color: black;
    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{
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
    color: black;
}

.about{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10rem;
    background: var(--second-bg-color);
}

.about-img img{
     width: 32vw;
    height: 32vw;
    object-fit: cover;
    object-position: center 20%;
    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;
    margin-bottom: 2rem;
}

.about-content .btn{
    margin: 3rem 0;
}

::-webkit-scrollbar{
    width: 20px;
}

::-webkit-scrollbar-thumb{
    background-color: var(--main-color);
}

::-webkit-scrollbar-track{
    background-color: 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: stretch;
    gap: 3rem;
}

.service-box{
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background-color: var(--main-color);
    min-height: 600px;
    border-radius: 3rem;
    cursor: pointer;
    border: 5px solid transparent;
    transition: 0.4s ease-in-out;
    padding: 3rem 2rem;
}

.service-box:hover{
    background: var(--second-bg-color);
    color: var(--main-color);
    border: 5px solid var(--main-color);
    transform: scale(1.03);
}

.service-info{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    gap: 2rem;
}

.service-info h4{
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 800;
    margin: 0;
    min-height: 10rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-info p{
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.7;
}

.service-info i{
    font-size: 7rem;
    line-height: 1;
    min-height: 8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
}

.projects{
    background-color: var(--second-bg-color);
}

.projects-box{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    align-items: stretch;
}

.project-card{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    background-color: var(--bg-color);
    border: 2px solid var(--main-color);
    border-radius: 3rem;
    gap: 2rem;
    padding: 5rem 2rem;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 0 5px var(--main-color);
    transition: 0.3s ease;
}

.project-card:hover{
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color);
    transform: scale(1.02);
}

.project-card img{
    width: 100%;
    max-width: 300px;
    height: 220px;
    object-fit: cover;
    border-radius: 2rem;
    margin: 0 auto;
}

.project-card h3{
    font-size: 3rem;
}

.project-card p{
    font-size: 1.6rem;
}

.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 ul li a{
    color: white;
    border-bottom: 3px solid transparent;
    transition: 0.3s ease-in-out;
}

.footer ul li a:hover{
    border-bottom: 3px solid var(--main-color);
}

.footer .copyright{
    text-align: center;
    margin-top: 40px;
    font-size: 16px;
}


@media (max-width: 1285px){
    #menu-icon{
        display: block;
    }

    .navbar{
        position: absolute;
        top: 100%;
        right: 0;
        width: 65%;
        padding: 1rem 2.5rem;
        background: rgba(0, 0, 0, 0.9);
        border-bottom-left-radius: 2rem;
        border-left: 2px solid var(--main-color);
        border-bottom: 2px solid var(--main-color);
        display: none;
    }

    .navbar a{
        display: block;
        font-size: 2rem;
        margin: 2.2rem 0;
        color: var(--text-color);
    }

    .navbar.active{
        display: block;
    }

    .gradient-btn{
        display: none;
    }

    .header{
        padding: 2rem 6%;
    }

    .logo{
        font-size: 2.6rem;
        line-height: 1.2;
        max-width: 70%;
    }

    .home{
        flex-direction: column-reverse;
        justify-content: center;
        gap: 4rem;
        margin: 0;
        padding-top: 14rem;
        text-align: center;
    }

    .home-content{
        align-items: center;
        text-align: center;
    }

    .home-content h1{
        font-size: 5.5rem;
        line-height: 1.1;
        margin-top: 0;
    }

    .home-content h3{
        font-size: 3.4rem;
        line-height: 1.25;
        margin: 1.5rem 0;
    }

    .home-text{
        max-width: 90%;
        font-size: 1.7rem;
        line-height: 1.8;
        text-align: center;
        margin: 0 auto 1.2rem auto;
    }

    .social-icons{
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    .btn-group{
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .home-img{
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .home-img img{
        width: 72vw;
        height: 72vw;
        max-width: 320px;
        max-height: 320px;
        object-fit: cover;
        object-position: center 15%;
        border-radius: 50%;
    }

    .about{
        flex-direction: column-reverse;
        text-align: center;
        gap: 4rem;
    }

    .about h2{
        text-align: center;
        margin: 1rem 0 2rem 0;
        font-size: 5rem;
    }

    .about-content p{
        text-align: left;
    }

    .about-img img{
        width: 70vw;
        height: 70vw;
        max-width: 320px;
        max-height: 320px;
        object-fit: cover;
        object-position: center 15%;
        border-radius: 50%;
    }

    .services-container,
    .projects-box{
        grid-template-columns: 1fr;
    }

    .service-box{
        min-height: auto;
    }

    .contact form{
        flex-direction: column;
    }
    .tech-stack{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.tech-stack span{
    font-size: 1.2rem;
    padding: 0.6rem 1rem;
    max-width: 100%;
    text-align: center;
    white-space: normal;
    word-break: break-word;
}
}



.tech-stack{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 2rem;
}

.tech-stack span{
    padding: 6px 14px;
    font-size: 1.3rem;
    border-radius: 20px;
    background: black;
    color: white;
    transition: 0.3s ease;
}

/* When hovering the card */
.service-box:hover .tech-stack span{
    background: var(--main-color);
    color: black;
}

.contact-card{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.contact-card-content{
    background: var(--second-bg-color);
    padding: 3rem 3.5rem;
    border-radius: 2rem;
    text-align: center;
    width: 340px;
    position: relative;
    border: 2px solid var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
}

.contact-card-content i{
    font-size: 5rem;
    color: var(--main-color);
    margin-bottom: 1rem;
}

.contact-card-content h3{
    font-size: 2.6rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.contact-line{
    margin: 1.5rem 0;
    font-size: 1.7rem;
}

.contact-line a{
    color: var(--text-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: 0.3s ease;
}

.contact-line a i{
    font-size: 2rem;
    margin: 0;
    color: var(--main-color);
}

.contact-line a:hover{
    color: var(--main-color);
}

.close-card{
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 3rem;
    color: var(--text-color);
    cursor: pointer;
    transition: 0.3s ease;
}

.close-card:hover{
    color: var(--main-color);
}
