
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');
*{  
    
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border:none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Nunito',sans-serif;
}
:root{
    --bg-color:#090909;
    --snd-bf-color:#060606;
    --text-color:#fff;
    --main-color:#834bc4;
}
html{
    font-size:62.5% ;
    overflow-x:hidden;
}
body{
     background-color: var(--bg-color);
    color: var(--text-color);
}
section{
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}
.header{
    position: fixed;
    top:0;
    left:0;
    width: 100%;
    padding: 2rem 9%;
    background: var(--bg-color);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo{
    color: var(--text-color);
    font-size: 2.5rem;
    font-weight: 700;
    cursor: pointer;
}
.navbar a{
    display: inline-block;
    padding: 1.5rem 2rem;
    font-size: 1.6rem;
    font-weight: 700;
   
    border-radius: 2rem;
    margin-top: 2rem;
    transition: .5s ease;
    margin: 0.5rem;
    background: var(--bg-color);
    color: var(--main-color);
}

.navbar a:hover{ 
    background: var(--main-color);
    color: var(--bg-color);
}
.navbar a.active{
    background: var(--main-color);
    color: var(--bg-color);
    
}
#menu-btn{
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
}
.home{
    display:flex;
    justify-content: center;
    align-items: center;
}
.home-c h3{
    font-size: 3.2rem;
    font-weight: 700;
}
.home-c h3:nth-of-type(2){
    margin-bottom:2rem;
}  
span{
    color: var(--main-color);
}
.home-c h1{
    font-size: 5.6rem;
    font-weight: 700;
    margin: 1.3rem;
}
.himg img{
    height: 60rem;
    width: 25vw;
    animation: floatImage 4s ease-in-out infinite;

}
@keyframes floatImage{
    0%{
        transform: translateY(0);
    }
    50%{
        transform: translateY(-2.4rem);
    }
    100%{
        transform: translateY(0);
    }
} 
.home-c p{
    font-size: 1.6rem;
}
.media a{
    font-size: 2rem;
    margin: 3rem 1.5rem 3rem 0;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    display:inline-flex;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    transition: .5s ease;
    color: var(--main-color);
    align-items: center;
}
.media a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}
    
.butn{
    display: inline-block;
    padding: 1.5rem 3rem;
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--main-color);
    color: var(--bg-color);
    border-radius: 2rem;
    margin-top: 2rem;
    transition: .5s ease;
    box-shadow:0 0 1rem var(--main-color);   
}
.butn:hover{
   box-shadow:none;

}
.about{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    background: var(--snd-bf-color);
}
.a-img img{
    width:35vw;
}
.heading{
    text-align:center;
    font-size: 4.5rem;
}
.about-c h2{
    text-align:center;
    line-height: 1.2;
}
.about-c h3{
    font-size: 2.6rem;
    
}
.about-c p{
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
}
.profile {
    
    padding: 2rem 5%;
    background: var(--bg-color);
    overflow: hidden;
  }
  
  .profsec {
    position: relative;
    padding: 1%;
    margin: 0 -20px; /* adjust margins if needed */
    min-height: 400px;
  }
  
  /* Container for the marquee items */
  .profiles-container {
    display: flex;
    gap: 20px;
    /* Set a fixed height if needed; here it matches the platform height plus extra spacing */
    height: 500px;
    /* width: max-content lets it expand based on its children */
    width: max-content;
    cursor: pointer;
  }
  
  /* Apply the marquee animation when in view */
  .profiles-container.in-view {
    animation: marquee 15s linear infinite;
  }
  
  /* Pause animation on hover */
  .profiles-container:hover {
    animation-play-state: paused;
  }

  .profile .heading{
    margin: 100px;
  }
  
  /* Platform Card Styling */
  .platform {
    background-color: var(--snd-bf-color);
    color: #fff;
    opacity: 0.9;
    border-radius: 20px;
    /* padding-left: 50px; */
    min-width: 300px;
    height: 370px;
    margin: auto 20px;
    border: 3px solid var(--main-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    font-size: medium;
  }
  
  .platform:hover {
    box-shadow: 1px 1px 40px rgb(142, 8, 251);
  }
  
  .platform h4 {
    margin: 10px 0;
  }
  
  @keyframes marquee {
    0% {
      transform: translateX(0);
    }
    100% {
      /* Translate by 50% of the total width.
         Ensure that the cloned items create a seamless loop.
         Adjust this value if needed (e.g., translateX(-50%) assumes the duplicate exactly doubles the width) */
      transform: translateX(-50%);
    }
  }
.services h2{
    margin-bottom: 5rem ;
}
.service-c{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap:wrap;
}
.service-c .service-b{
    padding:3rem 2rem 4rem ;
    background: var(--snd-bg-color);
    border-radius: 2rem;
    flex: 1 1 30rem;
    text-align:center;
    border: .2rem solid var(--bg-color);
    transition: .5sec,ease;
}
.service-c .service-b:hover{
    border-color:var(--main-color);
    transform: scale(1.02);
}
.service-b i {
    font-size: 7rem;
    color: var(--main-color);
}
.service-b h3{
    font-size: 2.6rem;
}
.service-b p{
    font-size: 1.6rem;
    margin: 1rem 0 3rem;
}
.portfolio{
    background: var(--snd-bg-color);
}
.portfolio h2{
    margin-bottom: 4rem;
}
.port-c{
    display: grid;
    grid-template-columns:repeat(3,1fr);
    gap: 2rem;
    align-items:center;
}
.port-c .port-b{
    position: relative;
    overflow: hidden;
    border-radius: 2rem;
    box-shadow: 0 0 1rem var(--bg-color);
    display: flex;
}
.port-b img{
    height: 100%;
    width: 100%;
    transition: .5s ease;
    opacity:0.7;
    object-fit: cover;
}
.port-b:hover img{
    transform: scale(1.1);
    opacity:1;
}
.port-b .portfolio-l{
    position: absolute;
    bottom:0;
    left:0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,transparent, var(--main-color));
    display: flex;
    justify-content: center;
    align-items: center;
    text-align:center;
    transform: translateY(100%);
    transition: .5s ease;
}
.port-b:hover .portfolio-l{
    transform: translateY(0);
}
.portfolio-l h4{
    font-size: 3rem;
}
.portfolio-l p{
    font-size: 1.6rem;
    margin: .3rem 0 3rem;  
}
.portfolio-l a{
    background: var(--text-color);
    transition: .5s ease;
    width: 5rem;
    height: 5rem;
    display:inline-flex;
    justify-content:center;
    align-items:center;

}
.portfolio-l a i{
    font-size: 2.5rem;
    color: var(--snd-bg-color);
}
.contact h2{
    margin-bottom: 4rem;
}
.contact form{
    max-width: 70rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}
.contact form .i-box{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.contact form .i-box input,
.contact form textarea{
    width: 100%;
    padding:  1.5rem;
    margin: .7rem 0;
    background: var(--snd-bg-color);
    border-radius:.9rem;
    color:var(--text-color);
    font-size:1.6rem;
}
.contact form .i-box input{
    width:49%;   
}
.contact form textarea{
    resize:none;
}
.contact form .butn{
    margin-top: 2rem;
    cursor:pointer;
}
.footer{
    background: var(--snd-bg-color);
    text-align: center;
    padding: 2rem 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}
.f-text
{
    font-size: 1.6rem;
    
}
.f-icon{
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    align-items: center;
    padding: .8erem 1rem;
    transition: .5s ease;
    border-radius:.8rem ;
    background: var(--main-color);
}
.f-icon a:hover{
    box-shadow: 0 0 1rem var(--main-color);
}
.f-icon a i{
    font-size: 2.5rem;
    color:var(--snd-bg-color);
}

@media (max-width:1200px){
    html
    {
        font-size: 55%;
    }
}
@media (max-width:991px){
    .header{
        padding: 2rem 3%;
    }
    section{
        padding: 10rem 3%;
    }
    .services {
        padding: 7rem;
    }
    .portfolio{
        padding-bottom: 7rem;
    }
    .contact {
        min-height: auto;
    }
    .footer{
        padding: 2rem 3%;
    }
}
@media (max-width: 768px){
    #menu-btn{
        display: block;
    }
    .navbar{
        position: absolute;
        top: 100%;
        left:0;
        width:100%;
        background: var(--bg-color);
        display: none;
        padding:  1rem 3%;
        border-top: .1rem solid #343232;
        box-shadow: 0 .5rem 1rem rgba(0,0,0,.2);
    }
    .navbar.active{
        display: block;
    }
    .navbar a{
        display: block;
        font-size: 1.9rem;
        margin: 3rem 0;
    }
    .home{
        flex-direction: column;  
    }
    .home-c h3{
        font-size: 2.6rem;
    }
    .home-c h1{
        font-size: 4.5rem;
    }
    .home-c{
        order:2;
    }
    .himg img{
        width: 90vw;
        margin-top: 4rem;
    }
    .about{
        flex-direction: column;
    }
    .a-img img{
        width:90vw;
        margin-top: 4rem;
    }
    .services h2{
        margin-bottom: 3rem;
    }
    .portfolio h2{
        margin-bottom: 3rem;
    }
    .port-c{
        grid-template-columns: repeat(2,1fr);
    }
}
@media (max-width: 617px){
    .port-c{
        grid-template-columns: 1fr;
    }
    .himg img{
       width:80vw;
       margin-top:8rem; 
    }
    .a-img img{
        width:100vw;
        margin-top:8rem;
    }   
}
@media (max-width: 450px){
    html{
        font-size: 50%;
    }
    .contact form .i-box input{
        width:100%;
    }
}
