@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing:border-box;
    text-decoration: none;
    border:none;
    outline:none;
    scroll-behavior: smooth;
    font-family: "poppins",sans-serif;
}
:root{
    --bg-color:#080808;
    --second-bg-color:#131313;
    --text-color:white;
    --main-color:#ed0c0c;
    --double-color: linear-gradient( #ff3300 22%, #0099ff 76%);
}

html{
    font-size:62.5% ;
    overflow-x:hidden;
}
body{
    background: var(--bg-color);
    color: var(--text-color);

}


.header{
    position: fixed;
    top:0;
    Left:0;
    width:100%;
    padding: 1.5rem 9%;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index:100;
}

.logo{
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 800;
    cursor:pointer;
    transition: 0.3s ease;
}
.logo:hover{
    transform:scale(1.1);
}
.logo span{
    text-shadow: 0 0 25px var(--main-color);
}
.navbar a{
    font-size: 1.8rem;
    color:var(--text-color);
    margin-left: 6rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom:3px solid transparent;
}
.navbar a:hover,
.navbar a.active{
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}

#menu-icon{
    font-size:3.6rem;
    color:var(--main-color);
    display: none;
}

section{
    min-height: 100vh;
    padding: 10rem 12% 10rem;
}
.home{
    width:100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap:15rem;
}
.home-content{
    display:block;
    flex-direction: column;
    align-items: baseline;
    text-align: left;
    justify-content: center;
    margin-top: 1rem;
}
span{
    color:var(--main-color);
}
.logo span{
    color:var(--main-color);
}
.home-content h3{
    margin-bottom: 2rem;
    margin-top: 1rem;
    font-size: 3.5rem;
}
.home-content h1{
    font-size: 7rem;
    font-weight: 700;
    margin-top :1.5rem;
    line-height: 1;
}
.home-img{
    border-radius: 50%;
}
.home-img img{
    position: relative;
    top: 3rem;
    width:32vw;
   border-radius: 50%;
    /* box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color); */
    cursor: pointer;
    animation: floatImage 4s infinite ;     
}

@keyframes floatImage {
    0%{
        transform: translateY(0);
    }
    50%{
        transform: translateY(-4.4rem);
    }
    100%{
        transform: translateY(0);
    }

}
.home-img img:hover{
    transform: scale(2.09);
    box-shadow: 0 0 25px var(--main-color),
                0 0 100px var(--main-color);   
}
.home-content p{
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.8;
    max-width: 1000px;
}
.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width:4.5rem;
    height: 4.5rem;
    background: transparent;
    border: 2px solid var(--main-color);
    font-size:2.5rem;
    border-radius: 50%;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease-in-out;
}
.social-icons a:hover{
    color: var(--text-color);
    transform: scale(1.3)translateY(-5px);
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
}
.btn{
    display:inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    box-shadow: 0 0 10px var(--main-color);
    border-radius: 4rem ;
    font-size: 1.6rem;
    color:rgb(13, 13, 13);
    border:2px solid transparent;
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}
.btn:hover{
    transform: scale(1.1)translateY(-10px);
    box-shadow: 0 0 25px var(--main-color);
    color:aqua;
}
.btn-group{
    display: flex;
    align-items: center;
    gap:1.5rem;
}
.btn-group a:nth-of-type(2){
    background-color: rgb(25, 24, 24);
    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:rgb(252, 248, 248);
}

    .heading{
        font-size:8rem;
        text-align: center;
        margin: 5rem 0;
    
}


.education{
    padding: 100px 15px;
    background: var(--second-bg-color);
}
.education h2{
    margin-bottom: 5rem;
   
}
.timeline-items{
    max-width: 1200px;
    margin:auto;
    display: flex;
    flex-wrap: wrap;
    position: relative;
}
.timeline-item{
    margin-bottom: 40px;
    width:100%;
    position:relative;
}
.timeline-item:last-child{
    margin-bottom: 0;
}
.timeline-item:nth-child(odd){
    padding-right: calc(50% + 30px);
    text-align: right;
}
.timeline-item:nth-child(even){
    padding-left: calc(50% + 30px);
}
.timeline-dot{
    height:20px;
    width: 20px;
    background-color: var(--main-color);
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color);
    position:absolute;
    left: calc(50% - 5px);
    border-radius: 50%;
    top: 11px;
}
.timeline-date{
    font-size: 20px;
    font-weight: 800;
    color: white;
    margin: 6px 0 15px;
}
.timeline-content{
    background-color: var(--bg-color);
    border: 1px solid var(--main-color);
    padding: 30px 50px;
    border-radius: 4rem;
    box-shadow: 0 0 10px var(--bg-color),
            0 0 105px var(--bg-color);
                
    cursor: pointer;
    transition: 0.3s ease-in-out;
}
.timeline-content:hover{
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--main-color),
                0 0 100px var(--main-color)
}
/* .timeline-content:active{
    transform: scale(1.05);
    box-shadow: 0 0 25px aqua,
                0 0 100px aqua;
} */
.timeline-content h3 {
    font-size: 20px;
    color: white;
    margin : 0 0 10px;
    font-weight: 500;
}
.timeline-content h3 i{
    color :var(--main-color);
    padding: 0px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width:4.5rem;
    height: 4.5rem;
    background: transparent;
    border: 2px solid var(--main-color);
    font-size:2.5rem;
    border-radius: 50%;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease-in-out;

}
.timeline-content h3 i:hover{
    color: var(--text-color);
    transform: scale(1.3)translateY(-5px);
    box-shadow: 0 0 25px var(--bg-color);
    background-color: var(--bg-color);
}

.timeline-content p{
    color: white;
    font-size: 16px;
    font-weight: 300;
    line-height: 22px;
}
.timeline-content .btn{
    display:inline-flex;
    max-width: 550px;
    max-height: 550px;
    justify-content: center;
    align-items:center;
    text-align: center;
    padding: 1rem 2.8rem;
    margin: 10px;
    background: var(--main-color);
    /* box-shadow: 0 0 25px var(--main-color); */
    border-radius: 4rem ;
    font-size: 1.6rem;
    color:rgb(245, 241, 241);
    border:2px solid transparent;
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease-in-out;
    cursor: pointer;
    
   
}
.timeline-content .btn:hover{
    transform: scale(1.1);
    background: var(--text-color);
    color: #080808;
}


::-webkit-scrollbar{
    width:10px;
}
::-webkit-scrollbar-thumb{
    background-color: var(--main-color);
}
::-webkit-scrollbar-track{
    background-color: var(--bg-color);
    width:50px;
}

.services{
    background: var(--bg-color);
    color:black;
}
.services h2{
    margin-bottom: 5rem;
    color:rgb(219, 218, 218);
   
}
.services-container{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    align-items: center;
    gap: 2.5rem;
}
.service-box {
    background-color: rgb(21, 20, 20);
    height:310px;
    border-radius:20rem;
    border:1px solid var(--second-bg-color);
    cursor:pointer;
    transition: 0.4s ease-in-out;
}
.service-box:hover{
    background: rgb(17, 16, 16);
    color: rgb(231, 221, 221);
    border: 2px solid var(--bg-color);
    box-shadow: 0 0 25px var(--main-color),
                0 0 100px var(--main-color);
    transform: scale(1.03);
}

.service-box .service-info{
    display: flex;
    flex-direction: column;
    text-align:center;
    max-height: 270px;
    justify-content: center;
    align-items:center;
    padding: 5rem 5rem;
}
.service-info i{
    font-size: 5rem;
    /* color: var(--main-color); */
}
/* .service-info img{
    width: 40%;
    aspect-ratio: 3/2;
    object-fit: contain;
    mix-blend-mode: color-burn;
    ;
} */

.service-info h4{
    
    /* color:aliceblue; */
    font-size: 3rem;
    font-weight: 600;
    line-height: 3;
    
}
.service-info p{
    /* color:aliceblue; */
    font-size: 1.6rem;
    font-weight:600;
    max-height:100px;
    line-height: 1.7;
    margin: auto;
}

.services h2 ,.service-info{
    color:var(--text-color)
}

.services h2 ,.service-info:hover{
    color:rgb(254, 45, 45)
}
.project{
    background-color: var(--second-bg-color);
}
.project h2{
    margin-bottom: 4rem;
}
.project-container{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap:2.5rem;
    width:100%;
    height: 100%;
}
.project-container .project-box{
    position: relative;
    border-radius: 2rem;
    box-shadow: 0 0 1rem var(--bg-color);
    overflow:hidden;
    display: flex;
    height: 100%;
    width:100%;
}
.project-box img{
    width:100%;
    transition: .5s ease;
    opacity: 0.7;
}
.project-box:hover img{
    transform: scale(1.1);
}
.project-box .project-layer{
    position: absolute;
    bottom: 0;
    left:0;
    width:100%;
    height:100%;
    background: linear-gradient(rgba(0,0,0,0.1),var(--main-color));
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 1rem;
    transform: translateY(90%);
    transition: .5s ease;
}

.project-box:hover .project-layer{
    transform: translateY(0);
}

.project-layer .btn{
    display:flex;
    max-width:30% ;
    max-height:30% ;
    justify-content: center;
    align-items:center;
    text-align: center;
    padding: 2rem 4.6rem;
    margin: 10px;
    background: var(--bg-color);
    box-shadow: 0 0 25px var(--main-color);
    border-radius: 4rem ;
    font-size: 1.3rem;
    color:rgb(241, 237, 237);
    border:2px solid transparent;
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}

.project-layer .btn:hover{
    transform: scale(1.1);
    background: var(--text-color);
    color: #080808;
}
.project-layer h4{
    font-size: 3rem;
}

.project-layer p{
    font-size:2.3rem;
    margin: .3rem 0 1rem;
}
.project-layer a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width:5rem;
    height: 5rem;
    background:var(--text-color);
    border-radius: 50%;
}

.project-layer a i{
    font-size: 3rem;
    color: var(--second-bg-color);
}

.contact h2{
    font-size: 80px;
    color: aliceblue;
    text-align: center;
    margin-bottom: 10px;
    padding: 4px;
}

.contact form {
    width:100%;
    text-align: center;
    /* margin-left: 50px; */
    justify-content: center; 
     
}

form .input-box{
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.input-box .input-field{
    width: 48.5%;
    
}

.field .item{
    width: 100%;
    padding: 18px;
    background:  transparent;
    border: 2px solid white;
    outline: none;
    border-radius: 15px;
    font-size: 16px;
    color:#ededed;
    margin: 12px 0;
}

.field.error .item{
    border-color: #d93025;
}

.field .item::placeholder {
    color:rgba(255, 255, 255, .3);
}

.field .error-txt{
    font-size: 14.5px;
    color: #d93025;
    text-align: left;
    margin: -5px 0 10px ;
    display: none;
}

.field.error .error-txt{
    display: block;
}

form .textarea-field .item{
    resize: none;
}

form .textarea-field .error-txt{
    margin-top: -10px;
}

form button{
    padding: 12px 32px;
    background: var(--main-color);
    border:none;
    outline: none;
    border-radius: 6px;
    font-size: 16px;
    color:#e7e1e1;
    letter-spacing: 1px;
    font-weight: 600;
    cursor: pointer;
    transition: .5s ease-in-out;
}

form button:hover{
    font-size: 16px;
    color:var(--bg-color);
    box-shadow: 0 0 20px var(--main-color);
                /* 0 0 10px var(--main-color); */
}


.footer{
    position: relative;
    bottom:0;
    width:100%;
    padding:40px 0;
    background-color: var(--second-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:rgb(237, 233, 233);
    box-shadow: 0 0 25px var(--main-color);
}
.footer ul{
    margin-top: 0;
    padding:0;
    font-size: 18px;
    line-height:1.6;
    margin-bottom:0;
    text-align: center;
}
.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 ul li{
    display: inline-block;
    padding:0 15px;

}
.footer .copyright{
    margin-top:50px;
    text-align: center;
    font-size: 16px;
    color:white;
}




/*BREAK POINT*/

@media (max-width:1200px){
    html{
        font-size: 55%;
    }
}
@media (max-width:991px){
    #pre-loader{
        background-size: 50%;
    }
    .header{
        padding: 2rem 3%;
    }

    section{
        padding: 10rem 3%;
    }

    .services{
        padding:7rem;
    }

    .project{
        padding-bottom: 7rem;
    }

    .footer{
        padding: 2rem 3%;
    }
    .services h2 {
        font-size: 2.4rem;
        margin-bottom: 3rem;
    }

    .services-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .service-info h4 {
        font-size: 2rem;
    }

    .service-info p {
        font-size: 1.4rem;
    }
    .contact h2 {
        font-size: 36px;
    }
    .input-box .input-field {
        width: calc(50% - 10px); /* Two fields per row */
        margin-bottom: 8px;
    }
    .field .item {
        padding: 12px; /* Decrease padding */
        font-size: 14px; /* Decrease font size */
    }
    .form button {
        padding: 10px 28px; /* Adjust button padding */
    }
    .education h2{
        font-size: 34px;
    }
    .project h2{
        font-size: 34px;
    }

    .services h2{
        font-size: 34px;
    }
    .contact h2 {
        font-size: 34px;
    }
    
}

@media(max-width: 768px){
    #menu-icon{
        display: block;
    }
    
    .navbar{
        position:absolute;
        top:100%;
        right:0;
        width:50%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        backdrop-filter: blur(10px);
        border-bottom-left-radius: 2rem;
        border-left: 2px solid var(--main-color);
        border-bottom: 2px solid var(--main-color);
        display:none;
    }
    .navbar.active{
        display: block;
    }

    .navbar a{
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    .home{
        flex-direction: column;
    }

    .home-content h1{
        font-size: 5rem;
    }

    .home-content h3{
        font-size: 2.6rem;
    }
    .home-content{
        order:2;
    }

    .home-img img{
        width:90vw;
        margin-top:4rem;
    }

    .education{
        flex-direction: row;
    }
    .timeline-dot{
        height:20px;
        width: 20px;
        background-color: var(--main-color);
        box-shadow: 0 0 25px var(--main-color),
                    0 0 25px var(--main-color);
        position:relative;
        left: calc(50% - 5px);
        border-radius: 50%;
        top: 11px;
    }
    .timeline-items{
        max-width:100%;
        margin:auto;
        display:block;
        flex-wrap: wrap;
        position: unset;
        grid-template-columns: repeat(2, 1 fr);
    }
    .timeline-item{
        margin-bottom: 20px;
        width:100%;
        height: 300px;
        position:unset;
    }
    
    .services-container {
        grid-template-columns: repeat(2, 1 fr);
        font-size: 25%;
    } 

    .service-box { 
        height:320px;
        border-radius:5rem;
    }

    .service-box  h4{
        font-size: 20px;  
    }
    .service-box  p{
        font-size: 13px;
    }

     .services h2{
        margin-bottom: 3rem;
     }

     .project h2{
        margin-bottom: 3rem;
     }

     .project-container{
        grid-template-columns: repeat(2, 1 fr);
     }
     .contact h2 {
        font-size: 32px;
    }
    .input-box .input-field {
        width: 100%; /* Full width for input fields */
        margin-bottom: 8px;
    }
    .field .item {
        padding: 10px; /* Further reduce padding */
        font-size: 14px; /* Further reduce font size */
    }
    .form .textarea-field .item {
        padding: 10px;
    }
    .form button {
        padding: 10px 26px;
    }


    .footer .social a {
        margin: 0 5px;
        font-size: 20px;
        width: 36px;
        height: 36px;
        line-height: 36px;
    }

    .footer ul li {
        padding: 0 10px;
    }

    .footer ul {
        font-size: 16px;
    }
    .contact h2 {
        font-size: 32px;
    }
    .input-box {
        flex-direction: column;
    }
    .field .item {
        padding: 14px;
    }
    .field .error-txt {
        margin: 0;
    }
    .textarea-field .item {
        padding: 12px;
    }
    .form button {
        padding: 10px 26px;
    }
    #pre-loader {
        background-size: 40%;
    }
}

@media(max-width:617px){
    .services-container{
        grid-template-columns: 1fr;
    }
    .project-container{
        grid-template-columns: 1fr;
    }
    

    .timeline-content{
        grid-template-columns: 1fr;
    }

    .home-img img{
        width:80vw;
        margin-top: 8rem;
    }

    .contact h2 {
        font-size: 28px;
    }
    .field .item {
        height: 45px;
        padding: 8px; /* Reduce padding */
        font-size: 14px; /* Reduce font size */
    }
    .textarea-field .item{
        height: 120px;
        padding: 4px;
    }
     .button {
        padding: 10px 24px;
    }
    .footer .social a {
        margin: 0 5px;
        font-size: 18px;
        width: 32px;
        height: 32px;
        line-height: 32px;
    }

    .footer ul li {
        padding: 0 5px;
    }

    .footer ul {
        font-size: 14px;
    }

    .footer .copyright {
        font-size: 14px;
    }
    #pre-loader {
        background-size: 40%;
    }

 }
 @media(max-width:450px){
    html{
        font-size: 50%;
    }

    #pre-loader {
        background-size: 80%;
    }


 }

 /* Responsive styles */
@media (max-width: 768px) {
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding: 0;
        text-align: left;
    }
    .timeline-dot {
        left: 2px;
        top: 0;
    }
    .timeline-content {
        margin-left: 30px;
        padding: 20px;
        align-items: center;
    }
    .timeline-content h3 i {
        margin: 0 1.5rem 0 0;
    }
    .education h2{
        font-size: 34px;
    }
    .project h2{
        font-size: 34px;
    }

    .services h2{
        font-size: 34px;
    }
    .contact h2 {
        font-size: 34px;

    }
    #pre-loader {
        background-size: 100%;
    }
}
@media (max-width: 480px) {
    .education {
        padding: 50px 10px;   
    }
    .timeline-date {
        font-size: 16px;
    }
    .timeline-content {
        padding: 15px;
    }
    .timeline-content h3 {
        font-size: 18px;
    }
    .timeline-content p {
        font-size: 14px;
    }
    .education h2{
        font-size: 34px;
    }
    .project h2{
        font-size: 34px;
    }

    .services h2{
        font-size: 34px;
    }
    .contact h2 {
        font-size: 34px;
    }
    .field .item {
        height: 50px;
        padding: 6px; /* Further reduce padding */
        font-size: 15px; /* Further reduce font size */
    }
    .textarea-field .item {
        height: 120px;
        padding: 8px;
    }
    .form button {
        padding: 8px 20px;
    }
    #pre-loader{
        background:#000 url(/images/car-load.gif) no-repeat center;
        background-size: 50%;
        height: 100%;
        width:100%;
        position: fixed;
        z-index: 100;

    }
}

#pre-loader{
    background:#000 url(/images/car-load.gif) no-repeat center;
    background-size: 50%;
    height: 100vh;
    width:100%;
    position: fixed;
    z-index: 100;
    color: #d93025;
}



