/* =========================================================
   DHritikamal Das — PORTFOLIO
   Complete stylesheet
   ========================================================= */

/* =========================================================
   1. RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;

    min-height: 100vh;

    font-family: "Poppins", Arial, sans-serif;

    color: #f5f7ff;

    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(89, 61, 255, 0.15),
            transparent 28%
        ),
        radial-gradient(
            circle at 85% 20%,
            rgba(0, 200, 255, 0.10),
            transparent 25%
        ),
        radial-gradient(
            circle at 50% 80%,
            rgba(139, 92, 246, 0.12),
            transparent 30%
        ),
        #050816;

    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
}


/* =========================================================
   2. GLOBAL BACKGROUND
   ========================================================= */

.portfolio-bg {
    position: fixed;
    inset: 0;

    z-index: 0;

    pointer-events: none;
    overflow: hidden;

    background:
        linear-gradient(
            rgba(7, 11, 30, 0.72),
            rgba(5, 8, 22, 0.90)
        );
}


/* Grid */

.portfolio-bg::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(85, 100, 180, 0.055) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(85, 100, 180, 0.055) 1px,
            transparent 1px
        );

    background-size: 55px 55px;

    mask-image: linear-gradient(
        to bottom,
        black,
        rgba(0, 0, 0, 0.6),
        transparent
    );
}


/* Aurora glow */

.portfolio-bg::after {
    content: "";

    position: absolute;

    width: 700px;
    height: 700px;

    top: -300px;
    left: -180px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(103, 70, 255, 0.18),
            transparent 68%
        );

    filter: blur(40px);

    animation: backgroundFloat 12s ease-in-out infinite alternate;
}


@keyframes backgroundFloat {

    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(120px, 80px) scale(1.12);
    }

    100% {
        transform: translate(240px, 30px) scale(1);
    }
}


/* Content stays above background */

body > *:not(.portfolio-bg) {
    position: relative;
    z-index: 1;
}


/* =========================================================
   FINAL DKD PAGE LOADER
   ========================================================= */

#page-loader {
    position: fixed !important;
    inset: 0 !important;

    width: 100vw;
    height: 100vh;

    z-index: 999999 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: #050816 !important;

    opacity: 1;
    visibility: visible;
    pointer-events: all;

    animation: loaderAutoHide 0.7s ease 1.2s forwards;
}


/* DKD LOGO */

#page-loader .loader-logo {
    font-size: 72px;
    font-weight: 900;
    letter-spacing: 8px;

    background: linear-gradient(
        90deg,
        #8b5cf6,
        #38bdf8,
        #c084fc,
        #8b5cf6
    );

    background-size: 300% auto;

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    animation:
        loaderGradient 2.5s linear infinite,
        loaderPulse 1.4s ease-in-out infinite;
}


/* AUTOMATICALLY REMOVE LOADER */

@keyframes loaderAutoHide {

    0% {
        opacity: 1;
        visibility: visible;
    }

    80% {
        opacity: 0;
        visibility: visible;
    }

    100% {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}


@keyframes loaderGradient {

    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 300% center;
    }
}


@keyframes loaderPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}


/* Extra safety if JS adds this class */

#page-loader.hide-loader {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* =========================================================
   4. NAVBAR
   ========================================================= */

.navbar {
    position: sticky;
    top: 0;

    z-index: 1000;

    width: min(1400px, calc(100% - 40px));

    min-height: 76px;

    margin: 18px auto 0;

    padding: 10px 14px 10px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    border: 1px solid rgba(148, 163, 184, 0.16);

    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            rgba(15, 23, 50, 0.88),
            rgba(10, 14, 34, 0.78)
        );

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);

    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}


/* Navbar subtle glow */

.navbar::before {
    content: "";

    position: absolute;
    inset: 0;

    border-radius: inherit;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(124, 92, 255, 0.08),
            transparent
        );

    opacity: 0.8;
}


/* LEFT */

.nav-left {
    display: flex;
    align-items: center;

    min-width: 0;
}


/* LOGO */

.logo {
    display: flex;
    align-items: center;

    gap: 11px;

    white-space: nowrap;
}

.logo-badge {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;

    color: white;

    background:
        linear-gradient(
            135deg,
            #684cff,
            #9a5cff,
            #22d3ee
        );

    box-shadow:
        0 0 20px rgba(111, 76, 255, 0.42),
        inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.logo-text {
    font-size: 18px;
    font-weight: 700;

    color: #e8ecff;
}


/* RIGHT NAVIGATION */

.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 10px;

    min-width: 0;
}


/* NAV BUTTON */

.nav-box {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding: 0 19px;

    border-radius: 13px;

    color: #cbd5f5;

    font-size: 14px;
    font-weight: 600;

    border: 1px solid rgba(115, 137, 255, 0.18);

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.015)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.045);

    overflow: hidden;

    transition:
        transform 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}


/* Moving shine */

.nav-box::before {
    content: "";

    position: absolute;

    top: 0;
    left: -120%;

    width: 80%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.14),
            transparent
        );

    transform: skewX(-20deg);

    transition: left 0.55s ease;
}


/* Bottom active line */

.nav-box::after {
    content: "";

    position: absolute;

    left: 20%;
    right: 20%;
    bottom: 4px;

    height: 2px;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            #7c5cff,
            #22d3ee
        );

    transform: scaleX(0);

    transition: transform 0.3s ease;
}


/* Hover */

.nav-box:hover {
    color: white;

    transform: translateY(-2px);

    border-color: rgba(124, 92, 255, 0.65);

    background:
        linear-gradient(
            135deg,
            rgba(124, 92, 255, 0.18),
            rgba(34, 211, 238, 0.08)
        );

    box-shadow:
        0 8px 25px rgba(72, 52, 180, 0.20),
        0 0 20px rgba(124, 92, 255, 0.10);
}

.nav-box:hover::before {
    left: 140%;
}

.nav-box:hover::after {
    transform: scaleX(1);
}


/* =========================================================
   5. HERO
   ========================================================= */

.hero {
    width: min(1200px, calc(100% - 40px));

    margin: 90px auto 0;

    padding: 30px 0 80px;
}


.hero-top {
    display: grid;

    grid-template-columns: 310px minmax(0, 1fr);

    align-items: center;

    gap: 70px;
}


/* PROFILE IMAGE */

.hero-image {
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 270px;
    height: 270px;

    object-fit: cover;

    border-radius: 50%;

    border: 3px solid rgba(151, 118, 255, 0.75);

    box-shadow:
        0 0 25px rgba(124, 92, 255, 0.40),
        0 0 70px rgba(34, 211, 238, 0.10);

    animation: profileFloat 5s ease-in-out infinite;
}

@keyframes profileFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}


/* HERO TEXT */

.hero-text {
    min-width: 0;
}

.hero-text h1 {
    margin: 0 0 16px;

    font-size: clamp(38px, 5vw, 68px);

    line-height: 1.05;

    font-weight: 800;

    letter-spacing: -2px;
}

.gradient-text {
    background:
        linear-gradient(
            90deg,
            #a78bfa,
            #38bdf8,
            #c084fc,
            #a78bfa
        );

    background-size: 300% auto;

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;

    animation: nameGradient 4s linear infinite;
}

@keyframes nameGradient {

    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 300% center;
    }
}


.hero-text h3 {
    margin: 0 0 18px;

    font-size: clamp(20px, 2.5vw, 30px);

    line-height: 1.3;

    color: #f2f4ff;
}

.hero-text h3 span {
    background:
        linear-gradient(
            90deg,
            #38bdf8,
            #8b5cf6,
            #c084fc,
            #38bdf8
        );

    background-size: 300% auto;

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;

    animation: subtitleGradient 4s linear infinite;
}

@keyframes subtitleGradient {

    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 300% center;
    }
}


.hero-desc {
    max-width: 760px;

    margin: 0;

    color: #aeb8d5;

    font-size: 16px;

    line-height: 1.9;
}


/* HERO BUTTONS */

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 16px;

    margin-top: 48px;
}


.hero-btn,
.resume-btn {
    min-width: 150px;

    padding: 15px 25px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    font-size: 15px;
    font-weight: 700;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


/* Resume */

.resume-btn {
    color: #bcefff;

    border: 1px solid rgba(34, 211, 238, 0.45);

    background:
        linear-gradient(
            135deg,
            rgba(34, 211, 238, 0.10),
            rgba(34, 211, 238, 0.04)
        );
}

.resume-btn:hover {
    transform: translateY(-4px);

    box-shadow:
        0 12px 30px rgba(34, 211, 238, 0.18);
}


/* Primary */

.primary-btn {
    color: white;

    border: 1px solid rgba(139, 92, 246, 0.65);

    background:
        linear-gradient(
            135deg,
            #6650f5,
            #9b55f6
        );

    box-shadow:
        0 10px 30px rgba(108, 74, 246, 0.25);
}

.primary-btn:hover {
    transform: translateY(-4px);

    box-shadow:
        0 15px 40px rgba(124, 92, 255, 0.40);
}


/* Secondary */

.secondary-btn {
    color: #d1fae5;

    border: 1px solid rgba(52, 211, 153, 0.35);

    background:
        linear-gradient(
            135deg,
            rgba(16, 185, 129, 0.11),
            rgba(16, 185, 129, 0.04)
        );
}

.secondary-btn:hover {
    transform: translateY(-4px);

    box-shadow:
        0 15px 35px rgba(16, 185, 129, 0.15);
}


/* =========================================================
   6. SUMMARY
   ========================================================= */

.summary-section {
    width: min(1050px, calc(100% - 40px));

    margin: 30px auto 130px;

    text-align: center;
}


.portfolio-summary {
    margin: 0;

    color: #c3cbe2;

    font-size: 18px;

    line-height: 2;

    text-wrap: balance;
}


/* =========================================================
   7. SECTION COMMON
   ========================================================= */

#skills,
#projects,
#certificate,
#contact {
    text-align: center;

    width: min(1300px, calc(100% - 40px));

    margin: 0 auto;

    scroll-margin-top: 110px;
    
    padding-bottom: 180px;
}


/* Section label */

.skills-label,
.projects-label,
.certificate-label,
.contact-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;

    padding: 0 25px;

    border-radius: 999px;

    color: #d9d5ff;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 0.42em;

    border: 1px solid rgba(124, 92, 255, 0.75);

    background:
        linear-gradient(
            135deg,
            rgba(124, 92, 255, 0.10),
            rgba(34, 211, 238, 0.04)
        );

    box-shadow:
        0 0 18px rgba(124, 92, 255, 0.10);

    animation: labelGlow 3s ease-in-out infinite;
}

@keyframes labelGlow {

    0%,
    100% {
        box-shadow:
            0 0 12px rgba(124, 92, 255, 0.12);
    }

    50% {
        box-shadow:
            0 0 28px rgba(124, 92, 255, 0.30);
    }
}


/* =========================================================
   8. LIVE SECTION HEADINGS
   ========================================================= */

.skills-heading,
.projects-heading,
.certificate-heading,
.contact-heading {
    position: relative;

    display: inline-block;

    margin: 22px 0 12px;

    font-size: clamp(38px, 5vw, 58px);

    line-height: 1.1;

    align-items: center;

    font-weight: 800;

    letter-spacing: -2px;

    background:
        linear-gradient(
            90deg,
            #ffffff,
            #8b5cf6,
            #38bdf8,
            #c084fc,
            #ffffff
        );

    background-size: 300% auto;

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;

    animation:
        headingGradient 5s linear infinite,
        headingFloat 3.5s ease-in-out infinite;
}


@keyframes headingGradient {

    0% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }

    100% {
        background-position: 0% center;
    }
}


@keyframes headingFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}


/* Moving underline */

.skills-heading::after,
.projects-heading::after,
.certificate-heading::after,
.contact-heading::after {
    content: "";

    position: absolute;

    left: -10%;
    bottom: -8px;

    width: 35%;
    height: 2px;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #38bdf8,
            #8b5cf6,
            transparent
        );

    filter: blur(0.5px);

    animation: headingLight 3s ease-in-out infinite;
}


@keyframes headingLight {

    0% {
        left: -15%;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    55% {
        left: 80%;
        opacity: 1;
    }

    85% {
        opacity: 0;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

/* =========================================================
   SECTION DESCRIPTION — SMALL TEXT
   ========================================================= */

.skills-heading p,
.projects-heading p,
.certificate-heading p,
.contact-heading p {
    font-size: 14px !important;
    line-height: 1.6 !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;

    color: #8f9ab8 !important;

    max-width: 700px !important;

    margin: 10px auto 0 !important;

    text-align: center;

    /* Remove heading gradient effect */
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: #8f9ab8 !important;

    /* Remove heading animation */
    animation: none !important;

    opacity: 0.85;
}

/* =========================================================
   9. SKILLS SECTION
   ========================================================= */

.skills-section {
    width: 100%;
    margin: 0 auto 180px;
    text-align: center;
}


/* =========================================================
   SKILL HEADING
   ========================================================= */

.skills-heading span {
    color: inherit;
}


/* =========================================================
   SKILL FILTERS
   ========================================================= */

.skill-filters {
    display: flex;
    justify-content: center;
    align-items: center;

    flex-wrap: wrap;

    gap: 12px;

    margin: 42px 0 34px;
}

.skill-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 11px 20px;

    min-height: 44px;

    border-radius: 999px;

    color: #aeb9d5;

    font-size: 14px;
    font-weight: 600;

    white-space: nowrap;

    border: 1px solid rgba(86, 116, 190, 0.32);

    background:
        linear-gradient(
            135deg,
            rgba(17, 27, 58, 0.90),
            rgba(10, 18, 42, 0.85)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03);

    transition:
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.skill-filter:hover {
    color: #ffffff;

    border-color: rgba(139, 92, 246, 0.70);

    background:
        linear-gradient(
            135deg,
            rgba(124, 92, 255, 0.18),
            rgba(56, 189, 248, 0.06)
        );

    transform: translateY(-3px);

    box-shadow:
        0 8px 22px rgba(124, 92, 255, 0.14);
}


/* =========================================================
   ACTIVE FILTER
   ========================================================= */

.skill-filter.active {
    color: #ffffff;

    border-color: rgba(139, 92, 246, 0.85);

    background:
        linear-gradient(
            135deg,
            #7c3aed,
            #6366f1
        );

    box-shadow:
        0 8px 25px rgba(124, 92, 246, 0.28);
}


/* =========================================================
   SKILL GRID
   ========================================================= */

.skills-container {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 18px;

    align-items: stretch;
}


/* =========================================================
   SKILL CARD
   ========================================================= */

.skill-box {
    position: relative;

    min-width: 0;
    min-height: 165px;

    padding: 25px 15px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 13px;

    text-align: center;

    overflow: hidden;

    border-radius: 19px;

    border: 1px solid rgba(91, 112, 180, 0.22);

    background:
        linear-gradient(
            145deg,
            rgba(20, 29, 61, 0.78),
            rgba(10, 16, 38, 0.74)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 8px 25px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.30s ease,
        border-color 0.30s ease,
        box-shadow 0.30s ease,
        background 0.30s ease;
}


/* =========================================================
   CARD GLOW
   ========================================================= */

.skill-box::before {
    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(139, 92, 246, 0.16),
            transparent 65%
        );

    opacity: 0;

    transition: opacity 0.3s ease;
}


/* Moving light */

.skill-box::after {
    content: "";

    position: absolute;

    top: -100%;
    left: -100%;

    width: 60%;
    height: 250%;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.035),
            transparent
        );

    transform: rotate(25deg);

    transition: left 0.7s ease;
}


.skill-box:hover {
    transform: translateY(-7px);

    border-color:
        rgba(139, 92, 246, 0.60);

    background:
        linear-gradient(
            145deg,
            rgba(25, 35, 73, 0.88),
            rgba(12, 19, 45, 0.84)
        );

    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.25),
        0 0 28px rgba(124, 92, 255, 0.13);
}

.skill-box:hover::before {
    opacity: 1;
}

.skill-box:hover::after {
    left: 150%;
}


/* =========================================================
   ALL SKILL ICONS
   FORCE SAME PURPLE COLOR
   ========================================================= */

.skill-box > i,
.skill-box > i::before,
.skill-box .skill-logo,
.skill-box .skill-logo::before {
    color: #a78bfa !important;
}


/* Devicon specifically */

.skill-box i[class*="devicon-"],
.skill-box i[class*="devicon-"]::before {
    color: #a78bfa !important;
}


/* =========================================================
   ICON SIZE
   ========================================================= */

.skill-box > i,
.skill-logo {
    position: relative;

    z-index: 2;

    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 40px;

    color: #a78bfa !important;

    filter:
        drop-shadow(0 0 6px rgba(167, 139, 250, 0.10));

    transition:
        transform 0.3s ease,
        filter 0.3s ease;
}


.skill-box:hover > i,
.skill-box:hover .skill-logo {
    transform: translateY(-3px) scale(1.08);

    filter:
        drop-shadow(0 0 10px rgba(167, 139, 250, 0.35));
}


/* =========================================================
   IMAGE-BASED LOGOS
   XGBoost / Seaborn / OTHER IMAGES
   ========================================================= */

.xgboost-logo,
.seaborn-logo {
    width: 48px;
    height: 48px;

    object-fit: contain;

    /*
       Convert original logo colors into
       a purple/lavender appearance.
    */

    filter:
        grayscale(1)
        brightness(0)
        invert(68%)
        sepia(22%)
        saturate(1200%)
        hue-rotate(220deg)
        brightness(105%)
        contrast(95%);

    transition:
        transform 0.3s ease,
        filter 0.3s ease;
}


.skill-box:hover .xgboost-logo,
.skill-box:hover .seaborn-logo {
    transform: translateY(-3px) scale(1.08);

    filter:
        grayscale(1)
        brightness(0)
        invert(68%)
        sepia(22%)
        saturate(1400%)
        hue-rotate(220deg)
        brightness(110%)
        contrast(100%)
        drop-shadow(0 0 8px rgba(167, 139, 250, 0.35));
}


/* =========================================================
   REMOVE OLD SPECIAL COLORS
   ========================================================= */

/*
   These override your previous Power BI / Excel
   yellow and green rules.
*/

.powerbi-icon,
.excel-icon,
.python-icon,
.pandas-icon,
.numpy-icon,
.sklearn-icon,
.xgboost-icon,
.seaborn-icon,
.pytorch-icon,
.streamlit-icon,
.plotly-icon,
.matplotlib-icon,
.sql-icon,
.html-icon,
.css-icon,
.javascript-icon,
.git-icon,
.github-icon,
.docker-icon,
.fastapi-icon,
.vscode-icon,
.jupyter-icon,
.huggingface-icon,
.linux-icon {
    color: #a78bfa !important;
}


/* Devicon pseudo-elements */

.powerbi-icon::before,
.excel-icon::before,
.python-icon::before,
.pandas-icon::before,
.numpy-icon::before,
.sklearn-icon::before,
.xgboost-icon::before,
.seaborn-icon::before,
.pytorch-icon::before,
.streamlit-icon::before,
.plotly-icon::before,
.matplotlib-icon::before,
.sql-icon::before,
.html-icon::before,
.css-icon::before,
.javascript-icon::before,
.git-icon::before,
.github-icon::before,
.docker-icon::before,
.fastapi-icon::before,
.vscode-icon::before,
.jupyter-icon::before,
.huggingface-icon::before,
.linux-icon::before {
    color: #a78bfa !important;
}


/* =========================================================
   SKILL NAME
   ========================================================= */

.skill-box span {
    position: relative;

    z-index: 2;

    color: #e2e8f8;

    font-size: 16px;

    font-weight: 700;

    line-height: 1.35;

    overflow-wrap: anywhere;

    transition:
        color 0.25s ease;
}


.skill-box:hover span {
    color: #ffffff;
}


/* =========================================================
   SKILL CATEGORY
   ========================================================= */

.skill-box small,
.skill-box .skill-category {
    position: relative;

    z-index: 2;

    color: #8f9ab8;

    font-size: 12px;

    font-weight: 500;

    line-height: 1.4;
}


/* =========================================================
   SKILL FOOTER
   ========================================================= */

.skills-footer {
    margin-top: 38px;

    text-align: center;

    color: #7784a6;

    font-size: 13px;

    line-height: 1.6;
}

/* =========================================================
   FORCE PANDAS / NUMPY / SCIKIT-LEARN TO MATCH SKILL ICONS
   ========================================================= */

.skills-container .skill-box img.skill-logo {
    width: 42px;
    height: 42px;

    object-fit: contain;

    filter:
        brightness(0)
        saturate(100%)
        invert(67%)
        sepia(35%)
        saturate(1200%)
        hue-rotate(220deg)
        brightness(96%)
        contrast(96%);

    opacity: 1;
}


/* =========================================================
   INDIVIDUAL LOGOS
   ========================================================= */

.skills-container .skill-box img[alt="Pandas"] {
    filter:
        brightness(0)
        saturate(100%)
        invert(67%)
        sepia(35%)
        saturate(1200%)
        hue-rotate(220deg)
        brightness(96%)
        contrast(96%);
}


.skills-container .skill-box img[alt="NumPy"] {
    filter:
        brightness(0)
        saturate(100%)
        invert(67%)
        sepia(35%)
        saturate(1200%)
        hue-rotate(220deg)
        brightness(96%)
        contrast(96%);
}


.skills-container .skill-box img[alt="Scikit-learn"] {
    filter:
        brightness(0)
        saturate(100%)
        invert(67%)
        sepia(35%)
        saturate(1200%)
        hue-rotate(220deg)
        brightness(96%)
        contrast(96%);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

    .skills-container {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }
}


@media (max-width: 850px) {

    .skills-container {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 14px;
    }

    .skill-box {
        min-height: 155px;
    }
}


@media (max-width: 600px) {

    .skills-section {
        margin-bottom: 150px;
    }

    .skills-container {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 14px;
    }

    .skill-box {
        min-height: 150px;

        padding: 20px 10px;
    }

    .skill-box > i,
    .skill-logo {
        width: 42px;
        height: 42px;

        font-size: 35px;
    }

    .skill-box span {
        font-size: 15px;
    }

    .skill-box small,
    .skill-box .skill-category {
        font-size: 11px;
    }

    .skill-filter {
        padding: 10px 16px;

        font-size: 13px;
    }
}


@media (max-width: 380px) {

    .skills-container {
        gap: 10px;
    }

    .skill-box {
        min-height: 140px;
    }

    .skill-box span {
        font-size: 14px;
    }
}

/* =========================================================
   10. PROJECTS
   ========================================================= */

.projects-section {
    margin-bottom: 140px;
}


#projects {
    text-align: center;
}


.projects {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 24px;

    margin-top: 45px;

    width: 100%;
}


/* Whole clickable card */

.project-link {
    display: block;

    min-width: 0;

    height: 100%;
}


.project-card {
    position: relative;

    min-width: 0;
    height: 100%;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border-radius: 22px;

    border: 1px solid rgba(93, 116, 184, 0.23);

    background:
        linear-gradient(
            145deg,
            rgba(20, 29, 61, 0.90),
            rgba(8, 14, 34, 0.88)
        );

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);

    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}


.project-card:hover {
    transform: translateY(-9px);

    border-color: rgba(124, 92, 255, 0.65);

    box-shadow:
        0 25px 55px rgba(0, 0, 0, 0.30),
        0 0 30px rgba(124, 92, 255, 0.12);
}


/* PROJECT IMAGE */

.project-image {
    position: relative;

    width: 100%;
    height: 220px;

    flex-shrink: 0;

    overflow: hidden;

    background: #0a1025;
}


.project-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.5s ease,
        filter 0.5s ease;
}


.project-card:hover .project-image img {
    transform: scale(1.055);

    filter: brightness(1.08);
}


/* Image overlay */

.project-image::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(5, 8, 22, 0.40),
            transparent 60%
        );

    pointer-events: none;
}


/* PROJECT CATEGORY */

.project-category {
    margin: 20px 20px 8px;

    color: #8d7aff;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.18em;

    text-transform: uppercase;
}


/* PROJECT TITLE */

.project-card h3 {
    margin: 0 20px 10px;

    color: #f5f7ff;

    font-size: 19px;
    line-height: 1.35;
}


/* PROJECT DESCRIPTION */

.project-card p {
    margin: 0 20px 22px;

    color: #8e9ab8;

    font-size: 13px;

    line-height: 1.7;

    overflow-wrap: anywhere;
}


/* =========================================================
   11. CERTIFICATE
   ========================================================= */

.certificate-section {
    margin-bottom: 140px;

    text-align: center;
}


.certificate-resource {
    position: relative;

    width: min(850px, 100%);

    margin: 42px auto 18px;

    padding: 22px 25px;

    display: flex;
    align-items: center;

    gap: 18px;

    text-align: center;

    border-radius: 20px;

    border: 1px solid rgba(92, 111, 180, 0.25);

    background:
        linear-gradient(
            135deg,
            rgba(20, 29, 60, 0.80),
            rgba(8, 14, 34, 0.78)
        );

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.20);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


.certificate-resource:hover {
    transform: translateY(-5px);

    border-color: rgba(124, 92, 255, 0.55);

    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.25),
        0 0 25px rgba(124, 92, 255, 0.10);
}


.resource-icon {
    width: 50px;
    height: 50px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    font-size: 23px;

    color: #a78bfa;

    background:
        rgba(124, 92, 255, 0.12);
}


.powerpoint-icon {
    color: #f25f36;
}


.resource-content {
    min-width: 0;
    flex: 1;
}


.resource-content h3 {
    margin: 0 0 5px;

    color: white;

    font-size: 16px;
}


.resource-content p {
    margin: 0;

    color: #8793b2;

    font-size: 13px;

    line-height: 1.5;
}


.resource-arrow {
    flex-shrink: 0;

    color: #9f8cff;

    font-size: 18px;

    transition: transform 0.3s ease;
}

.certificate-resource:hover .resource-arrow {
    transform: translateX(5px);
}


.view-certificates-btn {
    display: flex;

    margin-top: 20px;

    padding: 13px 23px;

    border-radius: 13px;

    align-items: center;

    text-align: center;

    justify-content: center;

    color: white;

    font-size: 14px;
    font-weight: 700;

    border: 1px solid rgba(124, 92, 255, 0.55);

    background:
        linear-gradient(
            135deg,
            rgba(124, 92, 255, 0.18),
            rgba(34, 211, 238, 0.06)
        );

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.view-certificates-btn:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 30px rgba(124, 92, 255, 0.20);
}

/* =========================================================
   FINAL CERTIFICATE ALIGNMENT FIX
   ========================================================= */

#certificate {
    width: min(1300px, calc(100% - 40px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;

    text-align: center !important;
}


/* Certificate heading */
#certificate .certificate-heading {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;

    width: 100% !important;

    margin-left: auto !important;
    margin-right: auto !important;

    text-align: center !important;
}


/* CERTIFICATES label */
#certificate .certificate-label {
    margin-left: auto !important;
    margin-right: auto !important;
}


/* View My Certificates */
#certificate .certificate-heading h2 {
    width: 100% !important;

    margin-left: auto !important;
    margin-right: auto !important;

    text-align: center !important;
}


/* Certificate description */
#certificate .certificate-heading p {
    width: 100% !important;
    max-width: 700px !important;

    margin-left: auto !important;
    margin-right: auto !important;

    text-align: center !important;

    font-size: 14px !important;
    line-height: 1.6 !important;
}


/* View All Certificates button */
#certificate .view-certificates-btn {
    display: flex !important;

    width: fit-content !important;

    margin: 25px auto 0 !important;

    align-items: center !important;
    justify-content: center !important;

    text-align: center !important;
}

/* =========================================================
   12. CONTACT
   ========================================================= */

.contact-section {
    padding-bottom: 100px;
}


.contact-container {
    display: grid;

    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);

    gap: 25px;

    margin-top: 45px;
}


/* Contact info */

.contact-info,
.contact-form {
    min-width: 0;

    border-radius: 22px;

    border: 1px solid rgba(92, 111, 180, 0.23);

    background:
        linear-gradient(
            145deg,
            rgba(20, 29, 60, 0.80),
            rgba(8, 14, 34, 0.78)
        );

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.20);
}


.contact-info {
    padding: 30px;
}


.contact-info-header {
    display: flex;
    align-items: center;

    gap: 14px;

    margin-bottom: 25px;
}


.contact-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    color: #a78bfa;

    background:
        rgba(124, 92, 255, 0.12);
}


.contact-info-header h3 {
    margin: 0;

    font-size: 21px;
}


.contact-links {
    display: flex;
    flex-direction: column;

    gap: 12px;
}


.contact-link {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 13px;

    padding: 14px;

    border-radius: 14px;

    border: 1px solid rgba(95, 116, 180, 0.15);

    background:
        rgba(255, 255, 255, 0.025);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
}


.contact-link:hover {
    transform: translateX(5px);

    border-color: rgba(124, 92, 255, 0.45);

    background:
        rgba(124, 92, 255, 0.08);
}


.contact-link-icon {
    width: 34px;
    height: 34px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    color: #a78bfa;
}


.linkedin-icon {
    color: #0a66c2;
}

.github-icon {
    color: #f4f4f5;
}


.contact-link-text {
    min-width: 0;

    overflow-wrap: anywhere;

    color: #b8c2dc;

    font-size: 13px;
}


.contact-arrow {
    margin-left: auto;

    flex-shrink: 0;

    color: #6f7c9c;
}


/* FORM */

.contact-form {
    padding: 30px;
}


.form-header {
    margin-bottom: 24px;
}


.form-header h3 {
    margin: 0 0 6px;

    font-size: 21px;
}


.form-header p {
    margin: 0;

    color: #8490ae;

    font-size: 13px;
}


.form-group {
    margin-bottom: 17px;
}


.form-group label {
    display: block;

    margin-bottom: 7px;

    color: #b7c1db;

    font-size: 13px;
    font-weight: 600;
}


.form-group input,
.form-group textarea {
    width: 100%;

    min-width: 0;

    padding: 13px 14px;

    border: 1px solid rgba(91, 113, 177, 0.25);

    border-radius: 12px;

    outline: none;

    color: white;

    background:
        rgba(4, 9, 25, 0.70);

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}


.form-group textarea {
    min-height: 130px;

    resize: vertical;
}


.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(124, 92, 255, 0.70);

    box-shadow:
        0 0 0 3px rgba(124, 92, 255, 0.08);
}


.contact-submit {
    width: 100%;

    padding: 14px 20px;

    border: 0;

    border-radius: 13px;

    color: white;

    font-size: 14px;
    font-weight: 700;

    background:
        linear-gradient(
            135deg,
            #6750f5,
            #9a56f5
        );

    box-shadow:
        0 10px 25px rgba(124, 92, 255, 0.22);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.contact-submit:hover {
    transform: translateY(-3px);

    box-shadow:
        0 15px 35px rgba(124, 92, 255, 0.32);
}


/* =========================================================
   13. GENERIC CONTAINER
   ========================================================= */

.container {
    width: min(1200px, calc(100% - 40px));

    margin-inline: auto;

    min-width: 0;
}


/* =========================================================
   14. PROJECT / CASE STUDY PAGE
   ========================================================= */

.project-showcase,
.case-study {
    width: min(1200px, calc(100% - 40px));

    margin: 70px auto 100px;

    min-width: 0;
}


.project-subtitle,
.case-subtitle {
    max-width: 850px;

    margin: 15px auto 35px;

    color: #929db9;

    line-height: 1.8;

    text-align: center;
}


.project-hero-image {
    width: 100%;
    max-height: 520px;

    overflow: hidden;

    border-radius: 24px;

    border: 1px solid rgba(124, 92, 255, 0.25);

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.30);
}


.project-hero-image img {
    width: 100%;
    height: 100%;

    max-height: 520px;

    object-fit: cover;
}


/* ACTION BUTTONS */

.project-action-buttons {
    display: flex;
    justify-content: center;
    align-items: center;

    flex-wrap: wrap;

    gap: 12px;

    margin: 30px 0;
}


.showcase-btn {
    padding: 12px 20px;

    border-radius: 12px;

    border: 1px solid rgba(124, 92, 255, 0.35);

    background:
        rgba(124, 92, 255, 0.08);

    color: #d8d3ff;

    font-size: 13px;
    font-weight: 700;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}


.showcase-btn:hover {
    transform: translateY(-3px);

    background:
        rgba(124, 92, 255, 0.15);

    border-color: rgba(124, 92, 255, 0.65);
}


.live-btn {
    border-color: rgba(34, 211, 238, 0.35);
}


.github-btn {
    border-color: rgba(255, 255, 255, 0.20);
}


.paper-btn {
    border-color: rgba(16, 185, 129, 0.35);
}


/* CASE STUDY SECTIONS */

.case-section,
.showcase-section {
    margin: 55px 0;

    min-width: 0;
}


.case-section h2,
.showcase-section h2 {
    margin-bottom: 18px;

    color: #f4f6ff;

    font-size: 28px;
}


.case-section p,
.showcase-section p {
    color: #a4aec8;

    line-height: 1.9;

    overflow-wrap: anywhere;
}


/* STAT GRID */

.stats-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 16px;

    width: 100%;
}


.stat-card {
    min-width: 0;

    padding: 22px;

    border-radius: 17px;

    border: 1px solid rgba(92, 112, 180, 0.22);

    background:
        rgba(16, 24, 52, 0.70);

    text-align: center;
}


.stat-card h3 {
    margin: 0 0 5px;

    color: #a78bfa;

    font-size: 26px;
}


.stat-card p {
    margin: 0;

    color: #8792af;

    font-size: 12px;
}


/* PIPELINE */

.pipeline-box,
.formula-box {
    min-width: 0;

    padding: 24px;

    overflow-x: auto;

    border-radius: 18px;

    border: 1px solid rgba(92, 112, 180, 0.22);

    background:
        rgba(7, 12, 30, 0.78);
}


/* TABLE */

.case-study table {
    width: 100%;

    max-width: 100%;

    border-collapse: collapse;

    display: block;

    overflow-x: auto;
}


.case-study th,
.case-study td {
    padding: 12px 15px;

    border: 1px solid rgba(91, 112, 180, 0.20);

    text-align: left;

    white-space: nowrap;
}


.case-study th {
    color: white;

    background:
        rgba(124, 92, 255, 0.12);
}


.case-study td {
    color: #a9b3cb;
}


/* TECH STACK */

.tech-stack {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;
}


.project-tag {
    padding: 8px 13px;

    border-radius: 999px;

    color: #b8c3de;

    font-size: 12px;

    border: 1px solid rgba(124, 92, 255, 0.25);

    background:
        rgba(124, 92, 255, 0.07);
}


/* WORKFLOW */

.workflow {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 15px;
}


.feature-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 18px;
}


.feature-card {
    min-width: 0;

    padding: 24px;

    border-radius: 18px;

    border: 1px solid rgba(92, 112, 180, 0.20);

    background:
        rgba(16, 24, 52, 0.70);
}


.feature-card h3 {
    margin: 0 0 10px;

    color: white;

    font-size: 17px;
}


.feature-card p {
    margin: 0;

    color: #8994b0;

    font-size: 13px;

    line-height: 1.7;
}


.executive-summary {
    padding: 25px;

    border-left: 3px solid #8062ff;

    border-radius: 5px 16px 16px 5px;

    background:
        rgba(124, 92, 255, 0.06);
}


/* BACK BUTTON */

.back-btn {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 30px;

    color: #a99cff;

    font-size: 13px;
    font-weight: 700;

    transition:
        transform 0.25s ease,
        color 0.25s ease;
}


.back-btn:hover {
    color: white;

    transform: translateX(-4px);
}


/* =========================================================
   15. MOBILE / TABLET
   ========================================================= */

@media (max-width: 1150px) {

    .skills-container {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .hero-top {
        grid-template-columns: 260px minmax(0, 1fr);

        gap: 45px;
    }

    .hero-image img {
        width: 230px;
        height: 230px;
    }
}


/* =========================================================
   16. TABLET
   ========================================================= */

@media (max-width: 900px) {

    .navbar {
        width: calc(100% - 25px);

        margin-top: 12px;

        padding: 9px 10px 9px 14px;
    }

    .nav-right {
        gap: 6px;
    }

    .nav-box {
        padding: 0 12px;

        font-size: 12px;
    }


    .hero {
        margin-top: 60px;
    }

    .hero-top {
        grid-template-columns: 1fr;

        text-align: center;

        gap: 35px;
    }

    .hero-image {
        order: 1;
    }

    .hero-text {
        order: 2;
    }

    .hero-image img {
        width: 220px;
        height: 220px;
    }

    .hero-desc {
        margin-inline: auto;
    }


    .contact-container {
        grid-template-columns: 1fr;
    }


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

    .workflow,
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   17. MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .navbar {
        position: relative;

        width: calc(100% - 20px);

        min-height: auto;

        padding: 10px;

        flex-wrap: wrap;

        justify-content: center;
    }

    .nav-left {
        width: 100%;

        justify-content: center;
    }

    .nav-right {
        width: 100%;

        justify-content: center;

        flex-wrap: wrap;

        gap: 7px;
    }

    .nav-box {
        min-height: 40px;

        padding: 0 12px;

        font-size: 11px;
    }


    .hero {
        width: calc(100% - 28px);

        margin-top: 45px;

        padding-bottom: 55px;
    }

    .hero-text h1 {
        font-size: 39px;

        letter-spacing: -1.5px;
    }

    .hero-text h3 {
        font-size: 20px;
    }

    .hero-desc {
        font-size: 14px;

        line-height: 1.8;
    }


    .hero-buttons {
        flex-wrap: wrap;

        gap: 10px;

        margin-top: 35px;
    }

    .hero-btn,
    .resume-btn {
        min-width: 125px;

        padding: 13px 17px;

        font-size: 13px;
    }


    .summary-section {
        width: calc(100% - 30px);

        margin-bottom: 90px;
    }

    .portfolio-summary {
        font-size: 15px;

        line-height: 1.9;
    }


    #skills,
    #projects,
    #certificate,
    #contact {
        width: calc(100% - 28px);
    }


    .skills-heading,
    .projects-heading,
    .certificate-heading,
    .contact-heading {
        font-size: 39px;

        letter-spacing: -1.5px;
    }


    .skills-label,
    .projects-label,
    .certificate-label,
    .contact-label {
        min-height: 36px;

        padding: 0 18px;

        font-size: 10px;

        letter-spacing: 0.32em;
    }


    .skill-filters {
        justify-content: flex-start;

        overflow-x: auto;

        flex-wrap: nowrap;

        padding-bottom: 8px;

        scrollbar-width: none;
    }

    .skill-filters::-webkit-scrollbar {
        display: none;
    }

    .skill-filter {
        flex-shrink: 0;

        padding: 10px 15px;
    }


    .skills-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 10px;
    }

    .skill-box {
        min-height: 125px;

        padding: 18px 8px;
    }

    .skill-box > i,
    .skill-logo {
        width: 36px;
        height: 36px;

        font-size: 32px;
    }

    .skill-box span {
        font-size: 11px;
    }


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

        gap: 10px;
    }

    .project-card {
        border-radius: 17px;
    }

    .project-image {
        height: 130px;
    }

    .project-category {
        margin: 13px 12px 5px;

        font-size: 8px;
    }

    .project-card h3 {
        margin: 0 12px 7px;

        font-size: 13px;
    }

    .project-card p {
        margin: 0 12px 15px;

        font-size: 10px;

        line-height: 1.55;
    }


    .certificate-resource {
        padding: 17px;

        gap: 12px;
    }

    .resource-icon {
        width: 42px;
        height: 42px;

        font-size: 18px;
    }

    .resource-content h3 {
        font-size: 13px;
    }

    .resource-content p {
        font-size: 11px;
    }


    .contact-info,
    .contact-form {
        padding: 20px;
    }


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

        gap: 10px;
    }

    .stat-card {
        padding: 16px;
    }


    .workflow,
    .feature-grid {
        grid-template-columns: 1fr;
    }


    .project-showcase,
    .case-study {
        width: calc(100% - 28px);

        margin-top: 45px;
    }

    .project-action-buttons {
        gap: 8px;
    }

    .showcase-btn {
        padding: 10px 14px;

        font-size: 11px;
    }
}


/* =========================================================
   18. VERY SMALL PHONES
   ========================================================= */

@media (max-width: 420px) {

    .logo-badge {
        width: 40px;
        height: 40px;
    }

    .logo-text {
        font-size: 15px;
    }

    .nav-box {
        padding: 0 9px;

        font-size: 10px;
    }


    .hero-text h1 {
        font-size: 34px;
    }

    .hero-text h3 {
        font-size: 18px;
    }


    .hero-buttons {
        display: grid;

        grid-template-columns: 1fr;

        width: 100%;
    }

    .hero-btn,
    .resume-btn {
        width: 100%;
    }


    .projects {
        gap: 8px;
    }

    .project-image {
        height: 115px;
    }

    .project-card h3 {
        font-size: 12px;
    }

    .project-card p {
        font-size: 9px;
    }


    .skills-container {
        gap: 8px;
    }
}


/* =========================================================
   19. ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
   ONLINE RETAIL CASE STUDY
========================================================= */

.case-study {
    width: min(1180px, 92%);
    margin: 0 auto;
    padding: 120px 0 80px;
    color: #f4f7ff;
}


/* =========================================================
   HEADER
========================================================= */

.case-header {
    margin-bottom: 55px;
}

.case-label,
.action-label {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 2px;
    font-weight: 700;
    color: #9b8cff;
    margin-bottom: 18px;
}

.case-header h1 {
    max-width: 950px;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 1.05;
    margin: 0 0 25px;
    letter-spacing: -2px;
}

.case-subtitle {
    color: #aeb9d3;
    font-size: 1.05rem;
    line-height: 1.7;
}


/* =========================================================
   EXECUTIVE SUMMARY
========================================================= */

.executive-summary {
    margin-top: 50px;
    padding: 38px;
    border: 1px solid rgba(150, 140, 255, 0.2);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.025);
    position: relative;
    overflow: hidden;
}

.executive-summary::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: #8d7cff;
}

.executive-summary h2,
.case-section h2 {
    font-size: 2rem;
    margin: 8px 0 20px;
}

.executive-summary p,
.case-section p {
    color: #aeb9d3;
    line-height: 1.85;
    font-size: 1rem;
}


/* =========================================================
   SECTION NUMBERS
========================================================= */

.section-number {
    display: block;
    color: #8d7cff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
}


/* =========================================================
   ACTION BUTTONS
========================================================= */

.project-action-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 28px 32px;
    margin-bottom: 75px;
    border: 1px solid rgba(150, 140, 255, 0.2);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.025);
}

.project-action-buttons h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.15rem;
}

.showcase-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
}

.live-btn {
    background: #8d7cff;
    color: white;
}

.live-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(141, 124, 255, 0.3);
}


/* =========================================================
   SECTIONS
========================================================= */

.case-section {
    margin-bottom: 95px;
}

.case-section h3 {
    color: #ffffff;
    margin-top: 30px;
    margin-bottom: 12px;
}

.case-section p {
    max-width: 900px;
}


/* =========================================================
   LISTS
========================================================= */

.case-list,
.achievement-list {
    padding-left: 22px;
    margin-top: 25px;
}

.case-list li,
.achievement-list li {
    color: #b4bfd7;
    margin-bottom: 14px;
    line-height: 1.7;
}

.case-list li::marker,
.achievement-list li::marker {
    color: #8d7cff;
}


/* =========================================================
   INSIGHT CARDS
========================================================= */

.insight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 35px;
}

.insight-card {
    padding: 28px;
    border-radius: 18px;
    border: 1px solid rgba(150, 140, 255, 0.15);
    background: rgba(255, 255, 255, 0.025);
    transition: 0.3s ease;
}

.insight-card:hover {
    transform: translateY(-5px);
    border-color: rgba(150, 140, 255, 0.45);
}

.insight-card span {
    color: #8d7cff;
    font-size: 0.75rem;
    font-weight: 700;
}

.insight-card h3 {
    margin-top: 20px;
}

.insight-card p {
    font-size: 0.9rem;
}


/* =========================================================
   OBJECTIVES
========================================================= */

.objective-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 30px;
}

.objective-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    border: 1px solid rgba(150, 140, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
}

.objective-item span {
    color: #8d7cff;
    font-size: 0.75rem;
    font-weight: 700;
}

.objective-item p {
    margin: 0;
    font-size: 0.9rem;
}


/* =========================================================
   DATA FLOW
========================================================= */

.data-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 35px 0;
    padding: 25px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.025);
}

.data-flow div {
    padding: 12px 17px;
    border: 1px solid rgba(141, 124, 255, 0.25);
    border-radius: 10px;
    color: #dfe5f5;
    font-size: 0.85rem;
}

.data-flow span {
    color: #8d7cff;
}


/* =========================================================
   FEATURES
========================================================= */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 30px;
}

.feature-card {
    padding: 28px;
    border-radius: 18px;
    border: 1px solid rgba(150, 140, 255, 0.15);
    background: rgba(255, 255, 255, 0.025);
}

.feature-card h3 {
    margin-top: 0;
}

.feature-card p {
    font-size: 0.88rem;
}

.feature-card code {
    display: inline-block;
    margin-top: 10px;
    padding: 7px 10px;
    border-radius: 7px;
    background: rgba(141, 124, 255, 0.1);
    color: #aaa0ff;
    font-size: 0.75rem;
}


/* =========================================================
   MODEL
========================================================= */

.model-card {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 35px;
    margin-top: 30px;
    border-radius: 22px;
    border: 1px solid rgba(141, 124, 255, 0.25);
    background: linear-gradient(
        135deg,
        rgba(141, 124, 255, 0.08),
        rgba(255, 255, 255, 0.02)
    );
}

.model-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 18px;
    background: #8d7cff;
    color: white;
    font-weight: 800;
}


/* =========================================================
   SEGMENTS
========================================================= */

.segment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 30px;
}

.segment-card {
    min-height: 210px;
    padding: 25px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.025);
}

.segment-card span {
    color: #8d7cff;
    font-size: 0.75rem;
    font-weight: 700;
}

.segment-card h3 {
    margin-top: 25px;
}

.segment-card p {
    font-size: 0.85rem;
}


/* =========================================================
   PIPELINE
========================================================= */

.pipeline {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding: 30px 0 15px;
}

.pipeline-step {
    min-width: 145px;
    padding: 22px 18px;
    border: 1px solid rgba(141, 124, 255, 0.18);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.025);
}

.pipeline-step span {
    display: block;
    color: #8d7cff;
    font-size: 0.7rem;
    margin-bottom: 15px;
}

.pipeline-step strong {
    display: block;
    color: white;
    margin-bottom: 6px;
}

.pipeline-step small {
    color: #8d98b2;
}

.pipeline-arrow {
    color: #8d7cff;
    font-size: 1.2rem;
}


/* =========================================================
   DASHBOARD
========================================================= */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 30px;
}

.dashboard-grid > div {
    padding: 25px;
    border-radius: 17px;
    border: 1px solid rgba(150, 140, 255, 0.13);
    background: rgba(255, 255, 255, 0.02);
}

.dashboard-grid h3 {
    margin-top: 0;
}

.dashboard-grid p {
    font-size: 0.85rem;
}


/* =========================================================
   API TABLE
========================================================= */

.api-table {
    margin-top: 30px;
    border: 1px solid rgba(141, 124, 255, 0.15);
    border-radius: 16px;
    overflow: hidden;
}

.api-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    padding: 17px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.api-row:last-child {
    border-bottom: none;
}

.api-header {
    background: rgba(141, 124, 255, 0.08);
    color: white;
    font-weight: 700;
}

.api-row code {
    color: #aaa0ff;
}


/* =========================================================
   MONITORING
========================================================= */

.monitor-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.monitor-card {
    padding: 25px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(141, 124, 255, 0.12);
}

.monitor-card strong {
    display: block;
    color: white;
    margin-bottom: 10px;
}

.monitor-card span {
    color: #8d98b2;
    font-size: 0.8rem;
}


/* =========================================================
   DRIFT
========================================================= */

.drift-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.drift-features span {
    padding: 10px 14px;
    border-radius: 9px;
    background: rgba(141, 124, 255, 0.08);
    border: 1px solid rgba(141, 124, 255, 0.16);
    color: #c8c2ff;
    font-size: 0.8rem;
}

.drift-flow {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 35px;
    padding: 30px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.025);
}

.drift-flow div {
    flex: 1;
}

.drift-flow strong,
.drift-flow small {
    display: block;
}

.drift-flow strong {
    color: white;
    margin-bottom: 8px;
}

.drift-flow small {
    color: #8d98b2;
}

.drift-flow > span {
    color: #8d7cff;
    font-weight: 700;
}


/* =========================================================
   RETRAINING
========================================================= */

.retrain-card {
    margin-top: 30px;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(141, 124, 255, 0.2);
    background: rgba(141, 124, 255, 0.05);
}

.retrain-card > span {
    color: #aaa0ff;
    font-weight: 800;
    letter-spacing: 2px;
}

.retrain-card p {
    margin: 15px auto 0;
}


/* =========================================================
   TECHNOLOGY
========================================================= */

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.tech-stack span {
    padding: 10px 15px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd4e7;
    font-size: 0.8rem;
}


/* =========================================================
   DEPLOYMENT
========================================================= */

.deployment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 17px;
    margin-top: 30px;
}

.deployment-card {
    padding: 25px;
    border-radius: 17px;
    border: 1px solid rgba(141, 124, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
}

.deployment-card > span {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    color: #8d7cff;
}

.deployment-card h3 {
    margin-top: 18px;
}

.deployment-card p {
    font-size: 0.85rem;
}


/* =========================================================
   IMPACT
========================================================= */

.impact-section {
    padding: 45px;
    border-radius: 25px;
    background: linear-gradient(
        135deg,
        rgba(141, 124, 255, 0.08),
        rgba(255, 255, 255, 0.02)
    );
    border: 1px solid rgba(141, 124, 255, 0.18);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.impact-grid strong {
    color: #8d7cff;
    font-size: 0.75rem;
}

.impact-grid h3 {
    margin-top: 18px;
}

.impact-grid p {
    font-size: 0.85rem;
}


/* =========================================================
   PROJECT LINKS
========================================================= */

.project-links {
    margin: 90px 0 50px;
    padding-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.project-link-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 25px;
}

.project-link-grid a {
    display: block;
    padding: 25px;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(141, 124, 255, 0.15);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.02);
    transition: 0.3s ease;
}

.project-link-grid a:hover {
    transform: translateY(-5px);
    border-color: rgba(141, 124, 255, 0.5);
    background: rgba(141, 124, 255, 0.05);
}

.project-link-grid span {
    display: block;
    color: #8d7cff;
    font-size: 0.7rem;
    margin-bottom: 20px;
}

.project-link-grid strong,
.project-link-grid small {
    display: block;
}

.project-link-grid strong {
    color: white;
}

.project-link-grid small {
    margin-top: 8px;
    color: #8d98b2;
}


/* =========================================================
   BACK BUTTON
========================================================= */

.back-btn {
    display: inline-flex;
    margin-top: 20px;
    padding: 13px 20px;
    border: 1px solid rgba(141, 124, 255, 0.25);
    border-radius: 11px;
    color: #c8c2ff;
    text-decoration: none;
    transition: 0.3s ease;
}

.back-btn:hover {
    background: rgba(141, 124, 255, 0.08);
    transform: translateX(-4px);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

    .segment-grid,
    .deployment-grid,
    .monitor-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-grid,
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .insight-grid {
        grid-template-columns: 1fr;
    }

    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 700px) {

    .case-study {
        width: 90%;
        padding-top: 80px;
    }

    .case-header h1 {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .executive-summary {
        padding: 25px;
    }

    .project-action-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .objective-grid,
    .feature-grid,
    .segment-grid,
    .dashboard-grid,
    .deployment-grid,
    .monitor-grid,
    .project-link-grid {
        grid-template-columns: 1fr;
    }

    .data-flow {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .data-flow span {
        transform: rotate(90deg);
    }

    .pipeline {
        justify-content: flex-start;
    }

    .drift-flow {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .drift-flow > span {
        transform: rotate(90deg);
    }

    .api-row {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .impact-section {
        padding: 28px;
    }

    .impact-grid {
        grid-template-columns: 1fr;
    }

}
