/* ========================================================================== */
/* MAIN CSS */
/* ========================================================================== */
body {
    overflow-x: hidden;
    animation: bodyanime;
    animation-duration: 2s;
}

/* HIDE WEBSITE FIRST */
#main-1 {
    display: none;
}

/* LOADER FULL SCREEN */
.loader-wrapper {
    position: fixed;
    inset: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
        animation: bodyanime;
    animation-duration: 3s;
}

#page-loader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* BARS */
.loader {
    display: flex;
    align-items: center;
}

.bar {
    width: 3px;
    height: 20px;
    border-radius: 10px;
    background: var(--clr-primary);
    margin: 0 5px;
    margin-bottom: 20px;
    animation: scale 1s infinite;
}

.bar:nth-child(2) {
    height: 35px;
    animation-delay: 0.2s;
}

.bar:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes scale {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(1.6);
    }
}

@keyframes bodyanime {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* TEXT */
.loading-text {
    font-size: 17px;
    font-family: var(--mainFont) !important;
    letter-spacing: 2px;
}


header {
    width: 100%;
    margin: 15px auto;
    display: flex;
    align-items: center;
    padding: 0px 6%;
    position: relative;
    background-color: var(--clr-highlight);
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-family: var(--specailFont);
}

nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

nav h4 {
    font-family: var(--mainFont);
    font-weight: 400;
    font-size: 1rem;
    color: #474747;
}

nav a {

    position: relative;
    text-decoration: none;
}

nav a h4 {
    margin: 0;
    font-weight: 500;
    color: #111;
    padding-bottom: 5px;
    transition: color 0.3s ease;

}

nav a h4::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: var(--clr-primary);
    transform: translateX(-50%);
    transition: width 0.4s ease;
}

nav a:hover h4::after {
    width: 70%;
}

nav a:hover h4 {
    color: #404040;
}


.nav-btn {
    padding: 10px 30px;
}

/* ====Menu=== */
.menu-toggle {
    display: none;
    width: 34px;
    height: 22px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2.5px;
    background: #000000;
    border-radius: 999px;
    transition: 0.4s ease;
}

.menu-toggle span:nth-child(1) {
    width: 100%;
    margin-bottom: 6px;
}

.menu-toggle span:nth-child(2) {
    width: 70%;
    margin-bottom: 6px;
}

.menu-toggle span:nth-child(3) {
    width: 40%;
}

/* subtle active motion */
.menu-toggle.active span:nth-child(1) {
    transform: translateX(4px);
}

.menu-toggle.active span:nth-child(2) {
    transform: translateX(-2px);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateX(6px);
}

/* <!-- ==================================================== -->
    <!-- ===Hero-Section===  -->
    <!-- ==================================================== --> */

#Hero-section {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--clr-highlight);
}

.hero-h4 {
    font-size: 1.2rem;
    border: 2px solid black;
    padding: 6px 25px;
    display: inline-block;
    border-radius: 30px;
    margin-top: 10%;
}

#Hero-section h1 {
    margin: -20px 0;
}

.hero-h1 {
    font-size: clamp(2.5rem, 7vw, 6rem);
    position: relative;
    z-index: 1000;
    padding: 5px auto;
}

.text-2 {
    display: none;
}

.hero-outline-h1 {
    font-weight: 500;
    font-family: var(--secondaryFont);
    font-size: clamp(4rem, 9vw, 12rem);
    position: relative;
    z-index: 1000;
}


.hero-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.para {
    width: 30%;
}

.hero-img {
    width: 100%;
}

.hero-img img {
    width: 60%;
    z-index: -1;
    margin-top: -8%;
    border-radius: 0 0 40px 40px;

}

.hero-btns {
    display: flex;
    gap: 7px;
    width: 285px;
    margin-top: -10%;
    margin-bottom: 2%;
    height: 54px;
    align-items: center;
    justify-content: center;
    border-radius: 40px;
    position: relative;
    z-index: 1000;
    background-color: white;
}

.hire-me {
    font-weight: bold;
    color: var(--clr-primary);
    border-radius: 50px;
    cursor: pointer;
    border: none;
    border: 1px solid var(--clr-primary);
    background-color: var(--clr-highlight);
    padding: 9px 35px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hire-me .span-mother {
    display: flex;
    overflow: hidden;
}

.hire-me:hover .span-mother span {
    transform: translateY(1.2em);
}

.hire-me .span-mother span:nth-child(1) {
    transition: 0.2s;
}

.hire-me .span-mother span:nth-child(2) {
    transition: 0.3s;
}

.hire-me .span-mother span:nth-child(3) {
    transition: 0.4s;
}

.hire-me .span-mother span:nth-child(4) {
    transition: 0.5s;
}

.hire-me .span-mother span:nth-child(5) {
    transition: 0.6s;
}

.hire-me .span-mother span:nth-child(6) {
    transition: 0.7s;
}

.hire-me .span-mother2 {
    display: flex;
    position: absolute;
    overflow: hidden;
}

.hire-me .span-mother2 span {
    transform: translateY(-1.2em);
}

.hire-me:hover .span-mother2 span {
    transform: translateY(0);
}

.hire-me .span-mother2 span {
    transition: 0.2s;
}

.hire-me .span-mother2 span:nth-child(2) {
    transition: 0.3s;
}

.hire-me .span-mother2 span:nth-child(3) {
    transition: 0.4s;
}

.hire-me .span-mother2 span:nth-child(4) {
    transition: 0.5s;
}

.hire-me .span-mother2 span:nth-child(5) {
    transition: 0.6s;
}

.hire-me .span-mother2 span:nth-child(6) {
    transition: 0.7s;
}

.btn-53,
.btn-53 *,
.btn-53 :after,
.btn-53 :before,
.btn-53:after,
.btn-53:before {
    border: 0 solid;
    box-sizing: border-box;
}

.btn-53 {
    -webkit-tap-highlight-color: transparent;
    background-color: var(--clr-primary);
    border: 2px solid var(--clr-primary);
    background-image: none;
    color: #fff;
    cursor: pointer;
    font-family: var(--specailFont);
    font-size: 90%;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

.btn-53:disabled {
    cursor: default;
}

.btn-53:-moz-focusring {
    outline: auto;
}

.btn-53 svg {
    display: block;
}

.btn-53 [hidden] {
    display: none;
}

.btn-53 {
    border-radius: 50px;
    box-sizing: border-box;
    display: block;
    font-weight: 900;
    overflow: hidden;
    border: 2px solid var(--clr-primary);
    padding: 9px 35px;
    position: relative;
    text-transform: uppercase;
}

.btn-53 .original {
    background: var(--clr-primary);
    color: #ffffff;
    border: 2px solid var(--clr-primary);
    display: grid;
    inset: 0;
    place-content: center;
    position: absolute;
    transition: transform 0.2s cubic-bezier(0.87, 0, 0.13, 1);
}

.btn-53:hover .original {
    transform: translateY(100%);
}

.btn-53 .letters {
    display: inline-flex;
}

.btn-53 span {
    opacity: 0;
    transform: translateY(-15px);
    transition: transform 0.2s cubic-bezier(0.87, 0, 0.13, 1), opacity 0.2s;
}

.btn-53 span:nth-child(2n) {
    transform: translateY(15px);
}

.btn-53:hover span {
    opacity: 1;
    transform: translateY(0);
}

.btn-53:hover span:nth-child(2) {
    transition-delay: 0.1s;
}

.btn-53:hover span:nth-child(3) {
    transition-delay: 0.2s;
}

.btn-53:hover span:nth-child(4) {
    transition-delay: 0.3s;
}

.btn-53:hover span:nth-child(5) {
    transition-delay: 0.4s;
}

.btn-53:hover span:nth-child(6) {
    transition-delay: 0.5s;
}

#Main-sections-1 {
    width: 100%;
    height: auto;
    border-top-left-radius: 80px;
    border-top-right-radius: 80px;
    border-bottom-left-radius: 90px;
    border-bottom-right-radius: 90px;
    background-color: var(--clr-secondary);
    position: relative;
    z-index: 1000;
    padding: 3rem 1rem;
    margin-top: -10px;
    color: var(--clr-highlight);
}

#Main-sections-2 {
    display: none;
}

#Services-section {
    width: 100%;
    height: auto;
    margin: 3rem auto;
    text-align: center;
}

.services-h1 {
    font-size: clamp(2.5rem, 4vw, 6rem);
}

.para {
    width: 100%;
}

.card {
    --x: 50%;
    --y: 50%;
    background-repeat: no-repeat;
}

.card-section {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    gap: 30px;
    justify-content: center;
    margin-top: 5%;
}

.container {
    display: flex;
    gap: 40px;
    perspective: 1200px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 5%;
}

.card {
    position: relative;
    width: 270px;
    height: 260px;
    padding: 5px 10px;
    border-radius: 20px;
    background: white;
    color: black;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.card i {
    font-size: 2.5rem;
    color: var(--clr-primary);
}

.card1 {
    border-radius: 5px 50px 5px 50px;
}

.card3 {
    border-radius: 50px 5px 50px 5px;
}

.card2 {
    width: 280px;
    height: 270px;
}

/* Corner color effect */
.card::before {
    content: "";
    position: absolute;
    top: -16px;
    right: -16px;
    z-index: -1;
    width: 55px;
    height: 55px;
    border-radius: 32px;
    background: var(--clr-primary);
    transform: scale(1);
    transform-origin: 50% 50%;
    transition: transform 0.5s ease-out;
}

.card:hover::before {
    transform: scale(21);
}

.card:hover {
    color: white;
    transform: scale(1.08) translateZ(20px);
}


.card h2,
.card p {
    transition: color 0.2s ease;
}

.card:hover h2,
.card:hover p,
.card:hover i,
.card:hover p span {
    color: #fff;
    /* turn white on card hover */
}


/* Corner arrow */
.go-corner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 40px;
    height: 40px;
    overflow: hidden;
    top: 0;
    right: 0;
    background-color: var(--clr-primary);
    border-radius: 0 4px 0 32px;
    z-index: 1;
}

.services-btn {
    margin: 20px auto;
}



#Projects-section {
    width: 100%;
    height: 120vh;
    padding: 2rem 5rem;
}

.project-h1 {
    font-size: clamp(2.5rem, 4vw, 6rem);
    margin: 1% 0;
}


/* WRAPPER */
.pf-wrapper {
    width: 100%;
    max-width: 1200px;
    padding: 40px 20px;
    /* 🔥 outer spacing */
    overflow: hidden;
}

/* TRACK */
.pf-track {
    display: flex;
    align-items: center;
    will-change: transform;
}

/* ITEM */
.pf-item {
    min-width: 33.3333%;
    padding: 20px;
    /* 🔥 card spacing */
    transition: transform 0.6s ease, opacity 0.6s ease;
}

/* CARD */
.pf-box {
    width: 100%;
    height: 360px;
    border-radius: 22px;
    background-size: cover;
    background-position: center;
    position: relative;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
}

/* TITLE */
.pf-box h2 {
    position: absolute;
    top: 14px;
    left: 14px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    padding: 7px 14px;
    border-radius: 12px;
    max-width: calc(100% - 28px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ACTIVE STATES */
.pf-item.pf-active {
    transform: scale(1.18);
    z-index: 5;
}

.pf-item:not(.pf-active) {
    opacity: 0.45;
    transform: scale(0.92);
}

/* DOTS */
.pf-dots {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

.pf-dot {
    width: 8px;
    height: 8px;
    background: #555;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
}

.pf-dot.active {
    background: #ff7a00;
    transform: scale(1.6);
}

/* ================= RESPONSIVE ================= */

/* TABLETS & MOBILES */
@media (max-width: 800px) {
    .pf-item {
        min-width: 100%;
        /* 🔥 one card only */
        padding: 12px;
    }

    .pf-box {
        height: 300px;
    }

    .pf-item.pf-active {
        transform: scale(1);
        /* 🔥 no zoom = clean UX */
    }

    .pf-item:not(.pf-active) {
        opacity: 1;
        transform: scale(1);
    }
}

/* SMALL MOBILES */
@media (max-width: 500px) {
    .pf-wrapper {
        padding: 30px 14px;
    }

    .pf-box {
        height: 260px;
    }

    .pf-box h2 {
        font-size: 14px;
        padding: 6px 12px;
    }
}

/* --- Base Section --- */
#About-section {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    margin: 3rem auto;
    justify-content: center;
    align-items: center;
}

/* --- Centered Text --- */
.about-container {
    text-align: center;
    max-width: 700px;
    z-index: 2;
    position: relative;
}

.about-h1 h1 {
    font-size: clamp(2.5rem, 4vw, 6rem);
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.about-para p {
    font-size: 1.2rem;
    line-height: 1.7;
    margin: 0 10%;
    margin-bottom: 30px;
}

.about-btn {
    border: none;
    padding: 10px 35px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.about-btn:hover {
    transform: scale(1.08);
}

/* --- Random Images --- */
.random-img {
    position: absolute;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    /* opacity: 0.8; */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s ease;
}

/* Random image placements */
.img-1 {
    width: 150px;
    height: 150px;
    top: 11%;
    left: 10%;
    transform: rotate(-10deg);
    background-image: url('about-img-1.jpg');
}

.img-2 {
    width: 120px;
    height: 140px;
    top: 20%;
    right: 12%;
    transform: rotate(7deg);
    background-image: url('about-img-2.jpg');
}

.img-3 {
    width: 190px;
    height: 180px;
    bottom: 10%;
    left: 10%;
    transform: rotate(13deg);
    background-image: url('about-img-3.jpg');
}

.img-4 {
    width: 170px;
    height: 190px;
    bottom: 8%;
    right: 10%;
    transform: rotate(-8deg);
    background-image: url('about-img-4.jfif');
}


.random-img:hover {
    transform: scale(1.08) rotate(0deg);
    opacity: 1;
    cursor: pointer;
}

#Experiance-section {
    width: 100%;
    height: 100vh;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.experiance-section-h1 {
    font-family: var(--mainFont);
    font-size: clamp(2.5rem, 5vw, 7rem);
    line-height: 70px;
    color: rgb(0, 0, 0);
    position: relative;
    z-index: 10;
}

.experiance-btn {
    margin: 5% auto;
    padding: 10px 30px;
    font-size: 1rem;
    border-radius: 10px;
    cursor: pointer;
    border: none;
    background: var(--clr-primary);
    color: rgb(255, 255, 255);
    z-index: 10;
    position: relative;
}

canvas {
    display: block;
}

/* particles background */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* particle counter */
.count-particles {
    background: rgba(0, 0, 34, 0.7);
    position: absolute;
    top: 48px;
    left: 0;
    color: #13E8E9;
    width: 80px;
    font-size: 0.8em;
    text-align: left;
    text-indent: 4px;
    line-height: 14px;
    padding-bottom: 2px;
    font-family: Helvetica, Arial, sans-serif;
    font-weight: bold;
    z-index: 20;
    display: none;
}

.js-count-particles {
    font-size: 1.1em;
}


footer {
    width: 100%;
    height: 40vh;
    text-align: center;
    background-color: var(--clr-secondary);
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
    color: var(--clr-highlight);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 15px;
}

.footer-h1 {
    font-size: clamp(2.5rem, 3.5vw, 6rem);
}

.footer-span {
    color: var(--clr-primary);
}

.footer-h3 {
    transition: background-color 0.3s ease-in-out;
    margin: 5px;
    padding: 2px 10px;
}

.footer-h3:hover {
    cursor: pointer;
    background-color: var(--clr-primary);
}

.footer-h4 {
    font-size: 1.5rem;
}

.footer-icons i {
    margin: 0 4px;
    font-size: 1.5rem;
    cursor: pointer;
    display: inline-block;
    transition: transform 0.2s ease-in-out, color 0.2s ease-in-out;
}

.footer-icons i:hover {
    color: var(--clr-primary);
    transform: scale(1.5);
}

.footer-para {
    background-color: var(--clr-secondary);
    text-align: center;
    color: var(--clr-highlight);
}

#Main-sections-2 {
    width: 100%;
    height: auto;
    padding: 2rem;
}