/* Global variable */
:root {
    --primary-color: rgba(5, 5, 199, 0.8);
    --secondary-color: #ff9f1c;
    --color-three: #061b81;
}

/* =========================
   Base Styles
========================= */
html {
    scroll-behavior: smooth;
}

body {
    background: #f8fbff;
    font-family: 'Poppins', sans-serif;
}

/* =========================
     PRELOADER
  ========================= */

#preloader {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgb(3, 3, 175);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 1;
    visibility: visible;
    transition:
        opacity 0.6s ease,
        visibility 0.6s ease;
}

/* Hide preloader */
#preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    width: min(300px, 80%);
    text-align: center;
}

/* =========================
     IMAGE
  ========================= */

#loader-image {
    width: 320px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 30px;
    animation: loaderPulse 1.5s ease-in-out infinite;
}

@keyframes loaderPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(0.92);
        opacity: 0.6;
    }
}

/* =========================
     TEXT FALLBACK
  ========================= */

#loader-text {
    display: none;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 30px;
}

.dots {
    display: inline-block;
    width: 25px;
    text-align: left;
    animation: dots 1.4s infinite;
}

@keyframes dots {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* =========================
     LOADING BAR
  ========================= */

.loader-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    overflow: hidden;
    border-radius: 10px;
}

.loader-progress {
    height: 100%;
    width: 30%;
    background: #ffffff;
    border-radius: 10px;
    animation: loading 1.3s ease-in-out infinite;
}

@keyframes loading {
    0% {
        transform: translateX(-120%);
    }

    100% {
        transform: translateX(400%);
    }
}

/* =========================
     ERROR MESSAGE
  ========================= */

#loader-error {
    display: none;
    margin-top: 25px;
    color: #aaa;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

#loader-error p {
    margin-bottom: 15px;
}

#loader-error button {
    border: 0;
    padding: 10px 18px;
    border-radius: 6px;
    background: #ffffff;
    color: #000000;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

#loader-error button:hover {
    transform: translateY(-2px);
}

/* Preloader css ends here */

/* Scroll to top button css starts here */
#backToTop {
    position: fixed;
    right: 24px;
    bottom: 24px;

    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;

    background: #2420f1;
    color: #fff;
    font-size: 24px;

    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);

    transition: all 0.3s ease;
    z-index: 9999;
  }

  #backToTop:hover {
    transform: translateY(0) scale(1.08);
    background: #4539f8;
  }

  #backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  /* Scroll to top button css ends here  */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
}

h1 {
    font-size: 3rem;
    line-height: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    line-height: 3rem;
}

h3 {
    font-size: 2rem;
    line-height: 2.5rem;
}

h4 {
    font-size: 1.5rem;
    line-height: 2rem;
}

.sub-heading {
    font-size: 2.5rem;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
    line-height: 2.8rem;
}

/* =========================
   Reveal css effect
========================= */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

.delay-1 {
    transition-delay: .14s;
}

/* =========================
   Header
========================= */
header {
    width: 100%;
    background-color: var(--primary-color);
    background-position: center;
    background-blend-mode: overlay;
    color: #eee;
    overflow: hidden;
}

header .navbar {
    z-index: 10;
}


header .navbar .navbar-brand .logo {
    max-height: 100px;
    width: auto;
    margin-right: 30px;
}


header .grid-dots {
    width: 100%;
    height: 100%;
    position: absolute;
    opacity: 0.1;
    background-image: radial-gradient(#a2a4fc 1.4px, transparent 0.2px);
    background-size: 15px 15px;
}

header .dots-left {
    left: 0;
    top: 0px;
}

header .dots-right {
    right: 0;
    top: 0px;
}

/* =========================
   Hero Section
========================= */

header .hero-section .lakpa-bio {
    font-size: 1rem;
    line-height: 1.8rem;
    color: #eee;
}

header .hero-texture {
    opacity: 0.5;
}

header .hero-section {
    position: relative;
}

header .hero-section .lakpa-intro {
    font-size: 2.5rem;
    font-weight: 700;
}

header .hero-section .lakpa-intro span {
    font-size: 1.8rem;
    font-weight: 500;
}

header .hero-section .lakpa-image {
    border: rgba(255, 255, 255, 0.1) solid 1px;
    border-radius: 10%;
    padding: 0px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
    height: 350px;
    overflow: hidden;
}

header .hero-section .lakpa-image img {
    width: auto;
    object-fit: cover;
}

/* =========================
   Buttons
========================= */


.btn-custom {
    outline: none;
    cursor: pointer;
    border: none;
    padding: 0.5rem 1.5rem;
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    position: relative;
    display: inline-block;
    letter-spacing: 0.05rem;
    font-weight: 700;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(90deg, #5745f8, #1e95f7);
    color: ghostwhite;
}

.btn-custom span {
    position: relative;
    z-index: 10;
    transition: color 0.4s;
}

.btn-custom:hover span {
    color: #eee;
}

.btn-custom span a {
    text-decoration: none;
    color: ghostwhite;
}

.btn-custom::before,
.btn-custom::after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.btn-custom::before {
    content: "";
    background: var(--secondary-color);
    width: 120%;
    left: -10%;
    transform: skew(30deg);
    transition: transform 0.4s cubic-bezier(0.3, 1, 0.8, 1);
}

.btn-custom:hover::before {
    transform: translate3d(100%, 0, 0);
}


/* =========================
   About me Section
========================= */

.overview-section {
    position: relative;
    z-index: 5;
    margin-top: -66px;
}

.overview-panel,
.details-section {
    background: #ffffffef;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 13px 40px #2724540b;
}

.overview-panel {
    padding: 28px 48px;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 30px;
    position: relative;
}

.journey {
    padding-bottom: 25px;
    border-bottom: 1px solid var(--line);
}

.experience-summary {
    border: 0 !important;
    padding-top: 25px;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 30px;
    position: relative;
}

.metric {
    min-height: 95px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #eeeef8;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 5px 14px #1d1d3b09;
    padding-bottom: 10px;
}

.metric i {
    font-size: 22px;
    color: var(--primary-color);
}

.metric b {
    font: 700 25px/1.2 "Poppins", sans-serif;
    margin: 5px 0 2px;
}

.metric span {
    font-size: 12px;
}


/* =========================
   Skills Section
========================= */
.skills {
    padding: 50px 0;
}

.skills .swiper {
    padding: 50px 0 !important;
}

.skills .skills-title {
    margin: 20px auto;
}

.skills-card {
    text-align: center;
    border: none;
    min-height: 300px;
    background: #fff;
    border-radius: 28px;
    padding: 40px 30px;
    height: 100%;
    transition: 0.35s;
    border: 1px solid #edf0f8;
    box-shadow: 0 15px 40px rgba(30, 60, 114, 0.08);
}

.skills-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(30, 60, 114, 0.15);
}

.skills-card img {
    width: 50%;
    margin: 0 auto 1rem auto;
    background-color: #eee;
}

.skills-card p {
    width: 80%;
    margin: 0 auto;
}

/* =========================
   Why Me Section
========================= */
.why-me-section {
    padding: 80px 40px;
    position: relative;
    overflow: hidden;

    background-image:
        url("../images/textures/about-section-bg-texture-right.png"),
        url("../images/textures/about-section-bg-texture-left.png");

    background-position: top right, bottom left;
    background-repeat: no-repeat, no-repeat;
    background-size: 350px, 320px;
}

.why-me-section>* {
    position: relative;
    z-index: 1;
}

.img-wrapper {
    position: relative;
    display: inline-block;
}

.info-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 5px solid transparent;
}

.card-orange {
    background-color: #fff2e6;
}

.card-purple {
    background-color: #f3eef8;
}

/* =========================
   Process Section
========================= */
.process-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.process-section::before,
.process-section::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.process-section::before {
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, #8b5cf6, #4f46e5);
    opacity: 0.08;
    top: -180px;
    left: -120px;
}

.process-section::after {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #14b8a6, #38bdf8);
    opacity: 0.06;
    bottom: -250px;
    right: -180px;
}

/* =========================
   Typography
========================= */
.subtitle {
    display: inline-block;
    padding: 8px 22px;
    border: 1px solid #dadcff;
    border-radius: 50px;
    color: var(--primary-color);
    background: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.title {
    font-size: 3rem;
    font-weight: 800;
}

.title span {
    background: linear-gradient(90deg, #6d5efc, #3ea8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.description {
    color: #2b2b2b;
    max-width: 650px;
    margin: auto;
}

/* =========================
   Cards (Shared)
========================= */
.process-card {
    background: #fff;
    border-radius: 28px;
    padding: 40px 30px;
    height: 100%;
    transition: 0.35s;
    position: relative;
    overflow: hidden;
    border: 1px solid #edf0f8;
    box-shadow: 0 15px 40px rgba(30, 60, 114, 0.08);
}

.process-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(30, 60, 114, 0.15);
}

.process-card h3 {
    font-weight: 700;
}

/* =========================
   Icons & Steps
========================= */
.step-number {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #6d5efc;
    background: #f4efff;
    margin-bottom: 25px;
}

.icon-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 55px;
    color: #fff;
}

.bg-purple {
    background: linear-gradient(135deg, #7c3aed, #6366f1);
}

.bg-blue {
    background: linear-gradient(135deg, #2563eb, #38bdf8);
}

.bg-green {
    background: linear-gradient(135deg, #22c55e, #14b8a6);
}

/* =========================
   Lines & Tags
========================= */
.line {
    width: 70px;
    height: 4px;
    margin: 18px auto;
    border-radius: 50px;
}

.line-purple {
    background: #7c3aed;
}

.line-blue {
    background: #3b82f6;
}

.line-green {
    background: #22c55e;
}

.tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.tags span {
    padding: 5px 16px;
    border-radius: 10px;
    font-size: 0.80rem;
    background: #f4efff;
}


/* =========================
   Portfolio Section
========================= */

.portfolio-section {
    background: #f8fbff;
}

/* Featured Project */
.featured-project {
    background: #fff;
}

/* Project Cards */
.project-card {
    background: #fff;
    transition: all 0.3s ease;
    min-height: 330px;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.project-card img {
    transition: transform 0.4s ease;
}

.project-card:hover img {
    transform: scale(1.09);
}

/* Buttons */
.btn {
    transition: all 0.3s ease;
}


/* =========================
   Hire Me Section
========================= */


.hire-me {
    background-color: var(--primary-color);
    max-height: 500px;
    margin-top: 100px;
    position: relative;
    isolation: isolate;
}

.hire-me::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        url("../images/textures/hero_right_top_curveline.png") top right no-repeat,
        url("../images/textures/left_bottom_curveline.png") bottom left no-repeat;
    background-size: auto;
    opacity: 0.5;
    z-index: -2;
}

.hire-me img {
    max-height: 500px;
    position: relative;
    margin-top: -100px;
}


.hire-me .small-device {
    display: none;
}

/* =========================
   Footer Section
========================= */

.footer {
    background: var(--color-three);
    color: #bfc4d3;
    padding: 50px 20px;
}

.footer .footer-about .footer-logo {
    max-width: 300px;
}

.footer .footer-subtitle {
    color: #eee;
    font-size: 1.3rem;
}

.footer p {
    line-height: 1.8;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    text-decoration: none;
    color: #bfc4d3;
    transition: .3s;
}

.footer-links a:hover {
    color: #4f8cff;
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #2a3a8d;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: .3s;
}

.social-icons a:hover {
    background: #4f8cff;
    transform: translateY(-4px);
}

hr {
    opacity: .15;
}

#contact a {
    text-decoration: none;
    color: #ccc;
}

/* =========================
   Animation CSS
========================= */

.skills {
    animation: skills 2s ease-in 0s 1 normal forwards;
}

@keyframes skills {
    0% {
        animation-timing-function: ease-in;
        opacity: 0;
        transform: translateY(250px);
    }

    38% {
        animation-timing-function: ease-out;
        opacity: 1;
        transform: translateY(0);
    }

    55% {
        animation-timing-function: ease-in;
        transform: translateY(65px);
    }

    72% {
        animation-timing-function: ease-out;
        transform: translateY(0);
    }

    81% {
        animation-timing-function: ease-in;
        transform: translateY(28px);
    }

    90% {
        animation-timing-function: ease-out;
        transform: translateY(0);
    }

    95% {
        animation-timing-function: ease-in;
        transform: translateY(8px);
    }

    100% {
        animation-timing-function: ease-out;
        transform: translateY(0);
    }
}



/* =========================
   Responsive
========================= */
@media(max-width:991px) {

    .hire-me {

        padding: 50px 35px;
        text-align: center;
        max-height: 550px;
        overflow: hidden;
    }

    .hire-me img {
        max-height: 380px;
        margin-top: 20px;
    }

    /* display in small devices */
    .hire-me .small-device {
        display: block;
        align-items: center;
    }

    /* hide in small devices */
    .hire-me .large-device {
        display: none;
    }

    header .hero-section .lakpa-image {
        height: 270px;
    }

    .overview-panel {
        padding: 28px;
    }

    .journey {
        padding-bottom: 25px;
        border-bottom: 1px solid var(--line);
    }

    .experience-summary {
        border: 0 !important;
        padding-top: 25px;
    }


}

@media (max-width: 768px) {

    header .navbar .navbar-brand .logo {
        max-height: 100px;
        width: 250px;
        margin: 0px;
        padding: 0px;
    }

    .title {
        font-size: 2.2rem;
    }

    header .hero-section .lakpa-image {
        margin-top: 50px !important;
        margin: auto;
        height: 300px;
        width: 300px;
    }

    .why-me-section {
        background-size: 180px, 180px;
    }

    .process-card {
        margin-bottom: 25px;
    }

    .hire-me img {
        margin-top: 10px;
        max-height: 300px;
        clear: both;
    }


}