@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,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: #000000;
    --main-color: #ffffff;
    --text-color: #ffffff;
    --second-text-color: #ffffff;
    --white-color:#fafafa;
    --cover-color: linear-gradient(45deg, #C82AEF, #000000);
    --pages-color: linear-gradient(90deg, #0E0E0E, #0E0E0E);
    --border: 0.125rem solid #000000;
    --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: 45rem;
    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-left {
    box-shadow: -0.6rem 0.6rem 0.6rem rgba(0, 0, 0, 0.1);
}

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

.profile-page img {
    min-height: 50px;
    min-width: 180px;
    margin-bottom: 0.8rem;
}

.profile-page h1 {
    font-size: 2.7rem;
    line-height: 1;
}

.profile-page h3 {
    font-size: 1.3rem;
    color: #ea5f30;
}

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

.profile-page .social-media a {
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: var(--border);
    border-radius: 50%;
    font-size: 1.3rem;
    color: #ea5f30;
    margin: 0.2rem;
    transition: 0.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;
    width: 9.5rem;
    height: 3rem;
    justify-content: center;
    align-items: center;
    background: #ea5f30;
    border: var(--border);
    border-radius: 0.3rem;
    font-size: 0.9rem;
    color: var(--white-color);
    font-weight: 500;
    margin: 0 1rem;
    transition: 0.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;
    padding: 1.5rem 2rem;
    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;
}

.edu-box {
    border-left: var(--border);
}

.edu-box .edu-content {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 1.2rem;
}

.edu-box .edu-content p {
    font-size: small;
}

.edu-box .edu-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: -0.65rem;
    width: 1.2rem;
    height: 1.2rem;
    background: var(--main-color);
    border-radius: 50%;
}

.edu-content .year {
    color: var(--main-color);
}

.edu-content .year i {
    margin-right: 0.4rem;
}

.number-page {
    position: absolute;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
}

.nextprev-btn {
    position: absolute;
    bottom: 0.9rem;
    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: 0.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: 0.5rem;
    text-align: center;
    font-size: small;
    padding: 0.8rem 0.5rem 1.1rem;
    transition: 0.3s ease;
}

.services-box .services-content:hover {
    box-shadow: var(--box-shadow);
}

.services-content i {
    font-size: 1.4rem;
    color: var(--main-color);
}

.services-content h3 {
    font-size: 1.1rem;
}

.services-content p {
    margin: 0.1rem;
}

.skill-box {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-box .skill-content {
    flex: 1 1 20rem;
}

.skill-content {
    line-height: 1;
    margin-bottom: 0.6rem;
    font-size: smaller;
}

.skill-content .content {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-content .content span {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 0.3rem;
    font-weight: 500;
    transition: 0.3s ease;
}

.skill-content .content span:hover {
    box-shadow: var(--box-shadow);
}

.skill-content .content span i {
    font-size: 1.3rem;
    color: var(--main-color);
}

.contact-box {
    text-align: center;
}

.contact-box .field {
    width: 100%;
    background: transparent;
    border: var(--border);
    border-radius: 0.3rem;
    padding: 0.8rem;
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.contact-box .field::placeholder {
    color: var(--text-color);
}

.contact-box textarea {
    resize: none;
    height: 15rem;
}

.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: 0.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;
}


/* project show css */

/* .project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
} */

/* .project-item {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
} */

/* .project-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
} */

/* Fullscreen on hover */
/* .project-item:hover img {
    transform: scale(1.1);
} */

/* FULL PAGE VIEW ON HOVER USING ::after */
/* .project-item:hover::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    z-index: 9998;
} */

/* Show fullscreen image */
/* .project-item:hover img {
    position: fixed;
    top: 50%;
    left: 50%;
    width: auto;
    height: 90vh;
    transform: translate(-50%, -50%);
    z-index: 9999;
    border-radius: 10px;
    box-shadow: 0 0 20px #000;
} */


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

.project-item {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

/* Normal Image */
.project-item img {
    width: 100%;
    height: 240px;
    display: block;
    transition: transform 0.5s ease, box-shadow 0.4s ease, border-radius 0.4s ease;
}

/* Soft zoom on normal hover */
.project-item:hover img {
    transform: scale(1.08);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* FULLSCREEN BACKDROP */
.project-item::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

/* Show backdrop on hover */
.project-item:hover::after {
    background: rgba(0,0,0,0.85);
    z-index: 9998;
}

/* FULLSCREEN IMAGE STYLE */
.project-item img.fullscreen {
    position: fixed;
    top: 50%;
    left: 50%;
    height: 90vh;
    width: auto;
    transform: translate(-50%, -50%) scale(1);
    z-index: 9999;
    transition: transform 0.45s ease;
}

/* Hover makes fullscreen mode */
.project-item:hover img {
    transition: transform 1s ease;
}
.project-item:hover img {
    transform: translate(-50%, -50%) scale(1.02);
}



.software-icon {
  width: 180px;
  height: 180px;
  object-fit: contain;
  display: block;
  border-radius: 10px;
}






      .phone-overlay {
    display: none;               /* hidden normally */
    position: fixed;
    inset: 0;                    /* top:0; right:0; bottom:0; left:0 */
    z-index: 9999;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(3px);
    color: #fff;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    box-sizing: border-box;
  }

  /* Content box */
  .phone-overlay__box {
    max-width: 520px;
    width: calc(100% - 48px);
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    backdrop-filter: blur(2px);
  }

  .phone-overlay h2 {
    margin: 0 0 8px;
    font-size: 20px;
    letter-spacing: 0.2px;
  }
  .phone-overlay p {
    margin: 0 0 18px;
    line-height: 1.45;
    opacity: 0.95;
  }

  .phone-overlay .btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 8px;
    background: #ffffff;
    color: #111;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
  }

  /* small helper to prevent background scrolling when overlay is visible */
  body.phone-overlay-open {
    overflow: hidden;
    touch-action: none;
    height: 100%;
  }



/* form*


/* Popup Overlay */
    #popupOverlay{
        position:fixed;
        top:0;left:0;
        width:100%;height:100%;
        background:rgba(0,0,0,0.65);
        display:none;
        justify-content:center;
        align-items:center;
        z-index:9999;
    }

    /* Popup Box */
    #popupBox{
        background:#111;
        width:90%;
        max-width:420px;
        padding:25px;
        border-radius:18px;
        color:white;
        position:relative;
        box-shadow:0 0 20px rgba(255,255,255,0.2);
        border:4px solid transparent;
        background-image:
            linear-gradient(#111, #111),
            linear-gradient(45deg, #8A05FF, #FF0080);
        background-origin:border-box;
        background-clip:padding-box, border-box;
    }

    #popupBox h2{
        text-align:center;
        margin-bottom:20px;
        font-size:24px;
    }

    /* Close Button */
    #closeBtn{
        position:absolute;
        top:10px;
        right:15px;
        font-size:20px;
        cursor:pointer;
    }

    /* Form Fields */
    .popup-input{
        width:100%;
        padding:12px;
        margin:8px 0;
        border:none;
        border-radius:8px;
        font-size:15px;
        outline:none;
        background:#222;
        color:white;
    }

    /* Submit Button */
    #submitBtn{
        width:100%;
        padding:12px;
        border:none;
        border-radius:8px;
        font-size:16px;
        margin-top:10px;
        cursor:pointer;
        background: linear-gradient(45deg,#8A05FF,#FF0080);
        color:white;
        transition:0.3s;
    }

    #submitBtn:hover{
        opacity:0.85;
    }

    /* Responsive */
    @media (max-width:480px){
        #popupBox{
            width:92%;
            padding:20px;
        }
    }

  /* if you want to show with pure CSS for very small widths, you could also use
     a media query. But we control via JS for more flexibility. */
