/* ============================================================
   1. VARIABLES & BASE SETUP
   ============================================================ */
:root {
    --bg-main: #e5e7eb;
    --text-main: #111827;
    --text-muted: #4b5563;
    --primary-color: #374151;
    --primary-hover: #1f2937;
    --card-bg: #ffffff;
    --border-color: #d1d5db;
    --sidebar-bg: rgba(31, 41, 55, 0.85);
    --sidebar-icon: #9ca3af;
    --sidebar-icon-active: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.08);
}

body.dark-mode {
    --bg-main: #111827;
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --primary-color: #6b7280;
    --primary-hover: #9ca3af;
    --card-bg: #1f2937;
    --border-color: #374151;
    --sidebar-bg: rgba(3, 7, 18, 0.85);
    --sidebar-icon: #6b7280;
    --sidebar-icon-active: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.4);
}

::selection {
    background-color: var(--text-main);
    color: var(--bg-main);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

/* SETUP LENIS SMOOTH SCROLL */
html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

/* KUNCI: Aksesibilitas Keyboard Focus */
:focus-visible {
    outline: 2px solid var(--text-main);
    outline-offset: 4px;
    border-radius: 8px;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    transition: background-color 0.4s ease;
    position: relative;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

.mt-15 {
    margin-top: 15px;
}

.mt-20 {
    margin-top: 20px;
}

/* ============================================================
   2. UTILITIES & ANIMATIONS
   ============================================================ */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-main);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Fade Up Standard */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

.animate-on-scroll.show-anim {
    opacity: 1;
    transform: translateY(0);
}

/* Animasi Hero mendarat stabil */
.hero-title, .hero-desc, .hero-buttons {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
    will-change: transform, opacity;
}

.hero-title {
    transition-delay: 0.1s;
}

.hero-desc {
    transition-delay: 0.25s;
}

.hero-buttons {
    transition-delay: 0.4s;
}

.hero-img {
    opacity: 0;
    transform: translateY(-40px);
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
    will-change: transform, opacity;
}

.is-visible .hero-title, .is-visible .hero-desc, .is-visible .hero-buttons {
    opacity: 1;
    transform: translateY(0);
}

.hero-img.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.overlay-anim {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.overlay-anim.show-anim {
    opacity: 1;
    transform: translateY(0);
}

/* Fisika Magnet pada Tombol */
.magnetic-btn {
    will-change: transform;
    transition: transform 0.1s linear, background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.btn {
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-color);
    outline: none;
}

.btn-landing {
    border-radius: 50px !important;
    padding: 10px 24px !important;
    font-size: 0.9rem !important;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff !important;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #ffffff !important;
}

body.dark-mode .btn-outline {
    color: var(--text-main);
    border-color: var(--text-main);
}

body.dark-mode .btn-outline:hover {
    background-color: var(--text-main);
    color: var(--bg-main) !important;
}

/* ============================================================
   3. HEADER & FLOATING MAC DOCK
   ============================================================ */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

.top-header.scrolled {
    background-color: rgba(229, 231, 235, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 10px var(--shadow-color);
    padding: 15px 50px;
}

body.dark-mode .top-header.scrolled {
    background-color: rgba(17, 24, 39, 0.85);
}

.small-logo {
    font-size: 1.25rem !important;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.header-controls {
    display: flex;
    align-items: center;
}

#theme-toggle {
    background: transparent;
    border: none;
    font-size: 1.4rem;
    color: var(--text-main);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.sidebar {
    position: fixed !important;
    top: auto !important;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background-color: var(--sidebar-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 12px 35px;
    border-radius: 50px;
    z-index: 1000;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    width: auto;
    max-width: 90%;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.4s ease;
}

.nav-links {
    display: flex;
    flex-direction: row;
    gap: 35px;
}

.nav-links a {
    color: var(--sidebar-icon);
    font-size: 1.15rem;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--sidebar-icon-active);
    transition: 0.3s ease;
}

.nav-links a.active, .nav-links a:hover {
    color: var(--sidebar-icon-active);
}

.nav-links a.active::after {
    transform: translateX(-50%) scale(1);
}

.main-content {
    margin-left: 0;
    padding: 0 8%;
    overflow-x: hidden;
    transition: transform 0.6s ease, filter 0.6s ease;
}

.section {
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 50px;
}

.section-title {
    margin-bottom: 30px;
    width: 100%;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.underline {
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin-top: 5px;
    border-radius: 2px;
}

/* ============================================================
   4. HOME / HERO SECTION
   ============================================================ */
#home.section {
    min-height: 100svh;
    padding-top: 100px;
    margin-bottom: 0;
}

.hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-text {
    flex: 1.2;
    overflow: visible;
}

.hero-img {
    flex: 0.8;
    display: flex;
    justify-content: center;
    position: relative;
}

.subtitle {
    letter-spacing: 5px;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.hero-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.2;
    margin: 5px 0 15px 0;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 0.95rem;
    max-width: 95%;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

@keyframes morphBlob {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    50% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
}

.hero-img img {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    box-shadow: 0 20px 40px var(--shadow-color);
    filter: grayscale(100%);
    transition: filter 0.5s ease, transform 0.5s ease;
    animation: morphBlob 8s ease-in-out infinite;
}

.hero-img img:hover {
    filter: grayscale(0%);
    transform: translateY(-8px) scale(1.02);
}

.hero-img img.glitch-active {
    animation: cyberGlitch 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes cyberGlitch {
    0% {
        filter: grayscale(100%);
        transform: translate(0);
    }

    15% {
        filter: grayscale(0%) brightness(1.2);
        transform: translate(-6px, 4px) skewX(2deg);
        box-shadow: -5px 0 15px rgba(255, 0, 85, 0.6), 5px 0 15px rgba(0, 255, 255, 0.6);
    }

    30% {
        filter: grayscale(0%) brightness(1.2);
        transform: translate(6px, -4px) skewX(-2deg);
        box-shadow: 5px 0 15px rgba(255, 0, 85, 0.6), -5px 0 15px rgba(0, 255, 255, 0.6);
    }

    45% {
        filter: grayscale(100%);
        transform: translate(-2px, 2px) skewX(0);
        box-shadow: 0 20px 40px var(--shadow-color);
    }

    100% {
        filter: grayscale(100%);
        transform: translate(0);
        box-shadow: 0 20px 40px var(--shadow-color);
    }
}

/* ============================================================
   5. ABOUT & SKILLS SECTION
   ============================================================ */
.about-brief-text {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    max-width: 700px;
    margin-bottom: 10px;
    margin-top: 15px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 10px;
    width: 100%;
}

.modern-skill {
    background-color: var(--card-bg);
    padding: 25px 20px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px var(--shadow-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: 0.3s ease;
}

.modern-skill:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.bento-wide {
    grid-column: span 2;
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    padding: 25px 30px;
}

.bento-wide .skill-icon-wrap {
    margin-bottom: 0;
    margin-right: 25px;
}

.bento-wide .skill-text {
    display: flex;
    flex-direction: column;
}

.bento-wide .skill-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.bento-square {
    grid-column: span 1;
}

.modern-skill i {
    width: 65px;
    height: 65px;
    border-radius: 20px;
    background-color: var(--primary-color);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: 0.3s ease;
    font-size: 2rem;
    color: #ffffff !important;
}

.modern-skill .skill-name {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

.modern-skill:hover i {
    transform: scale(1.1) rotate(-5deg);
    background-color: var(--text-main);
}

/* ============================================================
   6. PROJECTS (P.A.R CARD) & CONTACT 
   ============================================================ */
.project-minimal, .contact-minimal {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.text-center-mobile .project-minimal, .text-center-mobile .contact-minimal {
    align-items: flex-start;
}

.par-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 10px 30px var(--shadow-color);
    width: 100%;
}

.par-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.par-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.badge {
    background: var(--text-main);
    color: var(--bg-main);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

body.dark-mode .badge {
    background: var(--primary-color);
}

.par-body p {
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.par-body strong {
    color: var(--text-main);
    font-weight: 700;
}

.tech-stack-row {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-color);
}

.tech-icon {
    font-size: 1.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid transparent;
    position: relative;
    cursor: pointer;
}

.tech-icon:hover {
    color: var(--text-main);
    border-color: var(--border-color);
}

.tech-icon::after {
    content: attr(title);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-main);
    color: var(--bg-main);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.tech-icon:hover::after {
    opacity: 1;
    bottom: 130%;
}

.social-links-row {
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex-wrap: wrap;
}

.social-icon-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: var(--text-muted);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #ffffff !important;
    outline: none;
    cursor: pointer;
}

.social-icon-btn:hover {
    background-color: var(--text-main);
    color: var(--bg-main) !important;
    box-shadow: 0 5px 15px var(--shadow-color);
}

body.dark-mode .social-icon-btn {
    background-color: var(--primary-color);
}

body.dark-mode .social-icon-btn:hover {
    background-color: var(--text-main);
    color: var(--bg-main) !important;
}

/* ============================================================
   7. FOOTER
   ============================================================ */
footer {
    text-align: center;
    padding: 20px 20px;
    padding-bottom: 80px;
    color: var(--text-muted);
    font-size: 0.85rem;
    position: relative;
}

.footer-pratama {
    margin-top: 5px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 6px;
    opacity: 0.4;
    color: var(--text-main);
    text-transform: uppercase;
    line-height: 1;
}

#back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    outline: none;
    cursor: pointer;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* ============================================================
   8. OVERLAY BOTTOM-SHEET MODAL
   ============================================================ */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.bottom-sheet-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 92vh;
    background-color: var(--bg-main);
    z-index: 2000;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: 30px 30px 0 0;
    box-shadow: 0 -20px 60px rgba(0,0,0,0.3);
    overflow-y: auto;
    overflow-x: hidden;
    border-top: 1px solid var(--border-color);
}

.bottom-sheet-modal.active {
    transform: translateY(0);
}

body.modal-open-freeze {
    overflow: hidden;
}

body.modal-open-freeze .main-content {
    transform: scale(0.93) translateY(-2vh);
    filter: blur(6px);
    opacity: 0.6;
    pointer-events: none;
    border-radius: 20px;
}

body.modal-open-freeze .sidebar {
    transform: translateX(-50%) translateY(20vh);
    opacity: 0;
    pointer-events: none;
}

.full-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    position: sticky;
    top: 0;
    background-color: rgba(229, 231, 235, 0.85);
    backdrop-filter: blur(15px);
    z-index: 10;
    border-bottom: 1px solid var(--border-color);
    border-radius: 30px 30px 0 0;
}

body.dark-mode .full-page-header {
    background-color: rgba(17, 24, 39, 0.85);
}

.back-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

.full-page-content {
    padding: 50px 10%;
    max-width: 1400px;
    margin: 0 auto;
    overflow-x: hidden;
}

.who-am-i-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 50px;
    margin-bottom: 50px;
    width: 100%;
}

.single-photo-featureSR {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    position: relative;
}

.img-editorial-square {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    filter: grayscale(100%);
    transition: 0.5s ease;
}

.who-am-i-container:hover .img-editorial-square {
    filter: grayscale(0%);
    transform: scale(1.02);
}

.overlay-animate-in {
    animation: editorialPhotoIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.2s;
    opacity: 0;
}

@keyframes editorialPhotoIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.about-editorial-textSR {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.editorial-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    text-transform: uppercase;
}

.name-highlight {
    font-size: 1.2rem;
    margin-bottom: 10px;
    margin-top: 10px;
    color: var(--text-main);
    font-weight: 700;
}

.about-editorial-textSR p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.fade-in-container > * {
    opacity: 0;
    transform: translateY(20px);
}

.bottom-sheet-modal.active .animate-text-1 {
    animation: textFadeUp 0.6s ease-out forwards 0.3s;
}

.bottom-sheet-modal.active .animate-text-2 {
    animation: textFadeUp 0.6s ease-out forwards 0.4s;
}

.bottom-sheet-modal.active .animate-text-3 {
    animation: textFadeUp 0.6s ease-out forwards 0.5s;
}

.bottom-sheet-modal.active .animate-text-4 {
    animation: textFadeUp 0.6s ease-out forwards 0.6s;
}

.bottom-sheet-modal.active .animate-text-5 {
    animation: textFadeUp 0.6s ease-out forwards 0.7s;
}

@keyframes textFadeUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.journey-sectionSR {
    margin-top: 40px;
    padding-bottom: 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.horizontal-carousel {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 5px 30px 5px;
    width: 100%;
    scroll-behavior: smooth;
    margin-top: 15px;
}

.carousel-card {
    flex: 0 0 320px;
    scroll-snap-align: center;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.carousel-card:hover {
    border-color: var(--primary-color);
}

.track-date {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--text-main);
    color: var(--bg-main);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50px;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

body.dark-mode .track-date {
    background-color: var(--primary-color);
    color: var(--bg-main);
}

.carousel-card h4 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.3;
}

.carousel-card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.9rem;
}

.horizontal-carousel::-webkit-scrollbar {
    height: 8px;
}

.horizontal-carousel::-webkit-scrollbar-track {
    background: transparent;
}

.horizontal-carousel::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.horizontal-carousel::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.swipe-hint {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: -10px;
    font-weight: 500;
    letter-spacing: 1px;
}

.swipe-hint i {
    margin-right: 8px;
    color: var(--primary-color);
    animation: swipeAnim 2s infinite;
}

@keyframes swipeAnim {
    0%, 100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(10px);
    }
}

.timeline-element {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s ease-out;
}

.timeline-element.show-anim {
    opacity: 1;
    transform: translateX(0);
}

/* QUOTES */
.overlay-quote-section {
    padding: 60px 20px 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
}

.huge-quote-text {
    font-size: 1.8rem;
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.5;
    font-style: italic;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    z-index: 2;
    position: relative;
}

.q-word {
    opacity: 0;
    transform: translateY(15px);
}

.load-quote-animate .q-word {
    animation: quoteWordIn 0.6s ease forwards;
}

@keyframes quoteWordIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.q-word:nth-child(1) {
    animation-delay: 0.1s !important;
}

.q-word:nth-child(2) {
    animation-delay: 0.2s !important;
}

.q-word:nth-child(3) {
    animation-delay: 0.3s !important;
}

.q-word:nth-child(4) {
    animation-delay: 0.4s !important;
}

.q-word:nth-child(5) {
    animation-delay: 0.5s !important;
}

.q-word:nth-child(6) {
    animation-delay: 0.6s !important;
}

.overlay-footer {
    text-align: center;
    padding: 30px 0 30px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================================
   9. MEDIA QUERIES (MOBILE RESPONSIVE FITTING)
   ============================================================ */
@media (max-width: 992px) {
    ::-webkit-scrollbar {
        display: none;
    }

    .top-header {
        padding: 15px 5%;
        border-bottom: 1px solid var(--border-color);
    }

    .main-content {
        padding: 0 5%;
        padding-bottom: 0;
    }

    #home.section {
        min-height: 100svh;
        height: 100svh;
        padding-top: 70px;
        padding-bottom: 95px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        width: 100%;
        height: 100%;
        justify-content: center;
    }

    .hero-img {
        order: 1;
        margin-bottom: 5px;
    }

    .hero-text {
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .hero-img img {
        width: 160px !important;
        height: 160px !important;
    }

    .subtitle {
        margin-bottom: 8px;
        font-size: 0.8rem;
    }

    .hero-title {
        font-size: clamp(2rem, 7vw, 2.5rem);
        margin: 0 auto 10px auto;
        width: 100%;
        max-width: 100%;
        line-height: 1.1;
    }

    .hero p {
        margin: 0 auto 15px auto;
        font-size: 0.95rem;
        line-height: 1.5;
        max-width: 95%;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .btn-landing {
        font-size: 0.95rem !important;
        padding: 12px 26px !important;
    }

    .skills-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        width: 100%;
    }

    .bento-wide {
        grid-column: span 2;
        padding: 20px;
    }

    .modern-skill {
        padding: 20px 15px;
    }

    .section {
        padding: 80px 0;
        margin-bottom: 50px;
    }

    .sidebar {
        bottom: 15px !important;
        padding: 12px 20px;
        width: 90%;
        max-width: 360px;
        justify-content: space-around;
    }

    .nav-links {
        gap: 0;
        width: 100%;
        justify-content: space-between;
    }

    #back-to-top {
        bottom: 100px !important;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    footer {
        padding: 20px 20px;
        padding-bottom: 60px;
    }

    .who-am-i-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        align-items: center;
        margin-bottom: 30px;
        width: 100%;
    }

    .single-photo-featureSR {
        order: 1;
        width: 100%;
        justify-content: center;
    }

    .img-editorial-square {
        width: 100%;
        max-width: 250px;
    }

    .about-editorial-textSR {
        order: 2;
        align-items: center;
        text-align: center;
        padding-top: 0;
        width: 100%;
    }

    .editorial-title {
        font-size: 2.2rem;
    }

    .carousel-card {
        flex: 0 0 280px;
        padding: 25px;
    }

    .par-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .huge-quote-text {
        font-size: 1.3rem;
    }

    .text-center-mobile .project-minimal, .text-center-mobile .contact-minimal {
        align-items: center;
        text-align: center;
    }

    .social-links-row {
        justify-content: center;
    }

    .bottom-sheet-modal {
        height: 95vh;
        border-radius: 20px 20px 0 0;
    }

    .full-page-header {
        border-radius: 20px 20px 0 0;
        padding: 15px 20px;
    }
}

.bottom-sheet-modal {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}