/* =====================================================
   Elnur Akifoglu - Portfolio
   Original stylesheet written from scratch
   ===================================================== */

:root {
    --primary: #6244C5;
    --primary-rgb: 98, 68, 197;
    --secondary: #F5A900;
    --light: #FAFAFB;
    --dark: #12141D;
    --header-hue: 0deg;
    --header-brightness: 1;
    --header-saturate: 1;
}

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
}


/* ---------- Generic helpers ---------- */

.my-6 {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

#about {
    padding-bottom: 2rem;
}

#skill {
    padding-top: 4rem;
    padding-bottom: 2rem;
}

#service {
    margin-top: 0;
    padding-top: 4rem;
}

.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.to-top {
    position: fixed !important;
    display: flex !important;
    visibility: hidden;
    opacity: 0;
    top: 50%;
    right: 0;
    transform: translate(100%, -50%);
    z-index: 99;
    border-radius: 16px 0 0 16px;
    box-shadow: -8px 0 20px -10px rgba(0, 0, 0, .3);
    transition: transform .4s cubic-bezier(.22, 1, .36, 1), opacity .4s ease, visibility 0s linear .4s;
}

.to-top.show {
    visibility: visible;
    opacity: 1;
    transform: translate(0, -50%);
    transition: transform .4s cubic-bezier(.22, 1, .36, 1), opacity .4s ease, visibility 0s;
}


/* ---------- Page loader ---------- */

.page-loader {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

.page-loader.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/* ---------- Floating navigation ---------- */

.app-nav.navbar.fixed-top {
    display: flex;
    flex-wrap: nowrap;
    top: 24px;
    left: 60px;
    right: 60px;
    width: auto;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, .06);
    background-color: rgba(255, 255, 255, .62) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.app-nav.navbar.shadow {
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .12) !important;
}

/* Dock-to-bottom toggle */
.nav-dock-btn {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #D1D5DB;
    border-radius: 50%;
    background: #FFFFFF;
    color: #6B7280;
    cursor: pointer;
    padding: 0;
    font-size: 12px;
    line-height: 1;
    transition: all .25s ease;
}

.nav-dock-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), .08);
}

.nav-dock-btn i {
    transition: transform .35s ease;
}

.nav-dock-btn.active i {
    transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
    .app-nav,
    .mobile-toolbar {
        animation: none;
        transition: none;
    }

    .nav-dock-btn i {
        transition: none;
    }

    #home {
        transition: none;
    }

    .to-top {
        transition: none;
    }
}

.app-nav__name {
    position: absolute;
    left: 48px;
    top: 50%;
    transform: translateY(-50%) translateX(-20px);
    display: flex;
    align-items: center;
    min-width: 0;
    max-width: calc(100% - 340px);
    color: var(--dark);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.2;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, transform .45s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .3s;
}

.app-nav__name-text {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-nav__name .verify-tick {
    font-size: .8em;
    margin-left: .2em;
}

.app-nav.scrolled .app-nav__name {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
    visibility: visible;
    transition: opacity .3s ease, transform .45s cubic-bezier(.22, 1, .36, 1), visibility 0s;
}

.app-nav .toolbar-zoom,
.app-nav .toolbar-font,
.app-nav .toolbar-palette {
    flex-shrink: 0;
    transition: opacity .3s ease, transform .3s ease, visibility 0s;
}

.app-nav.scrolled .toolbar-zoom,
.app-nav.scrolled .toolbar-font,
.app-nav.scrolled .toolbar-palette {
    display: none !important;
    transform: translateY(-6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}

.app-nav .navbar-collapse {
    flex-wrap: nowrap;
}

.app-nav #mainMenu > .navbar-nav {
    flex-shrink: 0;
    will-change: transform;
    transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}

.app-nav.scrolled #mainMenu > .navbar-nav {
    transform: translateX(var(--nav-shift, 0));
}

/* Navbar keeps its own size, independent of site zoom */
.app-nav {
    font-size: 16px;
    padding-left: 24px !important;
    padding-right: 24px !important;
}

@media (min-width: 992px) {
    .app-nav {
        padding-left: 48px !important;
        padding-right: 48px !important;
    }
}

.app-nav h1,
.app-nav h2,
.app-nav h3,
.app-nav h4,
.app-nav h5,
.app-nav h6 {
    font-size: inherit;
}

.app-nav .btn {
    font-size: 16px;
    padding: 6px 12px;
}

.app-nav .dropdown-menu {
    font-size: 16px;
}

.app-nav .fs-symbol {
    font-size: 13px;
}

.app-nav .fs-value {
    font-size: 12px;
}

.app-nav .toolbar-font .dropdown-toggle {
    font-size: 13px;
    padding: 6px 10px;
}

.app-nav .navbar-toggler {
    padding: 6px 10px;
}

.app-nav .toolbar-zoom,
.app-nav .toolbar-font,
.app-nav .toolbar-palette,
.app-nav .toolbar-locale {
    margin-right: 12px !important;
}

.app-nav .toolbar-locale {
    margin-left: 0 !important;
}

.app-nav.scrolled .toolbar-locale {
    margin-left: auto !important;
}

.app-nav .navbar-nav .nav-link {
    padding: 20px 12px;
    color: var(--dark);
    font-size: 15px;
    font-weight: 600;
    outline: none;
}

.app-nav .navbar-nav .nav-link:hover,
.app-nav .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .app-nav .navbar-nav .nav-link {
        padding: 10px 0;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .app-nav .navbar-nav .nav-link {
        padding: 20px 8px;
        font-size: 15px;
    }

    .fs-value {
        display: none;
    }

    .toolbar-palette .palette-dot {
        width: 19px;
        height: 19px;
    }

    .toolbar-font .dropdown-toggle {
        font-size: .72rem;
        padding: .35rem .4rem;
    }
}


/* ---------- Hero ---------- */

#home {
    position: relative;
    padding-top: 90px;
    padding-bottom: 60px;
    margin-bottom: 6rem;
    background: var(--light) !important;
}

body.nav-docked #home {
    padding-top: 24px;
}

/* Aurora mesh gradient in the hero */
.hero-aurora {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.aurora-blob {
    position: absolute;
    width: var(--s, 520px);
    height: var(--s, 520px);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--primary) 26%, transparent) 0%, color-mix(in srgb, var(--primary) 10%, transparent) 30%, transparent 62%);
    will-change: transform;
    transform: translateZ(0);
    animation: aurora-drift var(--dur, 24s) ease-in-out infinite;
    animation-delay: var(--d, 0s);
}

.aurora-blob:nth-child(2) {
    background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--primary) 18%, #fff) 0%, color-mix(in srgb, var(--primary) 12%, transparent) 32%, transparent 64%);
}

.aurora-blob:nth-child(3) {
    background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--primary) 22%, transparent) 0%, color-mix(in srgb, var(--primary) 8%, transparent) 32%, transparent 65%);
}

.aurora-blob:nth-child(4) {
    background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--primary) 15%, #fff) 0%, color-mix(in srgb, var(--primary) 10%, transparent) 32%, transparent 63%);
}

@keyframes aurora-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(90px, -60px) scale(1.15); }
    50% { transform: translate(-60px, 70px) scale(.9); }
    75% { transform: translate(50px, 40px) scale(1.05); }
}

#home::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 30%;
    z-index: 0;
    background: linear-gradient(to bottom, transparent, var(--light));
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .aurora-blob {
        animation: none;
        opacity: .6;
    }

    .meter .meter-fill::after {
        animation: none;
    }
}

#home .container {
    position: relative;
    z-index: 1;
}

@media (min-width: 992px) {
    #home {
        padding-top: 125px;
    }
}

.typed-cursor {
    font-size: 30px;
    color: var(--dark);
}

.role-type {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    line-height: 1.3;
    font-size: clamp(0.95rem, 4.5vw, 1.4rem);
}

.verify-tick {
    color: #1DA1F2;
    font-size: .45em;
    margin-left: .3em;
    line-height: 1;
}

@media (max-width: 575.98px) {
    #home .display-3 {
        font-size: 2.4rem;
    }
}

/* Contact chips */
.chip {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    font-size: .95rem;
    text-decoration: none;
    transition: all .3s ease;
}

.chip--linkedin {
    color: #0A66C2;
}

.chip--whatsapp {
    color: #25D366;
}

.chip--behance {
    color: #1769FF;
}

.chip--dribbble {
    color: #EA4C89;
}

.chip--call,
.chip--mail {
    color: #000000;
}

.chip:hover {
    color: #FFFFFF;
    border-color: transparent;
    box-shadow: 0 8px 18px -6px rgba(0, 0, 0, .25);
}

.chip--linkedin:hover {
    background: #0A66C2;
}

.chip--whatsapp:hover {
    background: #25D366;
}

.chip--behance:hover {
    background: #1769FF;
}

.chip--dribbble:hover {
    background: #EA4C89;
}

.chip--call:hover,
.chip--mail:hover {
    background: var(--primary);
}

.hero-socials {
    gap: 10px;
    flex-basis: 100%;
    margin-top: 14px;
}

.hero-locale-flag {
    width: 24px;
    height: 17px;
    object-fit: cover;
    border-radius: 2px;
    margin-right: 8px;
    vertical-align: middle;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
}

/* Availability indicator */
.availability {
    gap: 10px;
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 7px 14px;
    width: fit-content;
}

.availability-dot {
    position: relative;
    flex-shrink: 0;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #22C55E;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .5);
    animation: availability-pulse 2s infinite;
}

.availability-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(34, 197, 94, .35);
    animation: availability-ring 2s infinite;
}

.availability-text {
    color: #111827;
    font-weight: 600;
    font-size: .95rem;
    white-space: nowrap;
}

@keyframes availability-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, .5);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

@keyframes availability-ring {
    0% {
        transform: scale(.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}


/* CV dropdown */
.hero-dl-btn {
    white-space: nowrap;
    filter: brightness(1.15);
    transition: width .22s ease, background-color .15s ease-in-out, border-color .15s ease-in-out, color .15s ease-in-out, box-shadow .15s ease-in-out, filter .15s ease-in-out;
}

.hero-dl-btn:focus,
.hero-dl-btn:active,
.hero-dl-btn.show {
    outline: none;
    box-shadow: none !important;
}

.hero-dl-btn__label {
    display: inline-block;
}

.cv-drop {
    display: inline-flex;
    align-items: stretch;
    flex: 0 0 auto;
}

.cv-drop__opts {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 8px;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    white-space: nowrap;
    transition: max-width .4s ease, opacity .3s ease;
}

.cv-drop.open .cv-drop__opts {
    max-width: 240px;
    opacity: 1;
}

.cv-drop__opt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: var(--cv-opt-size, auto);
    height: var(--cv-opt-size, 100%);
    aspect-ratio: 1;
    padding: 0;
    border-radius: 8px;
}


/* ---------- Portrait ---------- */

.portrait {
    position: relative;
    width: fit-content;
    margin: 0 auto;
    padding: 30px;
}

.portrait__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(var(--primary-rgb), .35), transparent 55%),
        radial-gradient(circle at 70% 70%, rgba(var(--primary-rgb), .18), transparent 60%);
    filter: blur(40px);
    animation: glow-drift 9s ease-in-out infinite;
}

.portrait__dots {
    position: absolute;
    top: 6%;
    right: 2%;
    width: 90px;
    height: 90px;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(var(--primary-rgb), .35) 2px, transparent 2px);
    background-size: 16px 16px;
    opacity: .5;
}

.portrait__ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    background: conic-gradient(from 0deg, var(--primary), var(--secondary), var(--primary));
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 5px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 5px));
    opacity: .85;
}

.portrait__orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    animation: orbit-turn 9s linear infinite;
}

.portrait__orbit .orbit-satellite {
    position: absolute;
    top: 0;
    left: 50%;
    width: 12px;
    height: 12px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--secondary);
    box-shadow:
        0 0 10px 2px rgba(var(--primary-rgb), .7),
        0 0 24px 8px rgba(var(--primary-rgb), .25);
}

.portrait__frame {
    position: relative;
    z-index: 1;
    width: clamp(260px, 26vw, 400px);
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    padding: 10px;
    background: #FFFFFF;
    box-shadow:
        0 20px 45px -12px rgba(0, 0, 0, .25),
        0 0 0 1px rgba(255, 255, 255, .7),
        inset 0 0 0 1px rgba(0, 0, 0, .04);
    transition: transform .5s ease, box-shadow .5s ease;
}

.portrait__frame::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 50%;
    pointer-events: none;
    box-shadow: inset 0 -22px 40px -20px rgba(0, 0, 0, .18);
}

.portrait:hover .portrait__frame {
    transform: translateY(-6px);
    box-shadow:
        0 30px 55px -12px rgba(0, 0, 0, .3),
        0 0 0 1px rgba(255, 255, 255, .7),
        inset 0 0 0 1px rgba(0, 0, 0, .04);
}

.portrait__photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 50%;
    transition: transform .6s ease;
}

.portrait:hover .portrait__photo {
    transform: scale(1.04);
}

@media (hover: none) {
    .portrait:hover .portrait__frame {
        transform: none;
        box-shadow: none;
    }

    .portrait:hover .portrait__photo {
        transform: none;
    }
}

.portrait__card {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, .62);
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 16px;
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: card-bob 5s ease-in-out infinite;
}

.portrait__card--top {
    top: 8%;
    left: 0;
    animation-delay: 0s;
}

.portrait__card--bottom {
    bottom: 4%;
    right: 0;
    animation-delay: 1.5s;
}

.portrait__card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 12px;
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 6px 14px -4px rgba(var(--primary-rgb), .55);
}

.portrait__card-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.portrait__card-meta strong {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--dark);
}

.portrait__card-meta span {
    font-size: .78rem;
    font-weight: 500;
    color: #6B7280;
    white-space: nowrap;
}

@keyframes glow-drift {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.12);
    }
}

@keyframes orbit-turn {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes card-bob {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@media (max-width: 575.98px) {
    .portrait {
        padding: 20px;
    }

    .portrait__frame {
        width: clamp(220px, 70vw, 300px);
    }

    .portrait__card {
        min-width: 128px;
        padding: 10px 12px;
    }

    .portrait__card-icon {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }

    .portrait__card-meta strong {
        font-size: 1rem;
    }

    .portrait__card-meta span {
        font-size: .68rem;
    }
}

/* Mobile: Instagram-style hero (avatar right of the name) */
@media (max-width: 991.98px) {
    #home .row {
        --bs-gutter-x: 0;
        display: grid;
        grid-template-columns: 1fr 128px;
        grid-template-areas: "text avatar";
        align-items: start !important;
        column-gap: 16px;
    }

    #home .col-lg-6:first-child {
        grid-area: text;
        min-width: 0;
    }

    #home .col-lg-6:last-child {
        grid-area: avatar;
        width: 128px;
    }

    .hero-dl-btn {
        flex: 1 1 100%;
    }

    .hero-socials {
        flex-wrap: nowrap;
    }

    #home .pt-4 > .d-flex:first-child {
        row-gap: 14px !important;
    }

    .hero-location {
        font-size: .9rem;
    }

    #home .portrait {
        width: 128px;
        padding: 0;
        margin: 40px 0 0;
    }

    #home .portrait__frame {
        width: 112px;
        padding: 5px;
    }

    #home .portrait__ring {
        width: 120px;
        height: 120px;
    }

    #home .portrait__orbit {
        display: none;
    }

    #home .portrait__orbit .orbit-satellite {
        width: 10px;
        height: 10px;
    }

    #home .portrait__glow,
    #home .portrait__dots,
    #home .portrait__card {
        display: none;
    }
}

@media (max-width: 575.98px) {
    #home h1.display-3 {
        font-size: 2.4rem;
        line-height: 1.15;
    }

    .hero-socials {
        gap: 6px;
    }

    .hero-socials .chip {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .cv-drop {
        flex: 0 0 auto;
    }

    .hero-dl-btn {
        flex: 0 0 auto;
        font-size: .9rem;
        padding: .5rem .7rem;
    }

    .cv-drop__opts {
        gap: 4px;
    }

    .cv-drop__opt {
        padding: 0;
        font-size: .85rem;
    }

    .cv-drop.open .cv-drop__opts {
        max-width: 130px;
    }

    #about {
        padding-top: 2.5rem;
        padding-bottom: 4rem;
    }
}


/* ---------- About ---------- */

.bio__years .display-1 {
    font-size: 6rem;
    line-height: 1;
}

.bio__years h5 {
    letter-spacing: 0;
    margin-right: 0;
    white-space: nowrap;
}

.bio__years {
    min-width: 0;
}

@media (max-width: 575.98px) {
    .bio__years h5 {
        letter-spacing: 0;
        margin-right: 0;
    }

    .about-personal-info,
    .about-images {
        display: none;
    }
}


/* ---------- Expertise ---------- */

.meter {
    height: 5px;
    border-radius: 5px;
    background-color: #E9ECEF;
}

.meter .meter-fill {
    position: relative;
    width: 0px;
    height: 100%;
    border-radius: 5px;
    overflow: hidden;
    transition: 3s;
}

.meter .meter-fill::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .6), transparent);
    animation: meter-energy 1.6s linear infinite;
    animation-delay: var(--sheen-delay, 0s);
    will-change: transform;
    transform: translateZ(0);
}

@keyframes meter-energy {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(220%); }
}

.meter-fill--t1 { background-color: #D97706; }
.meter-fill--t2 { background-color: #10B981; }
.meter-fill--t3 { background-color: #6244C5; }
.meter-fill--t4 { background-color: #0D6EFD; }
.meter-fill--t5 { background-color: #E11D48; }
.meter-fill--t6 { background-color: #F59E0B; }
.meter-fill--t7 { background-color: #06B6D4; }
.meter-fill--t8 { background-color: #FBBF24; }

.expertise__nav {
    padding: 0.25rem;
}

.expertise__nav.nav-pills .nav-link {
    color: var(--dark);
    border-radius: 999px;
    padding: 0.6rem 0.5rem;
    text-align: center;
}

.expertise__nav.nav-pills .nav-link.active {
    color: #FFFFFF;
}

@media (max-width: 575.98px) {
    .expertise__nav {
        padding: 0.2rem;
    }

    .expertise__nav .nav-link {
        font-size: 0.85rem;
        padding: 0.45rem 0.25rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.expertise__panel hr {
    width: 30px;
}


/* ---------- Services ---------- */

.offer__card .offer__icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: #f1f5ff;
    color: #EF5A1F;
}


/* ---------- Partner logos ---------- */

#partners {
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
}

.logo-track .logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    padding: 18px;
    border: 1px solid #eeeeee;
    border-radius: 10px;
    background: #FFFFFF;
    text-align: center;
    transition: .5s;
}

.logo-track .logo-card:hover {
    border-color: var(--primary);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
}

.logo-track .logo-card img.logo-card__img {
    height: 40px;
    width: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: .4s;
}

@media (max-width: 575.98px) {
    .logo-track .logo-card {
        height: 72px;
        padding: 12px;
    }

    .logo-track .logo-card img.logo-card__img {
        height: 30px;
        max-width: 100%;
    }
}


/* ---------- Mobile top toolbar (language + theme only) ---------- */

.mobile-toolbar {
    position: fixed;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, .06);
    background-color: rgba(255, 255, 255, .62) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .12);
    font-size: 16px;
}

.mobile-toolbar .toolbar-palette,
.mobile-toolbar .toolbar-locale {
    margin: 0;
    padding: 0;
}

.mobile-toolbar .toolbar-locale .dropdown-toggle {
    font-size: 16px;
    padding: 6px 12px;
}

.mobile-toolbar__name {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%) translateX(24px);
    display: flex;
    align-items: center;
    min-width: 0;
    max-width: calc(100% - 140px);
    color: var(--dark);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}

.mobile-toolbar__name-text {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-toolbar__name .verify-tick {
    font-size: .8em;
    margin-left: .2em;
}

.mobile-toolbar.scrolled .mobile-toolbar__name {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
    visibility: visible;
    transition: opacity .3s ease, transform .3s ease, visibility 0s;
}

.mobile-toolbar .toolbar-palette {
    transition: opacity .3s ease, transform .3s ease, visibility 0s;
}

.mobile-toolbar.scrolled .toolbar-palette {
    transform: translateX(-24px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}

@media (max-width: 991.98px) {
    #home {
        padding-top: 84px;
    }
}


/* ---------- Toolbar: zoom ---------- */

.toolbar-zoom {
    gap: 4px;
}

.fs-btn {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #D1D5DB;
    border-radius: 50%;
    background: #FFFFFF;
    color: #6B7280;
    cursor: pointer;
    padding: 0;
    transition: all .25s ease;
}

.fs-btn:hover:not(:disabled) {
    color: #374151;
    border-color: #9CA3AF;
    background: #F3F4F6;
}

.fs-btn:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.fs-symbol {
    font-size: .8rem;
    font-weight: 700;
    line-height: 1;
}

.fs-value {
    min-width: 32px;
    text-align: center;
    font-size: .75rem;
    font-weight: 700;
    color: #6B7280;
}

@media (max-width: 991.98px) {
    .toolbar-zoom {
        padding: 10px 0;
    }
}


/* ---------- Toolbar: font ---------- */

.toolbar-font .dropdown-menu {
    min-width: 150px;
    border-color: #D1D5DB;
}

.toolbar-font .dropdown-toggle {
    color: #6B7280 !important;
    background-color: #FFFFFF !important;
    border-color: #D1D5DB !important;
    box-shadow: none !important;
    font-size: .8rem;
    padding: .375rem .6rem;
}

.toolbar-font .dropdown-toggle:hover,
.toolbar-font .dropdown-toggle:focus,
.toolbar-font .dropdown-toggle:active,
.toolbar-font .dropdown-toggle.show,
.toolbar-font .dropdown.show .dropdown-toggle {
    color: #374151 !important;
    background-color: #F3F4F6 !important;
    border-color: #9CA3AF !important;
    box-shadow: none !important;
}

.font-menu .dropdown-item {
    font-size: 15px;
    color: #374151;
}

.font-menu .dropdown-item:hover,
.font-menu .dropdown-item:focus,
.font-menu .dropdown-item:active,
.font-menu .dropdown-item.active {
    color: #374151 !important;
    background-color: #E5E7EB !important;
}

@media (max-width: 991.98px) {
    .toolbar-font {
        padding: 10px 0;
    }
}


/* ---------- Toolbar: palette ---------- */

.toolbar-palette {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-right: 8px;
}

@media (min-width: 992px) {
    .app-nav .navbar-collapse {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
    }
}

.toolbar-palette .palette-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #FFFFFF;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
    cursor: pointer;
    padding: 0;
    background: var(--c1);
    transition: transform .3s, box-shadow .3s;
}

.toolbar-palette .palette-dot:hover {
    transform: scale(1.15);
}

.toolbar-palette .palette-dot.active {
    box-shadow: 0 0 0 2px var(--c1);
}

@media (max-width: 575.98px) {
    .toolbar-palette {
        margin-right: 8px;
    }

    .toolbar-palette .palette-dot {
        width: 20px;
        height: 20px;
    }
}


/* ---------- Toolbar: locale ---------- */

.toolbar-locale .dropdown-toggle img,
.toolbar-locale .dropdown-item img {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
}

.toolbar-locale .dropdown-menu {
    min-width: 90px;
    border-color: #D1D5DB;
}

.toolbar-locale .dropdown-toggle.btn-outline-primary,
.toolbar-locale .dropdown-toggle {
    color: #6B7280 !important;
    background-color: #FFFFFF !important;
    border-color: #D1D5DB !important;
    box-shadow: none !important;
}

.toolbar-locale .dropdown-toggle.btn-outline-primary:hover,
.toolbar-locale .dropdown-toggle.btn-outline-primary:focus,
.toolbar-locale .dropdown-toggle.btn-outline-primary:active,
.toolbar-locale .dropdown-toggle.btn-outline-primary.show,
.toolbar-locale .dropdown.show .dropdown-toggle,
.toolbar-locale .dropdown-toggle:hover,
.toolbar-locale .dropdown-toggle:focus,
.toolbar-locale .dropdown-toggle:active {
    color: #374151 !important;
    background-color: #F3F4F6 !important;
    border-color: #9CA3AF !important;
    box-shadow: none !important;
}

.toolbar-locale .dropdown-item {
    font-size: 16px;
    font-weight: 600;
}

.toolbar-locale .dropdown-item:hover,
.toolbar-locale .dropdown-item:focus,
.toolbar-locale .dropdown-item:active,
.toolbar-locale .dropdown-item.active {
    color: #374151 !important;
    background-color: #E5E7EB !important;
}

@media (max-width: 991.98px) {
    .toolbar-locale {
        padding: 12px 0;
    }
}


/* ---------- Dynamic theme (Bootstrap utility overrides) ---------- */

.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

/* Copyright / footer */
.app-footer {
    background-color: var(--primary);
    color: #FFFFFF;
}

.app-footer a {
    text-decoration: none;
}

.btn-primary {
    position: relative;
    z-index: 0;
    overflow: hidden;
    color: #FFFFFF;
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-primary::before,
.btn-primary::after {
    content: "";
    position: absolute;
    inset: -35%;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    mix-blend-mode: screen;
}

.btn-primary::before {
    background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, .30), transparent 55%);
    animation: sheen-a 9s ease-in-out infinite;
}

.btn-primary::after {
    background: radial-gradient(circle at 70% 60%, rgba(255, 255, 255, .18), transparent 50%);
    animation: sheen-b 13s ease-in-out infinite;
}

@keyframes sheen-a {
    0%, 100% {
        transform: translate(-25%, -25%) scale(1);
    }
    25% {
        transform: translate(32%, -30%) scale(1.18);
    }
    50% {
        transform: translate(35%, 35%) scale(.92);
    }
    75% {
        transform: translate(-30%, 32%) scale(1.12);
    }
}

@keyframes sheen-b {
    0%, 100% {
        transform: translate(30%, 25%) scale(1);
    }
    25% {
        transform: translate(-35%, 20%) scale(1.12);
    }
    50% {
        transform: translate(-25%, -35%) scale(.9);
    }
    75% {
        transform: translate(35%, -25%) scale(1.18);
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn-primary::before,
    .btn-primary::after {
        animation: none;
        opacity: 0;
    }
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    color: #FFFFFF;
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    filter: brightness(1.15);
    box-shadow: 0 8px 22px -6px rgba(var(--primary-rgb), .55);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    color: #FFFFFF;
    background-color: var(--primary);
    border-color: var(--primary);
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    color: #FFFFFF;
    background-color: var(--primary);
    border-color: var(--primary);
}
