@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: "Poppins", sans-serif;
}

:root {
    --bg-color: #081b29;
    --main-color: #00abf0;
    --text-color: #333;
    --second-text-color: #555;
    --white-color: #fff;
    --cover-color: linear-gradient(45deg, #00f0e4, #58e6d3e1);
    --pages-color: linear-gradient(90deg, #fff, #ddd);
    --border: 0.125rem solid #00abf0;
    --box-shadow: 0 0 0.6rem rgba(0, 0, 0, 0.2);
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--bg-color);
    color: var(--text-color);
    overflow: hidden;
}

.wrapper {
    position: relative;
    width: 66rem;
    height: 40rem;
    padding: 2rem;
    perspective: 250rem;
    animation: show-animate 2s forwards;
}

@keyframes show-animate{
    0%,30% {
        opacity: 0;
        transform: rotate(-20deg);
    }
    100% {
        opacity: 1;
        transform: rotate(0deg);
    }
}

.cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: var(--cover-color);
    box-shadow: var(--box-shadow);
    border-top-left-radius: 0.6rem;
    border-bottom-left-radius: 0.6rem;
    transform-origin: right;
}

.cover.cover-left {
    z-index: -1;
}
.cover.cover-right {
    z-index:100;
    transition: transform 1s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.cover.cover-right.turn {
    transform: rotateY(180deg);
}

.book {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    perspective: 250rem;
}

.book .book-page {
    position: absolute;
    width: 50%;
    height: 100%;
    background: var(--pages-color);
    box-shadow: 0 0 0.6rem rgba(0, 0, 0, 0.1);
    display: flex;
    padding: 2rem;
}
.book-page.page-left{
    box-shadow: -.6rem .6rem .6rem rgba(0, 0, 0, .1);
}

.profile-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
}

.profile-page img {
    width: 180px; /* Ensure the width and height are equal */
    height: 180px; /* Ensure the width and height are equal */
    border-radius: 50%; /* Make the image circular */
    border: 0.25rem solid var(--main-color);
    margin-bottom: 0.8rem;
    object-fit: cover;
}

.profile-page h1 {
    font-size: 2.5rem;
    line-height: 1;
}
.profile-page h3{
    font-size: 1.3rem;
    color: var(--main-color);
}

.profile-page .social-media {
    margin: 0.6rem 0 0.8rem
}

.profile-page .social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: var(--border);
    border-radius: 50%;
    font-size: 1.1rem;
    color: var(--main-color);
    margin: 0 .2rem;
    transition: .5s;
}

.profile-page .social-media a:hover {
    background: var(--main-color);
    color: var(--white-color);
}
.profile-page p {
    text-align: justify;
}
.profile-page .btn-box{
  margin-top: 1.2rem;
}
.btn{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 11.5rem;
    height: 3rem;
    background: var(--main-color);
    border: var(--border);
    border-radius: 0.3rem;
    font-size: 1rem;
    color: var(--white-color);
    font-weight: 500;
    margin: 0 .5rem;
    transition: .5s;
}
.btn:hover{
    background: transparent;
    color: var(--main-color);
}
.btn-box .btn:nth-child(2) {
    background:transparent;
    color: var(--main-color);
}
.btn-box .btn:nth-child(2):hover {
    background:var(--main-color);
    color: var(--white-color);
}
.book-page.page-right {
 position: absolute;
 right:0;
 transform-style: preserve-3d;
 transform-origin: left;
 transition: transform 1s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.book-page.page-right.turn{
    transform: rotateY(-180deg);
}

.book-page .page-front, .book-page .page-back{
    position: absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: var(--pages-color);
    padding: 1.5rem 2rem;
}

.book-page .page-front{
    transform: rotateY(0deg) translateZ(1px);
}
.book-page .page-back{
    transform: rotateY(180deg) translateZ(1px);
}
.title {
    text-align: center;
    margin-bottom: 1rem;
}
.workeduc-box{
    border-left: var(--border);
}
.workeduc-box .workeduc-content{
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 1rem;
}
.workeduc-box .workeduc-content::before{
    content: '';
    position: absolute;
    top:0;
    left: -0.65rem;
    width: 1.2rem;
    height: 1.2rem;
    background: var(--main-color);
    border-radius: 50%;

}
.workeduc-content .Duration{
    color: var(--main-color);
}
.workeduc-content .Duration i {
    margin-right: .4rem;
}
.number-page{
    position: absolute;
    bottom: 0.3rem;
    left:50%;
    transform: translateX(-50%);
}
.nextprev-btn{
    position: absolute;
    bottom: .5rem;
    right: 1.5rem;
    width: 2rem;
    height:2rem;
    cursor: pointer;
    font-size: 2rem;
    color: var(--second-text-color);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: .5s;
}
.nextprev-btn:hover{
    color: var(--main-color);
}
.nextprev-btn.back{
    left: 1.5rem
}
.services-box{
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.services-box .services-content{
    flex: 1 1 10rem;
    border: var(--border);
    border-radius: .5rem;
    padding: .8rem 0 1.1rem;
    text-align: center;
    transition: .3s ease;
}
.services-box .services-content:hover{
    box-shadow: var(--box-shadow);
}
.services-content i{
    font-size: 2.5rem;
    color: var(--main-color);
}

.services-content p{
    margin: .2rem 0 .8rem;
}
.services-content .btn{
    width: 8rem;
    height: 2.5rem;
}
.skills-box{
    display:flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.skills-box .skills-content{
    flex: 1 1 20rem;
}
.skills-content h3{
    font-size: 1.3rem;
    line-height: 1;
    margin-bottom: .6rem;
}
.skills-content .content{
    display:flex;
    flex-wrap: wrap;
    gap: .8rem;
}
.skills-content .content span{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width:6rem;
    height: 4.3rem;
    border: var(--border);
    border-radius: .3rem;
    font-weight: 600;
    transition: .3s ease;
}
.skills-content .content span:hover{
    box-shadow: var(--box-shadow);
}
.skills-content .content span i {
    font-size: 2rem;
    color: var(--main-color);
}
.portfolio-box .img-box{
    display:flex;
    width:100%;
    height:15rem;
    border: var(--border);
    border-radius: .5rem;
    overflow: hidden;
}
.portfolio-box .img-box img {
    width: 100%;
    object-fit: cover;
    transition: .5s ease;
}
.portfolio-box .img-box:hover img{
    transform:scale(1.1);
}
.portfolio-box .info-box{
    margin: 0.8rem 0 0.8rem;
}
.portfolio-box .info-box .info-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.2rem;
}
.portfolio-box .info-box .info-title h3{
    font-size: 1.3rem;
}
.portfolio-box .info-box .info-title a{
    display:flex;
    align-items: center;
    color: var(--main-color);
}
.portfolio-box .info-box .info-title a i{
    margin-left: 0.5rem;
}
.portfolio-box .info-box p:nth-of-type(1) {
   font-weight: 600;
}
.portfolio-box .btn-box{
    display:flex;
    justify-content: center;
    cursor: pointer;
}
.portfolio-box .btn-box{
    margin: 0 1.15rem;
}
.contact-box {
    text-align:center;
}
.contact-box .field{
    width:100%;
    background: transparent;
    border: var(--border);
    border-radius: .3rem;
    padding: .8rem;
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 1.2rem;
}
.contact-box .field::placeholder{
    color: var(--text-color);
}
.contact-box textarea {
    resize: none;
    height: 12rem;
}
.contact-box .btn{
    cursor: pointer;
}
.back-profile{
    position: absolute;
    bottom: 1.2rem;
    right: 2rem;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: var(--border);
    border-radius: 3rem;
    font-size: 1.1rem;
    color: var(--main-color);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: 0.5s;
}
.back-profile:hover{
    background: var(--main-color);
    color:var(--white-color);
}
.back-profile p{
    position:absolute;
    top:0;
    left: 50%;
    transform: translateX(-50%) scale(0.5);
    font-size: 1rem;
    color: var(--main-color);
    opacity: 0;
    transition: 0.5s;
}
.back-profile:hover p{
    opacity: 1;
    transform: translateX(-50%) scale(1);
    top: -1.8rem;
}
@media only screen and (max-width: 480px) {
    *{
        /* font-size: 11px; */
    }
    .wrapper {
        padding: 0.5rem; /* Further decrease padding for smaller screens */
    }
.btn{
    width: 10.5rem;
}
    .book .book-page{
        padding: 0px;
    }

    .book-page .page-front{
        padding: 0.5rem 1rem;
    }
    .profile-page{
        font-size: 13px;
        width: 100%;

    }
    .profile-page p{
        padding: 0px 10px;
    }
    .workeduc-box .workeduc-content {
        font-size: 10px;
    }

    .profile-page h1 {
        font-size: 1.6rem; 
    }

    .profile-page img{
        height: 5rem;
        width: 5rem;
    }

    .profile-page .social-media a {
        width: 1.8rem; 
        height: 1.8rem;
        font-size: 0.9rem; 
    }


.page-front{
    font-size: 10px;
}

    .services-content{
        height: 6.5rem;
        font-size: .5rem;
       
    }
    .services-box .btn{
        font-size: 5px;
        width: 3rem;
        height: 2rem;
    }

    .services-content i{
        font-size: 0rem;
    }
    .page-back{
        font-size: 12px;
    }

    .skills-content .content span{
        height: 2.5rem;
        width: 2.2rem;
        font-size: 6px;
    }

    .skills-content .content span i{
        font-size: 1rem;
    }
    .contact-box .btn {
        width: 6rem;
        font-size: 12px;
    }

    .portfolio-box .img-box {
        height: 8rem;
    }

    .contact-box .field {
        padding: 0.6rem;
        font-size: 0.9rem; 
    }
}

@media only screen and (max-width: 768px) {
    .wrapper {
        width: 100%; /* Adjust width to fit smaller screens */
        height: auto; /* Allow height to adjust based on content */
        padding: 1rem; /* Adjust padding as needed */
    }
    
    .book .book-page {
        padding: 1rem; /* Adjust padding for smaller screens */
    }
    
    .profile-page {
        font-size: 1rem; /* Adjust font size */
    }
    
    .profile-page img {
        width: 120px; /* Adjust image size */
        height: 120px; /* Adjust image size */
    }
    
    .profile-page .social-media a {
        width: 2rem; /* Adjust social media icon size */
        height: 2rem; /* Adjust social media icon size */
        font-size: 0.8rem; /* Adjust font size of social media icons */
    }
    
    .services-box .services-content {
        flex: 1 1 8rem; /* Adjust service box width */
    }
    
    .services-content {
        height: 5rem; /* Adjust height of service boxes */
        font-size: 0.8rem; /* Adjust font size of service boxes */
    }
    
    .skills-content .content span {
        width: 4rem; /* Adjust skill box width */
        height: 3rem; /* Adjust skill box height */
        font-size: 0.8rem; /* Adjust font size of skill boxes */
    }
    
    .contact-box .field {
        font-size: 0.8rem; /* Adjust font size of input fields */
    }
    
    .portfolio-box .img-box {
        height: 10rem; /* Adjust height of portfolio images */
    }
    
    .contact-box .btn {
        width: 5rem; /* Adjust width of buttons */
        font-size: 0.8rem; /* Adjust font size of buttons */
    }
}


