*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body::-webkit-scrollbar {
    display: none;
  }

body{
    width: 100%;
    display: block;
    margin: auto;
    min-height: 100vh;
    background: #191919;
    font-family: sans-serif;
}

.navbar{
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9;
    background: #1a1a1a;
}

.link-group{
    list-style: none;
    display: flex;
}

.link a{
    color: #fff;
    opacity: 0.5;
    text-decoration: none;
    text-transform: capitalize;
    padding: 1vw 2vw;
    margin: 1vw 1vw;
    line-height: 10vh;
    transition: .5s;
    font-size: clamp(10px, calc(1vw + 2vh), 10vw);
}

.link a:hover, .link.active a{
    opacity: 1;
}

/* home-section */

.home-section{
    width: 100%;
    height: 100vh;
    padding: 0 10%;
    display: flex;
    align-items: center;
    position: fixed; /* fixed/relative */
    top: 0;
    opacity: 0;
    transition: 1s ease-out;
}

.hero-heading{
    color: #fff;
    font-size: 12vw;
    font-size: 10vh;
    text-transform: capitalize;
    font-weight: 300;
    z-index: 1;
}

.home-img{
    position: absolute;
    top: 0;
    right: 0;
    height: 100vh;
    width: 50%;
    object-fit: cover;
    opacity: 0.5;
    z-index: 0;
}

/* activation logic*/  
.home-section.active{
    display: flex;
    position: relative;
    opacity: 1;
    z-index: 8;
    transition: .5s;
}
.project-section.active{
    scale: 1;
    height: 100vh;
    position: relative;
    opacity: 1;
    z-index: 8;
    transition: .5s;
}
.about-section.active{
    height: 100%;
    position: relative;
    opacity: 1;
    z-index: 8;
    transition: .5s;
}
.contact-section.active{
    display: flex;
    position: relative;
    opacity: 1;
    z-index: 8;
    transition: .5s;
}

/* project-section */

.project-section{
    scale: 0;
    width: 100%;
    padding: 100px 50px 50px;
    display: block;
    position: fixed;
    top: 0;
    opacity: 0;
    transition: 1s;
}

.project-heading{
    font-size: clamp(20px, calc(2vw + 2vh), 10vw);
    background: #252525;
    text-transform: capitalize;
    text-align: center;
    margin-top: 3vh;
    margin-bottom: 2vh;
    color: #1a1a1a;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-stroke: 8px transparent;
    transition: 1s;
}

/*.projects-container::-webkit-scrollbar{
    display: none;
}*/

.project-container{
    display: flex;
    background-color:#191919;
    align-items: center;
    height: 60vh;
    width: 100%;
    overflow: auto;
    overflow-y: hidden;
    overflow-x: hidden;
    transition: transform 0.5s ease-in-out; 
    flex-wrap: nowrap;
    height: 100vh;
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory; /* Ensures snapping behavior */
    scroll-snap-align: center; /* Centers the cards when scrolling */
}



.project-card{
    margin: calc(1vw + 1vh);
    height: 400px;
    width: 400px;
    position: relative;
    flex: 0 0 400px;
    margin: 0 10px;
    overflow: hidden;
    height: 50vh;
    opacity: 0.5;
    transform: scale(0.8);
    transition: opacity 0.3s, transform 0.3s, width 0.3s;
}

.project-card.active {
    opacity: 1;
    transform: scale(1);
}
.project-img{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    transition: .5s;
}

.project-content{
    position: relative;
    color: #fff;
    transition: .5s;
    opacity: 0;
}

.project-title{
    font-size: clamp(30px, calc(1vw + 2vh), 10vw);
    text-transform: capitalize;
    text-align: center;
    font-weight: 300;
}

.project-info{
    font-size: clamp(1px, calc(1vw + 2vh), 1vw);
    line-height: 3vh;
    text-align: center;
}

.project-btn-grp{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 20px;
}

.project-btn{
    height: 40px;
    text-transform: capitalize;
    font-size: 18px;
    border: none;
    background: #000;
    color: #fff;
    cursor: pointer;
}

.project-btn.live{
    background: none;
    border: 2px solid #fff;
}

.controls {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.controls button {
    margin: 0 10px;
    height: 40px;
    text-transform: capitalize;
    font-size: 18px;
    border: 2px solid #fff;
    background: none;
    color: #fff;
    cursor: pointer;
}

/* project hover */
.project-card:hover .project-img{
    filter: blur(20px);
    transform: scale(1.1);
}

.project-card:hover .project-content{
    opacity: 1;
    transform: translateY(0); /* Added */
}

/* about-section */

.about-section{
    width: 100%;
    height: 0%;
    min-height: 100vh;
    padding: 150px 100px 0;
    position: fixed;
    top: 0;
    opacity: 0;
    transition: 1s ease-out;
}

.about{
    width: 100%;
    display: grid;
    grid-template-columns: 30% 65%;
    grid-gap: 40px;
}

.about-img-container{
    position: relative;
}

.about-info{
    color: #fff;
    opacity: 0.6;
    font-size: 20px;
    line-height: 40px;
}

.about-img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.download-cv-btn{
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    color: #fff;
    border: none;
    font-size: 16px;
    text-transform: capitalize;
    cursor: pointer;
    transition: .5s;
    background: rgba(0, 0, 0, 0.5);
}

.download-cv-btn:hover{
    background: #000;
}

/* skills */

.skill-section{
    position: relative;
    margin: 100px 0;
}

.heading{
    text-align: center;
    font-size: 60px;
    color: #fff;
    text-transform: capitalize;
    font-weight: 300;
    margin-bottom: 100px;
}

.skills-container{
    width: 95%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 100px;
    color: #fff;
}

.skill-card{
    position: relative;
}

.skill-img{
    display: block;
    margin: auto;
    height: 200px;
}

.skill-name{
    font-size: 30px;
    font-weight: 300;
    text-align: center;
    text-transform: capitalize;
    margin: 30px 0 20px;
}

.skill-info{
    text-align: center;
    opacity: 0.5;
    font-size: 18px;
    line-height: 30px;
}

.skill-level{
    position: absolute;
    top: 80px;
    right: 0;
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    border-radius: 50%;
    border: 10px solid;
}

.skill-card:nth-child(1) .skill-level{
    background: #ff4f4f28;
    border-color: #ff4f4f;
    color: #ff4f4f;
}

.skill-card:nth-child(2) .skill-level{
    background: #4fa0ff28;
    border-color: #4fa0ff;
    color: #4fa0ff;
}

.skill-card:nth-child(3) .skill-level{
    background: #ffed4f28;
    border-color: #ffed4f;
    color: #ffed4f;
}

.skill-card:nth-child(4) .skill-level{
    background: #52ff4f28;
    border-color: #52ff4f;
    color: #52ff4f;
}

.skill-card:nth-child(5) .skill-level{
    background: #4fdfff28;
    border-color: #4fdfff;
    color: #4fdfff;
}

/* timeline */

.timeline{
    display: block;
    width: 80%;
    margin: 150px auto;
}

.timeline .heading{
    margin-bottom: 150px;
}

.card{
    width: 45%;
    padding: 30px;
    border-radius: 10px;
    color: #fff;
    display: block;
    margin: -80px 0;
    position: relative;
    background: #f00;
}

.card:nth-child(even){
    margin-left: auto;
}

.card:nth-child(even):before{
    content: '';
    position: absolute;
    left: -15%;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 5px solid #191919;
    border-radius: 50%;
}

.card:nth-child(even):after{
    content: '';
    position: absolute;
    left: -8.5%;
    top: 50%;
    transform: translateY(-50%);
    width: 7%;
    height: 2px;
    background: #fff;
    z-index: -1;
}

.card:nth-child(odd):before{
    content: '';
    position: absolute;
    right: -13%;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 5px solid #191919;
    border-radius: 50%;
}

.card:nth-child(odd):after{
    content: '';
    position: absolute;
    right: -8.5%;
    top: 50%;
    transform: translateY(-50%);
    width: 7%;
    height: 2px;
    background: #fff;
    z-index: -1;
}

.card:nth-child(2), .card:nth-child(2):before{
    background: #ff4f4f;
}
.card:nth-child(3), .card:nth-child(3):before{
    background: #ffb84f;
}
.card:nth-child(4), .card:nth-child(4):before{
    background: #3dca5c;
}
.card:nth-child(5), .card:nth-child(5):before{
    background: #565252;
}
.card:nth-child(6), .card:nth-child(6):before{
    background: #4fa0ff;
}

.card:nth-child(even) .card-body:before{
    content: '';
    position: absolute;
    left: -12%;
    top: 0;
    width: 0px;
    height: 100%;
    border: 1px dashed #fff;
    z-index: -1;
}

.card-title{
    font-size: 30px;
    font-weight: 300;
    margin-bottom: 20px;
}

/* contact-section */

.contact-section{
    position: absolute;
    top: 100px;
    opacity: 0;
    transition: 1s;
    padding: 100px 150px;
    height: 50%;
    display: none;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 50px;
}

.contact-form input, .contact-form textarea{
    width: 100%;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid #fff;
    margin-bottom: 30px;
    border-radius: 5px;
    text-transform: capitalize;
    color: #fff;
    padding: 5px 10px;
}

::placeholder{
    color: #fff;
}

#msg{
    height: 280px;
    resize: none;
    font-family: sans-serif;
}

.form-submit-btn{
    background: #ff4f4f;
    color: #fff;
    text-transform: capitalize;
    padding: 15px 40px;
    display: block;
    margin: auto;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.map{
    width: 50%;
    height: 50%;
    padding: 10px;
    border: 2px solid #fff;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.map iframe{
    width: 100%;
    height: 100%;
    border-radius: 5px;
}