body {
    font-family: "Bitcount Single", system-ui !important;
    overflow-x: hidden;
    background-color: #000 !important;
    margin: 0;
    padding: 0;
    text-align: left !important;
}

::selection {
    background-color: #7d46ff;
    color: #1a1a2e;
}

.navbar {
    background-color: transparent !important;
    margin: 10px;
    box-shadow: transparent;
    z-index: 999999 !important;
}

.navbar-brand {
    background-color: #7d46ff;
    padding: 10px 15px;
    border-radius: 0px;
    position: relative;
    z-index: 999999;
}

.sidebar-offcanvas {
    background-color: #1a1a2e !important;
    color: #fff !important;
    z-index: 9999999 !important;
}

.sidebar-offcanvas .offcanvas-title {
    color: #7d46ff;
}

#offcanvasWithBothOptions {
    height: 100vh;
}

.btn,
.btn-primary {
    background-color: transparent !important;
    border: none !important;
    color: white !important;
    font-size: 4rem;
}

.navbar .btn-primary {
    background-color: #7d46ff !important;
    border-radius: 0px;
}

.navbar .btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.box {
    position: relative;
    height: auto;
}

.in-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #000;
    padding: 0.5rem, 0.4rem;
    height: 33.33%;
    border-bottom: 1px solid #6a3ae0;
}

.in-box>h1,
.in-box>h1>i {
    color: #7d46ff;
    font-weight: 400;
    padding: 10px;
    font-size: 3vw;
    position: relative;
    z-index: 999;
    transition: 0.5s ease-in-out;
}

.in-box>i {
    color: transparent;
    font-weight: 400;
    padding: 10px;
    font-size: 3vw;
    position: relative;
    z-index: 999;
    transition: 0.5s ease-in-out;
}

.line {
    height: 0%;
    width: 100%;
    position: absolute;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    background-repeat: no-repeat;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: all ease .5s;
    background-color: #7d46ff;
    background-image: url(../images/warrior.webp);
}

.in-box:hover .line {
    height: 100%;
}

.box a:link,
.box a:visited,
.box a:hover,
.box a:active,
.box a:focus {
    color: #7d46ff !important;
    text-decoration: none !important;
}

.box a:link .in-box > h1,
.box a:link .in-box > h1 > i,
.box a:visited .in-box > h1,
.box a:visited .in-box > h1 > i,
.box a:hover .in-box > h1,
.box a:hover .in-box > h1 > i,
.box a:active .in-box > h1,
.box a:active .in-box > h1 > i,
.box a:focus .in-box > h1,
.box a:focus .in-box > h1 > i {
    color: #7d46ff !important;
}

.in-box:hover h1,
.in-box:hover i {
    color: #7d46ff !important;
}

.custom-context-menu {
    position: fixed;
    z-index: 99999999;
    min-width: 200px;
    padding: 6px 0;
    background: rgba(26, 26, 46, .95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(125, 70, 255, .3);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .6);
    font-family: "Bitcount Single", system-ui;
    opacity: 0;
    pointer-events: none;
}

.custom-context-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.custom-context-menu-item {
    padding: 8px 24px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.custom-context-menu-item:hover {
    background-color: #7d46ff;
    color: #fff;
}

#context-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translate(-50%, 20px);
    background: #1a1a2e;
    color: #fff;
    border: 1px solid #7d46ff;
    border-radius: 8px;
    padding: 12px 22px;
    font-size: 14px;
    z-index: 999999999;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#context-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.custom-context-menu-divider {
    height: 1px;
    margin: 4px 12px;
    background: rgba(125, 70, 255, .2);
}

/* SHARED CARD STYLING & HOVER ANIMATIONS */
.card,
.about-card,
.experience-container,
.about-preview-card,
.contact-preview-card,
.contact-card {
    background-color: #1a1a2e !important;
    border: 1px solid #3a2a6e !important;
    border-radius: 0;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.card:hover,
.about-card:hover,
.experience-container:hover,
.about-preview-card:hover,
.contact-preview-card:hover,
.contact-card:hover {
    transform: translateY(-5px);
    border-color: #7d46ff !important;
    box-shadow: 0 8px 25px rgba(125, 70, 255, 0.2) !important;
}

/* BUTTON HOVER ANIMATIONS */
.btn-see-more,
.btn-glow,
.btn-primary-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 32px;
    background-color: transparent;
    border: 2px solid #7d46ff !important;
    color: #fff !important;
    font-size: 1.1rem !important;
    text-decoration: none;
    border-radius: 0px;
    letter-spacing: 1px;
    transition: all 0.3s ease !important;
}

.btn-see-more:hover,
.btn-glow:hover,
.btn-primary-action:hover {
    background-color: #7d46ff !important;
    color: #fff !important;
    box-shadow: 0 0 20px rgba(125, 70, 255, 0.4);
    transform: translateY(-2px);
}

.btn-see-more i,
.btn-glow i,
.btn-primary-action i {
    transition: transform 0.3s ease;
}

.btn-see-more:hover i,
.btn-glow:hover i,
.btn-primary-action:hover i {
    transform: translateX(4px);
}

.project-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #3a2a6e;
}

.project-card-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #b9b0d6;
}

.project-group-heading {
    margin-top: 2rem;
}

.project-group-heading:first-of-type {
    margin-top: 0;
}

.project-group-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.project-group-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
}

.project-group-subtitle {
    color: #7d46ff;
    margin-bottom: 1.25rem;
}

@media (max-width: 576px) {
    .project-card-image {
        height: 140px;
    }

    .project-group-title {
        font-size: 1.4rem;
    }
}

/* Projects intro card follows the About page hero treatment. */
.project-hero-card {
    background-color: #1a1a2e;
    border: 1px solid #3a2a6e;
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    text-align: left;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.project-hero-card:hover {
    border-color: #7d46ff;
    box-shadow: 0 0 20px rgba(125, 70, 255, 0.2);
}

.project-hero-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.project-title-image {
    width: 96px;
    height: 96px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #ffc107;
}

.project-hero-badge {
    display: inline-block;
    background-color: rgba(125, 70, 255, 0.15);
    color: #dacbff;
    border: 1px solid #7d46ff;
    padding: 0.4rem 1rem;
    font-size: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.project-hero-copy {
    color: #b9b0d6;
    font-size: 1.15rem;
    max-width: 850px;
    line-height: 1.6;
}

@media (max-width: 576px) {
    .project-hero-card {
        padding: 1.75rem 1.25rem;
    }

    .project-title-image {
        width: 64px;
        height: 64px;
    }
}

