html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

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

/* =========================
   PAGE LOADER
========================= */

#page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;

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

    background: #141412;

    transition:
        opacity 0.5s ease,
        visibility 0.5s ease;

    /* Last-resort fallback if the page script fails before removing the loader. */
    animation: loader-fallback-hide 0s linear 3s forwards;
}

#page-loader.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

@keyframes loader-fallback-hide {
    to {
        opacity: 0;
        visibility: hidden;
    }
}


/* M Mark */

.loader-mark {
    position: relative;

    width: 82px;
    height: 82px;

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


/* Animated circle */

.loader-mark::before {
    content: "";

    position: absolute;
    inset: 0;

    border: 1px solid #33332f;
    border-top-color: #b8e986;

    border-radius: 50%;

    animation: loader-spin 1s linear infinite;
}


/* Glow */

.loader-mark::after {
    content: "";

    position: absolute;

    width: 45px;
    height: 45px;

    border-radius: 50%;

    background: rgba(184, 233, 134, 0.08);

    filter: blur(10px);

    animation: loader-glow 1.4s ease-in-out infinite alternate;
}


/* Letter */

.loader-mark span {
    position: relative;
    z-index: 2;

    color: #b8e986;

    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.08em;
}


/* Animations */

@keyframes loader-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes loader-glow {
    from {
        transform: scale(0.8);
        opacity: 0.35;
    }

    to {
        transform: scale(1.2);
        opacity: 1;
    }
}

body {
    margin: 0;
    background: #1f1f1f;
    color: #f3f0e8;
    /* font-family: "Inter", sans-serif; */
}

.hero-section {
    background: #1f1f1f;
    color: #f3f0e8;
    overflow: hidden;
}

.hero-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #d8d5ce;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #b8e986;
    box-shadow: 0 0 12px rgba(184, 233, 134, 0.45);
}

.hero-role {
    color: #777771;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.hero-title {
    font-size: clamp(4rem, 8vw, 7.5rem);
    line-height: 0.88;
    letter-spacing: -0.07em;
    font-weight: 800;
    color: #f3f0e8;
}

.hero-description {
    max-width: 560px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #9e9b94;
}

.hero-btn {
    background: #f3f0e8;
    color: #1f1f1f;
    border-radius: 999px;
    padding: 14px 24px;
    font-weight: 700;
    border: 1px solid #f3f0e8;
    transition: 0.25s ease;
}

.hero-btn:hover {
    background: transparent;
    color: #f3f0e8;
}

.hero-btn-outline {
    border: 1px solid #55554f;
    color: #f3f0e8;
    border-radius: 999px;
    padding: 14px 24px;
    font-weight: 700;
    transition: 0.25s ease;
}

.hero-btn-outline:hover {
    background: #f3f0e8;
    color: #1f1f1f;
    border-color: #f3f0e8;
}

.hero-image-wrapper {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero-image {
    width: 100%;
    max-height: 90vh;
    object-fit: cover;

    -webkit-mask-image: linear-gradient(to right,
            transparent 0%,
            rgba(0, 0, 0, 0.75) 18%,
            #000 40%,
            #000 100%);

    mask-image: linear-gradient(to right,
            transparent 0%,
            rgba(0, 0, 0, 0.75) 18%,
            #000 40%,
            #000 100%);
}

@media (max-width: 991.98px) {
    .hero-title {
        font-size: clamp(3.5rem, 15vw, 6rem);
    }

    .hero-section .min-vh-100 {
        min-height: auto !important;
        padding: 120px 0 80px;
    }
}

.hero-title {
    font-size: clamp(4rem, 8vw, 7.5rem);
    line-height: 0.88;
    letter-spacing: -0.07em;
}

.tech-strip {
    background: #f7f7f5;
    padding: 28px 0;
    overflow-x: hidden;
}

.tech-strip .container {
    max-width: 100%;
}

.tech-strip-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 38px;

    flex-wrap: wrap;
}

.tech-heading {
    display: flex;
    flex-direction: column;
    min-width: 140px;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: #777;
}

.tech-heading strong {
    color: #222;
    font-weight: 700;
}

.tech-divider {
    width: 1px;
    height: 50px;
    background: #ddd;
}

.tech-list {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    min-width: 0;
}

.tech-item {
    width: 64px;
    height: 64px;

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

    border-radius: 50%;

    background: #fff;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.08);

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

.tech-item i {
    font-size: 30px;
}

.tech-item:hover {
    transform: translateY(-5px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.13);
}

@media (max-width: 991.98px) {

    .tech-strip-inner {
        flex-direction: column;
        gap: 24px;
    }

    .tech-heading {
        text-align: center;
    }

    .tech-divider {
        width: 60px;
        height: 1px;
    }

    .tech-list {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 575.98px) {

    .tech-item {
        width: 52px;
        height: 52px;
    }

    .tech-item i {
        font-size: 25px;
    }

    .tech-list {
        gap: 12px;
    }
}

.tech-strip {
    background: #232323;
}

.tech-heading {
    color: #777771;
}

.tech-heading strong {
    color: #f3f0e8;
}

.tech-divider {
    background: #33332f;
}

.tech-item {
    background: #22221f;
    border: 1px solid #30302c;
    box-shadow: none;
}

.hero-name {
    color: #f3f0e8;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.hero-role {
    color: #777771;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.hero-image-wrapper {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.hero-image-frame {
    position: relative;
    width: 100%;
    max-width: 620px;
    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;

    padding: 8px;

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

    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.35);
}

.hero-image {
    display: block;
    width: 100%;
    height: auto;

    border-radius: 17px;
    object-fit: cover;
}

.hero-image-frame::before,
.hero-image-frame::after {
    content: "";
    position: absolute;
    width: 45px;
    height: 45px;
    z-index: 2;
    pointer-events: none;
}

.hero-image-frame::before {
    top: -1px;
    left: -1px;

    border-top: 2px solid #b8e986;
    border-left: 2px solid #b8e986;

    border-radius: 24px 0 0 0;
}

.hero-image-frame::after {
    right: -1px;
    bottom: -1px;

    border-right: 2px solid #b8e986;
    border-bottom: 2px solid #b8e986;

    border-radius: 0 0 24px 0;
}

/* =========================================
   HERO IMAGE MOTION
========================================= */

.hero-image-frame {
    /*
     * Keep all your existing frame CSS.
     */

    transform: translate3d(
        var(--mouse-x, 0px),
        var(--mouse-y, 0px),
        0
    );

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

    will-change: transform;
}


/* Subtle frame reaction */

.hero-image-frame:hover {
    border-color: rgba(184, 233, 134, 0.28);

    box-shadow:
        0 35px 80px rgba(0, 0, 0, 0.42),
        0 0 35px rgba(184, 233, 134, 0.04);
}


/* Natural movement happens on IMAGE, not frame */

.hero-image {
    animation: hero-image-breathe 7s ease-in-out infinite;

    will-change: transform;
}


/*
 * Extremely subtle:
 * image slowly moves/zooms inside the frame
 */

@keyframes hero-image-breathe {

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

    50% {
        transform:
            scale(1.018)
            translateY(-3px);
    }
}


/* Accessibility */

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

    .hero-image-frame {
        transform: none !important;
        transition: none;
    }

    .hero-image {
        animation: none;
    }
}

/* =========================================
   NAVBAR
========================================= */

.portfolio-navbar {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    z-index: 1000;

    background: transparent;
    border-bottom: 1px solid transparent;

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        backdrop-filter 0.3s ease;

    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
}

/* After scrolling */

.portfolio-navbar.scrolled {
    background: rgba(20, 20, 18, 0.88);

    border-bottom-color: rgba(255, 255, 255, 0.06);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.navbar-inner {
    position: relative;

    min-height: 74px;

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

    gap: 30px;
}


/* =========================================
   BRAND
========================================= */

.navbar-brand {
    flex: 0 0 auto;

    color: #f3f0e8;

    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;

    text-decoration: none;
}

.navbar-brand:hover {
    color: #b8e986;
}


/* =========================================
   MENU
========================================= */

.navbar-menu {
    display: flex;
    align-items: center;

    gap: 28px;
}

.navbar-menu>a:not(.navbar-cv) {
    position: relative;

    color: #8d8d87;

    font-size: 0.75rem;
    font-weight: 600;

    text-decoration: none;

    transition: color 0.2s ease;
}

.navbar-menu>a:not(.navbar-cv):hover {
    color: #f3f0e8;
}


/* underline */

.navbar-menu>a:not(.navbar-cv)::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 1px;

    background: #b8e986;

    transition: width 0.25s ease;
}

.navbar-menu>a:not(.navbar-cv):hover::after {
    width: 100%;
}


/* =========================================
   CV BUTTON
========================================= */

.navbar-cv {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 10px 16px;

    border: 1px solid #3c3c37;
    border-radius: 999px;

    color: #f3f0e8;

    font-size: 0.72rem;
    font-weight: 700;

    text-decoration: none;

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

.navbar-cv span {
    color: #b8e986;
}

.navbar-cv:hover {
    background: #f3f0e8;

    border-color: #f3f0e8;

    color: #141412;
}


/* =========================================
   MOBILE BUTTON
========================================= */

.navbar-toggle {
    display: none;

    width: 42px;
    height: 42px;

    padding: 0;

    align-items: center;
    justify-content: center;
    flex-direction: column;

    gap: 6px;

    background: transparent;

    border: 1px solid #34342f;
    border-radius: 50%;

    cursor: pointer;
}

.navbar-toggle span {
    display: block;

    width: 17px;
    height: 1px;

    background: #f3f0e8;

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


/* =========================================
   TABLET / MOBILE
========================================= */

@media (max-width: 991.98px) {

    .navbar-inner {
        min-height: 68px;
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-menu {
        position: absolute;

        top: calc(100% + 12px);
        left: 0;

        width: 100%;

        display: flex;
        align-items: stretch;
        flex-direction: column;

        gap: 0;

        padding: 12px;

        background: #1b1b19;

        border: 1px solid #353530;
        border-radius: 16px;

        opacity: 0;
        visibility: hidden;

        transform: translateY(-8px);

        transition:
            opacity 0.25s ease,
            transform 0.25s ease,
            visibility 0.25s ease;
    }

    .navbar-menu.active {
        opacity: 1;
        visibility: visible;

        transform: translateY(0);
    }

    .navbar-menu>a:not(.navbar-cv) {
        padding: 13px 12px;

        font-size: 0.8rem;

        border-bottom: 1px solid #2e2e2a;
    }

    .navbar-menu>a:not(.navbar-cv)::after {
        display: none;
    }

    .navbar-menu>a:nth-last-child(2) {
        border-bottom: 0;
    }

    .navbar-cv {
        margin-top: 10px;

        justify-content: center;

        border-radius: 12px;
    }


    /* Hamburger -> X */

    .navbar-toggle.active span:first-child {
        transform: translateY(3.5px) rotate(45deg);
    }

    .navbar-toggle.active span:last-child {
        transform: translateY(-3.5px) rotate(-45deg);
    }
}

/* =========================================
   ACTIVE NAV LINK
========================================= */

.navbar-menu>a:not(.navbar-cv).active {
    color: #f3f0e8;
}

.navbar-menu>a:not(.navbar-cv).active::after {
    width: 100%;
}


/* =========================================
   SCROLL REVEAL
========================================= */

.reveal-enabled .reveal {
    opacity: 0;
    transform: translateY(28px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal-enabled .reveal.show {
    opacity: 1;
    transform: translateY(0);
}


/* Optional slight delay helpers */

.reveal-delay-1 {
    transition-delay: 0.08s;
}

.reveal-delay-2 {
    transition-delay: 0.16s;
}

.reveal-delay-3 {
    transition-delay: 0.24s;
}


/* Respect reduced-motion preference */

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.about-section {
    padding: 55px 0;
    background: #1f1f1f;
}

/* Very subtle background accent */

.about-card::before {
    content: "";
    position: absolute;

    top: -100px;
    left: -100px;

    width: 200px;
    height: 200px;

    border-radius: 50%;

    background: rgba(184, 233, 134, 0.035);

    pointer-events: none;
}

/* Header */

.about-header {
    position: relative;

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

    margin-bottom: 35px;
}

.about-label {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #8e8e88;

    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.about-dot {
    width: 8px;
    height: 8px;

    flex: 0 0 8px;

    background: #b8e986;
    border-radius: 50%;

    box-shadow: 0 0 10px rgba(184, 233, 134, 0.35);
}

.about-availability {
    color: #666660;

    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

/* Left */

.about-intro {
    height: 100%;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding-right: 20px;
}

.about-intro h2 {
    max-width: 540px;

    margin: 0;

    color: #f3f0e8;

    font-size: clamp(2rem, 3.2vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
    font-weight: 700;
}

.about-intro p {
    max-width: 520px;

    margin: 25px 0 0;

    color: #92928c;

    font-size: 0.95rem;
    line-height: 1.7;
}

/* Right card */

.about-context {
    height: 100%;

    padding: 25px;

    background: #22221f;

    border: 1px solid #383832;
    border-radius: 16px;
}

.about-context h3 {
    margin: 0 0 16px;

    color: #f3f0e8;

    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.about-context p {
    margin-bottom: 13px;

    color: #9a9a93;

    font-size: 0.9rem;
    line-height: 1.65;
}

.about-divider {
    height: 1px;

    margin: 20px 0 14px;

    background: #393934;
}

/* Information rows */

.about-detail {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 7px 0;
}

.about-detail span {
    color: #686862;

    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.about-detail strong {
    color: #e8e5de;

    font-size: 0.82rem;
    font-weight: 600;

    text-align: right;
}

/* Stats */

.about-stats {
    margin-top: 25px;

    padding-top: 25px;

    border-top: 1px solid #30302c;
}

.about-stat {
    min-height: 90px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 18px 20px;

    background: #1a1a18;

    border: 1px solid #30302c;
    border-radius: 14px;

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

.about-stat:hover {
    transform: translateY(-3px);

    border-color: #45453f;
}

.about-stat strong {
    color: #f3f0e8;

    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.about-stat span {
    margin-top: 5px;

    color: #72726c;

    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.05em;

    text-transform: uppercase;
}

/* Tablet */

@media (max-width: 991.98px) {

    .about-section {
        padding: 45px 0;
    }

    .about-card {
        padding: 28px;
    }

    .about-intro {
        padding-right: 0;
    }

    .about-intro h2 {
        max-width: 650px;
    }

    .about-intro p {
        max-width: 650px;
    }
}

/* Mobile */

@media (max-width: 575.98px) {

    .about-section {
        padding: 35px 0;
    }

    .about-card {
        padding: 20px;

        border-radius: 18px;
    }

    .about-header {
        align-items: flex-start;
        flex-direction: column;

        gap: 8px;

        margin-bottom: 28px;
    }

    .about-intro h2 {
        font-size: 2rem;
        line-height: 1.08;
    }

    .about-intro p {
        margin-top: 18px;

        font-size: 0.9rem;
    }

    .about-context {
        padding: 20px;
    }

    .about-detail {
        align-items: flex-start;
        flex-direction: column;

        gap: 3px;
    }

    .about-detail strong {
        text-align: left;
    }

    .about-stats {
        margin-top: 20px;
        padding-top: 20px;
    }

    .about-stat {
        min-height: 80px;
    }
}

.projects-section {
    padding: 70px 0;
    /* background: #141412; */
    background: #2c2c2c;
    /* --surface-color: #323232; */
    color: #f3f0e8;
}

/* Header */

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;

    margin-bottom: 38px;
}

.projects-label {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 16px;

    color: #85857f;

    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.projects-dot {
    width: 8px;
    height: 8px;

    flex: 0 0 8px;

    border-radius: 50%;

    background: #b8e986;

    box-shadow: 0 0 10px rgba(184, 233, 134, 0.35);
}

.projects-title {
    max-width: 700px;

    margin: 0;

    color: #f3f0e8;

    font-size: clamp(2.1rem, 4vw, 3.8rem);
    line-height: 1;
    letter-spacing: -0.05em;
    font-weight: 700;
}

.projects-count {
    padding-bottom: 5px;

    color: #666660;

    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;

    white-space: nowrap;
}

/* Card */

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

    overflow: hidden;

    /* background: #1d1d1a; */
    background: #202020;

    border: 1px solid #30302c;
    border-radius: 18px;

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

.project-card:hover {
    transform: translateY(-5px);
    border-color: #474741;
}

/* Image */

.project-image {
    position: relative;

    display: block;

    height: 240px;

    overflow: hidden;

    background: #262622;
}

.project-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.45s ease;
}

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

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

    position: absolute;
    inset: 0;

    background:
        linear-gradient(to top,
            rgba(20, 20, 18, 0.18),
            transparent 45%);

    pointer-events: none;
}

/* Body */

.project-body {
    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 24px;
}

.project-type {
    margin-bottom: 9px;

    color: #b8e986;

    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.065em;
}

.project-name {
    margin: 0 0 13px;

    color: #f3f0e8;

    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.project-description {
    margin: 0;

    color: #92928c;

    font-size: 0.9rem;
    line-height: 1.7;
}

/* Technology tags */

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 20px;
}

.project-tech span {
    padding: 6px 10px;

    background: #252522;

    border: 1px solid #353530;
    border-radius: 999px;

    color: #aaa9a2;

    font-size: 0.7rem;
    font-weight: 600;
}

/* Footer */

.project-footer {
    margin-top: auto;
    padding-top: 24px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: #f3f0e8;

    font-size: 0.82rem;
    font-weight: 700;

    text-decoration: none;

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

.project-link span {
    color: #b8e986;
}

.project-link:hover {
    color: #b8e986;
    gap: 13px;
}

/* Tablet */

@media (max-width: 991.98px) {

    .projects-section {
        padding: 55px 0;
    }

    .projects-title {
        max-width: 600px;
    }

    .project-image {
        height: 220px;
    }
}

/* Mobile */

@media (max-width: 767.98px) {

    .projects-section {
        padding: 45px 0;
    }

    .projects-header {
        align-items: flex-start;
        flex-direction: column;

        gap: 12px;

        margin-bottom: 28px;
    }

    .projects-title {
        font-size: 2.2rem;
        line-height: 1.05;
    }

    .projects-count {
        padding: 0;
    }

    .project-image {
        height: 230px;
    }
}

@media (max-width: 575.98px) {

    .project-image {
        height: 200px;
    }

    .project-body {
        padding: 20px;
    }

    .project-name {
        font-size: 1.3rem;
    }
}

.capabilities-section {
    padding: 70px 0;
    background: #1f1f1f;
    color: #f3f0e8;
}


/* =========================
   Header
========================= */

.capabilities-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;

    margin-bottom: 40px;
}

.capabilities-label {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 16px;

    color: #85857f;

    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.capabilities-dot {
    width: 8px;
    height: 8px;

    flex: 0 0 8px;

    border-radius: 50%;

    background: #b8e986;

    box-shadow: 0 0 10px rgba(184, 233, 134, 0.35);
}

.capabilities-title {
    max-width: 850px;

    margin: 0;

    color: #f3f0e8;

    font-size: clamp(2rem, 3.8vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
    font-weight: 700;
}

.capabilities-count {
    padding-bottom: 6px;

    color: #666660;

    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;

    white-space: nowrap;
}


/* =========================
   Capability
========================= */

.capability-item {
    position: relative;

    display: grid;
    grid-template-columns: 45px 1fr;
    gap: 15px;

    min-height: 145px;

    padding: 26px 5px;

    border-top: 1px solid #363631;

    transition:
        border-color 0.25s ease,
        padding-left 0.25s ease;
}


/* Last row bottom border */

.col-lg-6 .capability-item:last-child {
    border-bottom: 1px solid #363631;
}


/* Number */

.capability-number {
    padding-top: 3px;

    color: #b8e986;

    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;

    transition: transform 0.25s ease;
}


/* Content */

.capability-content {
    max-width: 470px;

    transition: transform 0.25s ease;
}

.capability-content h3 {
    margin: 0 0 10px;

    color: #f3f0e8;

    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.035em;

    text-transform: uppercase;
}

.capability-content p {
    max-width: 440px;

    margin: 0;

    color: #8e8e87;

    font-size: 0.88rem;
    line-height: 1.65;
}


/* =========================
   Hover
========================= */

.capability-item:hover {
    border-color: #62625a;
}

.capability-item:hover .capability-content {
    transform: translateX(5px);
}

.capability-item:hover .capability-number {
    transform: translateX(2px);
}


/* Small accent line */

.capability-item::after {
    content: "";

    position: absolute;

    top: -1px;
    left: 0;

    width: 0;
    height: 1px;

    background: #b8e986;

    transition: width 0.35s ease;
}

.capability-item:hover::after {
    width: 70px;
}


/* =========================
   Tablet
========================= */

@media (max-width: 991.98px) {

    .capabilities-section {
        padding: 55px 0;
    }

    .capabilities-header {
        margin-bottom: 30px;
    }

    /*
     * Because the columns stack, remove the bottom
     * border from the first column so we don't get
     * two lines together.
     */
    .col-lg-6:first-child .capability-item:last-child {
        border-bottom: 0;
    }

    .capability-item {
        min-height: auto;
    }
}


/* =========================
   Mobile
========================= */

@media (max-width: 767.98px) {

    .capabilities-section {
        padding: 45px 0;
    }

    .capabilities-header {
        align-items: flex-start;
        flex-direction: column;

        gap: 12px;

        margin-bottom: 25px;
    }

    .capabilities-title {
        font-size: 2.2rem;
    }

    .capabilities-count {
        padding: 0;
    }

    .capability-item {
        grid-template-columns: 35px 1fr;

        gap: 10px;

        padding: 22px 0;
    }

    .capability-content h3 {
        font-size: 1.05rem;
    }

    .capability-content p {
        font-size: 0.85rem;
    }
}

/* =========================================
   EXPERIENCE SECTION
========================================= */

.experience-section {
    padding: 70px 0;
    background: #141412;
    color: #f3f0e8;
}


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

.experience-header {
    max-width: 780px;
    margin-bottom: 40px;
}

.experience-label {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 16px;

    color: #85857f;

    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.experience-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;

    border-radius: 50%;

    background: #b8e986;

    box-shadow: 0 0 10px rgba(184, 233, 134, 0.35);
}

.experience-title {
    margin: 0;

    max-width: 780px;

    color: #f3f0e8;

    font-size: clamp(2rem, 3.7vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
    font-weight: 700;
}

.experience-subtitle {
    max-width: 680px;

    margin: 16px 0 0;

    color: #85857f;

    font-size: 0.9rem;
    line-height: 1.7;
}


/* =========================================
   TIMELINE
========================================= */

.experience-timeline {
    width: 85%;
    margin: 0 auto;
}


/* =========================================
   EXPERIENCE CARD
========================================= */

.experience-card {
    position: relative;

    margin-bottom: 18px;

    /*
     * Extra left padding creates room
     * for the timeline inside the card.
     */
    padding: 26px 30px 26px 68px;

    background: #1f1f1c;

    border: 1px solid #33332f;
    border-radius: 18px;

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

.experience-card:last-child {
    margin-bottom: 0;
}

.experience-card:hover {
    transform: translateY(-3px);

    border-color: #494943;

    background: #22221f;
}


/* =========================================
   TIMELINE MARKER
========================================= */

.timeline-marker {
    position: absolute;

    top: 28px;
    left: 27px;

    width: 14px;
    height: 14px;

    border-radius: 50%;

    background: #b8e986;

    border: 3px solid #1f1f1c;

    box-shadow:
        0 0 0 5px rgba(184, 233, 134, 0.09);

    z-index: 3;
}


/* =========================================
   LINE INSIDE EACH CARD
========================================= */

.experience-card::before {
    content: "";

    position: absolute;

    /*
     * 33px aligns the line with
     * the center of the marker.
     */
    left: 33px;

    /*
     * Start at the marker center.
     */
    top: 35px;

    width: 1px;

    /*
     * Continue all the way to
     * the bottom edge of the card.
     */
    height: calc(100% - 35px);

    background: #484842;

    z-index: 1;
}


/* =========================================
   LINE BETWEEN CARDS
========================================= */

.experience-card:not(:last-child)::after {
    content: "";

    position: absolute;

    /*
     * Same horizontal position as
     * the line inside the card.
     */
    left: 33px;

    /*
     * Begin exactly at bottom
     * edge of current card.
     */
    top: 100%;

    width: 1px;

    /*
     * Same value as card margin-bottom.
     * Therefore it reaches the next card.
     */
    height: 18px;

    background: #484842;

    z-index: 1;
}


/* =========================================
   LAST CARD
========================================= */

/*
 * The final card has a marker but
 * doesn't need an outgoing line.
 */
.experience-card:last-child::before {
    display: none;
}


/* =========================================
   CONTENT
========================================= */

.experience-card-content {
    max-width: 820px;
}

.experience-category {
    margin-bottom: 7px;

    color: #b8e986;

    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
}

.experience-card h3 {
    margin: 0 0 6px;

    color: #f3f0e8;

    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.experience-place {
    margin-bottom: 13px;

    color: #aaa9a2;

    font-size: 0.82rem;
    font-weight: 600;
}

.experience-card p {
    max-width: 760px;

    margin: 0;

    color: #8e8e87;

    font-size: 0.9rem;
    line-height: 1.7;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 991.98px) {

    .experience-section {
        padding: 55px 0;
    }

    .experience-timeline {
        width: 100%;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767.98px) {

    .experience-section {
        padding: 45px 0;
    }

    .experience-header {
        margin-bottom: 30px;
    }

    .experience-title {
        font-size: 2.2rem;
    }

    .experience-subtitle {
        font-size: 0.86rem;
    }


    /* Timeline */

    .experience-timeline {
        width: 100%;
    }


    /* Card */

    .experience-card {
        margin-bottom: 16px;

        padding:
            22px 20px 22px 55px;

        border-radius: 15px;
    }


    /* Marker */

    .timeline-marker {
        top: 24px;
        left: 20px;

        width: 12px;
        height: 12px;

        border-width: 3px;
    }


    /* Line inside card */

    .experience-card::before {
        left: 25px;
        top: 30px;

        width: 1px;

        height: calc(100% - 30px);
    }


    /* Line between cards */

    .experience-card:not(:last-child)::after {
        left: 25px;

        height: 16px;
    }


    /* Content */

    .experience-card h3 {
        font-size: 1.2rem;
    }

    .experience-card p {
        font-size: 0.86rem;
        line-height: 1.65;
    }

    .experience-place {
        font-size: 0.78rem;
    }

    .experience-category {
        font-size: 0.64rem;
    }
}


/* =========================================
   VERY SMALL MOBILE
========================================= */

@media (max-width: 420px) {

    .experience-title {
        font-size: 1.9rem;
    }

    .experience-card {
        padding:
            20px 16px 20px 48px;
    }

    .timeline-marker {
        left: 17px;
    }

    .experience-card::before {
        left: 22px;
    }

    .experience-card:not(:last-child)::after {
        left: 22px;
    }
}

.education-creative {
    position: relative;

    padding: 90px 0 110px;

    background:
        radial-gradient(circle at 50% 20%,
            rgba(184, 233, 134, 0.055),
            transparent 34%),
        #1f1f1f;

    color: #f3f0e8;

    overflow: hidden;
}


/* =========================
   Header
========================= */

.education-creative-header {
    max-width: 720px;

    margin-bottom: 55px;
}

.education-creative-header>span {
    display: inline-block;

    margin-bottom: 12px;

    color: #b8e986;

    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.09em;
}

.education-creative-header h2 {
    margin: 0;

    color: #f3f0e8;

    font-size: clamp(2.4rem, 4vw, 4rem);
    line-height: 1;
    letter-spacing: -0.05em;
    font-weight: 700;
}

.education-creative-header p {
    margin: 14px 0 0;

    color: #85857f;

    font-size: 0.9rem;
}


/* =========================
   Stage
========================= */

.education-stage {
    position: relative;

    min-height: 470px;

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

    gap: 70px;
}


/* Giant faded text */

.education-bg-word {
    position: absolute;

    top: 50%;
    left: 30%;

    transform: translate(-50%, -50%);

    width: 100%;

    color: rgba(243, 240, 232, 0.025);

    font-size: clamp(4rem, 10vw, 10rem);
    line-height: 0.9;
    font-weight: 800;
    letter-spacing: -0.07em;

    text-align: center;
    white-space: nowrap;

    pointer-events: none;
    user-select: none;
}


/* Connecting path */

.education-connect-line {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 160px;
    height: 1px;

    transform: translate(-50%, -50%) rotate(-12deg);

    background:
        linear-gradient(to right,
            transparent,
            #5b5b54,
            #b8e986,
            #5b5b54,
            transparent);

    opacity: 0.8;
}


/* =========================
   Credential cards
========================= */

.credential-card {
    position: relative;

    width: min(380px, 100%);

    min-height: 370px;

    padding: 24px;

    display: flex;
    flex-direction: column;

    background:
        linear-gradient(145deg,
            #232320,
            #1a1a18);

    border: 1px solid #3a3a35;
    border-radius: 22px;

    overflow: hidden;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.22);

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


/* Slight rotation */

.credential-left {
    transform: rotate(-2deg);
}

.credential-right {
    transform: rotate(2deg);
}


/* Hover */

.credential-card:hover {
    transform: rotate(0deg) translateY(-8px);

    border-color: #5d5d55;
}


/* Top */

.credential-top {
    position: relative;
    z-index: 3;

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

    color: #767670;

    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
}


/* Logo */

.credential-logo {
    position: relative;
    z-index: 3;

    width: 88px;
    height: 88px;

    margin-top: 34px;

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

    background: #f3f0e8;

    border-radius: 18px;

    padding: 12px;
}

.credential-logo img {
    max-width: 100%;
    max-height: 100%;

    object-fit: contain;
}


/* Ghost background */

.credential-ghost {
    position: absolute;

    right: 18px;
    top: 72px;

    color: rgba(184, 233, 134, 0.045);

    font-size: 7rem;
    line-height: 1;
    font-weight: 800;

    pointer-events: none;
}


/* Content */

.credential-content {
    position: relative;
    z-index: 3;

    margin-top: auto;
    padding-top: 42px;
}

.credential-content small {
    display: inline-block;

    margin-bottom: 9px;

    color: #b8e986;

    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.credential-content h3 {
    max-width: 290px;

    margin: 0;

    color: #f3f0e8;

    font-size: 1.55rem;
    line-height: 1.1;
    letter-spacing: -0.035em;
    font-weight: 700;
}

.credential-content p {
    margin: 10px 0 0;

    color: #95958e;

    font-size: 0.88rem;
}


/* Bottom */

.credential-bottom {
    position: relative;
    z-index: 3;

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

    margin-top: 24px;
    padding-top: 15px;

    border-top: 1px solid #34342f;

    color: #70706a;

    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.07em;
}

.credential-bottom span:last-child {
    color: #b8e986;

    font-size: 1rem;
}


/* Accent corners */

.credential-card::before {
    content: "";

    position: absolute;

    top: -70px;
    right: -70px;

    width: 150px;
    height: 150px;

    border-radius: 50%;

    background: rgba(184, 233, 134, 0.045);

    pointer-events: none;
}


/* =========================
   Tablet
========================= */

@media (max-width: 991.98px) {

    .education-creative {
        padding: 70px 0;
    }

    .education-stage {
        gap: 35px;
    }

    .credential-card {
        width: 340px;
    }

    .education-connect-line {
        width: 100px;
    }
}


/* =========================
   Mobile
========================= */

@media (max-width: 767.98px) {

    .education-creative {
        padding: 55px 0;
    }

    .education-creative-header {
        margin-bottom: 35px;
    }

    .education-creative-header h2 {
        font-size: 2.4rem;
    }

    .education-stage {
        min-height: auto;

        flex-direction: column;

        gap: 30px;
    }

    .education-connect-line {
        display: none;
    }

    .credential-left,
    .credential-right {
        transform: none;
    }

    .credential-card {
        width: 100%;
        min-height: 340px;
    }

    .education-bg-word {
        white-space: normal;

        font-size: 4rem;
        line-height: 0.9;
    }
}

/* =========================================
   CONTACT SECTION
========================================= */

.contact-section {
    position: relative;

    padding: 85px 0 28px;

    background:
        radial-gradient(circle at 82% 25%,
            rgba(184, 233, 134, 0.07),
            transparent 26%),
        #0f0f0e;

    color: #f3f0e8;

    overflow: hidden;
}


/* =========================================
   TOP BAR
========================================= */

.contact-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding-bottom: 22px;

    border-bottom: 1px solid #2c2c29;
}

.contact-status {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #8e8e88;

    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.contact-status-dot {
    width: 8px;
    height: 8px;

    flex: 0 0 8px;

    border-radius: 50%;

    background: #b8e986;

    box-shadow:
        0 0 12px rgba(184, 233, 134, 0.4);
}

.contact-small-label {
    color: #5f5f5a;

    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
}


/* =========================================
   MAIN CTA
========================================= */

.contact-main {
    position: relative;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 50px;

    padding: 68px 0;
}

.contact-copy {
    max-width: 900px;
}

.contact-kicker {
    display: inline-block;

    margin-bottom: 17px;

    color: #777771;

    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.contact-title {
    max-width: 900px;

    margin: 0;

    color: #f3f0e8;

    font-size: clamp(4rem, 8.5vw, 8rem);
    line-height: 0.86;
    letter-spacing: -0.075em;
    font-weight: 700;

    text-transform: uppercase;
}

.contact-description {
    max-width: 620px;

    margin: 30px 0 0;

    color: #8d8d87;

    font-size: 1rem;
    line-height: 1.75;
}


/* =========================================
   ACTIONS
========================================= */

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 30px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 48px;

    padding: 11px 18px;

    border-radius: 999px;

    font-size: 0.8rem;
    font-weight: 700;

    text-decoration: none;

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

.contact-btn:hover {
    transform: translateY(-2px);
}

.contact-btn-primary {
    background: #f3f0e8;

    border: 1px solid #f3f0e8;

    color: #11110f;
}

.contact-btn-primary:hover {
    background: #b8e986;

    border-color: #b8e986;

    color: #11110f;
}

.contact-btn-outline {
    background: transparent;

    border: 1px solid #3a3a35;

    color: #d8d5ce;
}

.contact-btn-outline:hover {
    border-color: #66665f;

    color: #f3f0e8;
}


/* =========================================
   LARGE ARROW
========================================= */

.contact-arrow {
    width: 110px;
    height: 110px;

    flex: 0 0 110px;

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

    border: 1px solid #3a3a35;
    border-radius: 50%;

    color: #f3f0e8;

    font-size: 3rem;

    text-decoration: none;

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

.contact-arrow:hover {
    background: #b8e986;

    border-color: #b8e986;

    color: #11110f;

    transform: rotate(8deg);
}


/* =========================================
   CONTACT INFO
========================================= */

.contact-info-grid {
    display: grid;

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

    border-top: 1px solid #2c2c29;
    border-bottom: 1px solid #2c2c29;
}

.contact-info-item {
    min-width: 0;

    padding: 24px 20px;

    border-right: 1px solid #2c2c29;
}

.contact-info-item:first-child {
    padding-left: 0;
}

.contact-info-item:last-child {
    border-right: 0;
}

.contact-info-item span {
    display: block;

    margin-bottom: 8px;

    color: #60605b;

    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.contact-info-item a,
.contact-info-item strong {
    color: #d8d5ce;

    font-size: 0.82rem;
    font-weight: 600;

    text-decoration: none;

    overflow-wrap: anywhere;
}

.contact-info-item a {
    transition: color 0.2s ease;
}

.contact-info-item a:hover {
    color: #b8e986;
}


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

.portfolio-footer {
    display: grid;

    grid-template-columns:
        1fr auto 1fr;

    align-items: center;

    gap: 30px;

    padding-top: 27px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-brand strong {
    color: #f3f0e8;

    font-size: 0.88rem;
    font-weight: 700;
}

.footer-brand span {
    margin-top: 3px;

    color: #63635e;

    font-size: 0.68rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 20px;
}

.footer-links a {
    color: #777771;

    font-size: 0.7rem;
    font-weight: 600;

    text-decoration: none;

    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #f3f0e8;
}

.footer-copy {
    color: #5f5f5a;

    font-size: 0.68rem;

    text-align: right;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 991.98px) {

    .contact-section {
        padding-top: 65px;
    }

    .contact-main {
        align-items: flex-start;
        flex-direction: column;
    }

    .contact-arrow {
        width: 85px;
        height: 85px;

        flex-basis: 85px;

        font-size: 2.4rem;
    }

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

    .contact-info-item:nth-child(2) {
        border-right: 0;
    }

    .contact-info-item:nth-child(-n+2) {
        border-bottom: 1px solid #2c2c29;
    }

    .contact-info-item:nth-child(3) {
        padding-left: 0;
    }

    .portfolio-footer {
        grid-template-columns: 1fr;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .footer-copy {
        text-align: left;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767.98px) {

    .contact-section {
        padding: 50px 0 24px;
    }

    .contact-topbar {
        align-items: flex-start;
        flex-direction: column;

        gap: 8px;
    }

    .contact-main {
        padding: 48px 0;
    }

    .contact-title {
        font-size: clamp(3.4rem, 15vw, 5rem);
        line-height: 0.9;
    }

    .contact-description {
        margin-top: 24px;

        font-size: 0.9rem;
    }

    .contact-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .contact-btn {
        width: 100%;
    }

    .contact-arrow {
        width: 72px;
        height: 72px;

        flex-basis: 72px;

        font-size: 2rem;
    }

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

    .contact-info-item {
        padding: 18px 0;

        border-right: 0;
        border-bottom: 1px solid #2c2c29;
    }

    .contact-info-item:nth-child(-n+2) {
        border-bottom: 1px solid #2c2c29;
    }

    .contact-info-item:last-child {
        border-bottom: 0;
    }

    .portfolio-footer {
        gap: 20px;
    }

    .footer-links {
        gap: 14px;
    }
}

/* //////////// */
.credential-org-link {
    position: relative;
    z-index: 4;

    display: inline-block;

    text-decoration: none;
}

.credential-org-link .credential-logo {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.credential-org-link:hover .credential-logo {
    transform: translateY(-3px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.18);
}

.credential-name-link {
    color: #95958e;

    text-decoration: none;

    transition: color 0.2s ease;
}

.credential-name-link:hover {
    color: #b8e986;
}

/* =========================
   WhatsApp Floating Button
========================= */

.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999;

    width: 48px;
    height: 48px;

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

    border: 1px solid #3a3a35;
    border-radius: 50%;

    background: #1f1f1c;
    color: #b8e986;

    font-size: 1.35rem;
    text-decoration: none;

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);

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

.whatsapp-float:hover {
    background: #b8e986;
    color: #141412;
    border-color: #b8e986;
    transform: translateY(-4px);
}

@media (max-width: 575.98px) {
    .whatsapp-float {
        right: 16px;
        bottom: 16px;

        width: 44px;
        height: 44px;
    }
}
