*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html,body{
    height: 100%;
    width: 100%;
}
main{
    height: 100vh;
    width: 100vw;
    padding: 4vh 2vw;
    font-family: poppins, sans-serif;
    background-color: #E2E8F0;
    color: #1A202C;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #3B82F6;
}
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 5px;              /* Thickness of the bar */
    background: rgb(255, 247, 0);       /* Color of the bar */
    width:1%;                /* Start at 0% width */
    z-index: 9999;            /* Stays above all elements */
    transition: width 0.1s ease-out; /* Smooth animation */
    border-radius: 50px;
}

#main2{
    height:100%;
    width:100%;
    overflow-x: hidden;
    background-color:#F7FAFC;
    box-shadow: #1A202C 0px 0px 10px 0px;
    border-radius: 20px;
    overflow-y: scroll;
    webk::-webkit-scrollbar {
        display: none;
    }
    scrollbar-width: none;
    scroll-behavior: smooth;
}
#page1
{
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items:center;
    justify-content:center;
    position: relative;
}
#text2 {
    position: absolute;
    left:2%;
    bottom:0;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: left top;
    white-space: nowrap;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5vw;
}
#text3 {
    position: absolute;
    left:5%;
    bottom:0;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: left top;
    white-space: nowrap;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5vw;
}
#text-marque{
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5vh;
    flex-shrink:0;
}
#text-marque p{
    font-size: 3vh;
    color: #4A5568;
    font-weight: 500;
    white-space: nowrap;
}
  
#text{
    height: fit-content;
    width: 100vw;
    display: flex;
    align-items:center;
    justify-content: center;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 995;
    flex-shrink: 0;
    overflow-x: scroll;
    padding: 0 10vw 0 40vw;
    webk::-webkit-scrollbar {
        display: none;
    }
    scrollbar-width: none;
}
#text h1{
    font-size: 20vh;
    font-weight: 900;
    font-family: roboto, sans-serif;
    color: #1a202c88;
    white-space: nowrap;
    text-align: center;
    mix-blend-mode: difference;
    cursor: grab;
}
.m1{
    animation-name: text1;
    animation-duration: 11s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}
.m2{
    animation-name: text1;
    animation-duration:7s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-direction:alternate-reverse;
}
@keyframes text1{
    0%{
        transform: translateX(0);
    }
    100%{
        transform: translateX(-20%);
    }
}
#pg1-blur{
    height: 10vh;
    width: 100vw;
    background: linear-gradient(to bottom,transparent,#F7FAFC);
    position: absolute;
    bottom: 0;
    left: 0;
}
#pg1-container{
    height: 100%;
    width: 100%;
    display: flex;
    align-items:center;
    justify-content:center;
    position: relative
}
#image{
    height:40vh;
    width: 40vh;
    overflow: hidden;
    border-radius: 50%;
    position: absolute;
}
#image img{
    transition: 0.3s ease;
    height:100%;
    width:100%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 999;
    opacity:0.8;
    z-index:999;
    
}
#circle{
    height:40vh;
    width:40vh;
    display: flex;
    flex-direction: column;
    border-radius: 50%;
    align-items: center;
    justify-content:center;
    position: relative;
    background-color: none;
    border: solid #4A5568 4px;
    z-index: 998;
    cursor: grab;
    animation: anime2 15s linear infinite;
}
@keyframes anime2{
    0%{
        rotate: 0deg;
    }
    100%{
        rotate: 360deg;
    }
}
.elem{
    position: absolute;
    height: 100%;
    width: 1vh;
    display: flex;
    align-items:center;
    justify-content:center;
    flex-direction: column;
    top:0;
    left: 50%;
    transform-origin: 50% 100%;
    z-index: 1;
    transform: translate(-50%, -50%);
}
.up{
    height: 50%;
    width: 100%;
    display: flex;
    align-items:center;
    justify-content:center;
}
.down{
    height:50%;
    width: 100%;
    display: flex;
    align-items:center;
    justify-content: center;
}
.elem a{
    font-size: 4vh;
    font-weight: 900;
    color:#1A202C;
    text-decoration: none;
    font-family: roboto, sans-serif;
    transform: rotateZ(-90deg);
}
#I{
    transform: translate(-50%, -50%) rotateZ(-60deg);
}
#V{
    transform: translate(-50%, -50%) rotateZ(-120deg);
}
#A{
    transform:translate(-50%, -50%)  rotateZ(60deg);
}
#U{
    transform:translate(-50%, -50%) rotateZ(120deg);
}
#C{
    transform:translate(-50%, -50%) rotateZ(180deg);
}
.elem1{
    height: 4vh;
    width: 4vh;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #1A202C;
}
.elem1 h2{
    z-index: 2;
}

#page2{
    height: fit-content;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2vh;
    
}
#page2 h1{
    font-size: 6vh;
    font-weight: 900;
}
#about{
    height: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2vh;
    
}
#about p{
    width: 80%;
    font-size: 3vh;
    font-family:Roboto,serif;
    line-height: 1.5;
    color: #4A5568;
    text-align: center;
    text-align: justify;
    padding: 4%;
    border-bottom: 2px dotted #CBD5E0;
}
section{
    height: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2vh;
    transition: background-color 0.3s ease;
}
.about-box{
    height: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2vh;
    transition: background-color 0.3s ease;
}
#page3{
    height: fit-content;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2vh;
    margin-top: 5vh;
}
#page3 h1{
    font-size: 6vh;
    font-weight: 900;
}
.cards{
    height:10vh;
    width: 80%;
    display: flex;
    justify-content:center;
    align-items: center;
    position: relative;
    overflow: hidden;;
}
#card-mover{
    height:100%;
    width:100%;
    display: flex;
    justify-content:start;
    gap: 2vh;
    align-items: center;
    flex-shrink: 0;
    overflow-x: scroll;
    animation-name: anime;
    animation-duration: 15s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    animation-direction: alternate;
    webk::-webkit-scrollbar {
        display: none;
    }
    scrollbar-width: none;
}
.card{
    height:100%;
    width:auto;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 0.5%;
    gap: 2vh;
    white-space: nowrap;
}
.card img {
    width:100%;
    height:100%;
    border-radius:20px;
    object-fit:contain;
    object-position: center;
}
.card:hover{
    transform:scale3d(1.05, 1.05, 1.05);
    transition: transform 0.5s ease-in-out;
}
.blur-left, .blur-right {
    position: absolute;
    top: 0;
    width: 30%;
    height: 100%;
    pointer-events: none;
}
.blur-left{
    left: 0;
    z-index: 1;
     background: linear-gradient(to right, #F7FAFC, rgba(255, 255, 255, 0));
}
.blur-right{
    right: 0;
    z-index: 1;
     background: linear-gradient(to left, #F7FAFC, rgba(255, 255, 255, 0));
}
@keyframes anime{
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(35%);
    }
}
#page4{
    height: fit-content;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5vh;
}
#pg4-container{
    height: fit-content;
    width: fit-content;
    display: flex;
    align-items: center;
    justify-content:center;
    flex-direction: column;
    gap: 2vh;
}
#page4 h1{
    font-size: 6vh;
    font-weight: 900;
}
.type{
    height: fit-content;
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content:center;
    gap: 5vh;
    margin: 3vh 0;
}
.type h2{
    font-size: 3vh;
    font-weight: 900;
    border-bottom: 2px solid #CBD5E0;
    color:#4A5568;
}
.projects{
    height: fit-content;
    width: 100%;
    display: flex;
    flex-wrap:wrap;
    align-items: center;
    justify-content: center;
    gap: 5vh;
}
.project{
    height: 40vh;
    width: 20vw;
    border-radius:20px;
    overflow: hidden;
    background-color: #3B82F6;
    box-shadow: #1A202C 0px 0px 10px 0px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    transition: all ease 0.3s;
}
.project img{
    height: 50%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}
.project h4{
    width: 100%;
    font-size: 3vh;
    font-weight: 900;
    color: #1A202C;
    font-family: poppins, sans-serif;
    text-align: center;
    padding: 0.2vh;
}
.project p{
    font-size: 1.5vh;
    color: #FFFFFF;
    text-align:justify;
    font-family: poppins, sans-serif;
    text-align: justify;
    padding: 1vh;
}
.project h5{
    font-size: 1.5vh;
    color: #FFFFFF;
    text-align:justify;
    font-family: poppins, sans-serif;
    text-align:center;
    padding: 1vh;
}
.project a{
    text-decoration: none;
    color: #FFFFFF;
    font-weight: 900;
    font-size: 1.5vh;
    padding: 1vh;
    border-radius: 10px;
    background-color: #1A202C;
    transition: background-color 0.3s ease;
    margin-bottom: 1vh;
}
.project:hover{
    transform: scale3d(1.05, 1.05, 1.05);
}
#page5{
    height:fit-content;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: 5vh;
}
#page5 h1{
    font-size: 6vh;
    font-weight: 900;
}
#page5 h4{
    font-size: 3vh;
    font-weight: 900;
    color: #4A5568;
}
#blender{
    height: fit-content;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2vh;
}
.grid {
  width: 100%;
  margin: auto;
  position: relative;
}

.grid-sizer,
.grid-item {
  width: 33.33%;
}

.grid-item {
  margin-bottom: 0;
}

.grid img {
  width: 100%;
  height: auto; /* This keeps aspect ratio */
  display: block;
  object-fit: cover; /* optional */
}

#page6{
    height: fit-content;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: 10vh;
    padding: 5vh 0;
}
.contact-form {
    width: 100%;
    max-width: 600px;
    background-color: #ffffff;
    padding: 4vh 4vw;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(26, 32, 44, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 5vh;
    box-shadow: 5px 5px 10px 0px #1A202C;
    background-color:#3B82F6;
  }
  
  #page6 h1{
    font-size: 6vh;
    font-weight: 900;
  }
  form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2vh;
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
  }
  
  label {
    font-size: 2vh;
    margin-bottom: 0.5vh;
    color:#1A202C;
    font-weight: 800;
  }
  
  input,
  textarea {
    font-size: 1.8vh;
    padding: 1.5vh 1vw;
    border: 1px solid #CBD5E0;
    border-radius: 8px;
    background-color: #F7FAFC;
    color: #1A202C;
    resize: none;
  }
  
  input:focus,
  textarea:focus {
    outline: none;
    border-color: #1A202C;
    background-color: #fff;
  }
  
  button[type="submit"] {
    background-color: #1A202C;
    color: white;
    font-size: 2vh;
    font-weight: 600;
    padding: 1.5vh 0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  button[type="submit"]:hover {
    background-color: #2563EB;
  }
  .links{
    height: auto;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10vw;
    margin-top: 10vh;
  }
  .link {
    font-size: 10vh;
    color:#3B82F6;
    border-bottom: 2px dotted #1A202C;
    transition: 0.1s all ease-in;
  }.link a{
    text-decoration: none;
    color: #3B82F6;
  }
  .link a:hover{
    color: #1A202C;
  }
  footer{
    height: fit-content;
    margin: 10vh 0 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  footer p{
    font-family: poppins,sans-serif;
    color:#1A202C;
    font-size:2vh;
    font-weight: 900;
  }
@media screen and (max-width: 768px) {
    main {
        padding: 2vh 4vw;
        background-color: #3B82F6;
    }
    #main2{
        border-radius: 10px;
    }
    #text2,#text3{
        display: none;
    }
    #page1{
        height: 40vh;
    }
    #text{
        padding: 0 10vw 0 15vw;
        width: 100vw;
        justify-content: start;
    }
    #text h1{
        font-size:5vh;
    }
    #circle{
        height:40vw;
        width: 40vw;
        aspect-ratio: 1;    
    }
    .up{
        height: 50%;
        justify-content: start;
        align-items:center;
    }
    .elem a{
        font-size: 1.5vh;
    }
    .elem1{
        display: none;
    }
    #image{
        height:40vw;
        width: 40vw;
        aspect-ratio: 1;
    }
    #image img{
        opacity: 1;
    }
    #page2{
        height: fit-content;
        width: 100vw;
    }
    #page2 h1{
        font-size: 3vh;
    }
    #about p{
        font-size:1.5vh;
    }
    #page3 h1 {
        font-size: 3vh;
    }
    .cards {
        height:fit-content;
        width: fit-content;
        justify-content:start;
        overflow-x: scroll;
        webk::-webkit-scrollbar {
        display: none;
        }
        scrollbar-width: none;
    }
    .card {
        width: fit-content;
        height: fit-content;
    }
    .card img {
        width:10vw;
        height:10vh;
    }
    #card-mover{
        animation-duration: 8s;
    }
    #page4 h1 {
        font-size: 3vh;
    }
    .type h2 {
        font-size:1.8vh;
    }
    .projects {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        gap: 4vw;
        width: 100vw;
        padding: 2vh 4vw;
        box-sizing: border-box;
        scroll-behavior: smooth;
    }
    
    .projects::-webkit-scrollbar {
        display: none;
    }
    .projects {
        scrollbar-width: none;
    }
    
    .project {
        flex: 0 0 auto;
        width: 80vw;
        height:40vh;
        border-radius: 10px;
        background-color: #3B82F6;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        
    }
    
    .project img {
        width: 100%;
        height: 20vh;
        object-fit: cover;
    }
    .projects{
        justify-content: start;
    }
    .project h4 {
        font-size: 2vh;
    }
    .project p {
        font-size: 1.5vh;
        margin: 0 2%;
    }
    #page5 h1 {
        font-size: 3vh;
    }
    #page5 h4 {
        font-size: 2vh;
    }
    #page6 h1{
        font-size: 3vh;
    }
    .contact-form {
        width: 80vw;
        height: fit-content;
        padding: 4vh 4vw;
        transform: translateX(-5%);
    }

    label {
        font-size: 1.6vh;
    }

    input,textarea {
        font-size: 1.5vh;
    }

    button[type="submit"] {
        font-size: 1.6vh;
    }
    links{
        width: 100vw;
        justify-content: space-around;
        padding: 0 2%;
    }
    .link{
        font-size:5vh;
    }
    footer{
        height: fit-content;
        margin: 6vh 0 0 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    footer p{
        font-family: poppins,sans-serif;
        font-size:1.2vh;
        font-weight: 900;
        color:#1A202C;
    }
}