.intro {
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #03033645;
    transition: 1s;
}

.logo1 {
    margin-left: 5px;
    color: purple;
    font-weight: 400;
}

.logo-header {
    display: flex;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-family: 'poppins', sans-serif;
    font-weight: 400;
    font-size: 30px;
}

.logo {
    position: relative;
    display: inline-block;
    bottom: -20px;
    opacity: 0;
}

.logo.active {
    bottom: 0;
    opacity: 1;
    transition: ease-in-out 0.5s;
}

.logo.fade {
    transition-delay: 5s;
    bottom: 15px;
    opacity: 0;
    transition: ease-in-out 0.5s;
}

.hidden {
    display: none;
    /* Hide the main content initially */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: rgb(0, 0, 33);
    color: white;
    font-family: 'poppins', sans-serif;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

/*html {
    scroll-behavior: smooth;
}*/

/* ====================== NAV BAR ====================== */

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 6dvh;
    background: transparent;
    transition: background 0.4s ease-in-out, padding 0.4s ease-in-out;
}

nav.scrolled {
    backdrop-filter: blur(13px);
    background-color: #03033645;
}

/*===== LEFT SECTION =====*/

.left {
    font-size: clamp(1.4rem, 3vw, 1.5rem);
    display: flex;
}

.hover-logo {
    font-size: clamp(1.4rem, 3vw, 1.5rem);
    margin: 0 auto;
    border: none;
    background: none;
    color: white;
    font-style: normal;
    text-decoration: none;
    display: inline-block;
    position: relative;
    cursor: pointer;
}

.hover-logo>span {
    overflow: hidden;
    display: block;
    position: relative;
    pointer-events: none;
}

.hover-logo>span>span {
    display: inline-block;
}

.hover-logo>span>span:nth-of-type(1) {
    transition: 0.4s ease all;
}

.hover-logo>span>span:nth-of-type(2) {
    transition: 0.4s ease all;
    transition-delay: 0.07s;
}

.hover-logo>span>span>span {
    content: attr(data-text);
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(200%);
}

.hover-logo:hover>span>span,
.hover-logo:focus>span>span {
    transform: translateY(-200%);
}

/*===== RIGHT SECTION =====*/

nav ul {
    display: flex;
    align-items: center;
}

nav ul li {
    display: block;
}

nav ul li a {
    list-style: none;
    margin-left: clamp(5px, 2vw, 23px);
    font-size: clamp(.5rem, 2vw, 1.3rem);
    text-decoration: none;
    color: #fff;
    position: relative;
}

.nav-header {
    display: none;
}

.nav-footer {
    display: none;
}

/*===== COOL CURSOR =====*/

.hover-this {
    transition: all 0.3s ease;
}

.hover-this span {
    display: inline-block;
    font-family: "Poppins", sans-serif;
    pointer-events: none;
    transition: transform 0.3s linear;
}

.right .cursor {
    pointer-events: none;
    position: fixed;
    padding: 0.1rem;
    background: #fff;
    border-radius: 50%;
    mix-blend-mode: difference;
    transition: transform 0.3s ease;
    /*z-index: 9999;*/
}

.right ul li:hover~.cursor {
    transform: translate(-50%, -50%) scale(8);
}
/*END*/

/*=== nav bar line===*/
nav ul li a::after {
    border-radius: 24px;
    content: " ";
    width: 0;
    height: 3px;
    background: purple;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: .5s;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

nav ul li a.active::after {
    color: purple;
    width: 100%;
}
/* END */

@media screen and (min-width: 1200px) {
    nav ul li a:hover::after {
        width: 0% !important;
    }
}

@media screen and (min-width: 601px) {
    #menubutton {
        display: none;
    }

}

@media screen and (max-width: 600px) {

    .right {
        margin-left: auto;
        width: fit-content;
        padding-right: 15px;
    }

    .left {
        padding-left: 10px;
    }

    nav ul {
        display: flex;
        width: 100%;
        height: 94dvh;
        /*background-color: #040463;*/
        background-color: #010127;
        position: absolute;
        right: -500px;
        padding: 35px 0px;
        flex-direction: column;
        transition: right 0.6s;
        margin-top: 5dvh;
        padding: 2dvh;
        align-items: unset;
        
    }

    nav ul li {
        margin-bottom: 10px;
        width: auto;
    }

    nav ul li a {
        margin-left: 0px;
        font-size: 39px;
        display: block;
        font-weight: 400;
    }
     
    .nav-header {
        display: unset;
        width: 100%;
        margin-top: 5dvh;
        height: auto;
    }

    .header-text {
        font-family: "Poppins", sans-serif;
        font-size: 10px;
        font-weight: 300;
        color: lightgray;
    }

    .header-line {
        width: 100%;
        height: 1px;
        background-color: lightgray;
        margin: 3dvh 0;
    }

    .nav-footer {
        display: unset;
        margin-top: auto;
        margin-bottom: 2dvh;
        height: auto;
        width: 100%;
    }

    .footer-line {
        height: 1px;
        background-color: lightgray;
        width: 100%;
    }

    .footer-text {
        font-family: "Poppins", sans-serif;
        font-size: 10px;
        font-weight: 300;
        color: lightgray;
        margin-top: 4dvh;
        margin-bottom: 2dvh;
    }

    .footer-social {
        width: 100%;
        height: auto;
        display: flex;
        gap: 10px;
    }

    .social-text {
        text-decoration: none;
        color: white;
        font-size: 2dvh;
    }
    nav ul li .line::after {
        content: " ";
        width: 0;
        height: 3px;
        background: purple;
        position: absolute;
        left: 0;
        transition: .5s;
        border-radius: 24px;
    }

    nav ul li a.active::after {
        color: purple;
        width: 20%;
        padding: 0px, 10px !important;
    }

    .right .cursor {
        display: none;
    }

    #menubutton {
        display: flex;
        align-content: center;
        position: relative;
        font-size: 24px;
    }

    
    nav .fa-solid {
        display: block;
        display: flex;
        display: flow;
        width: 30px;
        border-radius: 24px;
        justify-items: right;
        align-items: center;
        color: #c9c9c9;
        transition: .3s;
    }

    nav .bline {
        margin: 6px 0;
        height: 2px;
        border-radius: 24px;
        align-items: center;
        background-color: #c9c9c9;
        transition: .3s;
    }

    .fa-solid:hover .one {
        width: 30px;
    }

    .fa-solid:hover .two {
        width: 30px;
    }

    .fa-solid:hover .three {
        width: 30px;
    }

    .fa-solid .one {
        width: 30px;
    }

    .fa-solid .two {
        width: 20px;
    }

    .fa-solid .three {
        width: 25px;
    }

    nav ul {
    position: fixed;
    top: 0;
    left: 0;
    margin-top: 6dvh;
    height: 96dvh;
    z-index: 100;
    transition: clip-path 0.8s ease-in-out;
    clip-path: circle(0% at 100% 50%); /* hidden on right */
    pointer-events: none;
    opacity: 0;
    }

    nav ul.open {
    clip-path: circle(150% at 50% 50%);
    pointer-events: all;
    opacity: 1;
    }

    nav ul.close {
    clip-path: circle(0% at 0% 50%);
    pointer-events: none;
    opacity: 1;
    }

    .right ul li:hover~.cursor {
    transform: translate(-10%, -10%) scale(5);
    }

}
/* --------------------main body--------------------------*/
@media(max-width: 600px) {
    .firstsection {
        display: flex;
        flex-direction: column-reverse;
        gap: 0px;
    }

    .firstsection>Div {
        width: 80% !important;
        height: 30% !important;
    }

    .ring {
        width: 45% !important;
    }

    .leftsection {
        font-size: clamp(22px, 3vw, 28px) !important;
        align-items: center;
        display: flex;
        flex-direction: row-reverse;
        flex-wrap: nowrap;
        justify-content: center;
    }

    .left-hole {
        text-align: center;
    }

    .name {
        font-size: clamp(28px, 3vw, 33px) !important;
    }

    #element {
        font-size: clamp(28px, 3vw, 33px) !important;
    }
}

/* text animation */
.l-text {
    opacity: 0;
    transform: translateY(50px);
    /* Start position (50px to the left) */
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.l-text.animate {
    opacity: 1;
    transform: translateY(0);
}

.firstsection {
    transition: transform 0.5s ease-in-out;
    transform: scale(0.95);
    opacity: 0.5;
}

.firstsection.visible {
    transform: scale(1);
    opacity: 1;
}

.firstsection {
    background-color: #03033645;
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 100dvh;
    align-items: center;
    gap: clamp(80px, 5vw, 120px);
    justify-content: center;
}

.firstsection>Div {
    width: 35%;
}

.leftsection {
    /*font-size: clamp(1.2rem, 3vw, 2rem);*/
    font-size: 4dvh;
}

.name {
    color: purple;
    /*font-size: clamp(1.3rem, 3vw, 2rem);*/
    font-size: 4dvh;
}

.typed-cursor {
    color: purple;
}

#element {
    color: purple;
    animation-delay: 5s;
    /*font-size: clamp(1.6rem, 3vw, 2.6rem);*/
    font-size: 5dvh;
    font-weight: 500;
}

/* Typing animation for "Data Analytics" */
.leftsection .btn {
    position: relative;
    display: inline-flex;
    /*font-size: clamp(.2rem, 2vw, .9rem);*/
    font-size: 1.7dvh !important;
    font-weight: 500;
    padding: clamp(.1rem, 1vw, .4rem) clamp(.1rem, 1vw, .7rem);
    border-radius: 5px;
    border-color: purple;
    border-style: double;
    color: rgb(0, 0, 33);
    background-color: purple;
    margin-top: 9px;
    z-index: 1;
    overflow: hidden;
    transition: 1s;
}

.leftsection .btn:hover {
    color: purple;
}

.leftsection .btn-a .btn {
    background: transparent;
    color: purple
}

.leftsection .btn-a .btn:hover {
    color: rgb(0, 0, 33)
}

.leftsection .btn-a .btn::before {
    background: purple;
}

.leftsection .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: rgb(0, 0, 33);
    transition: 1s;
    z-index: -1;
}

.leftsection .btn:hover::before {
    width: 100%;

}

.rightsection {
    display: flex;
    /*height: 50%;*/
    align-items: center;
    justify-content: center;
}

.ringOne img {
    width: 100%;
}

.ring {
    margin: 0%;
    padding: 0%;
    transform: translate(-50%, -50%);
    position: absolute;
    z-index: 2;
    width: 25%;
}

.ringOne img {
    animation: rotateFirstRing 2s linear infinite;
}

.ringTwo img {
    animation: rotateFirstRing 8s linear infinite;
}

@keyframes rotateFirstRing {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ====================== ABOUT SECTION  ====================== */

.about-section {
    transition: transform 0.5s ease-in-out;
    /* Smooth transition */
    transform: scale(0.95);
    /* Start with a smaller size */
    opacity: 0.5;
    /* Faded initially */
}

.about-section.visible {
    transform: scale(1);
    /* Zoom in */
    opacity: 1;
    /* Fully visible */
}

@media (max-width: 600px) {
    .about-container {
        display: flow !important;
    }

    .about-img {
        display: flex;
        justify-content: center;
    }

    .about-text {
        padding-top: 20px;
        padding-left: 20px;
    }

    .about-text .about-name {
        display: flex;
        justify-content: center;
    }

    .about-text p {
        display: flex;
        justify-content: center;
        font-size: clamp(14px, 1vw, 20px);
    }

    .about-text .italic {
        font-size: 9px !important;
    }

    .about-container {
        padding-top: 120px !important;
        padding-bottom: 50px !important;
    }

    .data-analytics {
        display: flow !important;
    }

    .data-analytics-info {
        padding-top: 20px;
    }

    .business {
        display: flow !important;
    }

    .busi-head {
        margin-left: auto;
        padding-top: 20px !important;
        width: fit-content;
    }
}

.about-section {
    display: flex;
    /*background-color: #030336b0;*/
    background-color: #03033645;
    height: auto;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.about-intro {
    height: 100dvh;
}
.about-container {
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 50px);
    max-width: 900px;
    height: 65dvh;
}

.about-img img {
    width: 190px;
    border-radius: 50%;
    position: relative;
    border: .25rem solid rgb(2, 2, 43);
    
}

.about-text h2 {
    font-size: clamp(1.7rem, 2.5vw, 2rem);
    font-weight: 400;
}

.about-text {
    max-width: 500px;
}

.about-text p {
    font-weight: 300;
}

.about-text .italic {
    font-weight: 250;
    font-style: italic;
    font-size: 12px;
}

.btn {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

.about-container .show-button {
    background-color: #eff3f100;
    color: #040497;
    border-color: #fdfdfd00;
    font-size: clamp(11px, 2vw, 14px);
}

.about-more {
    display: none;
    font-size: clamp(11px, 2vw, 13px);
    margin: 0 5vw;
}

.scrolling-name {
    display: flex;
    width: 100%;
    height: 35dvh;
    overflow: hidden;
    white-space: nowrap;
}

.scroll-name {
    color: #a5a5a5;
    font-weight: 300;
    width: 100%;
    height: auto;
    font-size: 100px;
    letter-spacing: 5px;
    display: inline-block;
    flex: 0 0 auto;
    animation: scroll-right 10s linear infinite;
}

/*========== About More ==========*/

.about-more {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.about-more.animate {
    opacity: 1;
    transform: translateX(0);
}

.data-analytics {
    display: flex;
    height: auto;
    align-items: center;
    padding-bottom: 50px;
}

.data-analytics-text {
    display: flex;
    font-size: 35px;
    font-family: "Quicksand", sans-serif;
    font-weight: 400;
    font-style: normal;
    align-items: center;
}

.about-more .ver {
    position: relative;
    border-radius: 5%;
    width: 2px;
    height: 60px;
    background-color: #979090;
}

.data-analytics-info {
    display: flex;
    padding-left: clamp(50px, 8vw, 130px);
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-weight: 400;
    font-size: 15px;
    align-items: center;
    color: #c8c8c8;
}

.business {
    margin-top: 30px;
    display: flex;
    align-items: center;
}

.business-info {
    display: flex;
    padding-right: clamp(50px, 8vw, 130px);
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 15px;
    align-items: center;
    color: #c8c8c8;
}

.business-text {
    display: flex;
    font-size: 35px;
    font-family: "Quicksand", sans-serif;
    font-weight: 400;
    font-style: normal;
    align-items: center;
}

.about-more .exp {
    margin-top: 100px;
    padding-bottom: 100px;
}

.explore-hori {
    border-radius: 5px;
    height: 2px;
    background: #979090;
    width: auto;
    margin-right: 20%;
    margin-left: 1%;
}

.explore {
    padding-top: 50px;
    font-size: 50px;
    font-family: "Quicksand", sans-serif;
    font-optical-sizing: auto;
}

/* ====================== EXPERIENCE SECTION  ====================== */

/* ===== animation ===== */
.secondsection {
    transition: transform 0.5s ease-in-out;
    transform: scale(0.95);
    opacity: 0.5;
}

.secondsection.visible {
    transform: scale(1); 
    opacity: 1;
}

.vertical-title {
    opacity: 0;
    transform: translateY(50px);
    /* Start position (50px to the left) */
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.vertical-title.animate {
    opacity: 1;
    transform: translateY(0);
}

.vertical-desc {
    opacity: 0;
    transform: translateY(50px);
    /* Start position (50px to the left) */
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.vertical-desc.animate {
    opacity: 1;
    transform: translateY(0);
}
/* Hide horizontal scrollbar but allow scrolling */
.about-course {
    scrollbar-width: none;     
    -ms-overflow-style: none;   
}
.about-course::-webkit-scrollbar {
    display: none;           
}

/*==========*/
.secondsection {
    padding-top: 10dvh;
    height: 100dvh;
    background-color: #03033645;
    padding-bottom: 10dvh;
}

.course-exp {
    height: 40dvh;
    width: 100%;
}

.secondsection .h1 {
    margin-top: 0px;
    font-size: clamp(25px, 4vw, 50px);
    font-weight: 400;
    text-align: center;
    padding-bottom: 5dvh;
}


.secondsection .box {
    display: flex;
    justify-content: center;
    margin-top: 2dvh;
    gap: clamp(80px, 22vw, 250px);
}

.secondsection .vertical {
    height: 17dvh;
    width: 2px;
    background-color: #04044f99;
    position: relative;
    transition: height 1s ease-in-out;
    transform-origin: 1s;
}

.vertical-title {
    position: relative;
    font-size: clamp(10px, 2vw, 16px);
    top: 19dvh;
    color: white;
    text-align: center;
    justify-content: center;
    display: flex;
}

.vertical-title:hover {
    transform: translateY(-5px);
    transition: .2s;
}

.vertical-desc {
    position: relative;
    font-size: clamp(9px, 1.1vw, 13px);
    top: 20dvh;
    color: #d9d9d9;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vertical-desc .with {
    padding-right: 5px;
    color: purple;
    font-size: clamp(8px, 1vw, 11px);
}

.courseinfo {
    padding: 0 clamp(5px, 1vw, 50px);
    width: 100%;
    height: auto;
}

.about-course {
    height: auto;
    width: auto;
    display: flex;
    gap: 21px;
}

.aboutcourseinfo {
    display: flex;
    background-color: #00002d;
    height: auto;
    width: 300px;
    padding: 15px;
    border-radius: 10px;
    flex-direction: column;
}
.aboutcourseinfo h3 {
    color: #d9d9d9;
    font-weight: 400;
    font-size: 15px;
    padding-bottom: 10px;
}
.aboutcourseinfo .info-ca {
    justify-content: space-between;
}
.aboutcourseinfo p {
    color: #d9d9d9;
    font-weight: 300;
    font-size: 13px;
}

.fa-certificate {
    color: #040463;
    margin-top: 10px;
    font-size: 24px;
}

.fa-certificate:hover {
    scale: 1.1;
}

@media (max-height: 700px) {
    .aboutcourseinfo {
        height: 25dvh;
        width: 450px;
    }
}
@media (max-width: 600px) {

    .aboutcourseinfo {
        padding: 15px !important;
        height: auto !important;
    }

    .about-course {
        padding: 0 !important;
        gap: 10px;
        grid-template-columns: repeat(auto-fit, 175px) !important;
    }

    .fa-certificate {
        bottom: 0px !important;
        right: 0px !important;
        font-size: 20px !important;
    }

    .aboutcourseinfo p {
        font-size: 13px !important;
    }
}

/* horizontally scrollable  */
@media (max-width: 1300px) {
  .about-course {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    transform: none !important; 
  }
  .aboutcourseinfo {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
}

/* ====================== SKILL SECTION  ====================== */

@media (max-width: 768px) {
    .skills {
        padding-left: 0px;
    }

    .skills .box {
        height: auto;
        border-left: 4px solid #04044f99;
        left: 0px !important;
        top: 20px !important;
    }

    .skills .type {
        margin-right: clamp(5px, 2vw, 10px);
        font-size: clamp(9px, 2vw, 15px) !important;
    }

    .skills .skill-type {
        font-size: clamp(7px, 2vw, 9px) !important;
    }

}

@media (max-width: 1100px) {
    .tag {
        height: clamp(140px, 30vw, 400px) !important;
    }
}
@media(max-width: 600px){
    .tag-shape {
        height: 10dvh !important;
    }
}
/* animation zoom in */
.skills {
    transition: transform 0.5s ease-in-out;
    transform: scale(0.96);
    opacity: 0.3;
    padding-top: 10dvh;
    padding-bottom: 10dvh !important;
}

.skills.visible {
    transform: scale(1);
    opacity: 1;
}

.skills {
    background-color: #03033645;
    padding-bottom: 60px;
}

.tag-shape {
    height: 15dvh;
}

.tag {
    padding-left: 15px;
    height: 350px;
    background-color: #00002d;
    clip-path: polygon(0% 85%, 0% 0%, 100% 0%, 100% 100%);
}

.tag-box {
    font-family: 'poppins', sans-serif;
    font-weight: 400;
    font-size: clamp(25px, 4vw, 50px);
    font-optical-sizing: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    
}

.skills .box {
    display: flex;
    justify-content: center;
    margin: 0 10vw;
    border: hidden;
}

.skills h3 {
    font-size: clamp(12px, 3vw, 18px);
    font-weight: 200;
    padding-top: 22px;
    padding-bottom: 10px;
}

.skills .add-skills {
    display: flex;
    padding-bottom: clamp(10px, 2vw, 15px);
    margin-left: 35px;
    padding-top: 10px;
}

.skills .type {
    font-family: "Poppins", sans-serif;
    font-style: normal;
    display: flow;
    font-size: clamp(11px, 2vw, 15px);
    margin-right: clamp(10px, 4vw, 60px);
    color: white;
    font-weight: 300;
}

.skills .skill-type {
    display: flow;
    font-size: clamp(8px, 2vw, 12px);
    color: purple;
    font-family: "Belleza", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* text animation */
.skills .add-skills {
    opacity: 0;
    transform: translateX(25px);
    /* Start position (50px to the left) */
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.skills .add-skills.animate {
    opacity: 1;
    transform: translateX(0);
}

.skills .type:hover {
    scale: 1.1;
    transition: .3s ease-in-out;
}

/* shape animation */
.skills .tag {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    will-change: opacity, transform;
    overflow: hidden;
}

.skills .tag.show {
    opacity: 1;
    transform: translateY(0);
    overflow: hidden;
}

/* =========================================== PROJECTS ==========================================*/

/* ========== ANIMATION */

/* zoomin & zoomout animation ---------------*/
.projects {
    transition: transform 0.5s ease-in-out;
    transform: scale(0.97);
    opacity: 0.5;
}

.projects.visible {
    transform: scale(1);
    opacity: 1;
}

/* text animation ---------------*/
.project {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.5s ease-in-out, transform 1s ease-out;
}

.project.animate {
    opacity: 1;
    transform: translateY(0);
}

/* info shape animation ---------------*/
.info-box {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.5s ease-in-out, transform 1s ease-out;
}

.info-box.animate {
    opacity: 1;
    transform: translateY(0);
}

.info-box img {
    width: 100%;
    height: auto;
    max-height: 235px;
    object-fit: cover;
    border-radius: 2px;
    transition: opacity .2s ease-in-out;
}

.info-box img:nth-child(2) {
    object-position: top;
    /* Show the top of the image */
}

/* Hide image smoothly */
.img-hide {
    display: none;
    transition: opacity .1s ease-in-out;
}

.img-show {
    opacity: 1;
    transition: opacity .1s ease-in-out;
}

/* Fade effect for image change */
.fade {
    opacity: 0;
    transition: opacity .5s ease-in-out;
}

/* Hide by default */
.info-text {
    font-size: 14px;
    margin-top: 10px;
    display: none;
    padding-left: 15px;
    font-size: 14px;
    margin-top: 10px;
    opacity: 0;
}

/* Show and hide text with animation */
.fade-in {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInAnimation 0.1s forwards;
}

.fade-out {
    opacity: 1;
    transform: translateY(0px);
    animation: fadeOutAnimation 0.1s forwards;
}

/* Animations */
@keyframes fadeInAnimation {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutAnimation {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* ==================== FORMAT ================== */

@media (max-width: 600px) {

    .projects .vert {
        height: auto !important;
    }

    .projects .hori {
        margin-bottom: 5dvh;
    }
    .projects .text {
        font-size: 2dvh;
        display: flex;
        justify-content: center;
    }
    .projects .catego {
        display: flow !important;
        padding: 30px 0px !important;
    }

    .projects .project {
        justify-content: center;
    }

    .projects ul {
        margin-left: 0px !important;
        width: clamp(128px, 70vw, 400px) !important;
    }
    .projects ul li {
        list-style: none;
        margin: 15px 0px;
        justify-content: center;
        display: flex;
    }
    .skills .skill-type {
        font-size: clamp(7px, 2vw, 9px);
    }
    .projects .info {
        height: auto;
        display: flex;
        justify-content: center;
    }
    .projects .info-box {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: relative;
        align-items: unset !important;
        padding: 10px;
    }

    /*========*/
    /* Add to your existing styles */
    .projects .hori {
        display: flex;
        flex-direction: column;
        min-height: auto !important;
        /* Remove fixed heights */
        height: auto !important;
    }

    .projects .catego {
        flex: 1;
        /* Make category fill available space */
        display: flex;
        flex-direction: column;
    }

    .projects .info-image {
        object-fit: contain;
        /* Keep images properly scaled */
        max-height: 300px;
        /* Set maximum height for images */
        width: auto;
        margin-top: auto;
        /* Push image to bottom */
    }

}

@media (max-width: 1200px) {
    .projects {
        padding-left: clamp(50px, 5vw, 100px);
    }

    .info-box {
        margin-left: 0px !important;

    }

    .projects .info-box:hover {
        transform: translatex(0px) !important;
    }
}

.projects {
    margin: auto;
    background-color: #03033645;
    padding: 0 3vw;
    padding-top: 10dvh;
    padding-bottom: 5dvh;
    overflow: hidden;
    overflow-y: hidden;
}

.projects h1 {
    display: flex;
    margin-top: 0px;
    font-size: clamp(28px, 4vw, 50px);
    font-weight: 400;
    font-optical-sizing: auto;
    padding-bottom: 5dvh;
    justify-content: center;
}

.projects .vert {
    display: flow;
    height: auto;
    margin: 0px 0px;
    padding-top: 50px;
}
.projects .hori {
    display: flex;
    justify-content: center;
}
.projects .sub-hori {
    display: flow;
}
.projects .catego {
    display: flex;
    padding: 30px 0px;
    gap: clamp(50px, 8vw, 400px);
}

.project {
    display: flex;
    align-items: center;
}

.projects .info-box {
    position: relative;
    width: clamp(300px, 42vw, 427px) !important;
    /*background-color: #02022d;*/
    color: #ffffff;
    border-radius: 5px;
    align-items: center;
    display: flex;
}

.projects .text {
    left: clamp(140px, 15vw, 170px);
    color: purple;
}

.projects .text:hover {
    transform: translateX(7px);
    transition: .5s;
}

.projects .p-bullet {
    height: 10px;
    width: 10px;
}

.projects ul {
    margin-left: 30px;
    width: clamp(128px, 40vw, 400px);
}

.projects ul li {
    list-style: none;
    margin: 15px 0px;
}

.projects ul li a {
    text-decoration: none;
    color: white;
    font-size: clamp(.9rem, 2vw, 1rem) !important;
    font-weight: 300;
}

/*new*/
.hover-link {
    margin: 0 auto;
    border: none;
    background: none;
    color: white;
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: normal;
    padding: 0 0 0.5rem;
    font-size: clamp(.9rem, 2vw, 1rem) !important;
    text-decoration: none;
    display: inline-block;
    position: relative;
    cursor: pointer;
}

.hover-link:hover {
    color: purple;
    font-weight: 300;
}

.hover-link>span {
    overflow: hidden;
    display: block;
    position: relative;
    pointer-events: none;
}

.hover-link>span>span {
    display: inline-block;
}

.hover-link>span>span:nth-of-type(1) {
    transition: 0.4s ease all;
}

.hover-link>span>span:nth-of-type(2) {
    transition: 0.4s ease all;
    transition-delay: 0.07s;
}

.hover-link>span>span>span {
    content: attr(data-text);
    /*display: block;*/
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(200%);
}

.hover-link:hover>span>span,
.hover-link:focus>span>span {
    transform: translateY(-200%);
}

/*end*/
.info-title {
    color: lightgray;
    font-size: clamp(12px, 2vw, 16px);
    font-weight: 400;
}

.info-description {
    font-size: clamp(10px, 2vw, 14px);
    color: lightgray;
    font-style: italic;
}

.info-skills {
    padding-top: 8px;
    font-size: clamp(11px, 2vw, 15px);
    color: lightgray;
    font-weight: 400;
}

.info-list {
    font-size: clamp(10px, 2vw, 14px);
    color: lightgray;
    margin-bottom: 8px;
}

.info-note {
    margin-top: 15px;
    color: purple;
    font-size: clamp(8px, 2vw, 13px);
    padding-bottom: 20px;
}

/*======*/
.info-box {
    position: relative;
    overflow: hidden;
    /* Prevent content from overflowing */
}

.info-text {
    display: none;
    /* Initially hidden */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #010136;
    padding: 1rem;
    box-sizing: border-box;
    border-radius: 5px;
}

.info-image {
    width: 100%;
    height: auto;
    display: block;
    /* Ensure the image is treated as a block element */
}

/* =========================================== CONTACT-ME ==========================================*/
@media (max-width: 600px) {
    .contactme {
        display: flow !important;
    }

    .contact-left {
        flex-direction: row !important;
        width: 100% !important;
        height: 29% !important;
    }

    .C-left {
        flex-direction: row !important;
        gap: 20px !important;
    }

    .contact-mid {
        height: 1px;
        width: 100% !important;
        margin: 0 0px !important;
    }

    .contact-right {
        padding-left: 0px !important;
        height: 70% !important;
        width: 100% !important;
    }

    .contact-right h1 {
        font-size: 70px !important;
    }

    .C-left .text {
        font-size: 10px !important;
    }
}

.contact-me {
    transition: transform 0.5s ease-in-out;
    /* Smooth transition */
    transform: scale(0.95);
    /* Start with a smaller size */
    opacity: 0.5;
    /* Faded initially */
}

.contact-me.visible {
    transform: scale(1);
    /* Zoom in */
    opacity: 1;
    /* Fully visible */
}

.contact-me {
    height: 101dvh;
    width: 100%;
}

.contact-me .info {
    visibility: hidden;
    overflow: hidden;
    white-space: nowrap;
    animation: slideIn 1s forwards;
}

.contact-me .info.hide {
    animation: slideOut 1s forwards;
}

@keyframes slideIn {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 100%;
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        width: 100%;
        opacity: 1;
    }

    to {
        width: 0;
        opacity: 0;
    }
}

@media (max-width: 600px) {
    .contact-me .info {
        visibility: hidden;
    }
}

.contactme {
    display: flex;
    /*background: #030336;*/
    background-color: #03033645;
    height: 100dvh;
    position: relative;
    z-index: 1;
    padding: 20px;
}

.contact-left {
    display: flex;
    height: 100%;
    width: 29%;
    justify-content: center;
    align-items: center;
}

.C-left {
    display: flex;
    gap: 15dvh;
    flex-direction: column;
}

.C-left .col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.C-left .fa-solid {
    color: #850085;
    font-size: 35px;
    padding-bottom: 5px;
}

.C-left .fa-solid:hover {
    scale: 1.1;
}

.C-left .title {
    color: rgb(221, 221, 221);
    font-size: 18px;
    font-weight: 300;
}

.C-left .text {
    font-size: 12px;
    color: lightgray;
    font-weight: 300;
    text-align: center;
}

.contact-mid {
    background: #04044f99;
    width: 2px;
    margin: 10dvh 0px;
}

.contact-right {
    padding-left: 50px;
    display: flex;
    height: 100%;
    width: 70%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.contact-right h1 {
    font-size: 10dvh;
    font-weight: 400;
    text-align: right;
}

.social-icon {
    width: 100%;
}

.s-icon {
    display: flex;
    align-items: center;
    justify-content: right;
    gap: 10px;
}

.s-icon .fa-brands:hover {
    scale: 1.1;
}

.s-icon .fa-brands {
    font-size: 30px;
    color: purple;
}
