/* --------------------------------------------------
   IMPORTS AND ROOT VARIABLES
-------------------------------------------------- */
@import url('https://fonts.googleapis.com/css?family=Oswald|Rambla|Staatliches&display=swap');

:root {
    --color-black: #000000;
    --color-white: #ffffff;
    --color-border: #ffffff34;
    --font-staat: 'Staatliches', cursive;
    --font-os: 'Oswald', sans-serif;
    --font-ram: 'Rambla', sans-serif;
}

/* --------------------------------------------------
   GLOBAL AND UTILITY CLASSES
-------------------------------------------------- */
body {
    margin: 0;
    padding: 0;
    display: flex;
}

.bio {
    text-align: justify;
}

.font-staat {
    font: normal 400 18px var(--font-staat);
}

.font-os {
    font: normal 300 18px var(--font-os);
}

.font-ram {
    font: normal bold 18px var(--font-ram);
}

.font-rami {
    font: normal bold 10px var(--font-rami);
}

.font-size-40 {
    font-size: 40px;
}

.font-size-34 {
    font-size: 34px;
}

.font-size-27 {
    font-size: 27px;
}

.font-size-20 {
    font-size: 20px;
}

.font-size-16 {
    font-size: 16px;
}

.bgcolor-black {
    background-color: var(--color-black);
}

/* Centered positioning utility */
.center {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

/* Remove underline from links */
.link-no-underline,
.link-clean {
    text-decoration: none;
    color: inherit;
}

.link-no-underline:hover,
.link-clean:hover {
    text-decoration: none;
    color: inherit;
}

/* --------------------------------------------------
   LOADER ANIMATION
-------------------------------------------------- */
#loader {
    border: 12px solid #f3f3f3;
    border-radius: 50%;
    border-top: 12px solid #444444;
    width: 70px;
    height: 70px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* --------------------------------------------------
   HEADER AND NAVIGATION
-------------------------------------------------- */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    transition: left .5s ease;
}

#header nav {
    height: 100vh;
}

#header .site-title .navbar-brand {
    letter-spacing: 2px;
    color: var(--color-white);
}

#header .nav-link {
    margin: .4rem 1rem;
    border-bottom: 1px solid var(--color-border);
    text-transform: uppercase;
}

#header .nav-link:hover {
    color: var(--color-white) !important;
}

#header .toggle-button {
    position: fixed;
    top: 25px;
    right: 20px;
    overflow: hidden;
}

.wave {
    top: 0%;
    position: absolute;
    height: auto;
    transform: rotate(180deg);
}

.toggle-left {
    left: 0 !important;
    width: 1000px !important;
}

/* Icons */
.ico {
    padding: 2px;
}

/* Responsive header behavior */
@media screen and (min-width: 768px) {
    .toggle-button {
        display: none;
    }

    #header {
        z-index: 0;
    }
}

/* --------------------------------------------------
   INTRO SECTION (Banner)
-------------------------------------------------- */
.site-banner .banner-area,
#particles-js {
    background: url(./assets/Banner_image.jpg) no-repeat;
    background-size: cover;
    width: 100%;
    height: 100vh;
    filter: blur(0px);
    position: relative;
    overflow: hidden;
}

.site-banner .banner-area .author {
    margin: 0;
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Profile Image */
.site-banner .banner-area .author .author-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: auto;
    background: url(./assets/profile_full.jpg) no-repeat;
    background-size: 175%;
    background-position: 53% -10px;
    box-shadow: 2px 2px 100px rgb(20, 10, 10);
}

.author-img:hover {
    animation-name: shadow;
    animation-duration: 2s;
    animation-iteration-count: infinite;
}

@keyframes shadow {
    0% {
        box-shadow: 2px 2px 100px rgb(0, 0, 0);
    }

    25% {
        box-shadow: 2px 2px 10px rgb(255, 255, 255);
    }

    50% {
        box-shadow: 2px 2px 110px rgb(0, 0, 0);
    }

    100% {
        box-shadow: 2px 2px 100px rgb(255, 255, 255);
    }
}


/* --------------------------------------------------
   SKILLS SECTION
-------------------------------------------------- */
.skill .bars p,
.site-content .skill .bars span {
    line-height: 10px;
}

.sk {
    color: #7e7d7d;
    margin: 10px;
}

.sk:hover {
    animation-duration: 1s;
    animation-iteration-count: initial;
    animation-name: icon_color;
}

@keyframes icon_color {
    50% {
        color: #2b2b2b;
    }
}


/* --------------------------------------------------
   EXPERIENCE SECTION
-------------------------------------------------- */
/* Job description text alignment */
#experience .panel p span.description {
    display: block;
    text-align: center;
    min-height: 200px;
}

/* --------------------------------------------------
   PROJECTS SECTION
-------------------------------------------------- */
/* Panel styling for uniform layout */
#projects .panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Description area with scrolling */
#projects .panel .project-content {
    min-height: 150px;
    max-height: 150px;
    overflow-y: hidden;
    overflow-x: hidden;
    text-align: center;
    padding-right: 4px;
    padding-bottom: 20px;
    transition: all 0.25s ease;
}

/* Enable scroll only on hover */
#projects .panel:hover .project-content {
    overflow-y: auto;
}

/* Hide scrollbar by default */
#projects .panel .project-content::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* Show scrollbar on hover */
#projects .panel:hover .project-content::-webkit-scrollbar {
    width: 4px;
}

#projects .panel:hover .project-content::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.18);
    border-radius: 20px;
}

#projects .panel:hover .project-content::-webkit-scrollbar-track {
    background: transparent;
}

/* Project image styles */
#projects .panel .project-image {
    width: 100%;
    aspect-ratio: 12 / 9;
    background-color: #e0e0e0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Staatliches', cursive;
    font-size: 18px;
    color: #666;
    /* border-top-right-radius: 50px;
    border-bottom-left-radius: 50px; */
    overflow: hidden;
}

#projects .panel .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* border-top-right-radius: 50px;
        border-bottom-left-radius: 50px; */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Buttons section */
#projects .panel .project-links {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
}

/* --------------------------------------------------
   CONTACT ME SECTION
-------------------------------------------------- */
#footer form .row .col input[type="text"],
#footer form .row .col input[type="email"],
#footer form textarea {
    border: none;
    border-radius: 0;
    border-bottom: 1px solid gray;
    padding: 1.5rem 1rem;
}

/* --------------------------------------------------
   CARD AND CONTAINER LAYOUTS
-------------------------------------------------- */
.container {
    width: 1200px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    grid-gap: 15px;
    margin: 0 auto;
}

.container .card {
    position: relative;
    width: 300px;
    height: 400px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.5);
}

.container .card .face {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container .card .face .face1 {
    box-sizing: border-box;
    padding: 20px;
}

.container .card .face .face1 h2 {
    margin: 0;
    padding: 0;
}

.container .card .face .face2 {
    background: #111;
    transition: 0.5s;
}

.container .card .face .face2 h2 {
    margin: 0;
    padding: 0;
    font: 10em;
    color: #fff;
    transition: 0.5s;
}

/* --------------------------------------------------
   LISTS AND REPOSITORY STYLING
-------------------------------------------------- */
.list-group-item {
    margin-top: 25px;
    display: flexbox;
}

.back_btn {
    display: inline;
    margin: 20px;
}

#userRepos li li {
    transition: 0.3s;
}

#userRepos li li:hover {
    background-color: #f1efef;
}

@keyframes project_color {
    50% {
        background-color: #f1efef;
    }
}

/* --------------------------------------------------
   SCROLL TO TOP BUTTON
-------------------------------------------------- */
.scrollTop {
    position: fixed;
    bottom: -100px;
    right: 40px;
    width: 40px;
    height: 40px;
    background: #ffffff url(assets/misc/up.png);
    border-radius: 50%;
    background-size: 40px;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 50;
    cursor: pointer;
    visibility: hidden;
    opacity: 0;
    transition: 0.5s;
}

.scrollTop.active {
    bottom: 40px;
    visibility: visible;
    opacity: 1;
}

/* --------------------------------------------------
   ANIMATION UTILITIES
-------------------------------------------------- */
.tilt:hover {
    animation-duration: .1s;
    animation-iteration-count: 2;
    animation-name: jitter;
}

@keyframes jitter {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(15deg);
    }

    75% {
        transform: rotate(-15deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.filter_img {
    filter: blur(20px);
}

/* --------------------------------------------------
   MODERN PORTFOLIO POLISH, 2026 REFRESH
-------------------------------------------------- */
html {
    scroll-behavior: smooth;
}

body {
    background: #f5f5f5;
}

section {
    scroll-margin-top: 24px;
}

/* .site-banner .banner-area::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.14), rgba(0, 0, 0, 0.76) 58%, rgba(0, 0, 0, 0.96));
    z-index: 0;
} */

.site-banner .banner-area .author {
    z-index: 2;
    width: min(92%, 760px);
}

.site-banner .banner-area .author h1 {
    letter-spacing: 4px;
    text-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
}

.hero-actions {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-btn {
    min-width: 150px;
    padding: 12px 20px;
    border-radius: 999px;
    font-family: var(--font-os);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.hero-btn:hover {
    text-decoration: none;
    transform: translateY(-3px);
}

.hero-btn-primary {
    color: #111;
    background: #ffffff;
    box-shadow: 0 16px 35px rgba(255, 255, 255, 0.18);
}

.hero-btn-primary:hover {
    color: #111;
    box-shadow: 0 18px 45px rgba(255, 255, 255, 0.28);
}

.hero-btn-secondary {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.hero-btn-secondary:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.section-heading-modern {
    max-width: 850px;
}

.portfolio-section-copy {
    max-width: 760px;
    color: #606060;
    font-family: var(--font-ram);
    font-size: 18px;
    line-height: 1.7;
    margin-top: 12px;
}

.portfolio-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 10px 0 34px;
}

.portfolio-stats div {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 24px;
    padding: 22px 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
}

.portfolio-stats strong,
.portfolio-stats span {
    display: block;
}

.portfolio-stats strong {
    font-family: var(--font-staat);
    font-size: 28px;
    letter-spacing: 1px;
    color: #111;
}

.portfolio-stats span {
    margin-top: 6px;
    font-family: var(--font-os);
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.featured-block-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 26px 0 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 12px;
}

.featured-block-title span {
    font-family: var(--font-staat);
    font-size: 28px;
    letter-spacing: 1px;
}

.featured-block-title small {
    color: #777;
    font-family: var(--font-os);
    text-transform: uppercase;
    letter-spacing: 0.9px;
}

.featured-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.featured-project-card,
#projects .panel.modern-project-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.featured-project-card:hover,
#projects .panel.modern-project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.12) !important;
}

.featured-project-body {
    padding: 24px;
    text-align: left;
}

.featured-project-body h3 {
    font-family: var(--font-staat);
    font-size: 30px;
    letter-spacing: 1px;
    margin: 14px 0 10px;
}

.featured-project-body p {
    color: #606060;
    font-family: var(--font-ram);
    line-height: 1.65;
}

.featured-project-card {
    height: 100%;
}

.project-category-pill {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 7px 12px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-family: var(--font-os);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.modern-project-card .project-category-pill {
    margin-left: auto;
    margin-right: auto;
}

#projects .panel.modern-project-card {
    height: 100%;
    padding: 22px !important;
}

#projects .panel.modern-project-card .project-image {
    border-radius: 0px;
    background: #f3f4f6;
    margin-top: 4px;
}

#projects .panel.modern-project-card h4 {
    font-family: var(--font-staat);
    font-size: 26px;
    letter-spacing: 0.6px;
}

.modern-project-links {
    gap: 10px;
}

.modern-project-links .btn {
    border-radius: 999px;
    padding: 8px 13px;
    white-space: nowrap;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media screen and (max-width: 991px) {

    .portfolio-stats,
    .featured-projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 767px) {
    .site-banner .banner-area .author h1 {
        font-size: 34px;
    }

    .portfolio-stats,
    .featured-projects-grid {
        grid-template-columns: 1fr;
    }

    .featured-block-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .featured-image-wrap {
        height: 260px;
    }

    .modern-project-links {
        flex-direction: column;
    }

    .modern-project-links .btn {
        width: 100%;
    }
}

.project-category-pill {
    display: none !important;
}

.featured-project-card.reveal-on-scroll.is-visible:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.12) !important;
}

.featured-image-wrap {
    width: 100%;
    aspect-ratio: 12 / 9;
    background-color: #e0e0e0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
}

.featured-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* .featured-image-wrap img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
} */

.featured-project-card {
    display: flex;
    flex-direction: column;
}

.featured-project-body {
    padding: 24px;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.featured-project-body p {
    color: #606060;
    font-family: var(--font-ram);
    line-height: 1.65;
    min-height: 120px;
}

.featured-project-links {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

body {
    visibility: visible;
}

#loader {
    display: none;
}

.project-image img,
.featured-image-wrap img {
    opacity: 0;
}

.project-image img.loaded,
.featured-image-wrap img.loaded {
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.portfolio-stats div {
    background: #ffffff;
    border-radius: 26px;
    padding: 34px 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: default;
}

.portfolio-stats div:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.10);
    border-color: rgba(0, 0, 0, 0.10);
}

.portfolio-stats strong {
    transition: transform 0.28s ease;
    display: inline-block;
}

.portfolio-stats div:hover strong {
    transform: scale(1.04);
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.modern-project-card::before,
.featured-project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.18),
            transparent);
    transition: all 0.7s ease;
}

.modern-project-card:hover::before,
.featured-project-card:hover::before {
    left: 130%;
}

html {
    scroll-behavior: smooth;
}

.primary-nav .nav-link {
    position: relative;
    transition: all 0.25s ease;
}

.primary-nav .nav-link::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 50%;
    width: 0;
    height: 2px;
    background: white;
    transition: all 0.25s ease;
    transform: translateY(-50%);
}

.primary-nav .nav-link:hover::before {
    width: 18px;
}

#education .panel,
#experience .panel {
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

#education .panel:hover,
#experience .panel:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.12) !important;
}

#education .panel .icon,
#experience .panel .icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 22px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.28s ease, background 0.28s ease;
}

#education .panel:hover .icon,
#experience .panel:hover .icon {
    transform: scale(1.06);
    background: #111827;
}

#education .panel:hover .icon i,
#experience .panel:hover .icon i,
#education .panel:hover .icon svg,
#experience .panel:hover .icon svg {
    color: #ffffff !important;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 34px;
    margin-top: 34px;
    align-items: center;
}

#skills .skill-item {
    position: relative;
    color: #7e7d7d;
    transition: transform 0.25s ease, color 0.25s ease;
    cursor: default;
}

#skills .skill-item:hover {
    transform: translateY(-10px) scale(1.08);
    color: #111827;
}

#skills .skill-item::after {
    content: attr(data-skill);
    position: absolute;
    left: 50%;
    bottom: -38px;
    transform: translateX(-50%) translateY(8px);
    background: #111827;
    color: #ffffff;
    font-family: var(--font-os);
    font-size: 12px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 7px 12px;
    border-radius: 999px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

#skills .skill-item:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}