*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Roboto', sans-serif;
}


* {
    max-width: 100%;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}


:root{
    --bg-color: #ffffff;
    --snd-bg-color: #f9fafb;
    --text-color: #111827;
    --main-color: #374151;
    --accent-color: #06b6d4;
}
html{
    font-size: 62.5%;
    overflow-x: hidden;
    width: 100%;
}

body{
    background:  var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

section{
    min-height: 100vh;
    padding: 10rem 9% 2rem;
    width: 100%;
    overflow-x: hidden;
}
.header{
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 5%;
    background: var(--main-color);
    backdrop-filter: blur(10px);
    transition: all 0.5s ease;
    min-height: 70px;
}

.logo{
    font-size: 3rem;
    color: var(--bg-color);
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
}

.logo:hover{
    transform: scale(1.05);

}

.navbar a{
    font-size: 1.9rem;
    color: var(--bg-color);
    margin-left: 4rem;
    font-weight: 700;
    transition: 0.3s ease;
}

.navbar a:hover  {
    color: white;

}

#menu-icon{
    font-size: 3.6rem;
    color: var(--bg-color);
    cursor: pointer;
    display: none;
    z-index: 1001;
    position: relative;
}

.home{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.home-img img{
    width: 25vw;
    min-width: 280px;
    max-width: 420px;
    border-radius: 50%;
    border: 5px solid var(--bg-color);
    box-shadow: 0 0 30px rgba(55, 65, 81, 0.3),
                0 0 60px rgba(55, 65, 81, 0.2),
                inset 0 0 20px rgba(255, 255, 255, 0.1);
    cursor: pointer;
    animation: floatImage 4s ease-in-out infinite;
    transition: 0.4s ease;
    object-fit: cover;
    filter: brightness(1.1) contrast(1.1);
}
.home-img img:hover{
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(55, 65, 81, 0.5),
                0 0 80px rgba(55, 65, 81, 0.3),
                0 0 120px rgba(6, 182, 212, 0.2),
                inset 0 0 30px rgba(255, 255, 255, 0.2);
    filter: brightness(1.2) contrast(1.2);
}



@keyframes floatImage{
    0%{
        transform: translateY(0);
    }
    50%{
        transform: translateY(-2rem);
    }
    100%{
        transform: translateY(0);
    }
}
.home-content{
    flex: 1;
    min-width: 300px;
    margin-left: 2rem;
    background: linear-gradient(135deg, #4a5568 0%, #718096 30%, #a0aec0 60%, #bee3f8 100%);
    padding: 3rem;
    border-radius: 2rem;
    color: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.home-content h3{
    font-size: 3.7rem;
    font-weight: 700;
}
.home-content h3:nth-of-type(2) {
    margin-bottom: 2rem;
}
span{
    color: var(--main-color);
}
.home-content h1{
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}
.home-content p{
    font-size: 1.6rem;
}
.social-media a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 0.2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
}

.social-media a:hover{
    transform: scale(1.2) translateY(-10px);
    background-color: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 25px var(--main-color);
}
.social-media{
    border-radius: 25%;
}
.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: var(--main-color);
    border-radius: 4rem;
    box-shadow: none;
    font-size: 1.6rem;
    color: var(--bg-color);
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease;
    margin-left: 24px;
}
.btn:hover{
    box-shadow: 0 0 1.6rem var(--main-color);
}
.about{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background-image: url('../images/port.jpg');
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    padding: 10rem 5% 2rem;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.about > * {
    position: relative;
    z-index: 2;
}
.heading{
    font-size: 6rem;
    text-align: center;
}
.about-content{
    flex: 1;
    max-width: 600px;
    padding: 0 2rem;
}
.about-content h2{
    text-align: left;
    line-height: 1.2;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}
.about-content h3{
    font-size: 3rem;
}
.about-content p{
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
    color: white;
    text-align: justify;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    line-height: 1.6;
}



.bx{
    color: black;
}    


.services h2{
    margin-bottom: 5rem;
    text-align: center;
}
.services-container{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}
.services-container .services-box{
    flex:1 1 30rem;
    background-color: var(--snd-bg-color);
    padding: 6rem 2rem 6rem;
    border-radius: 2rem;
    text-align: center;
    border: 0.3rem solid var(--bg-color);
    transition: 0.3s ease;
}
.services-container:hover .services-box:hover{
     border-color: var(--main-color);
     transform: scale(1.02);
}
.services-box i{
    font-size: 7rem;
    color: var(--main-color);
    display: block;
    margin-bottom: 1rem;
}
.services-box h3{
    font-size: 2.6rem;
}
.services-box p{
    font-size: 1.6rem;
    margin: 1rem 0 3rem;
}






.banner{
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    text-align: center;
    overflow: hidden;
    position: relative;
    min-height: 400px;
    ;
}
.banner .slider{
    position: absolute;
    width: 200px;
    height: 250px;
    top: 10%;
    left: calc(50% - 100px);
    transform-style: preserve-3d;
    transform: perspective(1000px);
    animation: autoRun 20s linear infinite;
    z-index: 2;
}
@keyframes autoRun{
    from{
        transform: perspective(1000px) rotateX(-16deg) rotateY(0deg);
    }to{
        transform: perspective(1000px) rotateX(-16deg) rotateY(360deg);
    }
}

.banner .slider .item{
    position: absolute;
    inset: 0 0 0 0;
    transform: 
        rotateY(calc( (var(--position) - 1) * (360 / var(--quantity)) * 1deg))
        translateZ(550px);
    max-width: 100%;
    overflow: hidden;
}
.banner .slider .item img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.banner .content{
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(1400px, 100vw);
    height: max-content;
    padding-bottom: 100px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
}
.banner .content h1{
    font-family: 'ICA Rubrik';
    font-size: 12em;
    line-height: 1em;
    color: #25283B;
    position: relative;
}
.banner .content h1::after{
    position: absolute;
    inset: 0 0 0 0;
    content: attr(data-content);
    z-index: 2;
    -webkit-text-stroke: 2px #d2d2d2;
    color: transparent;
}
.banner .content .author{
    font-family: Poppins;
    text-align: right;
    max-width: 200px;
}

.banner .content .model{
    background-image: url(images/model.png);
    width: 100%;
    height: 75vh;
    position: absolute;
    bottom: 0;
    left: 0;
    background-size: auto 130%;
    background-repeat: no-repeat;
    background-position: top center;
    z-index: 1;
}
@media screen and (max-width: 1023px) {
    .banner{
        height: 70vh;
        min-height: 350px;
    }
    .banner .slider{
        width: 140px;
        height: 180px;
        left: calc(50% - 70px);
        top: 15%;
    }
    .banner .slider .item{
        transform: 
            rotateY(calc( (var(--position) - 1) * (360 / var(--quantity)) * 1deg))
            translateZ(250px);
    }
    .banner .content h1{
        text-align: center;
        width: 100%;
        text-shadow: 0 10px 20px #000;
        font-size: 5em;
    }
    .banner .content .author{
        color: #fff;
        padding: 20px;
        text-shadow: 0 10px 20px #000;
        z-index: 2;
        max-width: unset;
        width: 100%;
        text-align: center;
        padding: 0 30px;
    }
}
@media screen and (max-width: 767px) {
    .banner{
        height: 60vh;
        min-height: 300px;
    }
    .banner .slider{
        width: 80px;
        height: 120px;
        left: calc(50% - 40px);
        top: 20%;
    }
    .banner .slider .item{
        transform: 
            rotateY(calc( (var(--position) - 1) * (360 / var(--quantity)) * 1deg))
            translateZ(180px);
    }
    .banner .content h1{
        font-size: 3em;
    }
    .projects{
        padding: 5rem 3% 2rem;
    }
    .projects .heading{
        font-size: 4rem;
        margin-bottom: 2rem;
    }
}
.caption{
    position: absolute;
    bottom: 110px; /* distance from bottom */
    left: 50%;
    transform: translateX(-50%);
    color: #fff;          /* text color */
    font-size: 18px;      /* size of text */
    font-weight: bold;
    
}

.contact{
    background: var(--bg-color);
    padding: 8rem 3% 2rem;
}

.contact h2{
    margin-bottom: 3rem;
    color: var(--main-color);
}
.contact-form{
    max-width: 80rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}
.contact form .input-box{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.contact form .input-box input,
.contact form textarea{
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--bg-color);
    border-radius: 0.8rem;
    border: 0.25rem solid var(--main-color);
    margin: 0.7rem 0;
    resize: none;
}
.contact form .input-box input{
    width: calc(50% - 0.5rem);
    margin: 0.7rem 0;
}
.lastbtn{
    text-align: center;
    margin-top: 2rem;
}


.footer{
    position: relative;
    bottom :0;
    width: 100%;
    padding:40px 0px;
    background: var(--snd-bg-color);
}
.footer .contact-info{
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.footer .contact-item{
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--main-color);
    font-size: 1.6rem;
    min-width: 200px;
    justify-content: flex-start;
}

.footer .contact-item i{
    font-size: 2rem;
    color: var(--main-color);
    width: 2.5rem;
    text-align: center;
    flex-shrink: 0;
}

.footer .contact-item span{
    line-height: 1;
    vertical-align: middle;
}

.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; 
    margin-top:10px ;
}

.footer .copyrights{
    margin-top: 20px;
    text-align: center;
    font-size: 16px;
    color: var(--main-color);
}


@media (max-width: 1200px) {
    html{
        font-size: 55%;
    }
    
}
@media (max-width: 991px){
    .header{
        padding: 1.5rem 3%;
        min-height: 65px;
    }
    #menu-icon{
        display: block;
        font-size: 2.8rem;
    }
    section{
        padding: 10rem 3%;
    }
    .services{
        padding: 7rem 3%;
    }
    .contact form .input-box input{
        width: 100%;
    }
    .footer{
        padding: 2rem 3%;
    }
}
@media (max-width: 768px){
    #menu-icon{
        display: block !important;
        color: var(--bg-color) !important;
        font-size: 2.5rem;
        margin-right: 1rem;
    }
    .navbar{
        position: absolute;
        top: 100%;
        right: -100%;
        width: 255px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        background: var(--main-color);
        transition: all 0.5s ease;
        backdrop-filter: blur(10px);
    }
    .navbar a{
        display: block;
        padding: 17px;
        font-size: 22px;
    }
    .navbar.active{
        right: 0;
    }
    .home{
        flex-direction: column;
        text-align: center;
        padding: 8rem 3% 2rem;
    }
    .home-content{
        order: 2;
        margin-left: 0;
        margin-top: 2rem;
    }
    .home-content h3{
        font-size: 2.6rem;
    }
    .home-content h1{
        font-size: 4rem;
    }
    .home-img{
        order: 1;
    }
    .home-img img{
        width: 60vw;
        min-width: 250px;
        max-width: 350px;
    }
    .home-img::before{
        width: 110%;
        height: 110%;
    }
    .about{
        flex-direction: column-reverse;
        text-align: center;
        padding: 8rem 3% 2rem;
        gap: 3rem;
    }
    .about-content{
        padding: 0 1rem;
        max-width: 100%;
    }
    .services h2{
        margin-bottom: 3rem;
    }
    .services-container{
        flex-direction: column;
    }
    .contact form .input-box{
        flex-direction: column;
        gap: 0;
    }
    .contact form .input-box input{
        width: 100%;
        margin: 0.7rem 0;
    }
    .social-media{
        justify-content: center;
        flex-wrap: wrap;
    }
    .social-media a{
        margin: 1rem 0.5rem;
    }
    .banner{
        height: 50vh;
        min-height: 250px;
    }
    .banner .slider{
        width: 100px;
        height: 140px;
        left: calc(50% - 50px);
        top: 20%;
    }
    .banner .slider .item{
        transform: 
            rotateY(calc( (var(--position) - 1) * (360 / var(--quantity)) * 1deg))
            translateZ(160px);
    }
}

@media (max-width: 617px) {
    html{
        font-size: 50%;
    }
    .home-img img{
        width: 70vw;
        margin-top: 8rem;
    }
    .about-img img{
        width: 70vw;
        margin-top: 4rem;
    }
    .home-img::before{
        width: 105%;
        height: 105%;
    }
    .about-content h2{
        font-size: 4rem;
    }
}

@media (max-width: 480px) {
    html{
        font-size: 45%;
    }
    .home-content h1{
        font-size: 3.5rem;
    }
    .about-content h2{
        font-size: 3.5rem;
    }
}


.robot-id {
    /* Center and constrain the width */
    width: 100%;
    max-width: 450px; 
    padding: 2rem;
}
.skill-item {
    margin-bottom: 2rem;
}
.skill-item h4 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--bg-color);
}
.progress-bar {
    height: 12px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}
.progress-level {
    height: 100%;
    background: linear-gradient(90deg,#000000, #666666, #FF0000);
    border-radius: 6px;
    animation: skillFill 2s forwards;
    position: relative;
}
.progress-level::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes skillFill {
    from { width: 0; }
    to { width: var(--skill-percent); } 
}

.social-contact-wrapper{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 3rem 0;
}

.contactt{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-mediaaa{
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--main-color);
    font-size: 1.6rem;
}

.social-mediaaa i{
    font-size: 2rem;
    width: 2.5rem;
    text-align: center;
    flex-shrink: 0;
}