*{
    font-family: "Poppins", sans-serif;
    margin:0;
    padding:0;
    text-decoration:none;
    box-sizing: border-box;
}
body{
    background-color:#000;
    overflow: hidden;
}
.navbar{
    display: flex;
    justify-content: space-between;
    background-color:#000;
    width:100%;
    z-index:1000;
    padding:1rem;
    position: absolute;
}
.navbar .sidehead{
    color:#fff;
    font-size: 1.5rem;
    font-weight: 500;
}
.navbar .navoptions{
    display: flex;
    justify-content: space-between;
    margin-top:0.4rem;
}
.navoptions li{
    list-style: none;
}
.navoptions li a{
    margin-right: 1.5rem;
    color: #fff;
    transition: 0.5s;
}
.navbar .navoptions li a:hover,
.navbar .navoptions .active{
    color:gold;
}
.container {
    width: 100vw;
    height: 100vh;
    perspective: 1500px;
    perspective-origin: center;
    position: relative;
    overflow: hidden;
}
.box {
    width: 100%;
    height: 100%;
    position:relative;
    transform-style: preserve-3d;
    transform-origin: center center;
    transform: rotateY(0deg);
    transition: transform 1s ease;
}
.section {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #000;
    backface-visibility: hidden;
    overflow: auto;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
/*home section styling*/
.home{
    color: #fff;
    display:flex;
    align-items: center;
    margin:0 0 0 5rem;
    transform: rotateY(0deg);
    height:100%;
    width:100%;
}
.home-content{
    max-width: 80%; 
    padding-right:2rem;
    flex:1;
    overflow: hidden;
}
.home-content h1{
    font-size: 3rem;
    font-weight: 550;
    color: gold;
    margin:2rem 0;
    text-shadow: .15rem .12rem .09rem #ff6b6b;
}
.home-content span{
    display: inline-block;
    color:#ff6b6b;
    font-weight:800;
    font-size:1.1rem;
    font-style: italic;
    animation: displaytext 4s ease infinite;
    animation-delay: calc(-2s*var(--i));
}
@keyframes displaytext {
    25%,100%{
        display: none;
    }
}
.home .home-content p{
    margin:1.5rem 0 2rem 0;
    line-height:1.5rem;
}
 .socialmedia{
    display: flex;
    align-items: center;
    gap:1rem;
    margin-top:1rem;
 }
.socialmedia a {
    color: gold;
    display: flex;       
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: 0.5s;
    border: 2px solid gold;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
    overflow: hidden;
}
.socialmedia a:hover{
    background-color: gold;
    color: #000;
}
.home-img{
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    max-width: 35%;
} 
.home-img img {
    width: 15rem;
    border-radius: 50%;
    max-width: 100%;
    border: .2rem solid gold;
    padding:.2rem;
}
.image-border{
    position: relative;
    width: 15rem;
    height:15rem;
    border-radius: 50%;
}
.img{
    width: 100%; /* Adjust size as needed */
    height: 100%; /* Adjust size as needed */
    border-radius: 50%;
    position: relative;
    z-index: 1;
}
/*advanced border styling*/
/* .home-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 5px solid transparent;
    background: linear-gradient(#000, #000) padding-box, 
                linear-gradient(45deg, #ff6b6b, gold) border-box; /* Change colors as needed */
    /*animation: border-animation 2.5s infinite;
    z-index: -1; /* Place behind the image */
/*}
@keyframes border-animation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
} */
/*About section styling*/
.about,.skills,.projects,.contact{
    position: absolute;
    transform:rotateY(90deg) ;
    color:#fff;
    width: 100%;
    height: 100%;
    padding: 10%;
    z-index: 300;
    overflow: hidden;
}
.about-content,.skills-content,.projects-content,.contact-content{
    text-align: center;
    width:100%;
}
.title{
    font-size: 2rem;
    margin-bottom: 2rem;
    color:gold;
}
.about-content p,.skills-content p,.projects-content p,.contact-content p{
    font-size:1rem;
    line-height:1.5rem;
    color:#fff;
}
/*skills section styling*/
.skills{
    transform:rotateX(180deg);
}
.grid-layout{
    display:grid;
    grid-template-rows: repeat(2,1fr);
    grid-template-columns: repeat(4,1fr);
    row-gap: 2rem;
}
.skill-item i{
    font-size: 3.5rem;
}
.skill-item i,.skill-item p{
    display: flex;
    justify-content: center;
    align-self:center;
}
.skill-item{
    margin:1rem;
    border-radius: 1rem;
    justify-self: center;
    cursor: pointer;
}
/*projects section styling*/
.projects{
    transform:rotateY(270deg);
}
.card-layout{
    display: flex;
    justify-content: center;
}
.project-item{
    background-color: #414040;
    margin: 1rem;
    padding:0.5rem;
    height:16rem;
    width:20rem;
    border-radius:1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.project-item h3{
    font-size: 2rem;
    margin: 1rem 0 2rem 0;
}
.project-item a i{
    color:#000;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
}

/*contact section styling*/
.contact{
    transform:rotateX(90deg);
}
.contact-options{
    display:flex;
    flex-direction: column;
}
.coption{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top:2rem;
    font-size: 1.2rem;
}
.coption i{
    margin-right: 0.3rem;
}
.coption p{
    font-weight: 500;
    font-style: italic;
}
/* Tablet and Mobile Screens */
@media (max-width: 768px) {
    
    /* NAVBAR */
    .navbar {
        flex-direction: column;
        align-items: center;
        position: relative;
    }
    .navbar .sidehead {
        margin-bottom: 1rem;
    }
    .navbar .navoptions {
        flex-direction: column;
        align-items: center;
    }
    .navoptions li a {
        margin: 0.5rem 0;
    }
    /* CONTAINER & BOX */
    .container {
        width: 100vw;
        height: 100vh;
    }
    /* HOME SECTION */
    .home {
        flex-direction: column;
        margin: 2rem 0;
        padding: 2rem 1rem;
        text-align: center;
    }
    .home-content {
        height: 100vh;
        max-width: 100%;
        padding: 0;
    }
    .home-content h1 {
        font-size: 2rem;
    }
    .home-content span {
        font-size: 1rem;
    }
    .home-content p {
        font-size: 0.9rem;
    }
    .socialmedia {
        display: flex;
        justify-content: center;
        margin-top: 1rem;
    }
    .socialmedia a {
        padding: 0.3rem;
        font-size: 1.2rem;
        margin: 0.3rem;
        width: 2.5rem;
        height: 2.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    /* IMAGE */
    .home-img {
        margin-top: 1rem;
    }
    .home-img img {
        width: 15rem;
        height: 15rem;
        object-fit: cover;
    }
    /* ABOUT SECTION */
    .about {
        padding: 2rem 1rem;
        text-align: center;
    }
    .about-content {
        max-width: 100%;
        height: 80vh;
    }
    .about-content .title {
        font-size: 1.8rem;
    }
    .about-content p {
        font-size: 1rem;
    }
    /* SKILLS SECTION */
    .skills {
        padding: 2rem 1rem;
        text-align: center;
    }
    .skills-content {
        max-width: 100%;
        height:80vh;
    }
    /* PROJECTS SECTION */
    .projects {
        padding: 2rem 1rem;
        text-align: center;
        /* overflow: hidden; */
    }
    .projects-content {
        max-width: 100%;
        height:80vh;
    }
    .card-layout{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    /* CONTACT SECTION */
    .contact {
        padding: 2rem 1rem;
        text-align: center;
    }
    .contact-content {
        max-width: 100%;
        height: 90vh;
    }
}
@media (max-width: 768px) {
    .home {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem 1rem;
        height: auto; /* IMPORTANT: remove 100vh for mobile */
        /* overflow-x: hidden; remove side scrolling */
    }
    .home-content {
        height: 100vh;
        text-align: center;
        margin-bottom: 1rem;
    }
    .home-img {
        margin-top: 1rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .home-img img {
        width: 8rem;
        height: 8rem;
        object-fit: cover;
        border-radius: 50%;
    }
}
/* Extra Small Devices (like small mobiles) */
@media (max-width: 480px) { /*480and less apply */
    .home{
        height:100vh;
        margin:0;
        padding:0 0.5rem;
    }
    .home-content h1, .about-content .title,.skills-content .title,.projects-content .title,.project-item h3{
        font-size: 1.5rem;
        margin:0.4rem;
    }
    .home-content span {
        font-size: 0.9rem;
    }
    .home .home-content p{
        margin: 0.5rem 0 0 0;
        font-size: 0.8rem;
    }
    .socialmedia a {
        font-size: 0.8rem;
        padding: 0.2rem;
    }
    .home-img{
        margin-bottom: 3.5rem;
    }
    .home-img img{
        margin:0;
        width: 7rem;
        height: 7rem;
    }
    .about-content .title {
        font-size: 1.5rem;
    }
    .about-content{
        margin:0;
        padding:0.5rem 0;
        height: 100vh;
    }
    .skills{
        padding:0;
    }
    .skills-content{
        height:80vh;
        width: 100vw;
    }
    .skill-item i{
        font-size: 2rem;
    }
    .projects-content{
        height:100vh;
    }
    .project-item{
        height:13.5rem;
        padding:0;
    }
    .project-item a{
        height:4rem;
    }
}
@media (max-width: 360px) { /*360and less apply */
    .home{
        display: flex;
        flex-direction: column;
        align-items: center;
        margin:0;
        padding:0;
    }
    .home-content h1, .about-content .title,.skills-content .title,.projects-content .title,.project-item h3{
        font-size: 1.5rem;
        margin: 0.8rem;
    }
    .home-content span{
        font-size: 0.9rem;
    }
    .home-content p,.project-item p{
        font-size: 0.9rem;
    }
    .socialmedia a {
        font-size: 1.2rem;
        padding: 0;
    }
    .home-img img {
        width: 8rem;
        height: 8rem;
    }
    .about-content{
        margin:0;
        padding:0.5rem 0;
        height: 100vh;
    }
    .skills{
        padding:0;
    }
    .skills-content{
        height:80vh;
        width: 100vw;
    }
    .skill-item i{
        font-size: 2rem;
    }
    .projects-content{
        height:100vh;
    }
    .project-item{
        height:13.5rem;
        padding:0;
    }
    .project-item a{
        height:4rem;
    }
}
