/* ==========================================================================
   1. IMPORT & FONT
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* ==========================================================================
   2. ROOT VARIABLES
   ========================================================================== */

:root {
    --bg-gradient-onyx: linear-gradient(to bottom right, hsl(240, 1%, 25%) 3%, hsl(0, 0%, 19%) 97%);
    --bg-gradient-jet: linear-gradient(to bottom right, hsla(240, 1%, 18%, .251) 3%, hsla(240, 2%, 11%, 0) 100%), hsl(240, 2%, 13%);
    --bg-gradient-yellow1: linear-gradient(to bottom right, hsl(45, 100%, 71%) 0%, hsla(36, 100%, 69%, 0) 50%);
    --bg-gradient-yellow2: linear-gradient(135deg, hsla(45, 100%, 71%, .251) 0%, hsla(35, 100%, 68%, 0) 59.86%), hsl(240, 2%, 13%);
    --border-gradient-onyx: linear-gradient(to bottom right, hsl(0, 0%, 25%) 0%, hsla(0, 0%, 25%, 0) 50%);
    --text-gradient-yellow: linear-gradient(to right, hsl(45, 100%, 72%), hsl(35, 100%, 68%));
    --jet: hsl(0, 0%, 22%);
    --onyx: hsl(240, 1%, 17%);
    --eerie-black1: hsl(240, 2%, 13%);
    --eerie-black2: hsl(240, 2%, 12%);
    --smoky-black: hsl(0, 0%, 7%);
    --white1: hsl(0, 0%, 100%);
    --white2: hsl(0, 0%, 98%);
    --orange-yellow-crayola: hsl(45, 100%, 72%);
    --icon-yellow: #ffdb70;
    --vegas-gold: hsl(45, 54%, 58%);
    --light-gray: hsl(0, 0%, 84%);
    --light-gray70: hsla(0, 0%, 84%, .7);
    --bittersweet-shimmer: hsl(0, 43%, 51%);
    --golden-sand: #efcf6c;

    --ff-poppins: 'Poppins', sans-serif;

    --fs1: 24px; --fs2: 18px; --fs3: 17px; --fs4: 16px;
    --fs5: 15px; --fs6: 14px; --fs7: 13px; --fs8: 12px;

    --fw300: 300; --fw400: 400; --fw500: 500; --fw600: 600; --fw700: 700;

    --shadow1: -4px 8px 24px hsla(0, 0%, 0%, .25);
    --shadow2: 0px 16px 30px hsla(0, 0%, 0%, .25);
    --shadow3: 0px 16px 40px hsla(0, 0%, 0%, .25);
    --shadow4: 0px 25px 50px hsla(0, 0%, 0%, .15);
    --shadow5: 0px 24px 80px hsla(0, 0%, 0%, .25);

    --transition1: .25s ease;
    --transition2: .5s ease-in-out;
}

/* ==========================================================================
   2b. DAYLIGHT (LIGHT) MODE OVERRIDES
   ========================================================================== */

[data-theme="light"] {
    --bg-gradient-onyx: linear-gradient(to bottom right, hsl(210, 20%, 88%) 3%, hsl(0, 0%, 93%) 97%);
    --bg-gradient-jet: linear-gradient(to bottom right, hsla(210, 20%, 85%, .6) 3%, hsla(210, 20%, 80%, 0) 100%), hsl(0, 0%, 90%);
    --bg-gradient-yellow1: linear-gradient(to bottom right, hsl(45, 100%, 71%) 0%, hsla(36, 100%, 69%, 0) 50%);
    --bg-gradient-yellow2: linear-gradient(135deg, hsla(45, 100%, 71%, .251) 0%, hsla(35, 100%, 68%, 0) 59.86%), hsl(0, 0%, 90%);
    --border-gradient-onyx: linear-gradient(to bottom right, hsl(0, 0%, 72%) 0%, hsla(0, 0%, 72%, 0) 50%);
    --jet: hsl(0, 0%, 78%);
    --onyx: hsl(0, 0%, 86%);
    --eerie-black1: hsl(0, 0%, 90%);
    --eerie-black2: hsl(0, 0%, 93%);
    --smoky-black: hsl(210, 20%, 94%);
    --white1: hsl(0, 0%, 15%);
    --white2: hsl(0, 0%, 10%);
    --light-gray: hsl(0, 0%, 35%);
    --light-gray70: hsla(0, 0%, 35%, .7);
    --shadow1: -4px 8px 24px hsla(0, 0%, 0%, .10);
    --shadow2: 0px 16px 30px hsla(0, 0%, 0%, .10);
    --shadow3: 0px 16px 40px hsla(0, 0%, 0%, .10);
    --shadow4: 0px 25px 50px hsla(0, 0%, 0%, .08);
    --shadow5: 0px 24px 80px hsla(0, 0%, 0%, .10);
    --orange-yellow-crayola: hsl(38, 90%, 42%);
    --vegas-gold: hsl(38, 70%, 38%);
    --text-gradient-yellow: linear-gradient(to right, hsl(38, 90%, 42%), hsl(32, 85%, 38%));
}

[data-theme="light"] body { background: hsl(210, 20%, 94%); }

[data-theme="light"] .sidebar,
[data-theme="light"] article {
    background: hsl(0, 0%, 93%);
    border-color: hsl(0, 0%, 78%);
}

[data-theme="light"] .separator { background: hsl(0, 0%, 78%); }

[data-theme="light"] .navbar { background: hsl(0, 0%, 93%); border-color: hsl(0, 0%, 78%); }

[data-theme="light"] .icon-box {
    color: var(--icon-yellow);
    background: #9F9F9F;
    box-shadow: var(--shadow1);
}

[data-theme="light"] .icon-box::before { background: #9F9F9F; }

[data-theme="light"] .content-card::before { background: hsl(0, 0%, 90%); }

[data-theme="light"] .select-list,
[data-theme="light"] .modal-container,
[data-theme="light"] [data-modal-container] { background: hsl(0, 0%, 90%); border-color: hsl(0, 0%, 78%); }

[data-theme="light"] .theme-toggle-btn {
    color: var(--orange-yellow-crayola);
}

[data-theme="light"] .tech-tag {
    background: hsl(38, 90%, 42%);
    color: white;
    box-shadow: none;
    border: none;
    text-shadow: none;
}

[data-theme="light"] .scroll-indicator-arrows i {
    color: hsl(0, 0%, 25%) !important;
}

[data-theme="light"] .skills-progress-fill {
    background: hsl(0, 0%, 25%);
}

.navbar-item--theme { margin-left: auto; }

.lang-switcher { position: relative; margin-top: 6px; display: inline-flex; }

.navbar-item--lang { position: relative; }

.lang-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 8px;
    border-radius: 8px;
    background: none;
    border: 1px solid transparent;
    color: var(--light-gray);
    cursor: pointer;
    transition: var(--transition1);
    font-size: 13px;
    font-weight: var(--fw600);
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.lang-toggle-btn:hover {
    color: var(--orange-yellow-crayola);
    border-color: var(--orange-yellow-crayola);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--eerie-black2);
    border: 1px solid var(--jet);
    border-radius: 8px;
    overflow: hidden;
    z-index: 999;
    min-width: 70px;
    box-shadow: var(--shadow2);
}

.lang-dropdown.open { display: block; }

@media (max-width: 1023px) {
    .lang-dropdown {
        top: auto;
        bottom: calc(100% + 6px);
    }
}

.lang-option {
    display: block;
    width: 100%;
    padding: 8px 14px;
    background: none;
    border: none;
    color: var(--light-gray);
    font-size: 13px;
    font-weight: var(--fw500);
    text-align: left;
    cursor: pointer;
    transition: var(--transition1);
    white-space: nowrap;
}

.lang-option:hover { background: var(--jet); color: var(--orange-yellow-crayola); }
.lang-option.active { color: var(--orange-yellow-crayola); font-weight: var(--fw700); }

[data-theme="light"] .lang-dropdown {
    background: hsl(0, 0%, 93%);
    border-color: hsl(0, 0%, 78%);
}

[data-theme="light"] .lang-toggle-btn { color: hsl(0, 0%, 25%); }
[data-theme="light"] .lang-toggle-btn:hover { color: var(--orange-yellow-crayola); border-color: var(--orange-yellow-crayola); }
[data-theme="light"] .lang-option { color: hsl(0, 0%, 25%); }
[data-theme="light"] .lang-option:hover { background: hsl(0, 0%, 83%); }

.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: none;
    border: 1px solid transparent;
    color: var(--light-gray);
    cursor: pointer;
    transition: var(--transition1);
    font-size: 16px;
}

.theme-toggle-btn:hover {
    color: var(--orange-yellow-crayola);
    border-color: var(--orange-yellow-crayola);
}

.theme-toggle-btn i { font-size: 15px; }

/* ==========================================================================
   3. GLOBAL RESETS & BASE
   ========================================================================== */

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

a { text-decoration: none; }
li { list-style: none; }

img, ion-icon, a, button, time, span { display: block; }

button {
    font: inherit;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
}

input, textarea {
    display: block;
    width: 100%;
    background: none;
    font: inherit;
}

::selection {
    background: var(--orange-yellow-crayola);
    color: var(--smoky-black);
}

:focus { outline-color: var(--orange-yellow-crayola); }

html { font-family: var(--ff-poppins); }
body { background: var(--smoky-black); }

/* ==========================================================================
   4. LAYOUT & STRUCTURE
   ========================================================================== */

main {
    margin: 15px 12px;
    margin-bottom: 75px;
    min-width: 259px;
}

.sidebar, article {
    background: var(--eerie-black2);
    border: 1px solid var(--jet);
    border-radius: 20px;
    box-shadow: var(--shadow1);
    z-index: 1;
    padding: 15px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sidebar::-webkit-scrollbar,
article::-webkit-scrollbar {
    display: none;
}

.sidebar.active {
    max-height: 405px;
    overflow-y: auto;
}

.separator {
    width: 100%;
    height: 1px;
    background: var(--jet);
    margin: 16px 0;
}

.icon-box {
    position: relative;
    background: var(--border-gradient-onyx);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    color: var(--icon-yellow);
    box-shadow: var(--shadow1);
    z-index: 1;
}

.icon-box::before {
    content: '';
    position: absolute;
    inset: 1px;
    background: var(--eerie-black1);
    border-radius: inherit;
    z-index: -1;
}

.icon-box ion-icon { --ionicon-stroke-width: 35px; }

article[data-page] {
    display: none;
}

article[data-page].active {
    display: block;
    animation: fade .5s ease backwards;
}

@keyframes fade {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* ==========================================================================
   5. TYPOGRAPHY & TITLES
   ========================================================================== */

.h2, .h3, .h4, .h5 {
    color: var(--white2);
    text-transform: capitalize;
}

.h2 { font-size: var(--fs1); }
.h3 { font-size: var(--fs2); }
.h4 { font-size: var(--fs4); }
.h5 {
    font-size: var(--fs7);
    font-weight: var(--fw500);
}

.article-title {
    position: relative;
    padding-bottom: 7px;
}

.article-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--text-gradient-yellow);
    border-radius: 3px;
}

.has-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: var(--orange-yellow-crayola) var(--onyx);
}

.has-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.has-scrollbar::-webkit-scrollbar-track {
    background: var(--onyx);
    border-radius: 100px;
    margin: 0 15px;
}

.has-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(to right, var(--vegas-gold), var(--orange-yellow-crayola));
    border-radius: 100px;
    border: 1px solid hsla(0, 0%, 0%, 0.15);
}

.has-scrollbar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to right, var(--orange-yellow-crayola), var(--golden-sand));
    box-shadow: 0 0 6px hsla(45, 100%, 72%, 0.5);
}

.has-scrollbar::-webkit-scrollbar-button { width: 0; }

/* ==========================================================================
   6. CONTENT CARD / SERVICE / BLOG ITEM BASE
   ========================================================================== */

.content-card {
    position: relative;
    background: var(--border-gradient-onyx);
    padding: 15px;
    padding-top: 45px;
    border-radius: 14px;
    box-shadow: var(--shadow2);
    cursor: pointer;
    z-index: 1;
}

.content-card::before {
    content: '';
    position: absolute;
    inset: 1px;
    background: var(--bg-gradient-jet);
    border-radius: inherit;
    z-index: -1;
}

/* ==========================================================================
   7. SIDEBAR
   ========================================================================== */

.sidebar {
    margin-bottom: 15px;
    max-height: 112px;
    overflow: hidden;
    padding: 15px;
    transition: var(--transition2);
}

.sidebar-info {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
}

.avatar-box {
    background: var(--bg-gradient-onyx);
    border-radius: 50%;
    padding: 2px;
    border: 3px solid var(--golden-sand);
    overflow: hidden;
    display: inline-block;
}

.avatar-box img {
    border-radius: 50%;
    object-fit: cover;
    width: 70px;
}

.info-content .name {
    color: var(--white2);
    font-size: var(--fs3);
    font-weight: var(--fw500);
    letter-spacing: -0.25px;
    margin-bottom: 10px;
}

.info-content .title {
    display: block;
    color: var(--white1);
    background: var(--onyx);
    font-size: var(--fs8);
    font-weight: var(--fw300);
    width: max-content;
    padding: 3px 12px;
    border-radius: 8px;
}

.info-content .title + .title {
    margin-top: 6px;
}

.info-more-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    border-radius: 0 15px;
    font-size: 13px;
    color: var(--orange-yellow-crayola);
    background: var(--border-gradient-onyx);
    padding: 10px;
    box-shadow: var(--shadow2);
    transition: var(--transition1);
    z-index: 1;
}

.info-more-btn::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: var(--bg-gradient-jet);
    transition: var(--transition1);
    z-index: -1;
}

.info-more-btn:hover, .info-more-btn:focus {
    background: var(--bg-gradient-yellow1);
}

.info-more-btn:hover::before, .info-more-btn:focus::before {
    background: var(--bg-gradient-yellow2);
}

.info-more-btn span { display: none; }

.sidebar-info-more {
    opacity: 0;
    visibility: hidden;
    transition: var(--transition2);
}

.sidebar.active .sidebar-info-more {
    opacity: 1;
    visibility: visible;
}

.contacts-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.contact-item {
    min-width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-info {
    max-width: calc(100% - 46px);
    width: calc(100% - 46px);
}

.contact-info :is(.contact-link, time, address) {
    color: var(--white2);
    font-size: var(--fs7);
}

.contact-info address { font-style: normal; }

.contact-title {
    color: var(--light-gray70);
    font-size: var(--fs8);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.social-list {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    padding-bottom: 4px;
    padding-left: 7px;
}

.social-item .social-link {
    color: var(--light-gray70);
    font-size: 28px;
}

.social-item .social-link:hover { color: var(--light-gray); }

/* ==========================================================================
   8. NAVBAR (mobile)
   ========================================================================== */

.navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: hsla(240, 1%, 17%, .75);
    backdrop-filter: blur(10px);
    border: 1px solid var(--jet);
    border-radius: 12px 12px 0 0;
    box-shadow: var(--shadow2);
    z-index: 5;
}

.navbar-list {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
}

.navbar-item:not(.navbar-item--theme):not(.navbar-item--lang) {
    flex: 1;
    display: flex;
    justify-content: center;
}

.navbar-item--theme,
.navbar-item--lang {
    flex-shrink: 0;
}

.navbar-link {
    color: var(--light-gray);
    font-size: var(--fs8);
    padding: 20px 7px;
    transition: color var(--transition1);
}

.navbar-link:hover, .navbar-link:focus { color: var(--light-gray70); }
.navbar-link.active { color: var(--orange-yellow-crayola); }

/* ==========================================================================
   9. ABOUT
   ========================================================================== */

.about .article-title {
    margin-bottom: 15px;
    margin-top: 15px;
}

.about-text {
    color: var(--light-gray);
    font-size: var(--fs6);
    font-weight: var(--fw300);
    line-height: 1.6;
}

.about-text p {
    margin-bottom: 15px;
    text-align: justify;
    padding-left: 10px;
    padding-right: 10px;
}

.bolder {
    font-weight: bold;
}

.com {
    color: var(--vegas-gold);
    display: inline;
}

.fw700 {
    font-weight: 700;
}

.proj-info {
    color: var(--orange-yellow-crayola);
    margin-right: 4px;
}

.proj-desc {
    color: #D6D6D6;
    display: inline;
}

[data-theme="light"] .proj-desc {
    color: hsl(0, 0%, 30%);
}

.proj-desc-wrapper {
    margin-top: 6px;
}

/* ==========================================================================
   10. SERVICES
   ========================================================================== */

.service { margin-bottom: 35px; }
.service-title { margin-bottom: 20px; }

.service-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.service-item {
    position: relative;
    background: var(--border-gradient-onyx);
    padding: 20px;
    border-radius: 14px;
    box-shadow: var(--shadow2);
    z-index: 1;
}

.service-item::before {
    content: '';
    position: absolute;
    inset: 1px;
    background: var(--bg-gradient-jet);
    border-radius: inherit;
    z-index: -1;
}

.service-icon-box { margin-bottom: 10px; }
.service-icon-box img { margin: auto; }

.service-content-box { text-align: justify; }
.service-item-title { margin-bottom: 7px; }

.service-item-text {
    color: var(--light-gray);
    font-size: var(--fs6);
    font-weight: var(--fw300);
    line-height: 1.6;
}

/* ==========================================================================
   11. TESTIMONIALS
   ========================================================================== */

.testimonials { margin-bottom: 30px; }
.testimonials-title { margin-bottom: 10px; }

.testimonials-list {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 15px;
    margin: 0 -15px;
    padding: 12px 15px 30px;
    margin-bottom: -18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
}

.testimonials-item {
    min-width: 100%;
    scroll-snap-align: center;
}

.testimonials-avatar-box {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(15px, -25px);
    background: var(--bg-gradient-onyx);
    border-radius: 14px;
    box-shadow: var(--shadow1);
}

.testimonials-text {
    color: var(--light-gray);
    font-size: var(--fs6);
    font-weight: var(--fw300);
    line-height: 1.6;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   12. MODALS – TESTIMONIALS
   ========================================================================== */

.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 1000;
    pointer-events: none;
    visibility: hidden;
    padding: 20px;
}

.modal-container::-webkit-scrollbar { display: none; }

.modal-container.active {
    pointer-events: all;
    visibility: visible;
}

.modal-container.active .testimonials-modal {
    transform: scale(1);
    opacity: 1;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: hsl(0, 0%, 5%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
    transition: var(--transition1);
}

.overlay.active {
    opacity: .8;
    visibility: visible;
    pointer-events: all;
}

.testimonials-modal {
    background: var(--eerie-black2);
    position: relative;
    padding: 20px;
    border: 1px solid var(--jet);
    border-radius: 14px;
    box-shadow: var(--shadow5);
    transform: scale(1.2);
    opacity: 0;
    transition: var(--transition1);
    z-index: 2;
    max-width: 90%;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--onyx);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white2);
    font-size: 18px;
    opacity: .7;

    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent !important;
    tap-highlight-color: transparent !important;
    min-width: 44px !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    touch-action: manipulation !important;
}

.testimonials-modal * {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.modal-text,
.modal-title,
.modal-content time {
    -webkit-user-select: text;
    user-select: text;
}

.modal-close-btn:hover, .modal-close-btn:focus { opacity: 1; }
.modal-close-btn ion-icon { --ionicon-stroke-width: 50px; }

.modal-avatar-box {
    background: var(--bg-gradient-onyx);
    width: max-content;
    border-radius: 14px;
    margin-bottom: 15px;
    box-shadow: var(--shadow2);
}

.modal-img-wrapper > img { display: none; }

.modal-title { margin-bottom: 4px; }

.modal-content time {
    font-size: var(--fs6);
    color: var(--light-gray70);
    font-weight: var(--fw500);
    margin-bottom: 10px;
}

.modal-content p {
    color: var(--light-gray);
    font-size: var(--fs6);
    font-weight: var(--fw300);
    line-height: 1.6;
}

.pdf-button-container {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    margin-bottom: 5px;
}

.pdf-button {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--orange-yellow-crayola) 0%, var(--vegas-gold) 100%);
    color: var(--smoky-black);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: var(--fs6);
    font-weight: var(--fw600);
    transition: all var(--transition1);
    box-shadow: 0 4px 15px rgba(239, 207, 108, 0.3);
}

.pdf-button:hover {
    background: linear-gradient(135deg, #f7d674 0%, var(--orange-yellow-crayola) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 207, 108, 0.4);
}

.pdf-button i {
    font-size: 18px;
    color: var(--smoky-black);
    transition: transform var(--transition1);
}

.pdf-button:hover i {
    transform: scale(1.1);
}

.pdf-button.hidden {
    display: none !important;
}

.testimonials-modal {
    background: var(--eerie-black2);
    position: relative;
    padding: 20px;
    border: 1px solid var(--jet);
    border-radius: 14px;
    box-shadow: var(--shadow5);
    transform: scale(1.2);
    opacity: 0;
    transition: var(--transition1);
    z-index: 2;
    max-width: 90%;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
}

.modal-content {
    overflow-y: auto;
    flex: 1;
    padding-right: 10px;
    margin-right: -5px;
    max-height: 70vh;
    -webkit-overflow-scrolling: touch;
}

body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

.modal-text {
    color: var(--light-gray);
    font-size: var(--fs6);
    font-weight: var(--fw300);
    line-height: 1.6;
    max-height: 200px;
    overflow-y: auto;
}

.modal-content::-webkit-scrollbar,
.modal-text::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track,
.modal-text::-webkit-scrollbar-track {
    background: var(--onyx);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb,
.modal-text::-webkit-scrollbar-thumb {
    background: var(--orange-yellow-crayola);
    border-radius: 10px;
}

/* ==========================================================================
   13. CERTIFICATES
   ========================================================================== */

.cert { margin-bottom: 35px; }

.cert-list-wrapper {
    overflow: hidden;
    position: relative;
}

.cert-list {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 15px;
    margin: 0 -15px;
    padding: 25px;
    padding-bottom: 25px;
    overflow-x: auto;
    scroll-behavior: smooth;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scroll-padding-inline: 25px;
}

.cert-item {
    min-width: 75%;
    scroll-snap-align: start;
}

@media (min-width: 360px) {
    .cert-item { min-width: 65%; }
}

.cert-item img {
    width: 100%;
    transition: var(--transition1);
}

.cert-item:last-child img[alt="Cert 07"] {
    object-position: center 50%;
}
/* ==========================================================================
   14. TIMELINE
   ========================================================================== */

.timeline { margin-bottom: 30px; }

.timeline .title-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.timeline-list {
    font-size: var(--fs6);
    margin-left: 45px;
}

.timeline-item { position: relative; }

.timeline-item:not(:last-child) { margin-bottom: 20px; }

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    top: -25px;
    left: -30px;
    width: 1px;
    height: calc(100% + 50px);
    background: var(--jet);
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 5px;
    left: -33px;
    height: 6px;
    width: 6px;
    border-radius: 50%;
    background: var(--text-gradient-yellow);
    box-shadow: 0 0 0 4px var(--jet);
}

.timeline-item-title {
    font-size: var(--fs6);
    line-height: 1.3;
    margin-bottom: 7px;
}

.timeline-item-title a {
    color: inherit;
    text-decoration: none;
}

.timeline-item-title a:hover { color: var(--orange-yellow-crayola); }

.timeline-text {
    color: var(--light-gray);
    font-weight: var(--fw300);
    line-height: 1.6;
    text-align: justify;
}

/* ==========================================================================
   15. SKILLS
   ========================================================================== */

.skills-title { margin-bottom: 20px; }

.skills-list { padding: 20px; }

.skills-item:not(:last-child) { margin-bottom: 15px; }

.skill .title-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}

.skill .title-wrapper data {
    color: var(--light-gray);
    font-size: var(--fs7);
    font-weight: var(--fw300);
}

.skills-progress-bg {
    background: var(--jet);
    width: 100%;
    height: 8px;
    border-radius: 10px;
}

.skills-progress-fill {
    background: var(--text-gradient-yellow);
    height: 100%;
    border-radius: inherit;
}

/* ==========================================================================
   16. PROJECTS / PORTFOLIO
   ========================================================================== */

.filter-list { display: none; }

.filter-select-box {
    position: relative;
    margin-bottom: 25px;
}

.filter-select {
    background: var(--eerie-black2);
    color: var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--jet);
    border-radius: 14px;
    font-size: var(--fs6);
    font-weight: var(--fw300);
    cursor: pointer;
    transition: var(--transition1);
}

.filter-select.active {
    border-color: var(--orange-yellow-crayola);
}

.filter-select .select-value {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-select .select-value .selected-category {
    color: var(--orange-yellow-crayola);
    font-weight: var(--fw500);
}

.filter-select .select-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    color: var(--light-gray);
    font-size: 12px;
}

.filter-select.active .select-icon {
    transform: rotate(180deg);
    color: var(--orange-yellow-crayola);
}

.select-list {
    background: var(--eerie-black2);
    position: absolute;
    top: calc(100% + 6px);
    width: 100%;
    padding: 6px;
    border: 1px solid var(--jet);
    border-radius: 14px;
    z-index: 10;
    max-height: 300px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    box-shadow: var(--shadow2);
}

.filter-select.active + .select-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.select-item {
    margin-bottom: 4px;
}

.select-item:last-child {
    margin-bottom: 0;
}

.select-item button {
    background: var(--eerie-black2);
    color: var(--light-gray);
    font-size: var(--fs6);
    font-weight: var(--fw300);
    text-transform: capitalize;
    width: 100%;
    padding: 12px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition1);
}

.select-item button:hover {
    background: hsl(240, 2%, 20%);
    color: var(--white2);
}

.select-item button.active {
    background: hsl(240, 2%, 18%);
    color: var(--orange-yellow-crayola);
    font-weight: var(--fw500);
}

.select-item button.active::after {
    content: '✓';
    font-size: 14px;
    color: var(--orange-yellow-crayola);
    font-weight: var(--fw600);
}

.select-list::-webkit-scrollbar {
    width: 6px;
}

.select-list::-webkit-scrollbar-track {
    background: var(--onyx);
    border-radius: 10px;
}

.select-list::-webkit-scrollbar-thumb {
    background: var(--orange-yellow-crayola);
    border-radius: 10px;
}

.project-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 10px;
}

.project-item { display: none; }

.project-item.active {
    display: block;
    animation: scaleUp .25s ease forwards;
}

@keyframes scaleUp {
    0% { transform: scale(0.5); }
    100% { transform: scale(1); }
}

.project-item > a { width: 100%; }

.project-img {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 15px;
}

.project-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition1);
}

.project-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
    transition: var(--transition1);
}

.project-item > a:hover img { transform: scale(1.1); }
.project-item > a:hover .project-img::before { background: hsla(0, 0%, 0%, .5); }

.project-item-icon-box {
    --scale: .8;
    background: var(--jet);
    color: var(--orange-yellow-crayola);
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%) scale(var(--scale));
    font-size: 20px;
    padding: 18px;
    border-radius: 12px;
    opacity: 0;
    z-index: 2;
    transition: var(--transition1);
}

.project-item-zoom-box {
    --scale: .8;
    background: var(--jet);
    color: var(--orange-yellow-crayola);
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%) scale(var(--scale));
    font-size: 20px;
    padding: 18px;
    border-radius: 12px;
    opacity: 0;
    z-index: 2;
    transition: var(--transition1);
    cursor: pointer;
}

.project-item > a:hover .project-item-zoom-box,
.project-item > a:hover .project-item-icon-box {
    --scale: 1;
    opacity: 1;
}

.project-item-zoom-box:hover,
.project-item-icon-box:hover {
    background: var(--orange-yellow-crayola);
    color: var(--smoky-black);
}

.project-title, .project-category { margin-left: 10px; }

.project-title {
    color: var(--white2);
    font-size: var(--fs5);
    font-weight: var(--fw400);
    text-transform: capitalize;
    line-height: 1.3;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    margin-left: 10px;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: visible;
}

.project-category, .project-separator, .project-language {
    flex-shrink: 0;
}

.project-category {
    color: var(--light-gray70);
    font-size: var(--fs6);
    font-weight: var(--fw300);
    text-transform: capitalize;
}

.project-separator {
    color: var(--orange-yellow-crayola);
    font-size: var(--fs6);
    font-weight: var(--fw400);
    opacity: 0.7;
}

.project-language {
    color: var(--orange-yellow-crayola);
    font-size: var(--fs6);
    font-weight: var(--fw500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, var(--orange-yellow-crayola), var(--vegas-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all var(--transition1);
}

.project-language::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 4px;
    padding: 1px;
    background: linear-gradient(90deg, var(--orange-yellow-crayola), var(--vegas-gold));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.3;
    transition: var(--transition1);
}

.project-item > a:hover .project-language::before {
    opacity: 0.7;
    background: linear-gradient(90deg, var(--vegas-gold), var(--orange-yellow-crayola));
}

.project-item > a:hover .project-language {
    background: linear-gradient(90deg, var(--vegas-gold), var(--orange-yellow-crayola));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateY(-1px);
}

.project-img img[src*="_24-reactor.png"] {
    object-position: center top;
}

/* ==========================================================================
   17. BLOG
   ========================================================================== */

.blog-posts { margin-bottom: 10px; }

.blog-banner-box img[src*="_blog-12.png"] {
    object-position: center top;
}

.blog-banner-box img[src*="_blog-14.png"] {
    object-position: center 66%;;
}

.blog-posts-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.blog-posts-item > a {
    position: relative;
    background: var(--border-gradient-onyx);
    height: 100%;
    box-shadow: var(--shadow4);
    border-radius: 16px;
    z-index: 1;
}

.blog-posts-item > a::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: var(--eerie-black1);
    z-index: -1;
}

.blog-banner-box {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
}

.blog-banner-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition1);
}

.blog-content { padding: 15px; }

.blog-meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
}

.blog-meta :is(.blog-category, time) {
    color: var(--light-gray70);
    font-size: var(--fs6);
    font-weight: var(--fw300);
}

.blog-meta .dot {
    background: var(--light-gray70);
    width: 4px;
    height: 4px;
    border-radius: 4px;
}

.blog-item-title {
    margin-bottom: 10px;
    line-height: 1.3;
    transition: var(--transition1);
}

.blog-post-item > a:hover .blog-item-title { color: var(--orange-yellow-crayola); }

.blog-text {
    color: var(--light-gray);
    font-size: var(--fs6);
    font-weight: var(--fw300);
    line-height: 1.6;
    text-align: justify;
}

/* ==========================================================================
   18. CONTACT / MAP / FORM
   ========================================================================== */

.mapbox {
    position: relative;
    height: 250px;
    width: 100%;
    border-radius: 16px;
    margin-bottom: 30px;
    border: 1px solid var(--jet);
    overflow: hidden;
}

.mapbox figure { height: 100%; }

.mapbox iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(1) invert(1);
}

.contact-form { margin-bottom: 10px; }

.form-title { margin-bottom: 20px; }

.input-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.form-input {
    color: var(--white2);
    font-size: var(--fs6);
    font-weight: var(--fw400);
    padding: 13px 20px;
    border: 1px solid var(--jet);
    border-radius: 14px;
    outline: none;
}

.form-input::placeholder { font-weight: var(--fw500); }

.form-input:focus { border-color: var(--orange-yellow-crayola); }

.form-input:focus:invalid { border-color: var(--bittersweet-shimmer); }

textarea.form-input {
    min-height: 100px;
    height: 120px;
    max-height: 200px;
    resize: vertical;
    margin-bottom: 25px;
}

.form-btn {
    position: relative;
    width: 100%;
    background: var(--border-gradient-onyx);
    color: var(--orange-yellow-crayola);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    border-radius: 14px;
    font-size: var(--fs6);
    text-transform: capitalize;
    box-shadow: var(--shadow3);
    z-index: 1;
    transition: var(--transition1);
}

.form-btn::before {
    content: '';
    position: absolute;
    inset: 1px;
    background: var(--bg-gradient-jet);
    border-radius: inherit;
    z-index: -1;
    transition: var(--transition1);
}

.form-btn ion-icon { font-size: 16px; }

.form-btn:hover { background: var(--bg-gradient-yellow1); }
.form-btn:hover::before { background: var(--bg-gradient-yellow2); }

.form-btn:disabled {
    opacity: .7;
    cursor: not-allowed;
}

.form-btn:disabled:hover { background: var(--border-gradient-onyx); }
.form-btn:disabled:hover::before { background: var(--bg-gradient-jet); }

/* ==========================================================================
   19. AVATAR ZOOM
   ========================================================================== */

.avatar-zoom {
    transition: transform 1.2s ease;
    cursor: pointer;
    transform-origin: top center;
}

.avatar-zoom:hover {
    transform: scale(1.8);
}

/* ==========================================================================
   20. ZOOM MODALS & PDF MODALS - FIXED FOR iOS
   ========================================================================== */

.zoom-modal,
.cert-modal,
.pdf-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.zoom-modal-content,
.cert-modal-content,
.pdf-modal-content {
    margin: auto;
    display: block;
    width: 95%;
    max-width: 1200px;
    height: auto;
    max-height: 90vh;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
    background: var(--eerie-black2);
    padding: 20px;
    border: 1px solid var(--jet);
}

html {
    -webkit-overflow-scrolling: touch;
}

.modal-container,
.testimonials-modal,
.cert-modal-content,
.pdf-modal-content {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

@supports (-webkit-touch-callout: none) {

    body.modal-open {
        position: fixed;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .cert-pdf-container,
    .pdf-pdf-container {
        height: 80vh;
        min-height: 500px;
        -webkit-overflow-scrolling: touch;
        overflow-y: auto;
    }

    .cert-pdf-container iframe,
    .pdf-pdf-container iframe {
        height: 100%;
        min-height: 500px;
    }

    .pdf-modal-content {
        top: 5%;
        transform: none;
        max-height: 90vh;
        overflow-y: auto;
    }

    .cert-modal-content {
        top: 5%;
        transform: none;
        max-height: 90vh;
        overflow-y: auto;
    }

    .cert-modal,
    .pdf-modal {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: none;
    }

    .cert-modal-content,
    .pdf-modal-content {
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }

    .cert-pdf-container,
    .pdf-pdf-container {
        -webkit-overflow-scrolling: touch !important;
        overflow-y: auto !important;
    }

    .cert-pdf-container iframe,
    .pdf-pdf-container iframe {
        -webkit-overflow-scrolling: touch;
        overflow-y: auto;
    }
}

body.modal-open {
    overflow: hidden !important;
    position: relative;
    height: 100vh;
}

.cert-modal,
.pdf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#zoomedImage {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.cert-pdf-container,
.pdf-pdf-container {
    width: 100%;
    height: 80vh;
    min-height: 500px;
    border-radius: 8px;
    overflow: hidden;

    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    overflow-y: auto !important;
    touch-action: pan-y pinch-zoom !important;
}

.cert-pdf-container iframe,
.pdf-pdf-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;

    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
}

.modal-close-btn,
.pdf-button,
.cert-icon-box,
[data-zoom-btn] {
    cursor: pointer !important;
}

.testimonials-modal,
.cert-modal-content,
.pdf-modal-content {
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
}

.pdf-fallback-message {
    margin-top: 15px;
    padding: 15px;
    background: var(--jet);
    border-radius: 8px;
    border: 1px solid var(--orange-yellow-crayola);
}

.pdf-fallback-message a {
    color: var(--orange-yellow-crayola);
    text-decoration: underline;
    font-weight: var(--fw600);
}

.pdf-fallback-message a:hover {
    color: var(--vegas-gold);
}

.close-zoom-modal,
.close-cert-modal,
.close-pdf-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition1);
    z-index: 10000;
    background: var(--onyx);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.close-zoom-modal:hover,
.close-cert-modal:hover,
.close-pdf-modal:hover {
    color: var(--orange-yellow-crayola);
    transform: scale(1.1);
    opacity: 1;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: translateY(-50%) scale(0.8); }
    to { transform: translateY(-50%) scale(1); }
}

.modal-close-btn i {
    pointer-events: none;
}

/* ==========================================================================
   TESTIMONIALS SCROLL INDICATORS
   ========================================================================== */

.testimonials-list-wrapper {
    overflow: hidden;
    position: relative;
}

.testimonials-list {
    padding-top: 25px;
    /* extra bottom padding pushes iOS overlay scrollbar below the wrapper's overflow:hidden clip */
    padding-bottom: 30px;
    margin-bottom: -18px;
}

.testimonials-list-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(to right,
        var(--eerie-black2) 0%,
        transparent 100%);
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity var(--transition1);
}

.testimonials-list-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(to left,
        var(--eerie-black2) 0%,
        transparent 100%);
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity var(--transition1);
}

.testimonials-list-wrapper.scrollable::before,
.testimonials-list-wrapper.scrollable::after {
    opacity: 1;
}

.testimonials-list-wrapper.scrollable:not(.scrolled-to-end)::after {
    animation: pulseIndicator 2s infinite;
}

@keyframes pulseIndicator {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* ==========================================================================
   CERTIFICATES SCROLL INDICATORS
   ========================================================================== */

.cert-list {
    padding-top: 5px;
    /* extra bottom padding pushes iOS overlay scrollbar below the wrapper's overflow:hidden clip */
    padding-bottom: 30px;
    margin-bottom: -18px;
}

.cert-list-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(to right,
        var(--eerie-black2) 0%,
        transparent 100%);
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity var(--transition1);
}

.cert-list-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(to left,
        var(--eerie-black2) 0%,
        transparent 100%);
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity var(--transition1);
}

.cert-list-wrapper.scrollable::before,
.cert-list-wrapper.scrollable::after {
    opacity: 1;
}

.cert-list-wrapper.scrollable:not(.scrolled-to-end)::after {
    animation: pulseIndicator 2s infinite;
}

/* ==========================================================================
   CUSTOM SCROLLBAR FOR MOBILE
   ========================================================================== */

@media (max-width: 768px) {
    .has-scrollbar {
        -webkit-overflow-scrolling: touch;
    }

    .has-scrollbar::-webkit-scrollbar {
        height: 6px;
        width: 6px;
        display: block !important;
    }

    .cert-list::-webkit-scrollbar,
    .testimonials-list::-webkit-scrollbar {
        display: none !important;
    }

    .cert-list,
    .testimonials-list {
        scrollbar-width: none;
    }

    .has-scrollbar::-webkit-scrollbar-track {
        background: var(--onyx);
        border-radius: 100px;
        margin: 0 15px;
    }

    .has-scrollbar::-webkit-scrollbar-thumb {
        background: linear-gradient(to right, var(--vegas-gold), var(--orange-yellow-crayola));
        border-radius: 100px;
        border: 1px solid hsla(0, 0%, 0%, 0.15);
    }

    .has-scrollbar::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(to right, var(--orange-yellow-crayola), var(--golden-sand));
    }

    @supports (-webkit-touch-callout: none) {
        .has-scrollbar {
            scrollbar-width: auto;
        }

        .has-scrollbar::-webkit-scrollbar {
            -webkit-appearance: none;
            display: block !important;
        }
    }
}

/* ==========================================================================
   SCROLL HINT INDICATORS
   ========================================================================== */

.scroll-hint {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--orange-yellow-crayola);
    font-size: 24px;
    opacity: 0.7;
    pointer-events: none;
    z-index: 2;
    animation: bounceHint 1.5s infinite;
    display: none;
}

@keyframes bounceHint {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(-5px); }
}

@media (max-width: 768px) {
    .testimonials-list.scrollable:not(.scrolled-to-end) .scroll-hint,
    .cert-list.scrollable:not(.scrolled-to-end) .scroll-hint {
        display: block;
    }
}

/* ==========================================================================
   SCROLL SNAP IMPROVEMENTS
   ========================================================================== */

.testimonials-list,
.cert-list {
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 25px;
}

.testimonials-item,
.cert-item {
    scroll-snap-align: start;
}

.testimonials-item .content-card,
.cert-item .cert-link,
.cert-item .cert-album-thumb {
    box-shadow: var(--shadow2);
    transition: transform var(--transition1), box-shadow var(--transition1);
}

.testimonials-item .content-card:hover,
.cert-item .cert-link:hover,
.cert-item .cert-album-thumb:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow3);
}

@media (max-width: 768px) {
    .modal-close-btn {
        width: 44px !important;
        height: 44px !important;
        font-size: 22px !important;
        top: 10px !important;
        right: 10px !important;
    }

    .testimonials-modal {
        touch-action: manipulation;
        -webkit-text-size-adjust: 100%;
        max-height: 90vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .cert-pdf-container,
    .pdf-pdf-container {
        height: 70vh;
        min-height: 400px;
    }

    .close-zoom-modal,
    .close-cert-modal,
    .close-pdf-modal {
        top: 10px;
        right: 15px;
        font-size: 30px;
        width: 35px;
        height: 35px;
    }

    .zoom-modal-content,
    .cert-modal-content,
    .pdf-modal-content {
        width: 98%;
        padding: 15px;
        top: 50%;
        transform: translateY(-50%);
    }
}

@media (max-width: 480px) {
    .cert-pdf-container,
    .pdf-pdf-container {
        height: 60vh;
        min-height: 300px;
    }

    .pdf-fallback-message {
        font-size: var(--fs7);
        padding: 10px;
    }
}

/* ==========================================================================
   21. CERTIFICATE CARDS
   ========================================================================== */

.cert-link,
.cert-album-thumb {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow2);
    transition: var(--transition1);
}

.cert-link:hover,
.cert-album-thumb:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow3);
}

.cert-img-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 70%;
    overflow: hidden;
    border-radius: 10px;
}

.cert-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    transition: var(--transition1);
    opacity: 1;
    transform: scale(1.1);
    transform-origin: center top;
}

.cert-link:hover .cert-img,
.cert-album-thumb:hover .cert-img {
    opacity: 1;
    transform: scale(1.15);
    transform-origin: center top;
}

.cert-img--centered {
    object-position: center center;
    transform-origin: center center;
}

.cert-link:hover .cert-img--centered,
.cert-album-thumb:hover .cert-img--centered {
    transform-origin: center center;
}

.cert-img--center-top-diploma {
    object-position: center 1%;
    transform-origin: center top;
    filter: saturate(0.25);
}

.cert-link:hover .cert-img--center-top-diploma,
.cert-album-thumb:hover .cert-img--center-top-diploma {
    filter: saturate(0.6);
}

.cert-img--center-top-soft-uni {
    object-position: center 23%;
    transform-origin: center top;
}

.cert-img--deeplearning {
    object-fit: contain;
    object-position: center center;
    transform: scale(1);
    background-color: #fff;
}

.cert-link:hover .cert-img--deeplearning,
.cert-album-thumb:hover .cert-img--deeplearning {
    transform: scale(1.03);
    transform-origin: center center;
}

.cert-img--linkedin {
    object-position: center 75%;
    transform-origin: center center;
}

.cert-img--sap {
    object-fit: contain;
    object-position: center bottom;
    transform-origin: center bottom;
    transform: scale(1.20);
    background-color: #fff;
}

.cert-img--pluralsight {
    object-position: left 75%;
    transform-origin: left bottom;
    transform: scale(1.35);
}

.cert-link:hover .cert-img--pluralsight,
.cert-album-thumb:hover .cert-img--pluralsight {
    transform: scale(1.45);
    transform-origin: left bottom;
}

.cert-link:hover .cert-img--center-top,
.cert-album-thumb:hover .cert-img--center-top {
    transform-origin: center top;
}

.cert-img-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
    transition: var(--transition1);
}

.cert-link:hover .cert-img-wrapper::before,
.cert-album-thumb:hover .cert-img-wrapper::before {
    background: hsla(0, 0%, 0%, .5);
}

.cert-icon-box {
    --scale: .8;
    background: var(--jet);
    color: var(--orange-yellow-crayola);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(var(--scale));
    font-size: 20px;
    padding: 18px;
    border-radius: 12px;
    opacity: 0;
    z-index: 2;
    transition: var(--transition1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
}

.cert-link:hover .cert-icon-box,
.cert-album-thumb:hover .cert-icon-box {
    --scale: 1;
    opacity: 1;
}

.cert-icon-box:hover {
    background: var(--orange-yellow-crayola);
    color: var(--smoky-black);
}

.cert-icon-box i {
    font-size: 24px;
}

/* ==========================================================================
   22. TECH STACK & BULLET LIST
   ========================================================================== */

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

.tech-tag {
    background:
        linear-gradient(145deg,
            hsl(45, 100%, 75%) 0%,
            var(--orange-yellow-crayola) 30%,
            hsl(45, 100%, 65%) 70%,
            hsl(45, 100%, 75%) 100%);
    color: #000000;
    padding: 3px 6px;
    border-radius: 6px;
    font-size: var(--fs8);
    font-weight: var(--fw600);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    box-shadow:
        0 3px 10px rgba(239, 207, 108, 0.3),
        inset 0 1px 3px rgba(255, 255, 255, 0.6),
        inset 0 -1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
    transition: all var(--transition1);

    color: black;
    font-weight: var(--fw400);
    line-height: 1.2;
}

.tech-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 207, 108, 0.3);
}

.styled-bullet-list {
    list-style: none;
    padding-left: 0;
    margin: 15px 0 20px 0;
}

.styled-bullet-list li {
    position: relative;
    padding-left: 34px;
    margin-bottom: 12px;
    line-height: 1.6;
    color: var(--light-gray);
}

.styled-bullet-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--orange-yellow-crayola);
    box-shadow: 0 0 4px rgba(239, 207, 108, 0.6);
}

.styled-bullet-list li:hover::before {
    border-color: #ffd93d;
    box-shadow: 0 0 6px rgba(255, 217, 61, 0.8);
    transform: scale(1.1);
}

[data-theme="light"] .styled-bullet-list li:hover::before {
    border-color: var(--orange-yellow-crayola);
    box-shadow: none;
    filter: brightness(1.4);
    transform: scale(1.1);
}

/* ==========================================================================
   23. MUSIC PLAYER
   ========================================================================== */

.music-controls {
    display: grid;
    gap: 8px;
    padding: 10px;
    background: var(--border-gradient-onyx);
    border-radius: 10px;
    box-shadow: var(--shadow2);
    position: relative;
    isolation: isolate;
    max-width: 320px;
    margin: 0 auto;
}

.volume-controls {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 4px;
    min-width: 0;
    padding: 4px 0;
}

.volume-level {
    color: var(--orange-yellow-crayola);
    font-size: 10px;
    font-weight: var(--fw500);
    min-width: 30px;
    text-align: center;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    letter-spacing: 0.5px;
    background: linear-gradient(145deg,
        hsla(45, 100%, 72%, 0.1) 0%,
        hsla(45, 100%, 72%, 0.05) 100%);
    padding: 2px 4px;
    border-radius: 4px;
    border: 1px solid hsla(45, 100%, 72%, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 20px;
}

.music-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--jet);
    color: var(--light-gray70);
    display: grid;
    place-items: center;
    font-size: 18px;
    transition: all var(--transition1);
    cursor: pointer;
    border: none;
    touch-action: manipulation;
    flex-shrink: 0;
}

.music-btn:hover,
.music-btn:focus-visible {
    background: var(--orange-yellow-crayola);
    color: var(--smoky-black);
    transform: scale(1.1);
}

.music-btn.playing {
    background: var(--orange-yellow-crayola);
    color: var(--smoky-black);
}

.music-btn.playing i {
    color: var(--smoky-black) !important;
}

.music-btn:not(.playing) i {
    color: var(--light-gray70) !important;
}

.now-playing {
    display: grid;
    gap: 6px;
    margin-top: 8px;
    padding: 8px;
    background: var(--border-gradient-onyx);
    border-radius: 8px;
    position: relative;
    isolation: isolate;
}

.now-playing::before {
    content: '';
    position: absolute;
    inset: 1px;
    background: var(--bg-gradient-jet);
    border-radius: inherit;
    z-index: -1;
}

.song-title {
    color: var(--orange-yellow-crayola);
    font-size: 11px;
    font-weight: var(--fw500);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 5px;
    direction: ltr;
    max-width: 100%;
}

.playback-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.playback-btn {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: var(--jet);
    color: var(--light-gray70);
    display: grid;
    place-items: center;
    font-size: 11px;
    transition: all var(--transition1);
    cursor: pointer;
    border: none;
    touch-action: manipulation;
    flex-shrink: 0;
}

.playback-btn:hover,
.playback-btn:focus-visible {
    background: var(--orange-yellow-crayola);
    color: var(--smoky-black);
    transform: scale(1.1);
}

.playback-btn.active {
    background: var(--orange-yellow-crayola);
    color: var(--smoky-black);
}

.progress-container {
    width: 100%;
    margin-top: 4px;
    contain: layout style;
}

.time-display {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    color: var(--light-gray70);
    font-size: 10px;
    font-weight: var(--fw400);
    font-variant-numeric: tabular-nums;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.slider {
    -webkit-appearance: none;
    appearance: none;
    background: var(--jet);
    border-radius: 8px;
    outline: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--transition1);
    --slider-color: var(--light-gray70);
    touch-action: manipulation;
    width: 100%;
    height: 6px;
    margin: 0;
}

#volume-slider {
    flex: 1;
    min-width: 0;
    height: 5px;
}

#progress-slider {
    margin-top: 2px;
    height: 5px;
}

.slider::-webkit-slider-track {
    background: var(--jet);
    border-radius: 8px;
    height: 4px;
}

.slider::-moz-range-track {
    background: var(--jet);
    border-radius: 8px;
    height: 4px;
}

.slider::-webkit-slider-runnable-track {
    background: linear-gradient(
        to right,
        var(--slider-color) var(--slider-percent, 0%),
        transparent var(--slider-percent, 0%)
    );
    height: 4px;
    border-radius: 8px;
}

.slider::-moz-range-progress {
    background: var(--slider-color);
    height: 4px;
    border-radius: 8px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    border-radius: 50%;
    border: 2px solid var(--smoky-black);
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: all var(--transition1);
    will-change: transform;
    width: 12px;
    height: 12px;
    background: var(--slider-color);
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
    margin-top: -4px;
}

.slider::-moz-range-thumb {
    border-radius: 50%;
    border: 2px solid var(--smoky-black);
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: all var(--transition1);
    will-change: transform;
    width: 12px;
    height: 12px;
    background: var(--slider-color);
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
}

.sidebar.active .music-controls {
    margin-top: 10px;
    margin-bottom: 5px;
}

.sidebar-info-more .music-controls {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   24. MEDIA QUERIES
   ========================================================================== */

@media (max-width: 480px) {
    .project-meta {
        gap: 3px;
        margin-top: 4px;
    }

    .project-category,
    .project-separator,
    .project-language {
        font-size: var(--fs8);
    }

    .project-language {
        padding: 1px 3px;
    }

    .zoom-modal-content,
    .cert-modal-content,
    .pdf-modal-content {
        width: 98%;
        max-height: 85vh;
    }

    .close-zoom-modal,
    .close-cert-modal,
    .close-pdf-modal {
        top: 10px;
        right: 15px;
        font-size: 30px;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 580px) {
    .info-more-btn {
        min-width: 100px;
        padding: 7px 9px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .info-more-btn span {
        display: inline !important;
        font-size: var(--fs8);
        font-weight: var(--fw500);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .info-more-btn i {
        font-size: 10px;
        transition: transform var(--transition1);
    }

    .sidebar.active .info-more-btn i {
        transform: rotate(180deg);
    }

    .info-more-btn:hover i {
        transform: translateY(2px);
    }

    .testimonials-modal {
        max-width: 95%;
        padding: 15px;
    }
}

@media (min-width: 450px) {
    .cert-item { min-width: calc(50% - 8px); }
    .project-img, .blog-banner-box { height: auto; }
    .avatar-box img { width: 80px; }
}

@media (max-width: 450px) {
    .sidebar.active {
        max-height: 440px;
        overflow-y: auto;
    }
}

@media (min-width: 580px) {
    :root {
        --fs1: 32px;
        --fs2: 24px;
        --fs3: 26px;
        --fs4: 18px;
        --fs6: 15px;
        --fs7: 15px;
        --fs8: 12px;
    }

    .sidebar, article {
        width: auto;
        max-width: 100%;
        margin-inline: auto;
        padding: 30px;
    }

    .article-title {
        font-weight: var(--fw600);
        padding-bottom: 15px;
    }

    .article-title::after {
        width: 40px;
        height: 5px;
    }

    .icon-box {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        font-size: 18px;
    }

    main {
        margin-top: 60px;
        margin-bottom: 100px;
        padding: 0 20px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .sidebar {
        max-height: 180px;
        margin-bottom: 30px;
        width: 100%;
    }

    .sidebar.active { max-height: 584px; }

    .sidebar-info {
        gap: 30px;
    }

    .info-content .name {
        margin-bottom: 15px;
    }

    .info-content .title {
        padding: 5px 10px;
    }

    .info-more-btn {
        top: -30px;
        right: -30px;
        padding: 10px 15px;
    }

    .info-more-btn span {
        display: block;
        font-size: var(--fs8);
    }

    .info-more-btn i { display: none; }

    .separator { margin: 32px 0; }

    .contacts-list { gap: 20px; }

    .contact-info {
        max-width: calc(100% - 64px);
        width: calc(100% - 64px);
    }

    .navbar { border-radius: 20px 20px 0 0; }

    .navbar-list { gap: 20px; }
    .navbar-link { --fs8: 14px; }

    .about .article-title { margin-bottom: 20px; }
    .about-text { margin-bottom: 40px; }

    .service-item {
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 18px;
        padding: 30px;
    }

    .service-icon-box {
        margin-bottom: 0;
        margin-top: 5px;
    }

    .service-content-box { text-align: left; }

    .testimonials-title { margin-bottom: 25px; }

    .testimonials-list {
        gap: 30px;
        margin: 0;
        padding: 30px;
        padding-bottom: 30px;
        margin-bottom: -18px;
    }

    .content-card {
        padding: 30px;
        padding-top: 25px;
    }

    .testimonials-avatar-box {
        transform: translate(30px, -30px);
        border-radius: 28px;
    }

    .testimonials-avatar-box img { width: 80px; }

    .testimonials-item-title {
        margin-bottom: 10px;
        margin-left: 95px;
    }

    .testimonials-text {
        line-clamp: 2;
        -webkit-line-clamp: 2;
    }

    .modal-container {
        padding: 20px;
    }

    .testimonials-modal {
        display: flex;
        justify-content: flex-start;
        align-items: stretch;
        gap: 25px;
        padding: 30px;
        border-radius: 20px;
        max-width: 680px;
        margin: 0 auto;
    }

    .modal-img-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .modal-avatar-box {
        border-radius: 18px;
        margin-bottom: 0;
    }

    .modal-avatar-box img { width: 65px; }

    .modal-img-wrapper > img {
        display: block;
        width: 35px;
    }

    .project-list {
        padding: 0 15px !important;
        gap: 25px;
        width: 100%;
        box-sizing: border-box;
    }

    .portfolio .article-title {
        padding-left: 15px;
    }

    .cert-list {
        gap: 20px;
        margin-bottom: -18px;
        padding: 20px 25px 30px;
        scroll-padding-inline: 25px;
    }

    .cert-item { min-width: calc(45% - 12px); }

    .timeline-list { margin-left: 65px; }

    .timeline-item:not(:last-child)::before { left: -40px; }

    .timeline-item::after {
        height: 8px;
        width: 8px;
        left: -43px;
    }

    .skills-item:not(:last-child) { margin-bottom: 25px; }

    .project-img, .blog-banner-box { border-radius: 16px; }

    .blog-posts-list { gap: 30px; }

    .blog-content { padding: 25px; }

    .mapbox {
        height: 380px;
        border-radius: 18px;
        margin: 0 15px 30px 15px;
        width: calc(100% - 30px);
    }

    .input-wrapper {
        gap: 30px;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .form-input { padding: 15px 20px; }

    textarea.form-input { margin-bottom: 30px; }

    .form-btn {
        --fs6: 16px;
        padding: 16px 20px;
        margin: 0 15px;
    }

    .form-btn ion-icon { font-size: 18px; }

    .avatar-box img { width: 115px; }

    .cert-list {
        padding: 12px 15px 30px;
    }

    .cert-img-wrapper {
        padding-bottom: 60%;
    }

    .about-text p,
    .timeline-text,
    .blog-text,
    .contact-form {
        padding: 0 15px;
        box-sizing: border-box;
    }

    .zoom-modal-content,
    .cert-modal-content,
    .pdf-modal-content {
        max-width: 800px;
    }

    .cert-pdf-container,
    .pdf-pdf-container {
        height: 70vh;
        min-height: 600px;
    }
}

@media (min-width: 768px) {
    .sidebar, article { width: 700px; }

    .has-scrollbar::-webkit-scrollbar-button { width: 100px; }

    .contacts-list {
        grid-template-columns: 1fr 1fr;
        gap: 30px 15px;
    }

    .navbar-link { --fs8: 15px; }

    .testimonials-modal {
        gap: 35px;
        max-width: 680px;
    }

    .modal-avatar-box img { width: 80px; }

    .article-title { padding-bottom: 20px; }

    .filter-select-box { display: none; }

    .filter-list {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 25px;
        padding-left: 5px;
        margin-bottom: 30px;
    }

    .filter-item button {
        color: var(--light-gray);
        font-size: var(--fs5);
        transition: var(--transition1);
    }

    .filter-item button:hover { color: var(--light-gray70); }
    .filter-item button.active { color: var(--orange-yellow-crayola); }

    .project-list, .blog-posts-list { grid-template-columns: 1fr 1fr; }

    .input-wrapper { grid-template-columns: 1fr 1fr; }

    .form-btn {
        width: max-content;
        margin-left: auto;
    }

    .cert-list {
        gap: 20px;
    }

    .cert-item { min-width: calc(50% - 12px); }

    .project-list {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 15px;
        gap: 25px;
    }
}

@media (min-width: 1024px) {
    :root {
        --shadow1: -4px 8px 24px hsla(0, 0%, 0%, .125);
        --shadow2: 0px 16px 30px hsla(0, 0%, 0%, .125);
        --shadow3: 0px 16px 40px hsla(0, 0%, 0%, .125);
    }

    .sidebar, article {
        width: 950px;
        box-shadow: var(--shadow5);
    }

    main { margin-bottom: 60px; }

    .main-content {
        position: relative;
        width: max-content;
        margin: auto;
    }

    .navbar {
        position: absolute;
        bottom: auto;
        top: 0;
        left: auto;
        right: 0;
        width: max-content;
        border-radius: 0 20px;
        padding: 0 20px;
        box-shadow: none;
    }

    .navbar-list {
        gap: 30px;
        padding: 0 20px;
    }

    .navbar-link { font-weight: var(--fw500); }

    .service-list {
        grid-template-columns: 1fr 1fr;
        gap: 20px 25px;
    }

    .testimonials-item { min-width: calc(50% - 15px); }

    .modal-img-wrapper > img { top: 20px; }

    .cert-item { min-width: calc(33.33% - 14px); }

    .project-list { grid-template-columns: repeat(3, 1fr); }

    .blog-banner-box { height: 230px; }
}

@media (min-width: 1250px) {
    body::-webkit-scrollbar { width: 20px; }
    body::-webkit-scrollbar-track { background: var(--smoky-black); }

    body::-webkit-scrollbar-thumb {
        border: 5px solid var(--smoky-black);
        background: hsla(0, 0%, 100%, .1);
        border-radius: 20px;
        box-shadow: inset 1px 1px 0 hsla(0, 0%, 100%, .11), inset -1px -1px 0 hsla(0, 0%, 100%, .11);
    }

    body::-webkit-scrollbar-thumb:hover { background: hsla(0, 0%, 100%, .15); }
    body::-webkit-scrollbar-button { height: 60px; }

    .sidebar, article { width: auto; }

    article { min-height: 100%; }

    main {
        max-width: 1200px;
        margin-inline: auto;
        display: flex;
        justify-content: center;
        align-items: stretch;
        gap: 25px;
    }

    .main-content {
        min-width: 75%;
        width: 75%;
        margin: 0;
    }

    .sidebar {
        position: sticky;
        top: 60px;
        max-height: max-content;
        height: 100%;
        margin-bottom: 0;
        padding-top: 60px;
        z-index: 1;
    }

    .sidebar-info { flex-direction: column; }

    .info-content .name {
        white-space: nowrap;
        text-align: center;
    }

    .info-content .title { margin: auto; }

    .info-more-btn { display: none; }

    .sidebar-info-more {
        opacity: 1;
        visibility: visible;
    }

    .contacts-list { grid-template-columns: 1fr; }

    .contact-info :is(.contact-link) {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .contact-info :is(.contact-link, time, address) {
        --fs7: 14px;
        font-weight: var(--fw300);
    }

    .separator:last-of-type {
        margin: 15px 0;
        opacity: 0;
    }

    .social-list { justify-content: center; }

    .timeline-text { max-width: 700px; }

    .avatar-box img {
        width: 180px;
    }

    .contact-info :is(.contact-link, time, address) {
        --fs7: 14px;
        font-weight: var(--fw300);
    }

    .separator:last-of-type {
        margin: 15px 0;
        opacity: 0;
    }

    .social-list { justify-content: center; }

    .timeline-text { max-width: 700px; }

    .avatar-box img {
        width: 180px;
    }
}

/* ==========================================================================
   FRAMES
   ========================================================================== */

.frames-album { margin-bottom: 10px; }

/* Carousel */
.frames-carousel {
    position: relative;
    flex-shrink: 0;
    width: 260px;
}

.frames-carousel-track-wrap {
    width: 260px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--jet);
    background: var(--onyx);
}

.frames-carousel-track {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    transition: transform 0.4s ease;
    height: 100%;
    width: 100%;
}

.frames-carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}

.frames-carousel-slide .frames-album-thumb {
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: none;
}

.frames-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: hsla(0, 0%, 0%, 0.55);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white2);
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 2;
}

.frames-carousel:hover .frames-carousel-btn { opacity: 0.85; }
.frames-carousel-btn:hover { opacity: 1 !important; }

.frames-carousel-btn--prev { left: 8px; }
.frames-carousel-btn--next { right: 8px; }

.frames-carousel-btn:disabled { opacity: 0 !important; pointer-events: none; }

.frames-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}

.frames-carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--jet);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.frames-carousel-dot.active {
    background: var(--orange-yellow-crayola);
    transform: scale(1.3);
}

@media (max-width: 580px) {
    .frames-carousel { width: 100%; }
    .frames-carousel-track-wrap { width: 100%; }
    .frames-carousel-btn { opacity: 0.7; }
}

.frames-album-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.frames-album-item {
    display: flex;
    align-items: center;
    gap: 32px;
}

.frames-album-item--odd {
    flex-direction: row;
}

.frames-album-item--even {
    flex-direction: row-reverse;
}

.frames-album-thumb {
    position: relative;
    flex-shrink: 0;
    width: 260px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--jet);
    background: var(--onyx);
    cursor: pointer;
    padding: 0;
    transition: var(--transition1);
}

.frames-album-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.frames-album-thumb:hover img { transform: scale(1.06); }

.frames-album-thumb:hover,
.frames-album-thumb:focus-visible {
    border-color: var(--orange-yellow-crayola);
    box-shadow: var(--shadow4);
    outline: none;
}

.frames-album-zoom {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: hsla(0, 0%, 0%, 0.55);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white2);
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.frames-album-thumb:hover .frames-album-zoom { opacity: 1; }

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

.frames-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.frames-meta :is(.frames-category, time) {
    font-size: var(--fs7);
    color: var(--light-gray70);
}

.frames-meta .dot {
    background: var(--light-gray70);
    width: 4px;
    height: 4px;
    border-radius: 50%;
}

.frames-item-title {
    margin-bottom: 6px;
    color: var(--white2);
    font-size: var(--fs5);
    font-weight: var(--fw600);
    line-height: 1.4;
}

.frames-text {
    font-size: var(--fs6);
    color: var(--light-gray70);
    line-height: 1.6;
}

/* Lightbox */
.frames-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: hsla(0, 0%, 0%, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
}

.frames-lightbox-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 92vw;
    max-height: 92vh;
    position: relative;
}

.frames-lightbox-media {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 80vw;
}

.frames-lightbox-media img {
    max-width: 80vw;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}

.frames-lightbox-caption {
    color: var(--light-gray70);
    font-size: var(--fs6);
    margin-top: 10px;
    text-align: center;
    max-width: 70vw;
    line-height: 1.5;
}

.frames-lightbox-close {
    position: fixed;
    top: 18px;
    right: 22px;
    background: var(--onyx);
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white2);
    font-size: 18px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    z-index: 10001;
}

.frames-lightbox-close:hover { opacity: 1; }

.frames-lightbox-nav {
    background: var(--onyx);
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white2);
    font-size: 16px;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.frames-lightbox-nav:hover { opacity: 1; }

@media (max-width: 580px) {
    .frames-album-item--odd,
    .frames-album-item--even {
        flex-direction: column;
    }
    .frames-album-thumb {
        width: 100%;
    }
    .frames-lightbox-media img { max-width: 92vw; max-height: 65vh; }
    .frames-lightbox-caption { max-width: 88vw; }
    .frames-lightbox-nav { width: 34px; height: 34px; font-size: 13px; }
}

/* ===== CERT LIGHTBOX ===== */
.cert-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: hsla(0, 0%, 0%, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-lightbox-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 92vw;
    max-height: 92vh;
    position: relative;
}

.cert-lightbox-media {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 80vw;
}

.cert-lightbox-media img {
    max-width: 80vw;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}

.cert-lightbox-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 8px 18px;
    background: var(--onyx);
    color: var(--orange-yellow-crayola);
    border-radius: 8px;
    font-size: var(--fs6);
    font-weight: var(--fw600);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    border: 1px solid var(--orange-yellow-crayola);
    cursor: pointer;
}

.cert-lightbox-pdf-btn:hover {
    background: var(--orange-yellow-crayola);
    color: var(--smoky-black);
}

.cert-lightbox-close {
    position: fixed;
    top: 18px;
    right: 22px;
    background: var(--onyx);
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white2);
    font-size: 18px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    z-index: 10001;
}

.cert-lightbox-close:hover { opacity: 1; }

.cert-lightbox-nav {
    background: var(--onyx);
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white2);
    font-size: 16px;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.cert-lightbox-nav:hover { opacity: 1; }

/* reset button styles for cert-album-thumb */
.cert-album-thumb {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

@media (max-width: 580px) {
    .cert-lightbox-inner {
        position: relative;
        max-width: 100vw;
    }
    .cert-lightbox-media {
        max-width: 100vw;
    }
    .cert-lightbox-media img { max-width: 96vw; max-height: 65vh; }
    .cert-lightbox-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 34px;
        height: 34px;
        font-size: 13px;
        z-index: 1;
        background: hsla(0, 0%, 10%, 0.75);
    }
    #certLightboxPrev { left: 6px; }
    #certLightboxNext { right: 6px; }
}

/* ===== FEEDBACK LIGHTBOX ===== */
.feedback-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: hsla(0, 0%, 0%, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-lightbox-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 720px;
    width: 90vw;
    position: relative;
}

.feedback-lightbox-card {
    flex: 1;
    background: var(--eerie-black2);
    border: 1px solid var(--jet);
    border-radius: 14px;
    padding: 30px 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.feedback-lightbox-avatar-box {
    margin-bottom: 12px;
}

.feedback-lightbox-avatar-box img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--jet);
}

.feedback-lightbox-name {
    color: var(--white2);
    margin-bottom: 4px;
    font-size: var(--fs4);
}

.feedback-lightbox-date {
    display: block;
    color: var(--orange-yellow-crayola);
    font-size: var(--fs6);
    margin-bottom: 16px;
}

.feedback-lightbox-text {
    color: var(--light-gray70);
    font-size: var(--fs6);
    line-height: 1.7;
    text-align: left;
    margin-bottom: 16px;
}

.feedback-lightbox-close {
    position: fixed;
    top: 18px;
    right: 22px;
    background: var(--onyx);
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white2);
    font-size: 18px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    z-index: 10001;
}

.feedback-lightbox-close:hover { opacity: 1; }

.feedback-lightbox-nav {
    background: var(--onyx);
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white2);
    font-size: 16px;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.feedback-lightbox-nav:hover { opacity: 1; }

@media (max-width: 580px) {
    .feedback-lightbox-inner { gap: 6px; }
    .feedback-lightbox-nav { width: 34px; height: 34px; font-size: 13px; }
    .feedback-lightbox-card { padding: 22px 16px 18px; }
}

/* ==========================================================================
   SCROLL INDICATOR ARROWS (cert-list & testimonials-list nav row)
   ========================================================================== */

.scroll-indicator-arrows {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 0 0;
}

.scroll-indicator-arrows i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--onyx);
    border: 1px solid var(--jet);
    color: var(--golden-sand);
    font-size: 13px;
    cursor: pointer;
    transition: background var(--transition1), opacity var(--transition1), transform var(--transition1);
    flex-shrink: 0;
}

.scroll-indicator-arrows i:hover {
    background: var(--orange-yellow-crayola);
    color: var(--smoky-black);
    border-color: var(--orange-yellow-crayola);
    transform: scale(1.1);
}

.scroll-indicator-arrows i:active {
    transform: scale(0.95);
}

[data-theme="light"] .scroll-indicator-arrows i {
    background: hsl(0, 0%, 88%);
    border-color: hsl(0, 0%, 70%);
    color: hsl(0, 0%, 20%) !important;
}
