:root {
    /* NarPham Palette (Primary: #8bd3fc) */
    --primary-lime: #8bd3fc;
    --primary-lime-hover: #6bbfe8;
    --primary-lime-light: #b6e6fd;
    --primary-lime-bright: #d4f1fe;
    --lime-subtle: rgba(139, 211, 252, 0.18);
    --lime-dark: #246e96;
    --primary-orange: #e09867;
    --primary-yellow: #e4c483;
    --primary-beige: #eadecc;
    --primary-beige-light: #f5ede3;
    --primary-beige-subtle: #faf6f0;

    /* Light Theme (Default: Soft Warm Beige Canvas & Pastel Blue Accents) */
    --bg-main: #fbf9f6;
    --bg-card: rgba(255, 255, 255, 0.94);
    --bg-dark: #16202c;
    --bg-dark-card: #202b3a;
    --text-dark: #223246;
    --text-muted: #5e7287;
    --border-color: #e5ded5;
    --bg-activity-widget: rgba(229, 222, 213, 0.5);
    --bg-activity-widget-hover: rgba(229, 222, 213, 0.75);

    /* User Requested Font Families */
    --font-heading: 'SN Pro', 'Chiron GoRound TC', sans-serif;
    --font-body: 'Lexend', sans-serif;
    --font-accent: 'Dongle', sans-serif;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lime-glow: none;

    --hero-image: url('/proxy?img=http%3A%2F%2Fmbasic6.pikamc.vn%3A25300%2Fuploads%2FIMG_20260724_092005-1792162365643.jpg');

    /* Ocean Wave Transition & Droplets Palette */
    --wave-front-color: #fbf9f6;
    --wave-mid-color: rgba(139, 211, 252, 0.55);
    --wave-back-color: rgba(139, 211, 252, 0.28);
    --droplet-color: rgba(139, 211, 252, 0.9);

    /* Custom Theme Cursor (Xiao Hei Domain / Space Pointer) */
    --cursor-default: url('/assets/images/cursor.png?v=2') 2 1, auto;
    --cursor-pointer: url('/assets/images/cursor-pointer.png?v=2') 12 0, pointer;
    --cursor-text: url('/assets/images/cursor-text.png?v=2') 16 16, text;
    --cursor-grab: url('/assets/images/cursor-grab.png?v=2') 16 16, grab;
    --cursor-grabbing: url('/assets/images/cursor-grabbing.png?v=2') 16 16, grabbing;
}

::selection {
    background: #8bd3fc;
    color: #1e293b;
    border-radius: 1px;
}

/* Dark Theme overrides (Cozy Midnight Slate & Soft Pastel Blue) */
body.dark-theme {
    --hero-image: url('/proxy?img=http%3A%2F%2Fmbasic6.pikamc.vn%3A25300%2Fuploads%2FIMG_20260724_092005-1792162365643.jpg');
    --bg-main: #141b25;
    --bg-card: #1c2635;
    --text-dark: #f3efe9;
    --text-muted: #95a9bd;
    --border-color: #2b394d;
    --lime-subtle: rgba(139, 211, 252, 0.25);
    --bg-activity-widget: rgba(32, 43, 58, 0.5);
    --bg-activity-widget-hover: rgba(32, 43, 58, 0.7);
    --wave-front-color: #0b1329;
    --wave-mid-color: rgba(56, 189, 248, 0.35);
    --wave-back-color: rgba(56, 189, 248, 0.20);
    --droplet-color: rgba(182, 230, 253, 0.95);
}

body.dark-theme #footer,
body.dark-theme .footer {
    background: #0f151e;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: clip;
    cursor: var(--cursor-default);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

body.modal-open,
html:has(body.modal-open) {
    overflow: hidden !important;
}

/* Custom Cursor for all readable text content on the page */
p,
h1, h2, h3, h4, h5, h6,
span,
blockquote,
q,
code,
pre,
kbd,
article,
li,
td,
th,
b,
strong,
em,
small,
input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="tel"],
input:not([type]),
textarea,
[contenteditable="true"],
.text-input,
.chat-input {
    cursor: var(--cursor-text);
}

/* Ensure all interactive / clickable elements and their inner content strictly use pointer */
a,
a *,
button,
button *,
select,
summary,
label[for],
[role="button"],
[role="button"] *,
.interactive,
.interactive *,
.pointer,
.pointer *,
.btn,
.btn *,
.nav-link,
.nav-link *,
.hobby-card,
.movie-card,
.project-card,
[style*="cursor: pointer"],
[style*="cursor: pointer"] *,
[style*="cursor:pointer"],
[style*="cursor:pointer"] * {
    cursor: var(--cursor-pointer);
}

/* Custom Cursor for drag and drop interactions */
[style*="cursor: grab"],
[style*="cursor:grab"],
.grab {
    cursor: var(--cursor-grab);
}

[style*="cursor: grabbing"],
[style*="cursor:grabbing"],
.grabbing {
    cursor: var(--cursor-grabbing) !important;
}

/* Icons should never show text I-beam */
i.fa,
i.fas,
i.far,
i.fab,
i.fa-solid,
i.fa-regular,
i.fa-brands,
i[class*="fa-"],
i[class*="fi-"] {
    cursor: inherit;
}

button {
    padding: 0;
    outline: none;
    border: none;
    background: none;
    cursor: var(--cursor-pointer);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

/* Animated Left-to-Right Underline Effect on Link Hover */
.footer-links a,
.drawer-link,
.hero-bio a,
.about-bio-text a,
.movie-desc a,
.hobby-description a,
.project-desc a {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: fit-content;
}

.footer-links a::after,
.drawer-link::after,
.hero-bio a::after,
.about-bio-text a::after,
.movie-desc a::after,
.hobby-description a::after,
.project-desc a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-lime);
    border-radius: 2px;
    transition: width 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.footer-links a:hover::after,
.drawer-link:hover::after,
.hero-bio a:hover::after,
.about-bio-text a:hover::after,
.movie-desc a:hover::after,
.hobby-description a:hover::after,
.project-desc a:hover::after {
    width: 100%;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Custom Accessibility Focus Outline */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--primary-lime);
    outline-offset: 3px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
}

/* Scroll Reveal Animation Classes (Micro Component Staggering) */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.7s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-from-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: opacity, transform;
}

.reveal-from-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-from-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: opacity, transform;
}

.reveal-from-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger Delays for Cards & Micro Components */
.movies-grid .movie-card:nth-child(1),
.hobbies-grid .hobby-card:nth-child(1),
.social-cards-grid .social-card:nth-child(1),
.points-grid .point-badge:nth-child(1) {
    transition-delay: 0.05s;
}

.movies-grid .movie-card:nth-child(2),
.hobbies-grid .hobby-card:nth-child(2),
.social-cards-grid .social-card:nth-child(2),
.points-grid .point-badge:nth-child(2) {
    transition-delay: 0.12s;
}

.movies-grid .movie-card:nth-child(3),
.hobbies-grid .hobby-card:nth-child(3),
.social-cards-grid .social-card:nth-child(3),
.points-grid .point-badge:nth-child(3) {
    transition-delay: 0.19s;
}

.movies-grid .movie-card:nth-child(4),
.hobbies-grid .hobby-card:nth-child(4),
.social-cards-grid .social-card:nth-child(4),
.points-grid .point-badge:nth-child(4) {
    transition-delay: 0.26s;
}

.movies-grid .movie-card:nth-child(5),
.hobbies-grid .hobby-card:nth-child(5),
.social-cards-grid .social-card:nth-child(5),
.points-grid .point-badge:nth-child(5) {
    transition-delay: 0.33s;
}

.movies-grid .movie-card:nth-child(6),
.hobbies-grid .hobby-card:nth-child(6),
.social-cards-grid .social-card:nth-child(6),
.points-grid .point-badge:nth-child(6) {
    transition-delay: 0.4s;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-lime);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-lime-hover);
}

/* Container */
.container,
.confine {
    max-width: min(1360px, 100%);
    margin: 0 auto;
    padding: 0 1rem;
}

@media screen and (max-width: 600px) {

    .container,
    .confine {
        padding: 0 1.25rem;
    }
}

/* Viewport Edge Side Line Accent */
.side-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 800;
    display: flex;
    justify-content: space-between;
}

@media screen and (max-width: 768px) {
    .side-line {
        display: none;
    }
}

/* Cột dọc chứa 2 thanh (1 thanh trên, 1 thanh dưới) trên cùng trục dọc sát mép */
.side-line-col {
    position: absolute;
    top: calc(50% + 80px);
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    z-index: 800;
}

.side-line-col.side-line-left {
    left: 16px;
}

.side-line-col.side-line-right {
    right: 16px;
}

.side-line .l-line,
.side-line .r-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    opacity: 0.8;
    color: var(--primary-lime-hover);
    font-size: 1.05rem;
    transition: opacity 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.side-line-bar {
    width: 3.5px;
    height: 150px; /* Tăng chiều dài thanh dài ra thanh thoát */
    background: var(--primary-lime-hover);
    border-radius: 999px;
    box-shadow: none;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Vùng tương tác mở Menu nhanh bên trái */
.side-line .l-line {
    pointer-events: auto;
    cursor: var(--cursor-pointer);
    padding: 10px 14px;
    margin: -5px -14px;
}

.side-line .r-line {
    padding: 10px 14px;
    pointer-events: auto;
}

/* Hover effects & micro-interactions */
.side-line .l-line:hover,
.side-line .r-line:hover {
    opacity: 1;
    color: var(--primary-lime-bright, #c4ff4d);
}

.side-line .l-line:hover .side-line-bar,
.side-line .r-line:hover .side-line-bar {
    background: var(--primary-lime-bright, #c4ff4d);
    box-shadow: 0 0 12px rgba(175, 255, 66, 0.45);
}

.side-line .l-line:hover i,
.side-line .r-line:hover i {
    transform: scale(1.18);
    filter: drop-shadow(0 0 6px rgba(175, 255, 66, 0.6));
    transition: transform 0.25s ease, filter 0.25s ease;
}

/* Solid Glossy Lime Buttons */
.btn {
    text-decoration: none;
    cursor: var(--cursor-pointer);
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn:hover {
    transform: translateY(-3px) scale(1.04);
}

.btn:active {
    transform: translateY(1px) scale(0.97);
}

.btn-lime {
    background: var(--primary-lime);
    color: #1a2e3b;
    padding: 0.75em 1.8em;
    border: none;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.btn-lime:hover {
    background: var(--primary-lime-hover);
}

.btn-outline-lime {
    background: transparent;
    border: 2px solid var(--primary-lime);
    color: var(--text-dark);
    padding: 0.75em 1.8em;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    transition: var(--transition-fast);
}

.btn-outline-lime i {
    color: inherit;
}

.btn-outline-lime:hover {
    background: var(--primary-lime);
    color: #ffffff;
    border-color: var(--primary-lime);
}

.btn-outline-lime:hover i {
    color: #ffffff;
}

body.dark-theme .btn-outline-lime {
    color: #ffffff;
    border-color: var(--primary-lime);
}

.hero-actions .btn-outline-lime,
body.dark-theme .hero-actions .btn-outline-lime {
    background: #ffffff;
    color: #0f172a;
    border: 2px solid #ffffff;
}

.hero-actions .btn-outline-lime:hover,
body.dark-theme .hero-actions .btn-outline-lime:hover {
    background: var(--primary-lime);
    color: #1a2e3b;
    border-color: var(--primary-lime);
}

/* Linehead */
.linehead {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.4em;
    color: var(--primary-lime-hover);
    font-family: var(--font-heading);
    font-weight: 800;
    margin-bottom: 2.5rem;
}

body.dark-theme .linehead {
    color: var(--primary-lime-hover);
}

/* Riêng phần số thứ tự section: lớn hơn 1 xíu & có màu xanh lam sáng nhẹ */
.linehead .section-num {
    font-size: 1.85rem;
    color: var(--primary-lime);
    font-weight: 900;
    display: inline-block;
    margin-right: 0.15em;
    vertical-align: middle;
}

body.dark-theme .linehead .section-num {
    color: var(--primary-lime);
}

@media screen and (max-width: 550px) {
    .linehead {
        font-size: 1.2rem;
        padding: 0 16px;
    }

    .linehead .section-num {
        font-size: 1.45rem;
    }
}

.linehead .line {
    height: 30px;
    width: 5px;
    background: var(--primary-lime);
    border-radius: 2px;
}

body.dark-theme .linehead .line {
    background: var(--primary-lime);
}

@media screen and (max-width: 550px) {
    .linehead .line {
        height: 20px;
    }
}

.linehead hr {
    margin-left: 1em;
    height: 30px;
    width: 190px;
    background: linear-gradient(to right, rgba(56, 189, 248, 0.45) 0%, rgba(56, 189, 248, 0.45) 50%, rgba(139, 211, 252, 0.25) 50%, rgba(139, 211, 252, 0.25) 100%);
    clip-path: polygon(0 0, 100% 0, 86% 100%, 0% 100%);
    border: none;
}

body.dark-theme .linehead hr {
    background: linear-gradient(to right, rgba(36, 110, 150, 0.5) 0%, rgba(107, 191, 232, 0.5) 50%, rgba(139, 211, 252, 0.25) 50%, rgba(139, 211, 252, 0.25) 100%);
}

@media screen and (max-width: 550px) {
    .linehead hr {
        width: 120px;
        height: 20px;
    }
}

.linehead.white {
    color: #ffffff;
}

.linehead.white .line {
    background: #ffffff;
}

.linehead.white hr {
    background: rgba(255, 255, 255, 0.6);
}

/* Left Side Line Accent & Quick Sidebar Trigger */
.l-line {
    cursor: var(--cursor-pointer);
}

/* Quick Left Icon Dock (Triggered by hovering/clicking left edge line) */
/* Quick Left Icon Dock / Mini Menu (No background, no border, no shadow; Auto-hides after 1s idle) */
.quick-sidebar {
    position: fixed;
    left: 36px;
    top: calc(50% + 70px);
    transform: translateY(-50%) translateX(-8px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 8px 4px;
    z-index: 900;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    
    /* Strict directive: no background, no border, no shadow */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

@media screen and (max-width: 768px) {
    .quick-sidebar {
        display: none !important;
    }
}

.quick-sidebar.visible,
.quick-sidebar.open,
.quick-sidebar:hover {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}

.quick-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.quick-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 8px 10px;
    color: var(--text-dark, #0f172a);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.25s ease, gap 0.25s ease, padding-right 0.25s ease, background-color 0.25s ease;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    border-radius: 8px;
    background: transparent;
}

body.dark-theme .quick-sidebar-link {
    color: #f1f5f9;
}

.quick-sidebar-icon {
    font-size: 1.15rem;
    color: var(--primary-lime-hover, #6bbfe8);
    flex-shrink: 0;
    width: 22px;
    text-align: center;
    transition: color 0.25s ease, transform 0.25s ease;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

body.dark-theme .quick-sidebar-icon {
    color: var(--primary-lime);
}

.quick-sidebar-label {
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-width 0.25s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.2s ease;
    display: inline-block;
    white-space: nowrap;
}

/* Auto-expand label for currently ACTIVE section OR on hover/open */
.quick-sidebar-link:hover .quick-sidebar-label,
.quick-sidebar-link.active .quick-sidebar-label,
.quick-sidebar.open .quick-sidebar-label {
    max-width: 140px;
    opacity: 1;
}

.quick-sidebar-link:hover,
.quick-sidebar-link.active {
    color: var(--primary-lime-hover, #6bbfe8);
    background: transparent;
    gap: 10px;
    font-weight: 800;
}

body.dark-theme .quick-sidebar-link:hover,
body.dark-theme .quick-sidebar-link.active {
    color: var(--primary-lime-light, #b6e6fd);
    background: transparent;
}

.quick-sidebar-link:hover .quick-sidebar-icon,
.quick-sidebar-link.active .quick-sidebar-icon {
    color: var(--primary-lime-hover);
    transform: scale(1.15);
}

body.dark-theme .quick-sidebar-link:hover .quick-sidebar-icon,
body.dark-theme .quick-sidebar-link.active .quick-sidebar-icon {
    color: var(--primary-lime-light);
}

/* Active Section Highlight & Rounded Virtual Line (Gạch ảo bo tròn giống trong Navigate) */
.quick-sidebar-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 10px;
    right: 10px;
    height: 3px;
    background: var(--primary-lime-hover);
    border-radius: 50px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s ease;
    pointer-events: none;
}

body.dark-theme .quick-sidebar-link::after {
    background: var(--primary-lime-light);
}

.quick-sidebar-link:hover::after,
.quick-sidebar-link.active::after {
    transform: scaleX(1);
}

/* ==========================================================================
   HEADER / NAVBAR & Theme Toggle
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 1000;
    padding: 1.2rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: top 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        padding 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        border-radius 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        background 0.4s ease;
    background: transparent;
    border-radius: 0;
}

.header.scrolled {
    top: 4px;
    left: 16px;
    width: calc(100vw - 32px);
    padding: 0.7rem 2rem;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--primary-lime);
    color: #ffffff;
    padding: 0.65rem 1.6rem;
    border-radius: 8px;
    border: none;
    box-shadow: none !important;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 1.5px;
    cursor: var(--cursor-pointer);
    transition: var(--transition-fast);
}

.menu-toggle:hover {
    scale: 1.05;
    background: var(--primary-lime-hover);
    box-shadow: none !important;
}

.menu-toggle:active {
    scale: 0.95;
}

/* Light/Dark mode switcher */
.theme-toggle-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: var(--cursor-pointer);
}

.theme-toggle-btn:hover {
    transform: rotate(30deg) scale(1.1);
    background: var(--primary-lime);
    color: #ffffff;
    border-color: var(--primary-lime-light);

}

.theme-toggle-btn:active {
    scale: 0.9;
}

.header.scrolled .theme-toggle-btn {
    background: var(--bg-main);
    color: var(--text-dark);
    border-color: var(--border-color);
}

.header.scrolled .theme-toggle-btn:hover {
    background: var(--primary-lime);
    color: #ffffff;
    border-color: var(--primary-lime-light);
}

/* Position 2: Header Center Brand Name (Đơn màu TRẮNG #ffffff) */
.header-center-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.7rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    cursor: var(--cursor-pointer);
    user-select: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 5;
}

/* Header Center Brand Name & Mobile Brand Colors */
.header-center-brand .brand-rintary,
.mobile-header-brand {
    color: var(--text-dark, #0f172a);
    transition: color 0.3s ease;
}

.header-center-brand .brand-taziru {
    color: var(--primary-lime-hover, #6bbfe8);
    transition: color 0.3s ease;
}

/* Over Hero top gradient when not scrolled */
.header:not(.scrolled) .header-center-brand .brand-rintary,
.header:not(.scrolled) .mobile-header-brand {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.header:not(.scrolled) .header-center-brand .brand-taziru {
    color: var(--primary-lime-bright);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Dark Theme overrides */
body.dark-theme .header-center-brand .brand-rintary,
body.dark-theme .mobile-header-brand {
    color: #ffffff;
}

body.dark-theme .header-center-brand .brand-taziru {
    color: var(--primary-lime-bright);
}

/* Khi ở Hero section (chưa cuộn trang xuống): Mini menu bên trái màu TRẮNG */
.quick-sidebar:not(.scrolled) .quick-sidebar-link,
.quick-sidebar:not(.scrolled) .quick-sidebar-icon {
    color: #ffffff !important;
}

.quick-sidebar:not(.scrolled) .quick-sidebar-link:hover,
.quick-sidebar:not(.scrolled) .quick-sidebar-link.active {
    color: #ffffff !important;
    background: transparent !important;
}

.quick-sidebar:not(.scrolled) .quick-sidebar-link:hover .quick-sidebar-icon,
.quick-sidebar:not(.scrolled) .quick-sidebar-link.active .quick-sidebar-icon {
    color: #ffffff !important;
}

.quick-sidebar:not(.scrolled) .quick-sidebar-link::after {
    background: #ffffff !important;
}

@media screen and (max-width: 900px) {
    .header-center-brand {
        font-size: 1.35rem;
    }
}

.mobile-header-brand {
    display: none;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.25rem;
    letter-spacing: 1px;
}

@media screen and (max-width: 768px) {
    .header-center-brand {
        display: none !important;
    }
    .mobile-header-brand {
        display: flex;
        align-items: center;
    }
    /* Xóa margin và bo góc trên điện thoại để thanh header hiển thị tràn rộng hết màn hình */
    .header,
    .header.scrolled {
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
}

.header-socials {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    position: relative;
}

.social-hover-bg {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: var(--primary-lime);
    border: none;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: left 0.3s cubic-bezier(0.25, 1, 0.5, 1),
        opacity 0.2s ease,
        border-radius 0.3s ease;
}

body.dark-theme .social-hover-bg {
    background: var(--primary-lime);
    border: none;
}

.social-hover-bg.active {
    opacity: 1;
}

.social-hover-bg.moving {
    border-radius: 8px;
}

.social-icon-link {
    color: #ffffff;
    font-size: 1.4rem;
    transition: color 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    position: relative;
    z-index: 1;
    border-radius: 50%;
}

.header.scrolled .social-icon-link {
    color: var(--text-dark);
}

.social-icon-link:hover,
.social-icon-link.hover-active {
    color: #ffffff !important;
}

.header.scrolled .social-icon-link:hover,
.header.scrolled .social-icon-link.hover-active {
    color: #ffffff !important;
}

/* Navigation Drawer Sidebar*/

/* Keyframe: slide in from left for drawer items */
@keyframes drawerItemSlideIn {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Cushion / Accent Layer behind Main Navigation Drawer */
.nav-drawer-cushion {
    position: fixed;
    top: 0;
    left: 0;
    width: calc(520px + 4px);
    max-width: calc(90vw + 4px);
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-lime-hover) 0%, var(--primary-lime) 100%);
    z-index: 2499;
    clip-path: polygon(0 0, 100% 0, 100% calc(47% - 58px), 100% calc(calc(47% - 26px) - 24px), calc(100% - 6.2px) calc(calc(47% - 26px) - 23.2px), calc(100% - 12.0px) calc(calc(47% - 26px) - 20.8px), calc(100% - 17.0px) calc(calc(47% - 26px) - 17px), calc(100% - 20.8px) calc(calc(47% - 26px) - 12px), calc(100% - 23.2px) calc(calc(47% - 26px) - 6.2px), calc(100% - 24.0px) calc(calc(47% - 26px) + 0.0px), calc(100% - 23.2px) calc(calc(47% - 26px) + 6.2px), calc(100% - 20.8px) calc(calc(47% - 26px) + 12.0px), calc(100% - 17.0px) calc(calc(47% - 26px) + 17.0px), calc(100% - 12.0px) calc(calc(47% - 26px) + 20.8px), calc(100% - 6.2px) calc(calc(47% - 26px) + 23.2px), 100% calc(calc(47% - 26px) + 24.0px), 100% calc(calc(47% + 26px) - 24px), calc(100% - 6.2px) calc(calc(47% + 26px) - 23.2px), calc(100% - 12.0px) calc(calc(47% + 26px) - 20.8px), calc(100% - 17.0px) calc(calc(47% + 26px) - 17px), calc(100% - 20.8px) calc(calc(47% + 26px) - 12px), calc(100% - 23.2px) calc(calc(47% + 26px) - 6.2px), calc(100% - 24.0px) calc(calc(47% + 26px) + 0.0px), calc(100% - 23.2px) calc(calc(47% + 26px) + 6.2px), calc(100% - 20.8px) calc(calc(47% + 26px) + 12.0px), calc(100% - 17.0px) calc(calc(47% + 26px) + 17.0px), calc(100% - 12.0px) calc(calc(47% + 26px) + 20.8px), calc(100% - 6.2px) calc(calc(47% + 26px) + 23.2px), 100% calc(calc(47% + 26px) + 24.0px), 100% calc(47% + 58px), 100% 100%, 0 100%);
    transform: translateX(-100%);
    transition: transform 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition-delay: 0ms;
    pointer-events: none;
    box-shadow: 4px 0 25px rgba(139, 211, 252, 0.4);
    opacity: 0.95;
}

body.dark-theme .nav-drawer-cushion {
    background: linear-gradient(135deg, rgba(139, 211, 252, 0.85) 0%, rgba(107, 191, 232, 0.95) 100%);
    box-shadow: 4px 0 30px rgba(139, 211, 252, 0.3);
}

.nav-drawer-cushion.active {
    transform: translateX(0);
    transition-delay: 0ms;
}

.sidemenu,
.nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 520px;
    max-width: 90vw;
    height: 100vh;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 2500;
    clip-path: polygon(0 0, 100% 0, 100% calc(47% - 58px), 100% calc(calc(47% - 26px) - 24px), calc(100% - 7.2px) calc(calc(47% - 26px) - 23.2px), calc(100% - 14.0px) calc(calc(47% - 26px) - 20.8px), calc(100% - 19.8px) calc(calc(47% - 26px) - 17px), calc(100% - 24.2px) calc(calc(47% - 26px) - 12px), calc(100% - 27.0px) calc(calc(47% - 26px) - 6.2px), calc(100% - 28.0px) calc(calc(47% - 26px) + 0.0px), calc(100% - 27.0px) calc(calc(47% - 26px) + 6.2px), calc(100% - 24.2px) calc(calc(47% - 26px) + 12.0px), calc(100% - 19.8px) calc(calc(47% - 26px) + 17.0px), calc(100% - 14.0px) calc(calc(47% - 26px) + 20.8px), calc(100% - 7.2px) calc(calc(47% - 26px) + 23.2px), 100% calc(calc(47% - 26px) + 24.0px), 100% calc(calc(47% + 26px) - 24px), calc(100% - 7.2px) calc(calc(47% + 26px) - 23.2px), calc(100% - 14.0px) calc(calc(47% + 26px) - 20.8px), calc(100% - 19.8px) calc(calc(47% + 26px) - 17px), calc(100% - 24.2px) calc(calc(47% + 26px) - 12px), calc(100% - 27.0px) calc(calc(47% + 26px) - 6.2px), calc(100% - 28.0px) calc(calc(47% + 26px) + 0.0px), calc(100% - 27.0px) calc(calc(47% + 26px) + 6.2px), calc(100% - 24.2px) calc(calc(47% + 26px) + 12.0px), calc(100% - 19.8px) calc(calc(47% + 26px) + 17.0px), calc(100% - 14.0px) calc(calc(47% + 26px) + 20.8px), calc(100% - 7.2px) calc(calc(47% + 26px) + 23.2px), 100% calc(calc(47% + 26px) + 24.0px), 100% calc(47% + 58px), 100% 100%, 0 100%);
    padding: 3.5em 3.2em 3em 3em;
    transition: transform 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition-delay: 0ms;
    transform: translateX(-100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid var(--border-color);
    box-shadow: none;
}

/* Đảm bảo Menu ở chế độ sáng màu trắng tinh khiết, không ngã xanh */
body:not(.dark-theme) .sidemenu,
body:not(.dark-theme) .nav-drawer {
    background: #ffffff !important;
    background-color: #ffffff !important;
}

body:not(.dark-theme) .nav-drawer-cushion {
    box-shadow: none !important;
}

.sidemenu.open,
.nav-drawer.active {
    transform: translateX(0);
    transition-delay: 110ms;
}

/* Hide quick-sidebar automatically whenever main NAVIGATE drawer or cushion is active */
body:has(.nav-drawer.active) .quick-sidebar,
body:has(.nav-drawer-cushion.active) .quick-sidebar,
.nav-drawer.active ~ .quick-sidebar,
.nav-drawer-cushion.active ~ .quick-sidebar,
.drawer-overlay.active ~ .quick-sidebar {
    opacity: 0 !important;
    pointer-events: none !important;
}

@media screen and (max-width: 1600px) {

    .nav-drawer-cushion {
        width: calc(480px + 4px);
        clip-path: polygon(0 0, 100% 0, 100% calc(47% - 54px), 100% calc(calc(47% - 24px) - 22px), calc(100% - 5.7px) calc(calc(47% - 24px) - 21.3px), calc(100% - 11.0px) calc(calc(47% - 24px) - 19.1px), calc(100% - 15.6px) calc(calc(47% - 24px) - 15.6px), calc(100% - 19.1px) calc(calc(47% - 24px) - 11px), calc(100% - 21.3px) calc(calc(47% - 24px) - 5.7px), calc(100% - 22.0px) calc(calc(47% - 24px) + 0.0px), calc(100% - 21.3px) calc(calc(47% - 24px) + 5.7px), calc(100% - 19.1px) calc(calc(47% - 24px) + 11.0px), calc(100% - 15.6px) calc(calc(47% - 24px) + 15.6px), calc(100% - 11.0px) calc(calc(47% - 24px) + 19.1px), calc(100% - 5.7px) calc(calc(47% - 24px) + 21.3px), 100% calc(calc(47% - 24px) + 22.0px), 100% calc(calc(47% + 24px) - 22px), calc(100% - 5.7px) calc(calc(47% + 24px) - 21.3px), calc(100% - 11.0px) calc(calc(47% + 24px) - 19.1px), calc(100% - 15.6px) calc(calc(47% + 24px) - 15.6px), calc(100% - 19.1px) calc(calc(47% + 24px) - 11px), calc(100% - 21.3px) calc(calc(47% + 24px) - 5.7px), calc(100% - 22.0px) calc(calc(47% + 24px) + 0.0px), calc(100% - 21.3px) calc(calc(47% + 24px) + 5.7px), calc(100% - 19.1px) calc(calc(47% + 24px) + 11.0px), calc(100% - 15.6px) calc(calc(47% + 24px) + 15.6px), calc(100% - 11.0px) calc(calc(47% + 24px) + 19.1px), calc(100% - 5.7px) calc(calc(47% + 24px) + 21.3px), 100% calc(calc(47% + 24px) + 22.0px), 100% calc(47% + 54px), 100% 100%, 0 100%);
    }

    .sidemenu,
    .nav-drawer {
        width: 480px;
        clip-path: polygon(0 0, 100% 0, 100% calc(47% - 54px), 100% calc(calc(47% - 24px) - 22px), calc(100% - 6.7px) calc(calc(47% - 24px) - 21.3px), calc(100% - 13.0px) calc(calc(47% - 24px) - 19.1px), calc(100% - 18.4px) calc(calc(47% - 24px) - 15.6px), calc(100% - 22.5px) calc(calc(47% - 24px) - 11px), calc(100% - 25.1px) calc(calc(47% - 24px) - 5.7px), calc(100% - 26.0px) calc(calc(47% - 24px) + 0.0px), calc(100% - 25.1px) calc(calc(47% - 24px) + 5.7px), calc(100% - 22.5px) calc(calc(47% - 24px) + 11.0px), calc(100% - 18.4px) calc(calc(47% - 24px) + 15.6px), calc(100% - 13.0px) calc(calc(47% - 24px) + 19.1px), calc(100% - 6.7px) calc(calc(47% - 24px) + 21.3px), 100% calc(calc(47% - 24px) + 22.0px), 100% calc(calc(47% + 24px) - 22px), calc(100% - 6.7px) calc(calc(47% + 24px) - 21.3px), calc(100% - 13.0px) calc(calc(47% + 24px) - 19.1px), calc(100% - 18.4px) calc(calc(47% + 24px) - 15.6px), calc(100% - 22.5px) calc(calc(47% + 24px) - 11px), calc(100% - 25.1px) calc(calc(47% + 24px) - 5.7px), calc(100% - 26.0px) calc(calc(47% + 24px) + 0.0px), calc(100% - 25.1px) calc(calc(47% + 24px) + 5.7px), calc(100% - 22.5px) calc(calc(47% + 24px) + 11.0px), calc(100% - 18.4px) calc(calc(47% + 24px) + 15.6px), calc(100% - 13.0px) calc(calc(47% + 24px) + 19.1px), calc(100% - 6.7px) calc(calc(47% + 24px) + 21.3px), 100% calc(calc(47% + 24px) + 22.0px), 100% calc(47% + 54px), 100% 100%, 0 100%);
    }
}

@media screen and (max-width: 1024px) {

    .nav-drawer-cushion {
        width: calc(430px + 3px);
        clip-path: polygon(0 0, 100% 0, 100% calc(47% - 46px), 100% calc(calc(47% - 20px) - 18px), calc(100% - 4.9px) calc(calc(47% - 20px) - 17.4px), calc(100% - 9.5px) calc(calc(47% - 20px) - 15.6px), calc(100% - 13.4px) calc(calc(47% - 20px) - 12.7px), calc(100% - 16.5px) calc(calc(47% - 20px) - 9px), calc(100% - 18.4px) calc(calc(47% - 20px) - 4.7px), calc(100% - 19.0px) calc(calc(47% - 20px) + 0.0px), calc(100% - 18.4px) calc(calc(47% - 20px) + 4.7px), calc(100% - 16.5px) calc(calc(47% - 20px) + 9.0px), calc(100% - 13.4px) calc(calc(47% - 20px) + 12.7px), calc(100% - 9.5px) calc(calc(47% - 20px) + 15.6px), calc(100% - 4.9px) calc(calc(47% - 20px) + 17.4px), 100% calc(calc(47% - 20px) + 18.0px), 100% calc(calc(47% + 20px) - 18px), calc(100% - 4.9px) calc(calc(47% + 20px) - 17.4px), calc(100% - 9.5px) calc(calc(47% + 20px) - 15.6px), calc(100% - 13.4px) calc(calc(47% + 20px) - 12.7px), calc(100% - 16.5px) calc(calc(47% + 20px) - 9px), calc(100% - 18.4px) calc(calc(47% + 20px) - 4.7px), calc(100% - 19.0px) calc(calc(47% + 20px) + 0.0px), calc(100% - 18.4px) calc(calc(47% + 20px) + 4.7px), calc(100% - 16.5px) calc(calc(47% + 20px) + 9.0px), calc(100% - 13.4px) calc(calc(47% + 20px) + 12.7px), calc(100% - 9.5px) calc(calc(47% + 20px) + 15.6px), calc(100% - 4.9px) calc(calc(47% + 20px) + 17.4px), 100% calc(calc(47% + 20px) + 18.0px), 100% calc(47% + 46px), 100% 100%, 0 100%);
    }

    .sidemenu,
    .nav-drawer {
        width: 430px;
        clip-path: polygon(0 0, 100% 0, 100% calc(47% - 46px), 100% calc(calc(47% - 20px) - 18px), calc(100% - 5.7px) calc(calc(47% - 20px) - 17.4px), calc(100% - 11.0px) calc(calc(47% - 20px) - 15.6px), calc(100% - 15.6px) calc(calc(47% - 20px) - 12.7px), calc(100% - 19.1px) calc(calc(47% - 20px) - 9px), calc(100% - 21.3px) calc(calc(47% - 20px) - 4.7px), calc(100% - 22.0px) calc(calc(47% - 20px) + 0.0px), calc(100% - 21.3px) calc(calc(47% - 20px) + 4.7px), calc(100% - 19.1px) calc(calc(47% - 20px) + 9.0px), calc(100% - 15.6px) calc(calc(47% - 20px) + 12.7px), calc(100% - 11.0px) calc(calc(47% - 20px) + 15.6px), calc(100% - 5.7px) calc(calc(47% - 20px) + 17.4px), 100% calc(calc(47% - 20px) + 18.0px), 100% calc(calc(47% + 20px) - 18px), calc(100% - 5.7px) calc(calc(47% + 20px) - 17.4px), calc(100% - 11.0px) calc(calc(47% + 20px) - 15.6px), calc(100% - 15.6px) calc(calc(47% + 20px) - 12.7px), calc(100% - 19.1px) calc(calc(47% + 20px) - 9px), calc(100% - 21.3px) calc(calc(47% + 20px) - 4.7px), calc(100% - 22.0px) calc(calc(47% + 20px) + 0.0px), calc(100% - 21.3px) calc(calc(47% + 20px) + 4.7px), calc(100% - 19.1px) calc(calc(47% + 20px) + 9.0px), calc(100% - 15.6px) calc(calc(47% + 20px) + 12.7px), calc(100% - 11.0px) calc(calc(47% + 20px) + 15.6px), calc(100% - 5.7px) calc(calc(47% + 20px) + 17.4px), 100% calc(calc(47% + 20px) + 18.0px), 100% calc(47% + 46px), 100% 100%, 0 100%);
        padding: 2.5em 2.2em 2.5em 2em;
    }
}

@media screen and (max-width: 600px) {

    .nav-drawer-cushion {
        width: calc(88vw + 3px);
        clip-path: polygon(0 0, 100% 0, 100% calc(47% - 42px), 100% calc(calc(47% - 18px) - 16px), calc(100% - 3.9px) calc(calc(47% - 18px) - 15.5px), calc(100% - 7.5px) calc(calc(47% - 18px) - 13.9px), calc(100% - 10.6px) calc(calc(47% - 18px) - 11.3px), calc(100% - 13.0px) calc(calc(47% - 18px) - 8px), calc(100% - 14.5px) calc(calc(47% - 18px) - 4.1px), calc(100% - 15.0px) calc(calc(47% - 18px) + 0.0px), calc(100% - 14.5px) calc(calc(47% - 18px) + 4.1px), calc(100% - 13.0px) calc(calc(47% - 18px) + 8.0px), calc(100% - 10.6px) calc(calc(47% - 18px) + 11.3px), calc(100% - 7.5px) calc(calc(47% - 18px) + 13.9px), calc(100% - 3.9px) calc(calc(47% - 18px) + 15.5px), 100% calc(calc(47% - 18px) + 16.0px), 100% calc(calc(47% + 18px) - 16px), calc(100% - 3.9px) calc(calc(47% + 18px) - 15.5px), calc(100% - 7.5px) calc(calc(47% + 18px) - 13.9px), calc(100% - 10.6px) calc(calc(47% + 18px) - 11.3px), calc(100% - 13.0px) calc(calc(47% + 18px) - 8px), calc(100% - 14.5px) calc(calc(47% + 18px) - 4.1px), calc(100% - 15.0px) calc(calc(47% + 18px) + 0.0px), calc(100% - 14.5px) calc(calc(47% + 18px) + 4.1px), calc(100% - 13.0px) calc(calc(47% + 18px) + 8.0px), calc(100% - 10.6px) calc(calc(47% + 18px) + 11.3px), calc(100% - 7.5px) calc(calc(47% + 18px) + 13.9px), calc(100% - 3.9px) calc(calc(47% + 18px) + 15.5px), 100% calc(calc(47% + 18px) + 16.0px), 100% calc(47% + 42px), 100% 100%, 0 100%);
    }

    .sidemenu,
    .nav-drawer {
        width: 88vw;
        clip-path: polygon(0 0, 100% 0, 100% calc(47% - 42px), 100% calc(calc(47% - 18px) - 16px), calc(100% - 4.7px) calc(calc(47% - 18px) - 15.5px), calc(100% - 9.0px) calc(calc(47% - 18px) - 13.9px), calc(100% - 12.7px) calc(calc(47% - 18px) - 11.3px), calc(100% - 15.6px) calc(calc(47% - 18px) - 8px), calc(100% - 17.4px) calc(calc(47% - 18px) - 4.1px), calc(100% - 18.0px) calc(calc(47% - 18px) + 0.0px), calc(100% - 17.4px) calc(calc(47% - 18px) + 4.1px), calc(100% - 15.6px) calc(calc(47% - 18px) + 8.0px), calc(100% - 12.7px) calc(calc(47% - 18px) + 11.3px), calc(100% - 9.0px) calc(calc(47% - 18px) + 13.9px), calc(100% - 4.7px) calc(calc(47% - 18px) + 15.5px), 100% calc(calc(47% - 18px) + 16.0px), 100% calc(calc(47% + 18px) - 16px), calc(100% - 4.7px) calc(calc(47% + 18px) - 15.5px), calc(100% - 9.0px) calc(calc(47% + 18px) - 13.9px), calc(100% - 12.7px) calc(calc(47% + 18px) - 11.3px), calc(100% - 15.6px) calc(calc(47% + 18px) - 8px), calc(100% - 17.4px) calc(calc(47% + 18px) - 4.1px), calc(100% - 18.0px) calc(calc(47% + 18px) + 0.0px), calc(100% - 17.4px) calc(calc(47% + 18px) + 4.1px), calc(100% - 15.6px) calc(calc(47% + 18px) + 8.0px), calc(100% - 12.7px) calc(calc(47% + 18px) + 11.3px), calc(100% - 9.0px) calc(calc(47% + 18px) + 13.9px), calc(100% - 4.7px) calc(calc(47% + 18px) + 15.5px), 100% calc(calc(47% + 18px) + 16.0px), 100% calc(47% + 42px), 100% 100%, 0 100%);
        padding: 2em 1.8em 2em 1.5em;
    }
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.7);
    z-index: 2498;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-normal);
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.drawer-header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.drawer-logo {
    font-size: 2.6rem;
    color: var(--primary-lime-hover);
    font-family: var(--font-heading);
    font-weight: 900;
    letter-spacing: 2px;
    transition: var(--transition-fast);
}

.nav-drawer .theme-toggle-btn {
    background: var(--bg-main);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.nav-drawer .theme-toggle-btn:hover {
    background: var(--primary-lime);
    color: #ffffff;
    border-color: var(--primary-lime-light);
}

/* Ẩn nút theme toggle trong Navigate drawer trên PC vì đã đưa ra ngoài header */
.drawer-theme-toggle {
    display: none !important;
}

@media screen and (max-width: 768px) {
    .header-theme-toggle {
        display: none !important;
    }

    .drawer-theme-toggle {
        display: flex !important;
    }

    .drawer-logo {
        display: none !important;
    }

    .drawer-header {
        justify-content: flex-end;
    }
}

.drawer-close {
    background: rgba(139, 211, 252, 0.15) !important;
    color: var(--primary-lime) !important;
    border: none !important;
    display: inline-flex;
    font-size: 0.85rem;
    font-weight: 800;
    font-family: var(--font-heading);
    padding: 0.5rem 0.95rem;
    border-radius: 20px !important;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    cursor: var(--cursor-pointer);
    box-shadow: none !important;
    transition: background 0.2s ease, color 0.2s ease;
    transform: none !important;
}

body.dark-theme .drawer-close {
    background: rgba(139, 211, 252, 0.2) !important;
    color: var(--primary-lime-hover) !important;
    border: none !important;
    box-shadow: none !important;
}

.drawer-close:hover,
body.dark-theme .drawer-close:hover {
    background: var(--primary-lime) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
}

.drawer-close:active {
    transform: scale(0.95) !important;
    box-shadow: none !important;
}

.drawer-close i {
    font-size: 0.95rem;
    transition: none !important;
    transform: none !important;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    /* Tightened vertical spacing */
    padding: 0.8rem 0;
}

.drawer-link {
    line-height: 1.2;
    text-decoration: none;
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.8rem;
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    position: relative;
    padding-bottom: 0.4rem;
    width: fit-content;
}

.drawer-link i {
    font-size: 2rem;
    width: 36px;
    /* Fixed width to align link text perfectly */
    text-align: center;
    color: var(--primary-lime);
}

.drawer-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 4px;
    right: 4px;
    height: 3.5px;
    background: var(--primary-lime-hover);
    border-radius: 50px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s ease;
    pointer-events: none;
}

.drawer-link:hover,
.drawer-link.active {
    color: var(--primary-lime-hover);
    transform: translateX(8px);
}

.drawer-link:hover::after,
.drawer-link.active::after {
    transform: scaleX(1);
}

@media screen and (max-width: 550px) {
    .drawer-link {
        font-size: 1.6rem;
    }

    .drawer-link i {
        font-size: 1.8rem;
        width: 30px;
    }
}

.drawer-footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Stagger slide-in animation for drawer items when menu opens */
.nav-drawer.active .drawer-animate-item {
    animation: drawerItemSlideIn 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    animation-delay: var(--drawer-item-delay, 0ms);
}

/* Reset: hide items before animation triggers (only when drawer is closed) */
.nav-drawer:not(.active) .drawer-animate-item {
    opacity: 0;
    transform: translateX(-40px);
    transition: none;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-stripe,
.hero-slant.layer-1,
.hero-slant.layer-2 {
    display: none !important;
}

#hero,
.hero {
    position: relative;
    min-height: 110vh;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: right top;
    background-repeat: no-repeat;
    clip-path: none !important;
    padding-top: 6.5rem;
    padding-bottom: 5rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 1;
}

/* ==========================================================================
   OCEAN WAVE TRANSITION & WATER DROPLETS (Hero to Section 1)
   ========================================================================== */
.ocean-wave-transition {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 160px;
    z-index: 10;
    pointer-events: none;
    overflow: visible;
}

@media screen and (max-width: 768px) {
    .ocean-wave-transition {
        height: 110px;
    }
}

.wave-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.wave-layer svg {
    display: block;
    width: 100%;
    height: 100%;
}

.wave-layer-1 {
    z-index: 1;
}

.wave-layer-1 path {
    fill: var(--wave-back-color, rgba(139, 211, 252, 0.28));
    transition: fill var(--transition-normal);
}

.wave-layer-2 {
    z-index: 3;
}

.wave-layer-2 path {
    fill: var(--wave-mid-color, rgba(139, 211, 252, 0.55));
    transition: fill var(--transition-normal);
}

.wave-layer-3 {
    z-index: 5;
}

.wave-layer-3 path {
    fill: var(--wave-front-color, #fbf9f6);
    transition: fill var(--transition-normal);
}

/* Water Droplet Container Slots between wave layers */
.wave-droplet-slot {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.wave-droplet-slot.slot-1 {
    z-index: 2; /* Interspersed between Layer 1 and Layer 2 */
}

.wave-droplet-slot.slot-2 {
    z-index: 4; /* Interspersed between Layer 2 and Layer 3 */
}

.wave-droplet-slot.slot-3 {
    z-index: 6; /* Front crest layer */
}

/* STRICT WATER DROPLET RULES:
   - Only a round dot (border-radius: 50%)
   - NO icon / image
   - NO shadow (no box-shadow, no drop-shadow)
   - NO border
   - NO gradient
   - rgba background permitted
*/
.wave-droplet {
    position: absolute;
    border-radius: 50% !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    filter: none !important;
    -webkit-filter: none !important;
    text-shadow: none !important;
    background: var(--droplet-color, rgba(139, 211, 252, 0.9)) !important;
    pointer-events: none;
    transform-origin: center bottom;
    will-change: transform;
}

/* Idle gentle floating animation */
@keyframes waveDropletIdle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

.wave-droplet:not(.bounce-up) {
    animation: waveDropletIdle 3.2s ease-in-out infinite;
}

/* Scroll-down Bounce Up Physics */
@keyframes dropletBounceUp {
    0% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-34px);
    }
    55% {
        transform: translateY(-44px);
    }
    75% {
        transform: translateY(-12px);
    }
    90% {
        transform: translateY(-3px);
    }
    100% {
        transform: translateY(0);
    }
}

.wave-droplet.bounce-up {
    animation: dropletBounceUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
}

/* Canvas Blizzard Particles Layer */
.blizzard-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none !important;
    z-index: 995;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 40% 2 đầu dùng màu tối #0f172a. Theme sáng: trong suốt nhiều hơn (màu tối nhẹ thoáng ~0.45) */
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.45) 0%, transparent 40%, transparent 60%, rgba(15, 23, 42, 0.45) 100%);
    z-index: 2;
    pointer-events: none;
}

body.dark-theme .hero {
    color: #ffffff;
}

body.dark-theme .hero::before {
    /* Theme tối: trong suốt ít hơn (màu tối đậm và sâu hơn ~0.85) */
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, transparent 40%, transparent 60%, rgba(15, 23, 42, 0.85) 100%);
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

@media screen and (max-width: 1024px) {

    #hero,
    .hero {
        height: auto;
        padding-bottom: 6rem;
    }
}



/* Infinite Marquee Text ("Chữ chạy") */
.marquee-wrapper {
    position: absolute;
    top: 12%;
    left: 0;
    width: 100%;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
    z-index: 2;
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    width: 200%;
    animation: marqueeScroll 25s linear infinite;
}

.marquee-text {
    font-family: var(--font-heading);
    font-size: 13vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.12);
    -webkit-text-stroke: none;
    letter-spacing: 6px;
    padding-right: 4rem;
}

body.dark-theme .marquee-text {
    color: rgba(255, 255, 255, 0.05);
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Background Decor Rotating Elements */
.decor-leaf {
    position: absolute;
    z-index: 2;
    opacity: 0.15;
    pointer-events: none;
    animation: decorSpin 25s linear infinite;
    color: #ffffff;
}

.decor-leaf.a {
    top: 12%;
    right: 6%;
    font-size: 12rem;
}

.decor-leaf.b {
    bottom: 18%;
    right: 15%;
    font-size: 7rem;
    animation-direction: reverse;
    animation-duration: 35s;
}

@keyframes decorSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hero-grid {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    width: 100%;
    padding-bottom: 4rem;
}

.hero .container.hero-grid {
    width: clamp(82%, 85vw, 86%);
    max-width: 2500px;
    margin: 0 auto;
    padding: 0;
}

.hero-left-content {
    flex: 0 1 520px;
    margin-left: clamp(4rem, 6vw, 7.5rem);
}

.hero-right-avatar {
    flex: 0 0 280px;
    display: flex;
    justify-content: flex-end;
}

@media screen and (max-width: 1024px) {
    .hero-left-content {
        margin-left: 0;
    }

    .hero-grid,
    .hero .container.hero-grid {
        display: flex;
        flex-direction: column-reverse;
        text-align: center;
        width: 100%;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .hero-right-avatar {
        justify-content: center;
    }
}

/* Left Hero Character Cutout Showcase */
.hero-left {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.character-frame {
    position: relative;
    width: 100%;
    max-width: clamp(250px, 18vw, 280px);
    height: auto;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

@keyframes heroBobble {
    0% {
        transform: translateY(0) rotate(-1deg);
    }

    100% {
        transform: translateY(-15px) rotate(1deg);
    }
}

/* Background card behind avatar */
.character-frame::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 5%;
    width: 90%;
    height: 85%;
    background: linear-gradient(135deg, var(--primary-yellow), var(--primary-orange));
    border-radius: 8px;
    transform: rotate(-4deg);
    z-index: 1;
    display: none;
}

.character-img-wrapper {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.character-img-wrapper img:not(.avatar-decoration) {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    border: 1.5px solid var(--primary-lime);
    /* Less round corner */
    transition: transform 0.5s ease;
}


/* Right Hero Branding Content */
.hero-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
}

@media screen and (max-width: 1024px) {
    .hero-right {
        align-items: center;
    }
}

.brand-logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}

@media screen and (max-width: 1024px) {
    .brand-logo-container {
        align-items: center;
    }
}

.brand-orbit-ring {
    position: absolute;
    top: -30px;
    left: -30px;
    width: 200px;
    height: 200px;
    border: 2px dashed rgba(255, 255, 255, 0.35);
    border-radius: 50% 0;
    pointer-events: none;
    animation: decorSpin 40s linear infinite;
}

.brand-title-main {
    font-family: var(--font-heading);
    font-size: 5.8rem;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: 2px;
    color: var(--primary-lime);
    -webkit-text-stroke: none;
    position: relative;
    z-index: 2;
}

.brand-title-main::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    color: #ffffff !important;
    -webkit-text-stroke: 3px #ffffff !important;
    text-shadow: 
        -1.5px -1.5px 0 #ffffff,
         1.5px -1.5px 0 #ffffff,
        -1.5px  1.5px 0 #ffffff,
         1.5px  1.5px 0 #ffffff;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

@media screen and (max-width: 768px) {
    .brand-title-main {
        font-size: 4rem;
    }
}

.brand-subtitle-sub {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-lime-hover);
    letter-spacing: 10px;
    text-transform: uppercase;
    margin-top: 0.3rem;
    padding-left: 4px;
    position: relative;
    z-index: 2;
}

.brand-subtitle-sub::before {
    content: attr(data-text);
    position: absolute;
    left: 4px;
    top: 0;
    z-index: -1;
    color: #ffffff !important;
    -webkit-text-stroke: 3px #ffffff !important;
    text-shadow: 
        -1.5px -1.5px 0 #ffffff,
         1.5px -1.5px 0 #ffffff,
        -1.5px  1.5px 0 #ffffff,
         1.5px  1.5px 0 #ffffff;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

body.dark-theme .brand-subtitle-sub {
    color: var(--primary-lime-hover) !important;
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(139, 211, 252, 0.15);
    padding: 0.5rem 1.4rem;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    color: var(--lime-dark);
}

body.dark-theme .hero-tagline {
    background: rgba(0, 0, 0, 0.3);
    color: var(--primary-lime-bright);
}

.hero-bio {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #ffffff !important;
    max-width: 520px;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hero-bio strong {
    color: #ffffff !important;
    font-weight: 700;
}

body.dark-theme .hero-bio {
    color: #ffffff !important;
}

.hero-bio-intro {
    margin-bottom: 0.6rem;
    font-size: 1.15rem;
}

.hero-bio-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.hero-bio-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    letter-spacing: 0.3px;
}

.hero-bio-cat {
    font-size: 1.25rem;
    color: var(--primary-lime-light);
    margin-top: 0.25rem;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.8rem;
}

.hero-social-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.2rem;
}

.social-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(226, 232, 240, 0.8);
    color: var(--text-dark);
    padding: 0.45rem 1.1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
}

body.dark-theme .social-pill {
    background: rgba(0, 0, 0, 0.35);
    color: #ffffff;
}

.social-pill i {
    color: var(--primary-lime-bright);
}

/* Pausing & Hiding Off-Screen Animations (Outside 12px Viewport Margin) */
.out-of-viewport {
    visibility: hidden;
}

.out-of-viewport * {
    animation-play-state: paused !important;
}

/* ==========================================================================
   01 ABOUT ME SECTION
   ========================================================================== */
.section {
    padding: 6.5rem 0;
    scroll-margin-top: 10vh;
    position: relative;
    z-index: 0;
}

.section > .container,
.section > .confine {
    position: relative;
    z-index: 2;
}

/* Section background hierarchy (light theme) */
.about-section {
    background: #f1f5f9;
    margin-top: -11vh;
    padding-top: 9rem;
    clip-path: polygon(0 8vh, 23% 4vh, 46% 14.5vh, 69% 2vh, 100% 12vh, 100% 100%, 0 100%);
}

.projects-section {
    background: var(--wave-front-color, #fbf9f6);
    padding-top: 7rem;
    margin-top: 0;
}

.movies-section {
    background: #f1f5f9;
}

.hobbies-section {
    background: #ffffff;
}

.discord-section {
    background: #f1f5f9;
}

.socials-section {
    background: #ffffff;
}

/* Dark theme section background hierarchy */
body.dark-theme .about-section {
    background: #0f172a;
}

body.dark-theme .projects-section {
    background: #0b1329;
}

body.dark-theme .movies-section {
    background: #0f172a;
}

body.dark-theme .hobbies-section {
    background: #0b1329;
}

body.dark-theme .discord-section {
    background: #0f172a;
}

body.dark-theme .socials-section {
    background: #0b1329;
}


.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

@media screen and (max-width: 550px) {
    .section-header {
        padding: 0 16px;
    }
}

.section-title {
    font-size: 2.8rem;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.section-title span {
    color: var(--primary-lime-hover);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media screen and (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

.heading .bio {
    font-size: 3.5rem;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.heading .name {
    color: var(--primary-lime-hover);
    font-weight: 900;
}

body.dark-theme .heading .name {
    color: var(--primary-lime-light);
}

.heading .subtitle {
    font-size: 1.4rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.about-bio-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 1.8rem;
}

.points-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-bottom: 2rem;
}

@media screen and (max-width: 550px) {
    .points-grid {
        grid-template-columns: 1fr;
    }
}

.point-badge {
    background: #ffffff;
    color: var(--text-dark);
    border: 2px solid transparent;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    box-shadow: none;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.point-badge:hover {
    transform: translateY(-2px);
    border-color: var(--primary-lime);
}

body.dark-theme .point-badge {
    color: var(--text-dark) !important;
    background: var(--bg-card) !important;
    border: 2px solid transparent !important;
    box-shadow: none !important;
}

body.dark-theme .point-badge:hover {
    border-color: var(--primary-lime-light) !important;
}

.point-badge i {
    color: var(--primary-lime);
    font-size: 1.05rem;
}

.about-action-buttons {
    display: flex;
    gap: 1rem;
}

.about-image-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-normal);
    background: transparent;
}

.about-image-card:hover {
    transform: translateY(-6px);
}

.about-image-card img {
    width: 100%;
    height: auto;
    display: block;
}

.about-floating-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--bg-card);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    padding: 1.2rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.about-thumb {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-lime);
}

.about-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-info-text h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
}

.about-info-text p {
    font-size: 0.85rem;
    color: var(--primary-lime-hover);
}

body.dark-theme .about-info-text p {
    color: var(--primary-lime-bright);
}

/* ==========================================================================
   02 FAVORITE MOVIES & ANIME SECTION
   ========================================================================== */
.movies-section {
    background: var(--bg-card);
    padding: 6rem 0;
    position: relative;
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.8rem;
}

/* Quy định Anime Section 03: Slide từ 2 trở đi tối đa 4 cột poster dọc */
.movies-slide:nth-child(n+2) .movies-grid {
    grid-template-columns: repeat(4, 1fr);
}

.movies-slide:nth-child(n+2) .anime-poster-accordion {
    justify-content: flex-start;
    max-width: 100%;
}

@media (max-width: 1100px) {
    .movies-slide:nth-child(n+2) .movies-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

.movie-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    cursor: var(--cursor-pointer);
    border: 2px solid transparent;
    box-sizing: border-box;
    height: 440px;
}

body.dark-theme .movie-card {
    background: var(--bg-dark-card, #1e293b);
}

/* Hover glow & scale effects - Khôi phục viền gốc xanh lá, không box shadow, không transform */
.movie-card:hover {
    border: 2px solid var(--primary-lime-hover);
    transform: none;
    box-shadow: none !important;
}

.movie-card-img-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--bg-dark);
}

.movie-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(15, 23, 42, 0.95);
    color: var(--primary-lime-bright);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.35rem 0.8rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    backdrop-filter: blur(5px);
    z-index: 2;
}

.movie-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    height: calc(440px - 220px);
}

.movie-title {
    font-size: 1.35rem;
    color: var(--text-dark);
    margin-bottom: 0.6rem;
    transition: color var(--transition-fast);
}

.movie-card:hover .movie-title {
    color: var(--primary-lime-hover);
}

.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

.movie-tags span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    transition: all var(--transition-fast, 0.2s ease);
}

.movie-tags span:hover {
    background: rgba(0, 0, 0, 0.09);
    color: #1e293b;
}

body.dark-theme .movie-tags span {
    color: rgba(255, 255, 255, 0.85) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: none !important;
}

body.dark-theme .movie-tags span:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

.movie-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------------------------------------------------------
   Anime Section Carousel Slider & Accordion Expansion Layout
   --------------------------------------------------------- */
.movies-carousel-wrapper {
    position: relative;
    width: 100%;
    user-select: none;
}

.movies-slides-window {
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
}

.movies-slides-track {
    display: flex;
    width: 300%; /* 3 slides = 300% */
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    cursor: var(--cursor-grab);
}

.movies-slides-track.is-dragging {
    transition: none !important;
    cursor: var(--cursor-grabbing);
}

.movies-slide {
    width: calc(100% / 3);
    flex-shrink: 0;
    padding: 0.5rem 0.2rem;
    box-sizing: border-box;
}

/* Navigation Arrow Buttons (Section 3 Anime) */
.movies-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(18, 20, 23, 0.85);
    border: 1.5px solid var(--primary-lime);
    color: #ffffff !important;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: var(--cursor-pointer);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease, background 0.2s ease;
    backdrop-filter: blur(8px);
}

.movies-nav-btn i {
    color: #ffffff !important;
}

.movies-nav-btn.visible {
    opacity: 0.65;
    visibility: visible;
}

.movies-nav-btn:hover {
    opacity: 1 !important;
    background: var(--primary-lime);
    color: #ffffff !important;
    transform: translateY(-50%) scale(1.1);
}

.movies-nav-btn:hover i {
    color: #ffffff !important;
}

.movies-prev-btn {
    left: -24px;
}

.movies-next-btn {
    right: -24px;
}

/* Dots Indicator */
.movies-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.8rem;
}

.movies-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(139, 211, 252, 0.3);
    cursor: var(--cursor-pointer);
    transition: all 0.3s ease;
}

.movies-dot.active {
    width: 28px;
    border-radius: 10px;
    background: var(--primary-lime-hover);
}

/* Expandable Vertical Poster Accordion Showcase (Height Cố Định 440px Khớp Trang 1) */
.anime-poster-accordion {
    display: flex;
    gap: 1.5rem;
    width: 100%;
    height: 440px; /* Cố định 440px giống trang 1 */
    align-items: stretch;
}

.anime-poster-card {
    flex: 1;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: var(--cursor-pointer);
    display: flex;
    flex-direction: row;
    background: var(--bg-card);
    border: 2px solid transparent;
    box-shadow: none !important;
    transition: flex 0.45s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.25s ease;
    min-width: 120px;
    height: 440px; /* Cố định 440px giống trang 1 */
    box-sizing: border-box;
}

body.dark-theme .anime-poster-card {
    background: var(--bg-dark-card, #1e293b);
}

.anime-poster-card .poster-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.9);
    color: var(--primary-lime-bright);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    z-index: 3;
    backdrop-filter: blur(4px);
}

.anime-poster-card .poster-img-wrap {
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    transition: width 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.anime-poster-card .poster-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1000 / 1413;
    transition: transform 0.5s ease;
}

.anime-poster-card .poster-info-overlay {
    width: 0;
    opacity: 0;
    visibility: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    transition: width 0.45s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.35s ease, padding 0.35s ease;
    background: transparent;
    box-sizing: border-box;
    height: 100%;
    position: relative;
}

.poster-header-info,
.poster-imdb-btn {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s ease 0.18s, transform 0.35s ease 0.18s;
}

.poster-header-info {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.poster-title {
    font-size: 1.25rem;
    color: var(--text-dark);
    font-weight: 800;
    margin: 0;
    line-height: 1.3;
}

body.dark-theme .poster-title {
    color: #ffffff;
}

.poster-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.poster-tags span {
    font-size: 0.72rem;
    font-weight: 600;
    color: #475569;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    transition: all var(--transition-fast, 0.2s ease);
}

.poster-tags span:hover {
    background: rgba(0, 0, 0, 0.09);
    color: #1e293b;
}

body.dark-theme .poster-tags span {
    color: rgba(255, 255, 255, 0.85) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: none !important;
}

body.dark-theme .poster-tags span:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

.poster-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.poster-imdb-btn {
    align-self: flex-start;
    padding: 0.4rem 0.9rem;
    font-size: 0.82rem;
    margin-top: 0.8rem;
}

/* Skeleton shimmer overlay during card expansion */
.poster-info-overlay::before {
    content: "";
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.5rem;
    border-radius: 8px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.03) 0%,
        rgba(255, 255, 255, 0.14) 50%,
        rgba(255, 255, 255, 0.03) 100%
    );
    background-size: 200% 100%;
    animation: skeletonShimmer 1.2s infinite linear;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.anime-poster-card:hover .poster-info-overlay::before,
.anime-poster-card.hover-expanded .poster-info-overlay::before {
    opacity: 0.8;
    animation: skeletonShimmer 1.2s infinite linear, fadeOutSkeleton 0.25s ease 0.2s forwards;
}

@keyframes fadeOutSkeleton {
    to {
        opacity: 0;
    }
}

/* Hover (0.6s hold) effect on accordion item - Mở rộng thông tin bên phải */
.anime-poster-card:hover,
.anime-poster-card.hover-expanded {
    flex: 3.5;
    border: 2px solid var(--primary-lime-hover);
    box-shadow: none !important;
}

.anime-poster-card:hover .poster-img-wrap,
.anime-poster-card.hover-expanded .poster-img-wrap {
    width: calc(440px * 1000 / 1413);
}

.anime-poster-card:hover .poster-img-wrap img,
.anime-poster-card.hover-expanded .poster-img-wrap img {
    transform: scale(1.06);
}

.anime-poster-card:hover .poster-info-overlay,
.anime-poster-card.hover-expanded .poster-info-overlay {
    width: calc(100% - calc(440px * 1000 / 1413));
    opacity: 1;
    visibility: visible;
    padding: 1.5rem;
}

.anime-poster-card:hover .poster-header-info,
.anime-poster-card.hover-expanded .poster-header-info,
.anime-poster-card:hover .poster-imdb-btn,
.anime-poster-card.hover-expanded .poster-imdb-btn {
    opacity: 1;
    transform: translateY(0);
}

.anime-poster-card:hover .poster-info-overlay::before,
.anime-poster-card.hover-expanded .poster-info-overlay::before {
    opacity: 0.8;
    animation: skeletonShimmer 1.2s infinite linear, fadeOutSkeleton 0.25s ease 0.2s forwards;
}

/* Card active mở sẵn mặc định (cho các slide có ít item như slide 3) */
.anime-poster-card.active {
    flex: 3;
    border: 2px solid var(--primary-lime-hover);
    box-shadow: none !important;
}

.anime-poster-card.active .poster-img-wrap {
    width: calc(440px * 1000 / 1413);
}

.anime-poster-card.active .poster-img-wrap img {
    transform: scale(1.06);
}

.anime-poster-card.active .poster-info-overlay {
    width: calc(100% - calc(440px * 1000 / 1413));
    opacity: 1;
    visibility: visible;
    padding: 1.5rem;
}

.anime-poster-card.active .poster-header-info,
.anime-poster-card.active .poster-imdb-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Khi có card khác trong cùng accordion đang hover-expanded, thu nhỏ card active mặc định lại */
.anime-poster-accordion:has(.hover-expanded) .anime-poster-card.active:not(.hover-expanded) {
    flex: 1;
    border-color: transparent;
}

.anime-poster-accordion:has(.hover-expanded) .anime-poster-card.active:not(.hover-expanded) .poster-img-wrap {
    width: 100%;
}

.anime-poster-accordion:has(.hover-expanded) .anime-poster-card.active:not(.hover-expanded) .poster-info-overlay {
    width: 0;
    opacity: 0;
    visibility: hidden;
    padding: 0;
}

.anime-poster-accordion:has(.hover-expanded) .anime-poster-card.active:not(.hover-expanded) .poster-header-info,
.anime-poster-accordion:has(.hover-expanded) .anime-poster-card.active:not(.hover-expanded) .poster-imdb-btn {
    opacity: 0;
    transform: translateY(6px);
}

@media (max-width: 768px) {
    .movies-prev-btn, .movies-next-btn, .movies-dots {
        display: none !important;
    }
    .movies-slides-window {
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        padding-bottom: 0.5rem;
    }
    .movies-slides-track {
        display: flex !important;
        width: max-content !important;
        transform: none !important;
        gap: 1.2rem;
    }
    .movies-slide {
        width: auto !important;
        flex-shrink: 0;
        display: flex;
        gap: 1rem;
        padding: 0;
    }
    .movies-grid {
        display: flex !important;
        flex-direction: row !important;
        gap: 1rem !important;
        width: auto !important;
    }
    .movie-card {
        width: 88vw !important;
        max-width: 370px !important;
        flex-shrink: 0 !important;
        scroll-snap-align: start;
    }
    .anime-poster-accordion {
        display: flex !important;
        flex-direction: row !important;
        gap: 1rem !important;
        height: auto !important;
        width: auto !important;
    }
    .anime-poster-card {
        flex: none !important;
        width: 72vw !important;
        max-width: 270px !important;
        height: 390px !important;
        flex-direction: column !important;
        flex-shrink: 0 !important;
        scroll-snap-align: start;
        border-radius: 12px;
        overflow: hidden;
    }
    .anime-poster-card .poster-img-wrap {
        width: 100% !important;
        height: 100% !important;
    }
    .anime-poster-card .poster-info-overlay {
        display: none !important;
    }

    /* Skills Carousel Mobile Touch Scroll */
    .skills-prev-btn, .skills-next-btn, .skills-dots {
        display: none !important;
    }
    .skills-slides-window {
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        padding-bottom: 0.5rem;
    }
    .skills-slides-track {
        display: flex !important;
        width: max-content !important;
        transform: none !important;
        gap: 1.2rem;
    }
    .skills-slide {
        width: auto !important;
        flex-shrink: 0;
        display: flex;
        gap: 1rem;
        padding: 0;
    }
    .skills-slide .hobbies-grid {
        display: flex !important;
        flex-direction: row !important;
        gap: 1rem !important;
        width: auto !important;
        height: auto !important;
    }
    .skills-slide .hobby-card {
        width: 88vw !important;
        max-width: 370px !important;
        flex-shrink: 0 !important;
        scroll-snap-align: start;
        height: 520px !important;
    }
}

/* ==========================================================================
   04 SKILL SECTION (Carousel Slider 3 Cột & 70/30 Horizontal Expand on Hover)
   ========================================================================== */
.hobbies-section {
    background: var(--bg-main);
}

/* ---------------------------------------------------------
   Skills Section Carousel Slider Layout
   --------------------------------------------------------- */
.skills-carousel-wrapper {
    position: relative;
    width: 100%;
    user-select: none;
}

.skills-slides-window {
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
}

.skills-slides-track {
    display: flex;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    cursor: var(--cursor-grab);
}

.skills-slides-track.is-dragging {
    transition: none !important;
    cursor: var(--cursor-grabbing);
}

.skills-slide {
    flex-shrink: 0;
    padding: 0.5rem 0.2rem;
    box-sizing: border-box;
}

/* Cố định 3 cột trong Slide, thẻ không bị span/giãn nếu thiếu cột */
.skills-slide .hobbies-grid,
.hobbies-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem;
    width: 100%;
    height: 520px;
    min-height: 520px;
    box-sizing: border-box;
}

.skills-slide .hobbies-grid .hobby-card {
    grid-column: auto !important;
    width: 100%;
}

/* Navigation Arrow Buttons for Skills (Positioned at exact vertical center of cards on left/right sides) */
.skills-nav-btn {
    position: absolute !important;
    top: 260px !important; /* Căn giữa đúng chiều cao 520px của các thẻ kỹ năng */
    transform: translateY(-50%) !important;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(18, 20, 23, 0.85);
    border: 1.5px solid var(--primary-lime);
    color: var(--primary-lime);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: var(--cursor-pointer);
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease, background 0.2s ease;
    backdrop-filter: blur(8px);
}

.skills-nav-btn.visible {
    opacity: 0.65;
    visibility: visible;
}

.skills-nav-btn:hover {
    opacity: 1 !important;
    background: var(--primary-lime);
    color: #ffffff !important;
    border-color: var(--primary-lime);
    transform: translateY(-50%) scale(1.1) !important;
}

.skills-nav-btn:hover i {
    color: #ffffff !important;
}

.skills-prev-btn {
    left: -24px !important;
    right: auto !important;
}

.skills-next-btn {
    right: -24px !important;
    left: auto !important;
}

body.dark-theme .skills-nav-btn:hover {
    background: var(--primary-lime);
    color: #ffffff !important;
    border-color: var(--primary-lime);
}

body.dark-theme .skills-nav-btn:hover i {
    color: #ffffff !important;
}

body:not(.dark-theme) .skills-nav-btn {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--primary-lime-hover);
    color: #0f172a;
}

body:not(.dark-theme) .skills-nav-btn:hover {
    background: var(--primary-lime-hover);
    color: #ffffff;
}

body:not(.dark-theme) .skills-nav-btn:hover i {
    color: #ffffff;
}

/* Dots Indicator for Skills */
.skills-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.8rem;
}

.skills-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(139, 211, 252, 0.3);
    cursor: var(--cursor-pointer);
    transition: all 0.3s ease;
}

.skills-dot.active {
    width: 28px;
    border-radius: 10px;
    background: var(--primary-lime-hover);
}

.hobby-card {
    background: var(--bg-card);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    cursor: var(--cursor-pointer);
    border: 2px solid transparent;
    box-sizing: border-box;
    height: 520px;
    transition: border-color 0.25s ease, opacity 0.35s ease;
}

body.dark-theme .hobby-card {
    background: var(--bg-dark-card, #1e293b);
}

.hobby-card-image-wrap {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-card, #ffffff);
    transition: width 0.45s cubic-bezier(0.25, 1, 0.5, 1), height 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

body.dark-theme .hobby-card-image-wrap {
    background: var(--bg-dark-card, #1e293b);
}

.hobby-card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.4s ease;
}

/* Fallback background phủ lá cây trùng màu nền theme khi không tải được ảnh */
.leaf-fallback-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card, #ffffff);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

body.dark-theme .leaf-fallback-bg {
    background: var(--bg-dark-card, #1e293b);
}

.hobby-card-image-wrap.has-fallback .leaf-fallback-bg {
    opacity: 1;
    pointer-events: auto;
}

.hobby-card-image-wrap.has-fallback img {
    display: none !important;
}

.leaf-fallback-bg .leaf-icon {
    position: absolute;
    color: var(--primary-lime-hover);
    opacity: 0.22;
    transition: none !important;
}

.leaf-fallback-bg .leaf-1 { top: 12%; left: 8%; font-size: 2.6rem; transform: rotate(-25deg); opacity: 0.3; }
.leaf-fallback-bg .leaf-2 { top: 58%; left: 22%; font-size: 1.8rem; transform: rotate(45deg); opacity: 0.2; }
.leaf-fallback-bg .leaf-3 { top: 18%; right: 12%; font-size: 3.4rem; transform: rotate(70deg); opacity: 0.28; }
.leaf-fallback-bg .leaf-4 { bottom: 12%; right: 8%; font-size: 2.2rem; transform: rotate(-60deg); opacity: 0.22; }
.leaf-fallback-bg .leaf-5 { top: 48%; left: 50%; transform: translate(-50%, -50%) rotate(15deg); font-size: 4.2rem; opacity: 0.45; color: var(--primary-lime-hover); }
.leaf-fallback-bg .leaf-6 { bottom: 20%; left: 38%; font-size: 1.6rem; transform: rotate(-10deg); opacity: 0.2; }

/* Icon badge & body content */
.hobby-card-body {
    padding: 1.8rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    transition: width 0.45s cubic-bezier(0.25, 1, 0.5, 1), padding 0.35s ease;
}

.hobby-body-content {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.hobby-icon-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    width: auto;
    height: auto;
    background: transparent !important;
    color: var(--primary-lime);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    z-index: 10;
    transition: transform 0.3s ease, color 0.3s ease;
}

body.dark-theme .hobby-icon-badge {
    background: transparent !important;
    color: var(--primary-lime-bright);
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.hobby-card:hover .hobby-icon-badge {
    transform: scale(1.15);
    color: var(--primary-lime-hover);
}

.hobby-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.3rem;
    padding-right: 48px;
}

.hobby-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    transition: all var(--transition-fast, 0.2s ease);
}

.hobby-tag:hover {
    background: rgba(0, 0, 0, 0.09);
    color: #1e293b;
}

body.dark-theme .hobby-tag {
    color: rgba(255, 255, 255, 0.85) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: none !important;
}

body.dark-theme .hobby-tag:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

.hobby-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    font-weight: 800;
    margin-bottom: 0.4rem;
    transition: color var(--transition-fast);
}

body.dark-theme .hobby-title {
    color: #ffffff;
}

.hobby-description {
    font-size: 0.93rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hobby-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.hobby-link-btn {
    font-size: 0.9rem;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
}

/* ==========================================================================
   EXPANDED STATE (Triggered after 0.5s hover hold)
   ========================================================================== */
.hobbies-grid:has(.hover-expanded) {
    display: block !important;
    width: 100% !important;
    height: 520px !important;
    min-height: 520px !important;
    margin-top: 0 !important;
}

/* When any card has .hover-expanded (after 0.5s hover hold), hide BOTH of the other 2 cards */
.hobbies-grid:has(.hover-expanded) .hobby-card:not(.hover-expanded) {
    display: none !important;
}

/* The expanded card fills 100% of the entire section container width horizontally */
.hobby-card.hover-expanded {
    width: 100% !important;
    max-width: 100% !important;
    height: 520px !important;
    display: flex !important;
    flex-direction: row !important;
    border: 2px solid var(--primary-lime-hover);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25) !important;
    border-radius: 16px;
    overflow: hidden;
}

/* ẢNH MINH HỌA ĂN 70% CỦA TOÀN BỘ KHUNG TRANG */
.hobby-card.hover-expanded .hobby-card-image-wrap {
    width: 70% !important;
    height: 100% !important;
    flex-shrink: 0;
    clip-path: polygon(0 0, calc(100% - 28px) 0, calc(100% - 28px) 42%, 100% 48%, calc(100% - 28px) 54%, calc(100% - 28px) 100%, 0 100%);
}

.hobby-card.hover-expanded .hobby-card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
}

/* NỘI DUNG CHIẾM 30% CỦA TOÀN BỘ KHUNG TRANG */
.hobby-card.hover-expanded .hobby-card-body {
    width: 30% !important;
    height: 100% !important;
    padding: 2.2rem 1.8rem;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    box-sizing: border-box;
}

/* Ban đầu set cho text nội dung opacity = 0, sau 180ms delay sẽ tự động tăng opacity trở lại */
.hobby-card.hover-expanded .hobby-body-content,
.hobby-card.hover-expanded .hobby-footer {
    opacity: 0;
    transform: translateY(14px);
    animation: textContentFadeIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) 180ms forwards;
}

@keyframes textContentFadeIn {
    0% {
        opacity: 0;
        transform: translateY(14px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hobby-card.hover-expanded .hobby-title {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 0.6rem;
}

.hobby-card.hover-expanded .hobby-description {
    font-size: 0.95rem;
    line-height: 1.65;
    -webkit-line-clamp: 9;
    line-clamp: 9;
    margin-bottom: 1.2rem;
}

.hobby-card.hover-expanded .hobby-icon-badge {
    top: 20px;
    right: 20px;
    width: auto;
    height: auto;
    font-size: 1.6rem;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

@media (max-width: 900px) {
    .hobbies-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .hobbies-grid,
    .hobbies-grid:has(.hover-expanded) {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        gap: 1.5rem !important;
    }
    .hobbies-grid:has(.hobby-card:nth-child(1).hover-expanded) .hobby-card:nth-child(3),
    .hobbies-grid:has(.hobby-card:nth-child(2).hover-expanded) .hobby-card:nth-child(3),
    .hobbies-grid:has(.hobby-card:nth-child(3).hover-expanded) .hobby-card:nth-child(1) {
        display: flex !important;
    }
    .hobby-card,
    .hobby-card.hover-expanded {
        flex: none !important;
        width: 100% !important;
        height: auto !important;
        flex-direction: column !important;
        border-radius: 12px;
        border: 2px solid var(--border-color);
    }
    .hobby-card-image-wrap,
    .hobby-card.hover-expanded .hobby-card-image-wrap {
        width: 100% !important;
        height: 200px !important;
        clip-path: polygon(0 0, calc(100% - 24px) 0, calc(100% - 24px) 88%, 100% 94%, calc(100% - 24px) 98%, calc(100% - 24px) 100%, 0 100%) !important;
    }
    .hobby-card-body,
    .hobby-card.hover-expanded .hobby-card-body {
        width: 100% !important;
        padding: 1.5rem !important;
    }
    .hobby-icon-badge {
        top: 15px !important;
        right: 15px !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
}

/* Modal Lightbox & Expand-in animation from the card itself */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.0);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: background-color var(--transition-normal), opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal.active {
    background: rgba(15, 23, 42, 0.75);
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    width: 100%;
    max-width: 650px;
    border-radius: 12px;
    border: 2px solid var(--primary-lime);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    position: relative;

    /* Clean opacity fade-in without unnecessary transform scale */
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal.active .modal-content {
    opacity: 1;
}

/* Close buttons with spin animation on click/hover */
.modal-close,
.drawer-close,
.suggest-overlay-close,
.chatbot-close-btn {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, color 0.2s ease;
}

.modal-close {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    left: auto !important;
    width: 40px;
    height: 40px;
    background: rgba(15, 23, 42, 0.7);
    color: #ffffff;
    border-radius: 50%;
    border: none;
    cursor: var(--cursor-pointer);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal-close:hover,
.suggest-overlay-close:hover,
.chatbot-close-btn:hover {
    background: var(--primary-lime);
    color: #ffffff !important;
    transform: scale(1.05);
}

.drawer-close:hover,
body.dark-theme .drawer-close:hover {
    background: var(--primary-lime) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    transform: scale(1.05) !important;
}

.modal-close:active,
.suggest-overlay-close:active,
.chatbot-close-btn:active {
    transform: scale(0.95);
}

.drawer-close:active {
    transform: scale(0.95) !important;
}

.modal-img-wrap {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.modal-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-body {
    padding: 18px;
}

.modal-title {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.modal-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   SKELETON LOADING SHIMMER ANIMATION FOR MODALS
   ========================================================================== */
@keyframes skeletonShimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton-shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.16) 50%,
        rgba(255, 255, 255, 0.05) 75%
    );
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
    border-radius: 6px;
}

body:not(.dark-theme) .skeleton-shimmer {
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.04) 25%,
        rgba(0, 0, 0, 0.12) 50%,
        rgba(0, 0, 0, 0.04) 75%
    );
    background-size: 200% 100%;
}

.skeleton-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    z-index: 2;
}

.skeleton-tags {
    width: 50%;
    height: 24px;
    margin-bottom: 0.9rem;
}

.skeleton-title {
    width: 72%;
    height: 32px;
    margin-bottom: 1.2rem;
}

.skeleton-line {
    height: 14px;
    margin-bottom: 0.75rem;
}

.skeleton-line-1 { width: 100%; }
.skeleton-line-2 { width: 94%; }
.skeleton-line-3 { width: 90%; }
.skeleton-line-4 { width: 62%; margin-bottom: 1.5rem; }

.skeleton-btn {
    width: 100%;
    height: 44px;
    border-radius: 8px;
    margin-top: 1rem;
}

/* ==========================================================================
   SKILL & MOVIE MODAL DETAILS STYLING
   ========================================================================== */
.skill-modal-content,
.movie-modal-content {
    background: var(--bg-card);
    max-width: 650px;
    border-radius: 12px;
    border: 2px solid var(--primary-lime);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    position: relative;
}

.skill-modal-img-wrap,
.movie-modal-img-wrap {
    position: relative;
    width: 100%;
    height: 280px;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.skill-modal-img-wrap img,
.movie-modal-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.3s ease;
}

.skill-modal-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
}

.skill-modal-header-row .hobby-tags {
    margin-bottom: 0;
    padding-right: 0;
}

.skill-modal-badge {
    position: static !important;
    font-size: 1.6rem;
    color: var(--primary-lime);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.skill-modal-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

body.dark-theme .skill-modal-title {
    color: #ffffff;
}

.skill-modal-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.skill-modal-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.skill-modal-footer .btn,
.movie-modal-btn {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    box-shadow: none;
}

/* ==========================================================================
   FULLSCREEN MODALS ON MOBILE (Movie Modal & Skill Modal)
   ========================================================================== */
@media screen and (max-width: 768px) {
    #movie-detail-modal,
    #hobby-modal {
        padding: 0 !important;
    }

    #movie-detail-modal .modal-content,
    #hobby-modal .modal-content {
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;
        border-radius: 0 !important;
        border: none !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        transform: none !important;
    }

    #movie-detail-modal .modal-img-wrap,
    #hobby-modal .modal-img-wrap {
        width: 100% !important;
        height: 38vh !important;
        max-height: 340px !important;
        min-height: 220px !important;
        flex-shrink: 0 !important;
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #0f172a !important;
    }

    #movie-detail-modal .modal-img-wrap img,
    #hobby-modal .modal-img-wrap img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }

    #movie-detail-modal .modal-body,
    #hobby-modal .modal-body {
        padding: 1.5rem 1.25rem 2.5rem 1.25rem !important;
        flex-grow: 1 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
    }

    #movie-detail-modal .modal-title,
    #hobby-modal .modal-title {
        font-size: 1.6rem !important;
        margin-bottom: 0.8rem !important;
    }

    #movie-detail-modal .modal-desc,
    #hobby-modal .modal-desc {
        font-size: 1rem !important;
        line-height: 1.7 !important;
    }

    #movie-detail-modal .modal-close,
    #hobby-modal .modal-close,
    .modal-close {
        top: 15px !important;
        right: 15px !important;
        position: fixed !important;
        width: 42px !important;
        height: 42px !important;
        background: rgba(15, 23, 42, 0.85) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        color: #ffffff !important;
        z-index: 2200 !important;
    }
}

/* IMDb Rating Badge inside Modal (Always in-flow/static, never absolute) */
.movie-modal-rating-badge,
#movie-modal-rating,
.modal-content .movie-badge {
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #f1f5f9 !important;
    border: none !important;
    padding: 0.3rem 0.75rem !important;
    border-radius: 6px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    width: fit-content !important;
    margin: 0 !important;
    z-index: 1 !important;
}

body:not(.dark-theme) .movie-modal-rating-badge,
body:not(.dark-theme) #movie-modal-rating,
body:not(.dark-theme) .modal-content .movie-badge {
    background: rgba(0, 0, 0, 0.07) !important;
    color: #1e293b !important;
}

/* Quick Links Modal */
.links-popup-content {
    background: var(--bg-card);
    max-width: 600px;
    padding: 12px 8px;
    border-radius: 8px;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.8em;
}

.quick-link-item {
    background: var(--primary-lime);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    padding: 0.6em 1.2em;
    font-weight: 700;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: var(--transition-fast);
}

/* ==========================================================================
   05 DISCORD SECTION & 06 CONNECT SECTION
   ========================================================================== */
.discord-section,
.socials-section {
    padding: 6rem 0;
    position: relative;
}

.social-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1150px;
    margin: 0 auto;
}

@media screen and (max-width: 992px) {
    .social-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .social-cards-grid {
        grid-template-columns: 1fr;
    }
}

.social-card {
    background: var(--bg-main);
    padding: 1.6rem 1.4rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-normal);
    cursor: var(--cursor-pointer);
}

@media screen and (max-width: 480px) {
    .social-card {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }

    .social-card-icon {
        align-self: flex-start;
    }

    .social-action-btn {
        align-self: flex-start;
        width: 100%;
        text-align: center;
    }
}

/* Hover glow & scale effects */
.social-card:hover {
    transform: translateY(-5px) scale(1.02);
}

.social-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: var(--lime-subtle);
    color: var(--lime-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.social-card:hover .social-card-icon {
    background: var(--primary-lime);
    color: #ffffff;
}

.social-card-info {
    flex-grow: 1;
    overflow: hidden;
    min-width: 0;
}

.social-platform-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-handle {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.social-action-btn {
    background: transparent;
    color: var(--text-dark);
    border: none;
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: var(--cursor-pointer);
    transition: var(--transition-fast);
    white-space: nowrap;
}

.social-action-btn:hover {
    background: var(--primary-lime);
    color: #ffffff;
    border-color: var(--primary-lime);
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--bg-dark);
    color: #ffffff;
    padding: 0.9rem 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-lime);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    z-index: 3000;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition-normal);
}

.toast-notification.active {
    transform: translateY(0);
    opacity: 1;
}

/* ==========================================================================
   SECTION CUTS (Wavy Scalloped Edge Cutouts)
   ========================================================================== */
.about-section {
    position: relative;
}

.projects-section,
.movies-section,
.hobbies-section,
.discord-section,
.socials-section {
    position: relative;
}

/* ==========================================================================
   SECTION TRANSITION & FOOTER DIVIDER (Modern Clean Angled Cut / Divider)
   ========================================================================== */
.footer {
    position: relative;
    margin-top: -36px;
    padding: calc(5.5rem + 36px) 0 0 0;
    clip-path: polygon(0 36px, 100% 0, 100% 100%, 0 100%);
    -webkit-mask-image: none !important;
    mask-image: none !important;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 38px;
    background: linear-gradient(90deg, rgba(88, 169, 214, 0.35) 0%, rgba(124, 210, 255, 0.85) 50%, rgba(88, 169, 214, 0.35) 100%);
    clip-path: polygon(0 36px, 100% 0, 100% 2px, 0 38px);
    pointer-events: none;
    z-index: 10;
}

@media screen and (max-width: 768px) {
    .footer {
        margin-top: -24px;
        padding-top: calc(4.5rem + 24px);
        clip-path: polygon(0 24px, 100% 0, 100% 100%, 0 100%);
    }
    .footer::before {
        height: 26px;
        clip-path: polygon(0 24px, 100% 0, 100% 2px, 0 26px);
    }
}

/* ==========================================================================
   FOOTER (Clean & Modern Redesign)
   ========================================================================== */
#footer,
.footer {
    background-color: #e2e8f0;
    color: var(--text-dark);
    position: relative;
}

body.dark-theme #footer,
body.dark-theme .footer {
    background-color: #0b0d12 !important;
    border-top: none !important;
    color: #ffffff;
}

body.dark-theme .footer::before {
    background: linear-gradient(90deg, rgba(124, 210, 255, 0.25) 0%, rgba(124, 210, 255, 0.9) 50%, rgba(124, 210, 255, 0.25) 100%);
    filter: drop-shadow(0 0 8px rgba(124, 210, 255, 0.5));
}


.footer-text {
    color: var(--text-muted) !important;
}

body.dark-theme .footer-text {
    color: var(--text-muted) !important;
}

.footer-title {
    color: var(--text-dark) !important;
}

body.dark-theme .footer-title {
    color: #ffffff !important;
}

.footer-links a {
    color: var(--text-muted) !important;
}

.footer-links a:hover {
    color: var(--primary-lime-hover) !important;
}

body.dark-theme .footer-links a:hover {
    color: var(--primary-lime-light) !important;
}

.footer-bottom p {
    color: var(--text-muted) !important;
}

body.dark-theme .footer-bottom p {
    color: var(--text-muted) !important;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media screen and (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo-title {
    display: inline-block;
    width: fit-content;
    font-family: var(--font-heading);
    font-size: clamp(2.3rem, 4.5vw, 3.2rem);
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0;
    background-image: url('../images/art/artwork_album/artwork_08.jpg');
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent !important;
    -webkit-text-stroke: 1px rgba(15, 23, 42, 0.25);
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.2));
    transition: filter var(--transition-fast), transform var(--transition-fast);
    cursor: default;
}

body.dark-theme .footer-logo-title {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.7);
    filter: drop-shadow(0 3px 14px rgba(0, 0, 0, 0.8));
}

.footer-logo-title:hover {
    filter: drop-shadow(0 4px 18px rgba(182, 230, 253, 0.45)) brightness(1.1);
    transform: translateY(-2px);
}

.footer-logo-sub {
    display: none;
}

.footer-text {
    color: #e0f4ff;
    /* High-contrast light lime green */
    max-width: 400px;
    font-size: 0.95rem;
}

.footer-title {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--primary-lime-bright);
    border-radius: 2px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer-links a {
    color: #e0f4ff;
    /* High-contrast light lime green */
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #e0f4ff;
    /* High-contrast light lime green */
}

.footer-bottom p {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted) !important;
    font-weight: 500;
}

.footer-bottom p i {
    color: var(--primary-lime-hover);
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-bottom p:hover i {
    transform: rotate(-15deg) scale(1.15);
    color: var(--primary-lime-bright);
}

.back-to-top {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: var(--cursor-pointer);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.back-to-top:hover {
    background: #ffffff;
    color: var(--lime-dark);
    transform: translateY(-3px);
}


/* ---- Arrow Nav Container (Fixed & Smooth) ---- */
.arrow-nav-container {
    position: fixed;
    top: calc(100vh - 78px);
    right: 30px;
    z-index: 1050;
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 0;
    transition: top 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
        right 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.arrow-nav-container.at-bottom {
    top: 93px;
    right: 94px;
}

.arrow-nav-btn {
    position: relative;
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    color: var(--primary-lime);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: var(--cursor-pointer);
    z-index: 2;
    transition: all 0.3s ease;
    flex-shrink: 0;

}

.arrow-nav-tooltip {
    position: absolute;
    right: 24px;
    background: var(--bg-card);
    color: var(--text-dark);
    padding: 0;
    border-radius: 24px 0 0 24px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    max-width: 0;
    opacity: 0;
    height: 48px;
    display: flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;

    border: none;
    box-shadow: none !important;
    z-index: 1;
}

.arrow-nav-container:hover .arrow-nav-tooltip {
    max-width: 550px;
    opacity: 1;
    padding: 0 56px 0 18px;
}

.arrow-nav-container:hover .arrow-nav-btn {
    transform: scale(1.05);

    background: var(--primary-lime);
    color: #0f172a;
}

/* ==========================================================================
   SUGGEST FULLSCREEN OVERLAY + IFRAME
   ==========================================================================*/

/* "Ấn vào đây" hint badge — hiện sau 1s hover */
.arrow-nav-hint {
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    background: var(--primary-lime);
    color: #0f172a;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;

    z-index: 10;
}

.arrow-nav-hint::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 14px;
    border: 5px solid transparent;
    border-top-color: var(--primary-lime);
}

.arrow-nav-hint.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Overlay container — slide up từ góc dưới-trái */
.suggest-overlay {
    position: fixed;
    top: 28px;
    left: 28px;
    right: 28px;
    bottom: 28px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    pointer-events: none;
    /* Slide lên từ dưới */
    transform: translateY(calc(100% + 28px));
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    border: 1px solid var(--border-color);
}

.suggest-overlay.active {
    transform: translateY(0);
    pointer-events: all;
}

/* Glass / tráng gương — lớp phía sau iframe */
.suggest-glass {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 26, 0.6);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    z-index: 0;
    border-radius: inherit;
    /* Shimmer animation */
    overflow: hidden;
}

.suggest-glass::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 50%;
    height: 200%;
    background: linear-gradient(105deg,
            transparent 20%,
            rgba(139, 211, 252, 0.06) 50%,
            transparent 80%);
    animation: glassShimmer 2.4s ease-in-out infinite;
}

@keyframes glassShimmer {
    0% {
        left: -60%;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        left: 120%;
        opacity: 0;
    }
}

.suggest-overlay-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.4rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(139, 211, 252, 0.15);
    flex-shrink: 0;
    gap: 1rem;
}

.suggest-overlay-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--primary-lime);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: 0.5px;
}

.suggest-overlay-close {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: var(--cursor-pointer);
    transition: background 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.suggest-overlay-close:hover {
    background: rgba(139, 211, 252, 0.12);
    color: var(--primary-lime);
}

/* Iframe wrapper — glass hiện trước, iframe fade-in sau */
.suggest-iframe-wrap {
    position: relative;
    flex: 1;
    z-index: 1;
}

.suggest-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    opacity: 0;
    transition: opacity 0.5s ease 0.2s;
    /* delay 0.2s sau khi overlay settle */
    background: #fff;
    border-radius: 0 0 16px 16px;
}

.suggest-overlay.iframe-ready .suggest-iframe {
    opacity: 1;
}

/* Navigation Drawer Social Links */
.drawer-socials {

    display: none;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.2rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    width: 100%;
}

.drawer-socials .social-icon-link {
    color: var(--text-dark);
    font-size: 1.2rem;
    width: 32px;
    height: 32px;
    filter: none;
}

.drawer-socials .social-icon-link:hover {
    color: var(--primary-lime-hover);
    transform: translateY(-2px);
}

/* Mobile Adjustments for Socials */
@media screen and (max-width: 768px) {
    .header-socials {
        display: none !important;
    }

    .drawer-socials {
        display: flex !important;
    }
}

/* Ensure container content sits on top of background slants */
.container {
    position: relative;
    z-index: 5;
}

/* Decorative Slant Layers & Animations */
.slant-layer {
    position: absolute;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: 1;
}

/* 1. Hero Slant (polygon layers around hero section) */
.hero-slant {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110vh;
    pointer-events: none;
    z-index: 0;
}

.hero-slant.layer-1 {
    background: rgba(139, 211, 252, 0.22);
    clip-path: polygon(0 0, 0 98.5%, 30% 94%, 55% 99.9%, 75% 92%, 100% 99%, 100% 0);
    animation: slantPulse1 6s infinite alternate ease-in-out;
}

.hero-slant.layer-2 {
    background: rgba(255, 255, 255, 0.15);
    clip-path: polygon(0 0, 0 95%, 20% 90%, 45% 99%, 65% 89%, 100% 97%, 100% 0);
    animation: slantPulse2 8s infinite alternate-reverse ease-in-out;
}

body.dark-theme .hero-slant.layer-1 {
    background: rgba(139, 211, 252, 0.35); /* Glowing lime polygon layer in dark mode */
}

body.dark-theme .hero-slant.layer-2 {
    background: rgba(255, 255, 255, 0.2); /* Translucent accent polygon layer in dark mode */
}

@keyframes slantPulse1 {
    0% {
        transform: scaleY(1) translateY(0);
    }

    100% {
        transform: scaleY(1.18) translateY(-4px);
    }
}

@keyframes slantPulse2 {
    0% {
        transform: scaleY(1) translateY(0);
    }

    100% {
        transform: scaleY(1.15) translateY(-6px);
    }
}

/* Mini Music Player Style */
/* ---- Music Player inside cluster ---- */
.music-player-container {
    position: fixed;
    top: calc(100vh - 136px);
    right: 30px;
    z-index: 1050;
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 0;
    transition: top 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
        right 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.music-player-container.at-bottom {
    top: 93px;
    right: 158px;
}

.music-player-btn {
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    color: var(--primary-lime);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: var(--cursor-pointer);
    z-index: 2;
    transition: all 0.3s ease;
    flex-shrink: 0;

    border: none;
    outline: none;
}

.music-player-btn:hover {
    transform: scale(1.08);
}

.music-player-btn.playing i {
    animation: musicRotate 4s linear infinite;
    color: var(--primary-lime-hover);
}

@keyframes musicRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.music-player-tooltip {
    position: absolute;
    right: 24px;
    background: var(--bg-card);
    color: var(--text-dark);
    padding: 0;
    border-radius: 24px 0 0 24px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    max-width: 0;
    opacity: 0;
    height: 48px;
    display: flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;

    border: none;
    box-shadow: none !important;
    z-index: 1;
}

.music-player-container:hover .music-player-tooltip,
.music-player-container.loading .music-player-tooltip {
    max-width: 240px;
    width: 240px;
    opacity: 1;
    padding: 0 36px 0 18px;
}

/* Inner marquee span for long track names */
.music-player-tooltip .tooltip-track {
    display: inline-block;
    white-space: nowrap;
}

.music-player-tooltip .tooltip-track.scrolling {
    animation: tooltipMarquee 8s linear infinite;
}

@keyframes tooltipMarquee {
    0% {
        transform: translateX(0);
    }

    10% {
        transform: translateX(0);
    }

    80% {
        transform: translateX(var(--scroll-dist, -60px));
    }

    90% {
        transform: translateX(var(--scroll-dist, -60px));
    }

    100% {
        transform: translateX(0);
    }
}



/* Discord Status Badge on Avatar */
.discord-status-badge {
    position: absolute;
    bottom: 12%;
    right: 12%;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 4px solid var(--bg-main);
    z-index: 10;
    transform: translate(25%, 25%);
    pointer-events: none;
    user-select: none;
    transition: background-color var(--transition-fast);
}

.discord-status-badge.online {
    background-color: #23a55a;
}

.discord-status-badge.idle {
    background-color: #f0b232;
}

.discord-status-badge.dnd {
    background-color: #f23f43;
}

.discord-status-badge.offline {
    background-color: #80848e;
}

/* Discord Live Activity Widget */
.discord-activity-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 450px;
    transition: var(--transition-normal);
}

.discord-activity-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.activity-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.activity-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.activity-status-dot.online {
    background-color: #23a55a;
}

.activity-status-dot.idle {
    background-color: #f0b232;
}

.activity-status-dot.dnd {
    background-color: #f23f43;
}

.activity-status-dot.offline {
    background-color: #80848e;
}

.activity-status-text {
    font-size: 0.85rem;
    color: var(--text-dark);
}

.activity-content {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.btn-spotify-play:hover {
    background: var(--primary-lime-hover) !important;
    color: var(--bg-main) !important;
    transform: scale(1.03);
}

.btn-youtube-play:hover {
    background: #FF0000 !important;
    color: #ffffff !important;
    transform: scale(1.03);
}

/* =======================================================
   PROJECTS SECTION
   ======================================================= */
.projects-section {
    background-color: var(--bg-main);
}

.projects-section .section-header {
    position: relative;
    z-index: 20;
    margin-bottom: 0;
}

.projects-section .projects-carousel-wrapper {
    margin-top: 0;
    padding-top: 0;
}

.projects-layout-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 0 !important;
}

@media screen and (max-width: 1024px) {
    .projects-layout-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.projects-image-card {
    position: relative;
    border-radius: 8px;
    overflow: visible;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Specific styling for Kamiii Artwork: position absolute to exclude from height calculations */
.projects-slide[data-slide="1"] .projects-left-col {
    position: relative;
    width: 100%;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kami-artwork-card,
.projects-slide[data-slide="1"] .projects-image-card {
    position: absolute !important;
    top: 70%;
    left: 50%;
    width: 80%;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    z-index: 2;
}

.kami-artwork-card img,
.projects-slide[data-slide="1"] .projects-image-card img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.projects-image-card.fallback-sprout {
    width: 100%;
    min-height: 360px;
    background: var(--bg-card);
    border: 2px dashed rgba(139, 211, 252, 0.4);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    position: relative;
    overflow: hidden;
    padding: 2rem;
    box-sizing: border-box;
}

body.dark-theme .projects-image-card.fallback-sprout {
    background: var(--bg-dark-card, #1e293b);
    border-color: rgba(139, 211, 252, 0.5);
}

.projects-image-card.fallback-sprout .sprout-icon {
    font-size: 5.5rem;
    color: var(--primary-lime);
    filter: drop-shadow(0 0 15px rgba(139, 211, 252, 0.35));
    transform: none !important;
    animation: none !important;
    transition: none !important;
}

.projects-image-card:hover .sprout-icon {
    transform: none !important;
    color: var(--primary-lime) !important;
}

.projects-image-card.fallback-sprout .sprout-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--primary-lime-hover);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.projects-image-card img {
    width: auto;
    max-width: 100%;
    height: auto;
    display: block;
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    width: 100%;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Project Card Base --- */
.project-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: visible;
    /* allow avatar to protrude */
    border: 2px solid transparent;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    min-height: 380px;
    transition: border-color var(--transition-normal);
}

.project-card:hover {
    transform: none;
    border: 2px solid var(--primary-lime-hover);
    /* Viền highlight giống movie-card, không scale/transform */
}

/* Avatar positioned below banner — lives inside .project-card-top which has overflow:visible */
.project-card-top {
    position: relative;
    overflow: visible;
    border-radius: 8px 8px 0 0;
    /* clip only the banner */
}

.project-card-banner {
    position: relative;
    height: 180px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.project-banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    transition: transform 0.5s ease;
}

.project-card:hover .project-banner-bg {
    transform: none;
}

/* Horuzy Kateria banner — forest green gradient */
.horuzy-banner-bg {
    background: linear-gradient(135deg,
            #0d5580 0%,
            #10689e 25%,
            #1279b8 50%,
            #158ecf 75%,
            #10689e 100%);
    background-size: 300% 300%;
    animation: horuzyBannerShift 8s ease infinite;
}

@keyframes horuzyBannerShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Decorative circles in banner */
.horuzy-banner-bg::before {
    display: none;
}

.project-banner-overlay {
    display: none;
}

.project-avatar-wrap {
    position: absolute;
    bottom: -36px;
    left: 24px;
    width: 120px;
    height: 120px;
    z-index: 3;
}

.project-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--bg-card);

    object-fit: cover;
    background: var(--bg-card);
}

/* Status badge top-right */
.project-status-badge {
    position: absolute;
    top: 12px;
    right: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #fff;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(8px);
    padding: 4px 10px;
    border-radius: 999px;
}

.project-status-badge .status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.project-status-badge .status-dot.online {
    background: #22c55e;

    animation: pulseDot 2s ease-in-out infinite;
}

/* No shadow pulse */

/* --- Card Body --- */
.project-card-body {
    padding: 45px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

/* Tags row */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.project-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.05);
    color: #475569;
    border: none;
    transition: all var(--transition-fast, 0.2s ease);
}

.project-tag:hover {
    background: rgba(0, 0, 0, 0.09);
    color: #1e293b;
}

body.dark-theme .project-tag {
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.85) !important;
    border: none !important;
}

body.dark-theme .project-tag:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

/* Title */
.project-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    margin: 0 6px;
}

.project-title span {
    color: var(--primary-lime);
}

/* Description */
.project-desc {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 2px 6px;
}

/* Feature grid */
.project-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.project-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 7px 10px;
    transition: background 0.2s ease, color 0.2s ease;
}

.project-feature:hover {
    background: var(--lime-subtle);
    color: var(--primary-lime-hover);
    border-color: rgba(139, 211, 252, 0.3);
}

body.dark-theme .project-feature:hover {
    background: rgba(139, 211, 252, 0.12);
    color: var(--primary-lime-bright);
}

.project-feature i {
    font-size: 0.9rem;
    color: var(--primary-lime);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

/* Action buttons row */
.project-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}

.project-btn {
    flex: 1;
    min-width: 110px;
    justify-content: center;
    font-size: 0.85rem;
    padding: 9px 16px;
}

/* --- Coming Soon Card --- */
.project-card-soon {
    min-height: 320px;
    border: 2px dashed var(--border-color);
    background: transparent;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card-soon:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--primary-lime);
}

.project-soon-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 32px;
    text-align: center;
}

.project-soon-icon {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    background: var(--lime-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-lime);
}

body.dark-theme .project-soon-icon {
    background: rgba(139, 211, 252, 0.12);
}

.project-soon-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.project-soon-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 220px;
}

/* Animated loading dots */
.project-soon-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.project-soon-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-lime);
    animation: bounceDot 1.4s ease-in-out infinite both;
}

.project-soon-dots span:nth-child(1) {
    animation-delay: 0s;
}

.project-soon-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.project-soon-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounceDot {

    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.4;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* =======================================================
   HERO CLIP LAYERS (Parallax depth effect)
   ======================================================= */
.hero-clips {
    position: relative;
    width: 100%;
    height: 0;
    overflow: visible;
    pointer-events: none;
    z-index: 2;
}

.hero-clip-layer {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
    will-change: transform;
}

/* Layer 1 — deepest, darkest, leftward diagonal slash (mark 1) */
.hcl-1 {
    top: -120px;
    height: 120px;
    clip-path: polygon(0 60%, 40% 100%, 100% 40%, 100% 100%, 0 100%);
    background: var(--bg-main);
    opacity: 0.92;
}

/* Layer 2 — mid, rightward arc (mark 2) */
.hcl-2 {
    top: -90px;
    height: 90px;
    clip-path: polygon(0 80%, 60% 30%, 100% 70%, 100% 100%, 0 100%);
    background: var(--bg-main);
    opacity: 0.96;
}

/* Layer 3 — front, centre wave peak (mark 3) */
.hcl-3 {
    top: -60px;
    height: 60px;
    clip-path: polygon(0 100%, 0 50%, 30% 0%, 70% 0%, 100% 50%, 100% 100%);
    background: var(--bg-main);
    opacity: 1;
}

/* Animated accent spans inside each clip layer */
.hcl-span {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-lime);
    opacity: 0;
    transform: scale(0);
    animation: hclSpanPop 3s ease-in-out infinite;
    pointer-events: none;
}

.hcl-1 .s1 {
    width: 80px;
    height: 80px;
    left: 8%;
    top: 20%;
    animation-delay: 0s;
    opacity: 0.08;
}

.hcl-1 .s2 {
    width: 50px;
    height: 50px;
    left: 35%;
    top: 60%;
    animation-delay: 0.6s;
}

.hcl-1 .s3 {
    width: 30px;
    height: 30px;
    left: 70%;
    top: 30%;
    animation-delay: 1.2s;
}

.hcl-2 .s1 {
    width: 60px;
    height: 60px;
    left: 55%;
    top: 50%;
    animation-delay: 0.3s;
}

.hcl-2 .s2 {
    width: 40px;
    height: 40px;
    left: 85%;
    top: 20%;
    animation-delay: 0.9s;
}

.hcl-3 .s1 {
    width: 70px;
    height: 70px;
    left: 20%;
    top: 30%;
    animation-delay: 0.15s;
}

.hcl-3 .s2 {
    width: 45px;
    height: 45px;
    left: 48%;
    top: 60%;
    animation-delay: 0.75s;
}

.hcl-3 .s3 {
    width: 25px;
    height: 25px;
    left: 80%;
    top: 40%;
    animation-delay: 1.35s;
}

@keyframes hclSpanPop {
    0% {
        opacity: 0;
        transform: scale(0) translateY(0);
    }

    30% {
        opacity: 0.12;
        transform: scale(1) translateY(-8px);
    }

    60% {
        opacity: 0.08;
        transform: scale(0.9) translateY(4px);
    }

    100% {
        opacity: 0;
        transform: scale(0) translateY(0);
    }
}

/* Dark mode clip layer */
body.dark-theme .hcl-1,
body.dark-theme .hcl-2,
body.dark-theme .hcl-3 {
    background: var(--bg-main);
}

/* =======================================================
   AI CHATBOT FAB BUTTON (Floating cluster matching music player)
   ======================================================= */
.chatbot-fab-container {
    position: fixed;
    top: calc(100vh - 194px);
    right: 30px;
    z-index: 1050;
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 0;
    transition: top 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
        right 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.chatbot-fab-container.at-bottom {
    top: 93px;
    right: 222px;
}

.chatbot-fab-btn {
    position: relative;
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    color: var(--primary-lime);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: var(--cursor-pointer);
    z-index: 2;
    transition: all 0.3s ease;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
    overflow: hidden;
    padding: 0;
}

.chatbot-fab-btn img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.chatbot-fab-container:hover .chatbot-fab-btn {
    transform: scale(1.05);
    background: var(--primary-lime);
    color: #0f172a;
}

.chatbot-fab-tooltip {
    position: absolute;
    right: 24px;
    background: var(--bg-card);
    color: var(--text-dark);
    padding: 0;
    border-radius: 24px 0 0 24px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    max-width: 0;
    opacity: 0;
    height: 48px;
    display: flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;
    border: none;
    box-shadow: none !important;
    z-index: 1;
}

.chatbot-fab-container:hover .chatbot-fab-tooltip {
    max-width: 300px;
    opacity: 1;
    padding: 0 54px 0 18px;
}

/* =======================================================
   AI CHATBOT PANEL & BACKDROP OVERLAY
   ======================================================= */
.chatbot-wrapper {
    position: fixed;
    inset: 0;
    z-index: 2200;
    pointer-events: none;
    overflow: hidden;
}

.chatbot-wrapper.open {
    pointer-events: auto;
}

.chatbot-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(11, 13, 18, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2195;
    opacity: 0;
    pointer-events: none;
    touch-action: none;
    cursor: var(--cursor-pointer);
    transition: opacity 0.38s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.chatbot-wrapper.open .chatbot-overlay,
.chatbot-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.chatbot-panel {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: 390px;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-card);
    border: none;
    border-left: none;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    z-index: 2200;
    overflow: visible;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.38s cubic-bezier(0.165, 0.84, 0.44, 1),
        opacity 0.3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

@media screen and (max-width: 600px) {
    .chatbot-panel {
        width: 100vw;
        width: 100dvw;
        left: 0;
        right: 0;
        border-left: none;
        border-radius: 0;
    }
}

.chatbot-panel.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
}

/* Panel header */
.chatbot-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.4rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(139, 211, 252, 0.1);
    flex-shrink: 0;
}

.chatbot-header-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.chatbot-avatar-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-lime);
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    overflow: hidden;
}

.chatbot-avatar-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.chatbot-header-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-dark);
    display: block;
    line-height: 1.2;
}

.chatbot-header-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--primary-lime-hover);
    margin-top: 2px;
}

.status-dot-green {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
}

.chatbot-close-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: var(--cursor-pointer);
    color: var(--text-muted);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s, color 0.2s;
}

.chatbot-close-btn:hover {
    background: var(--primary-lime);
    color: #ffffff !important;
    transform: scale(1.05);
}

/* Live2D Avatar Container inside Chatbot Panel */
.chatbot-live2d-container {
    position: fixed;
    bottom: 65px;
    right: 0px;
    width: 220px;
    height: 250px;
    pointer-events: auto;
    cursor: var(--cursor-grab);
    cursor: move;
    z-index: 2250; /* Fixed above panel background */
    display: none; /* Only visible on PC/Desktop (width >= 769px) */
    user-select: none;
    touch-action: none;
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.chatbot-live2d-container.is-dragging {
    transition: none !important;
    cursor: var(--cursor-grabbing) !important;
}

.chatbot-live2d-container:active {
    cursor: var(--cursor-grabbing);
}

@media screen and (min-width: 769px) {
    .chatbot-live2d-container {
        display: block;
    }
    .chatbot-messages {
        padding-bottom: 210px; /* Leave space so bottom messages scroll cleanly above model */
    }
}

#chatbot-live2d-canvas {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Floating Sitting Live2D Model */
.floating-live2d-container {
    position: fixed;
    left: 20px;
    bottom: 0px;
    width: 220px;
    height: 250px;
    z-index: 998;
    cursor: var(--cursor-grab);
    cursor: move;
    display: none;
    transition: width 0.3s ease, height 0.3s ease, filter 0.35s ease, left 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), top 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), bottom 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    user-select: none;
    touch-action: none;
}

.floating-live2d-container.active {
    display: block;
}

.floating-live2d-container.is-dragging {
    transition: filter 0.35s ease !important;
    cursor: var(--cursor-grabbing) !important;
}

.floating-live2d-container:hover {
    transform: none;
    filter: drop-shadow(0 0 16px rgba(147, 168, 255, 0.85)) drop-shadow(0 0 30px rgba(124, 158, 255, 0.5));
}

.floating-live2d-container.no-shadow,
.floating-live2d-container.no-shadow:hover {
    filter: none !important;
}

@media screen and (max-width: 768px) {
    .floating-live2d-container {
        display: none !important;
    }
}

/* Messages area */
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    scroll-behavior: smooth;
}

.chatbot-messages::-webkit-scrollbar {
    width: 4px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 999px;
}

/* Sender Header for Grouped Messages */
.chat-sender-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    margin-bottom: 2px;
    align-self: flex-start;
    animation: bubbleFadeIn 0.2s ease;
}

.chat-sender-header:first-child {
    margin-top: 0;
}

.chat-sender-header .bubble-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    margin-top: 0;
    overflow: hidden;
    flex-shrink: 0;
}

.chat-sender-name {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: 0.2px;
}

body.dark-theme .chat-sender-name {
    color: #e2e8f0;
}

/* Chat bubbles */
.chat-bubble {
    display: flex;
    max-width: 85%;
    animation: bubbleFadeIn 0.2s ease;
}

@keyframes bubbleFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.bot-bubble {
    align-self: flex-start;
    margin-left: 34px;
}

.user-bubble {
    align-self: flex-end;
    margin-top: 8px;
    margin-bottom: 2px;
}

.bubble-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-lime);
    color: #0f172a;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    margin-top: 2px;
}

body.dark-theme .bubble-avatar {
    background: var(--primary-lime);
    color: #0f172a;
}

.bubble-content {
    padding: 9px 14px;
    border-radius: 12px;
    font-size: 0.88rem;
    line-height: 1.5;
    word-break: break-word;
    border: none !important;
}

.bot-bubble .bubble-content {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
    border: none !important;
    border-top-left-radius: 4px;
}

body.dark-theme .bot-bubble .bubble-content {
    background: rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
    border: none !important;
}

.user-bubble .bubble-content {
    background: var(--primary-lime);
    color: #0f172a;
    font-weight: 500;
    border: none !important;
    border-top-right-radius: 4px;
}

/* Typing indicator */
.typing-bubble {
    align-self: flex-start;
    display: flex;
    margin-left: 34px;
    animation: bubbleFadeIn 0.2s ease;
}

.typing-content {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.05);
    border: none !important;
    border-radius: 12px;
    border-top-left-radius: 4px;
}

body.dark-theme .typing-content {
    background: rgba(255, 255, 255, 0.08);
    border: none !important;
}

/* Smooth pulsing dots without jumping */
.typing-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.typing-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-lime);
    animation: typingPulse 1.2s ease-in-out infinite both;
    display: block;
}

.typing-dots span:nth-child(1) {
    animation-delay: 0s;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.85);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}


/* Input row */
.chatbot-input-wrap,
.chatbot-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
    background: var(--bg-card);
    width: 100%;
    box-sizing: border-box;
}

.chatbot-input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-main);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s;
}

.chatbot-input:focus {
    border-color: var(--primary-lime);
    outline: none;
}

.chatbot-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: none;
    background: var(--primary-lime);
    color: #0f172a;
    cursor: var(--cursor-pointer);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.chatbot-send-btn:hover {
    background: var(--primary-lime-hover);
    color: #0f172a;
    transform: scale(1.05);
}

.chatbot-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Discord Emoji styling */
.discord-emoji-img {
    height: 22px;
    width: auto;
    vertical-align: middle;
    margin: 0 2px;
}

/* When chat bubble only contains emojis (Discord single emoji zoom) */
.chat-bubble.bot-bubble .only-emoji-bubble {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.only-emoji-bubble .discord-emoji-img {
    height: 48px;
    width: auto;
    margin: 4px;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .chatbot-panel {
        width: calc(100vw - 32px);
        right: 16px;
        bottom: 80px;
        max-height: 70vh;
    }

    .chatbot-fab {
        right: 16px;
        bottom: 16px;
    }
}

/* Background Particles Container */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Elevated to sit above section backgrounds but below content container */
    pointer-events: none;
    /* Allows user to click elements/cards through particles layer */
}

/* Ensure all section contents sit above the particles layer */
.container {
    position: relative;
    z-index: 2;
}

/* =======================================================
   MOVIES HUB EXTENSION — SCAN OVERLAY & HUB PANEL
   ======================================================= */

/* 1. Skeleton Loading & Shimmer Effect */
.skeleton-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    min-height: 180px;
    border: none;
}

body.dark-theme .skeleton-card {
    background: var(--bg-dark-card, #1e293b);
}

.skeleton-shimmer {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.03) 25%,
            rgba(255, 255, 255, 0.09) 37%,
            rgba(255, 255, 255, 0.03) 63%);
    background-size: 400px 100%;
    animation: shimmerSwipe 1.4s infinite linear;
}

body.dark-theme .skeleton-shimmer {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.02) 25%,
            rgba(255, 255, 255, 0.06) 37%,
            rgba(255, 255, 255, 0.02) 63%);
    background-size: 400px 100%;
}

@keyframes shimmerSwipe {
    0% {
        background-position: -150px 0;
    }

    100% {
        background-position: 250px 0;
    }
}

/* Skeleton parts style */
.skeleton-poster {
    width: 130px;
    height: 100%;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
}

.skeleton-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    gap: 12px;
}

.skeleton-line {
    height: 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.skeleton-line.tag {
    width: 30%;
    height: 18px;
    border-radius: 4px;
}

.skeleton-line.title {
    width: 60%;
    height: 20px;
}

.skeleton-line.subtitle {
    width: 40%;
    height: 14px;
}

.skeleton-line.desc-1 {
    width: 90%;
}

.skeleton-line.desc-2 {
    width: 85%;
}

.skeleton-line.desc-3 {
    width: 50%;
}

/* 2. Full Movies Hub Panel */
.movies-hub-panel {
    position: fixed;
    inset: 0;
    background: var(--bg-main);
    z-index: 9998;
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        visibility 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.movies-hub-panel.open {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.movies-hub-close {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(139, 211, 252, 0.15);
    color: var(--primary-lime);
    border: 1px solid rgba(139, 211, 252, 0.3);
    cursor: var(--cursor-pointer);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
}

.movies-hub-close:hover {
    background: var(--primary-lime);
    color: #ffffff;
    transform: scale(1.05);
}

.movies-hub-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 3rem;
}

@media screen and (max-width: 768px) {
    .movies-hub-content {
        padding: 70px 1.25rem 30px 1.25rem;
    }

    .movies-hub-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .movies-hub-header {
        margin-bottom: 2.5rem;
    }
}

.movies-hub-header {
    text-align: center;
    margin-bottom: 4rem;
}

.hub-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.hub-title span {
    color: var(--primary-lime);
}

.hub-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

/* 3. Section Structures */
.hub-section {
    margin-bottom: 4.5rem;
}

.hub-section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    border-left: 4px solid var(--primary-lime);
    padding-left: 12px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
}

/* Grids for cards */
.hub-fav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .hub-fav-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .hub-fav-grid {
        grid-template-columns: 1fr;
    }
}

.hub-watched-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Movie Card horizontal style */
.hub-movie-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    transition: transform 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
    box-sizing: border-box;
    min-height: 180px;
}

body.dark-theme .hub-movie-card {
    background: var(--bg-dark-card, #1e293b);
}

.hub-movie-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-lime-hover);
}

.hub-card-poster-wrap {
    position: relative;
    width: 130px;
    flex-shrink: 0;
    overflow: hidden;
}

.hub-card-poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hub-card-imdb {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.85);
    color: var(--primary-lime-bright);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.hub-card-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    gap: 8px;
}

.hub-card-tags {
    display: flex;
    gap: 6px;
}

.hub-tag {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.05);
    color: #475569;
    padding: 3px 8px;
    border-radius: 6px;
    border: none;
    transition: all var(--transition-fast, 0.2s ease);
}

body.dark-theme .hub-tag {
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.85) !important;
    border: none !important;
}

body.dark-theme .hub-tag:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

.hub-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
}

.hub-card-subtitle {
    font-size: 0.85rem;
    color: var(--primary-lime);
    margin: 0;
    font-weight: 600;
}

.hub-card-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Scroll Trigger styling */
.watched-trigger {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    width: 100%;
}

.watched-loading-spinner {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    display: none;
}

/* Card entry animation */
.reveal-hub-card {
    animation: hubCardReveal 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes hubCardReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .hub-movie-card {
        flex-direction: column;
    }

    .hub-card-poster-wrap {
        width: 100%;
        height: 180px;
    }
}

/* 4. IMDb Button Styling */
.hub-imdb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(245, 197, 24, 0.1);
    color: #f5c518;
    border: 1px solid rgba(245, 197, 24, 0.3);
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none !important;
    width: fit-content;
    margin-top: 10px;
    transition: all 0.25s ease;
}

.hub-imdb-btn i.fa-imdb {
    font-size: 1.25rem;
}

.hub-imdb-btn:hover {
    background: #f5c518;
    color: #000000;
    transform: translateY(-2px);

}

/* inline btn spacing adjustments in horizontal watched card */
.inline-imdb-btn {
    margin-top: 15px;
    align-self: flex-start;
}

/* Avatar Decoration styling to ensure perfect display on all avatars */
.avatar-decoration {
    position: absolute !important;
    pointer-events: none !important;
    z-index: 6 !important;
    border-radius: 0 !important;
    object-fit: contain !important;
    box-shadow: none !important;
}

/* Hero Avatar Decoration styling */
.hero-avatar-decoration {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: scale(1.2) !important;
}

/* About Mini-Profile Avatar Decoration styling */
.about-avatar-decoration {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: scale(1.2) !important;
}

/* Section 05 Discord Profile Card Avatar Decoration styling */
.card-user-avatar-decoration {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: scale(1.2) !important;
    transform-origin: center center !important;
    pointer-events: none !important;
    z-index: 6 !important;
}

/* Skeleton Loading Effect */
.skeleton {
    position: relative;
    overflow: hidden;
    background-color: #e2e8f0;
    border-radius: 50%;
    animation: skeleton-shimmer 1.5s linear infinite alternate;
}

.skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: translateX(-100%);
    animation: skeleton-sweep 1.5s infinite;
}

.skeleton img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skeleton:not(.skeleton) img {
    opacity: 1;
}

/* Make image visible once skeleton class is removed */
.character-img-wrapper:not(.skeleton) img {
    opacity: 1;
}

body.dark-theme .skeleton {
    background-color: #1e293b;
    animation: skeleton-shimmer-dark 1.5s linear infinite alternate;
}

@keyframes skeleton-shimmer {
    0% {
        background-color: #e2e8f0;
    }

    100% {
        background-color: #cbd5e1;
    }
}

@keyframes skeleton-shimmer-dark {
    0% {
        background-color: #1e293b;
    }

    100% {
        background-color: #334155;
    }
}

@keyframes skeleton-sweep {
    100% {
        transform: translateX(100%);
    }
}

/* Background canvas layout & subtle thematic opacity */
#bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}

#bg-canvas.ready {
    opacity: 0.16;
}

body.dark-theme #bg-canvas.ready {
    opacity: 0.16;
}

/* Interactive white triangle particles canvas across whole page (including hero) */
#falling-particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    opacity: 0.75;
}

body.dark-theme #falling-particles-canvas {
    opacity: 0.65;
}

/* Custom Loader */
.loader {
  --color-1: #fff;
  --size: 1px;

  width: calc(84 * var(--size));
  height: calc(84 * var(--size));
  position: relative;
}
.loader:before,
.loader:after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: calc(64 * var(--size));
  height: calc(64 * var(--size));
  border-radius: 50%;
  background: var(--color-1);
  transform: translate(-50%, -100%) scale(0);
  animation: push 2s infinite linear;
}
.loader:after {
  animation-delay: 1s;
}
@keyframes push {
  0%,
  50% {
    transform: translate(-50%, 0%) scale(1);
  }
  100% {
    transform: translate(-50%, -100%) scale(0);
  }
}

/* Inline Particles preloader */
#particles-loader {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    --size: 0.6px;
    /* Small clean loader */
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#particles-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Mobile artwork display optimization for About Me & Projects */
@media screen and (max-width: 768px) {
    .about-right-col,
    .about-image-card,
    .projects-image-card {
        display: none !important;
    }

    .about-grid,
    .projects-layout-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

/* ==========================================================================
   05 SOCIALS SECTION & QUICK LINKS POPUP STYLES
   ========================================================================== */
.social-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    border: 2px solid transparent;
    box-sizing: border-box;
    transition: var(--transition-normal);
    text-decoration: none;
    color: inherit;
    cursor: var(--cursor-pointer, pointer);
    position: relative;
    overflow: hidden;
}

body.dark-theme .social-card {
    background: var(--bg-dark-card, #1e293b);
}

.social-card:hover {
    border: 2px solid var(--primary-lime-hover);
}

.social-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: rgba(139, 211, 252, 0.12);
    color: var(--primary-lime);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

body.dark-theme .social-card-icon {
    background: rgba(139, 211, 252, 0.15);
    color: var(--primary-lime-bright);
}

.social-card:hover .social-card-icon {
    background: var(--primary-lime);
    color: #ffffff;
}

.social-card-info {
    flex: 1;
    min-width: 0;
}

.social-platform-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.social-handle {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.social-action-btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: var(--font-heading);
    border-radius: 6px;
    background: transparent;
    color: var(--primary-lime);
    border: none;
    cursor: var(--cursor-pointer);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.quick-link-item {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    box-sizing: border-box;
    transition: var(--transition-normal);
}

body.dark-theme .quick-link-item {
    background: var(--bg-dark-card, #1e293b);
}

.quick-link-item i {
    font-size: 1.25rem;
    color: var(--primary-lime);
    transition: var(--transition-fast);
}

.quick-link-item:hover {
    border: 2px solid var(--primary-lime-hover);
    color: var(--primary-lime);
}

/* ==========================================================================
   MOBILE HIDE RULES: Horuzy Chatbot & Falling Particles
   ========================================================================== */
@media screen and (max-width: 768px) {
    /* Hide Horuzy chatbot completely on mobile */
    .chatbot-fab-container,
    #chatbot-fab-container,
    .chatbot-fab-btn,
    #chatbot-fab,
    .chatbot-fab-tooltip,
    #chatbot-fab-tooltip,
    .chatbot-panel,
    #chatbot-panel,
    .chatbot-live2d-container,
    #chatbot-live2d-container,
    #chatbot-live2d-canvas {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* Hide particles layer and particles loader on mobile to prevent lag */
    #falling-particles-canvas,
    #particles-js,
    #particles-loader,
    .falling-particles-canvas {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* Site-wide native image & link drag disabling */
img, video, iframe, a {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

/* ==========================================================================
   PROJECTS CAROUSEL SLIDER STYLING
   ========================================================================== */
.projects-carousel-wrapper {
    position: relative;
    overflow: visible;
    width: 100%;
    padding: 1rem 0;
    user-select: none;
    touch-action: pan-y;
}

.projects-slides-window {
    width: 100%;
    overflow: visible;
}

.project-subtitle {
    position: relative;
    z-index: 20;
}

.projects-slides-track {
    display: flex;
    width: 400%;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: var(--cursor-grab);
}

.projects-slides-track.is-dragging {
    transition: none !important;
    cursor: var(--cursor-grabbing);
}

.projects-slides-track.is-dragging img,
.projects-slides-track.is-dragging a {
    pointer-events: none !important;
}

.projects-slide {
    width: 25%;
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 0 0.5rem;
}

/* Nav arrows on far outer left & right edges (Icon ONLY, no bg, no border, 50% opacity when visible) */
.projects-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    height: auto;
    background: transparent !important;
    color: #1e293b !important; /* Dark color in light theme */
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.2rem;
    cursor: var(--cursor-pointer);
    z-index: 30;
    opacity: 0;
    pointer-events: none;
    padding: 0;
    transition: opacity 0.3s ease, color 0.2s ease, transform 0.2s ease;
}

body.dark-theme .projects-nav-btn {
    background: transparent !important;
    color: #ffffff !important; /* White color in dark theme */
    border: none !important;
    box-shadow: none !important;
}

.projects-nav-btn.visible {
    opacity: 0.5; /* 50% opacity when mouse is in left/right screen half */
    pointer-events: auto;
}

.projects-nav-btn:hover {
    opacity: 1 !important;
    transform: translateY(-50%) scale(1.15);
}

.projects-prev-btn {
    left: -50px;
}

.projects-next-btn {
    right: -50px;
}

@media screen and (max-width: 1400px) {
    .projects-prev-btn {
        left: -30px;
    }
    .projects-next-btn {
        right: -30px;
    }
}

@media screen and (max-width: 1024px) {
    .projects-prev-btn {
        left: 0px;
    }
    .projects-next-btn {
        right: 0px;
    }
}

/* Carousel Dots */
.projects-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 1.5rem;
}

.projects-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(139, 211, 252, 0.3);
    cursor: var(--cursor-pointer);
    transition: width 0.3s ease, background 0.3s ease, border-radius 0.3s ease;
}

.projects-dot.active {
    width: 30px;
    border-radius: 6px;
    background: var(--primary-lime-hover);
}

/* ==========================================================================
   RESPONSIVE UI/UX ENHANCEMENTS & MOBILE FIXES
   ========================================================================== */
@media screen and (max-width: 768px) {
    /* Hide projects nav arrows on mobile (swipe/drag gestures used instead) */
    .projects-prev-btn,
    .projects-next-btn {
        display: none !important;
    }

    /* Clean up grid columns when artwork cards are hidden on mobile */
    .projects-left-col:empty,
    .projects-right-col:empty {
        display: none !important;
    }

    /* Header padding optimization for tablet & mobile */
    .header {
        padding: 0.9rem 1.25rem;
    }

    .header.scrolled {
        padding: 0.6rem 1rem;
    }
}

@media screen and (max-width: 600px) {
    .header {
        padding: 0.8rem 1rem;
    }

    .header.scrolled {
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        padding: 0.5rem 0.8rem;
    }

    /* Compact header socials on mobile to prevent overflow/wrap */
    .header-socials {
        gap: 0.4rem;
    }

    .header-socials .social-icon-link {
        width: 32px;
        height: 32px;
        font-size: 1.15rem;
    }

    /* Centered toast notification on mobile */
    .toast-notification {
        bottom: 20px;
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(100px);
        width: 90vw;
        max-width: 360px;
        justify-content: center;
        text-align: center;
    }

    .toast-notification.active {
        transform: translateX(-50%) translateY(0);
    }
}

@media screen and (max-width: 550px) {
    /* Brand title scaling for small mobile screens */
    .brand-title-main {
        font-size: 3rem;
    }

    .brand-title-main::before {
        -webkit-text-stroke: 2px #ffffff !important;
    }

    .brand-subtitle-sub {
        font-size: 1.25rem;
        letter-spacing: 5px;
    }

    .brand-subtitle-sub::before {
        -webkit-text-stroke: 2px #ffffff !important;
    }
}

/* ==========================================================================
   THEME TRANSITION EFFECT (Top-Left Corner Sweep)
   ========================================================================== */
::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}

::view-transition-old(root) {
    z-index: 1;
}

::view-transition-new(root) {
    z-index: 9999;
}

.theme-sweep-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    pointer-events: none;
    display: none;
}

/* ==========================================================================
   CUSTOM TIPPY TOOLTIP THEME (RINTARY TAZIRU)
   Replaces native browser ~0.5s title tooltips with responsive custom UI
   ========================================================================== */
.arrow-nav-hint {
    display: none !important; /* Hide old delayed hover badge in favor of Tippy custom tooltip */
}

.tippy-box[data-theme~='rintary'] {
    border: none;
    border-radius: 8px;
    font-family: 'Lexend', var(--font-primary, sans-serif);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.3px;
    box-shadow: none !important;
    padding: 4px 10px;
}

/* Chế độ sáng (Light Mode): Tooltip nền TỐI, chữ SÁNG */
body:not(.dark-theme) .tippy-box[data-theme~='rintary'],
body:not(.dark-theme) .chatbot-fab-tooltip,
body:not(.dark-theme) .music-player-tooltip,
body:not(.dark-theme) .arrow-nav-tooltip {
    background-color: #0f172a !important;
    background: #0f172a !important;
    color: #f8fafc !important;
}

body:not(.dark-theme) .tippy-box[data-theme~='rintary'][data-placement^='top'] > .tippy-arrow::before {
    border-top-color: #0f172a !important;
}
body:not(.dark-theme) .tippy-box[data-theme~='rintary'][data-placement^='bottom'] > .tippy-arrow::before {
    border-bottom-color: #0f172a !important;
}
body:not(.dark-theme) .tippy-box[data-theme~='rintary'][data-placement^='left'] > .tippy-arrow::before {
    border-left-color: #0f172a !important;
}
body:not(.dark-theme) .tippy-box[data-theme~='rintary'][data-placement^='right'] > .tippy-arrow::before {
    border-right-color: #0f172a !important;
}

body:not(.dark-theme) .arrow-nav-tooltip .arrow-key-tag {
    color: #f8fafc !important;
}
body:not(.dark-theme) .arrow-nav-tooltip kbd {
    background: #1e293b !important;
    color: var(--primary-lime-bright) !important;
    border-color: #334155 !important;
    box-shadow: none !important;
}

/* Chế độ tối (Dark Mode): Tooltip nền SÁNG, chữ TỐI */
body.dark-theme .tippy-box[data-theme~='rintary'],
body.dark-theme .chatbot-fab-tooltip,
body.dark-theme .music-player-tooltip,
body.dark-theme .arrow-nav-tooltip {
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #0f172a !important;
}

body.dark-theme .tippy-box[data-theme~='rintary'][data-placement^='top'] > .tippy-arrow::before {
    border-top-color: #ffffff !important;
}
body.dark-theme .tippy-box[data-theme~='rintary'][data-placement^='bottom'] > .tippy-arrow::before {
    border-bottom-color: #ffffff !important;
}
body.dark-theme .tippy-box[data-theme~='rintary'][data-placement^='left'] > .tippy-arrow::before {
    border-left-color: #ffffff !important;
}
body.dark-theme .tippy-box[data-theme~='rintary'][data-placement^='right'] > .tippy-arrow::before {
    border-right-color: #ffffff !important;
}

body.dark-theme .arrow-nav-tooltip .arrow-key-tag {
    color: #0f172a !important;
}
body.dark-theme .arrow-nav-tooltip kbd {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
    box-shadow: none !important;
}

/* Đảm bảo tuyệt đối không có tooltip nào được phép có viền hoặc shadow */
.tippy-box,
[data-tippy-root] .tippy-box,
.tippy-content,
.chatbot-fab-tooltip,
.music-player-tooltip,
.arrow-nav-tooltip {
    border: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
}

/* Tooltip Smooth Transitions & Micro-Animations */
.tippy-box {
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, visibility 0.2s ease !important;
    will-change: transform, opacity;
}

.tippy-box[data-animation='shift-away'][data-state='hidden'] {
    opacity: 0 !important;
    transform: translateY(6px) scale(0.96) !important;
}
.tippy-box[data-animation='shift-away'][data-state='hidden'][data-placement^='bottom'] {
    transform: translateY(-6px) scale(0.96) !important;
}
.tippy-box[data-animation='shift-away'][data-state='hidden'][data-placement^='left'] {
    transform: translateX(6px) scale(0.96) !important;
}
.tippy-box[data-animation='shift-away'][data-state='hidden'][data-placement^='right'] {
    transform: translateX(-6px) scale(0.96) !important;
}

/* Floating Action Tooltips Smooth Slide & Fade Transition */
.arrow-nav-tooltip,
.music-player-tooltip,
.chatbot-fab-tooltip {
    transform: translateX(8px);
    transition: max-width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.25s ease,
                padding 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    will-change: transform, opacity, max-width;
}

.arrow-nav-container:hover .arrow-nav-tooltip,
.music-player-container:hover .music-player-tooltip,
.music-player-container.loading .music-player-tooltip,
.chatbot-fab-container:hover .chatbot-fab-tooltip {
    transform: translateX(0);
}

/* ==========================================================================
   ANALYTICS & KEYBOARD SHORTCUTS UI STYLES
   ========================================================================== */

.arrow-nav-tooltip-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 4px;
}

.arrow-nav-stat-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--lime-subtle, rgba(139, 211, 252, 0.15));
    color: var(--primary-lime);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 700;
}

.arrow-stat-icon {
    font-size: 0.85rem;
}

.arrow-nav-keys-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.arrow-key-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--text-dark);
    opacity: 0.9;
}

.arrow-key-tag kbd, kbd {
    background: var(--bg-surface, #1e293b);
    color: var(--primary-lime);
    border: 1px solid var(--border-color, rgba(139, 211, 252, 0.3));
    padding: 2px 6px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

body:not(.dark-theme) kbd {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

/* Analytics Popup Modal Content */
.analytics-popup-content,
#analytics-modal .modal-content {
    max-width: 680px;
    width: 90%;
    border-radius: 16px;
    background: var(--bg-card, #121417);
    color: var(--text-dark, #f8fafc);
    box-shadow: none !important;
}

.analytics-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: var(--bg-surface, #1a1d24);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-lime);
}

.stat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(139, 211, 252, 0.15);
    color: var(--primary-lime);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.stat-card-info {
    display: flex;
    flex-direction: column;
}

.stat-card-label {
    font-size: 0.78rem;
    color: var(--text-muted, #94a3b8);
    font-weight: 600;
}

.stat-card-val {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-dark, #ffffff);
}

.visited-title, .keyboard-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.visited-urls-list {
    max-height: 180px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-right: 4px;
}

.visited-item {
    background: var(--bg-surface, #1a1d24);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.05));
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
}

.visited-item-left {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    overflow: hidden;
}

.visited-icon {
    color: var(--primary-lime);
    font-size: 0.9rem;
}

.visited-details {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.visited-url {
    font-weight: 700;
    color: var(--primary-lime-light, #b6e6fd);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.visited-title-text {
    font-size: 0.75rem;
    color: var(--text-muted, #94a3b8);
}

.visited-item-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.visited-badge {
    background: rgba(139, 211, 252, 0.15);
    color: var(--primary-lime);
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.visited-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.keyboard-keys-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

/* ==========================================================================
   RIPPLE EFFECT FOR BUTTONS
   ========================================================================== */

button:not(.modal-close):not(.suggest-overlay-close):not(.projects-nav-btn):not(.movies-nav-btn):not(.skills-nav-btn),
.btn,
.social-icon-link,
.quick-link-item,
.social-action-btn,
.arrow-nav-btn,
.music-player-btn,
.chatbot-fab-btn,
.chatbot-send-btn,
.chatbot-close-btn,
.menu-toggle,
.theme-toggle-btn,
.back-to-top,
.hobby-detail-btn,
.poster-imdb-btn,
.quick-sidebar-link,
.drawer-link {
    position: relative;
    overflow: hidden;
}

.modal-close,
.suggest-overlay-close,
.projects-nav-btn,
.movies-nav-btn,
.skills-nav-btn {
    overflow: hidden;
}

.ripple-wave {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-animation 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background-color: rgba(255, 255, 255, 0.45);
    pointer-events: none;
    z-index: 100;
}

button.btn-lime .ripple-wave,
.btn-lime .ripple-wave,
.btn-outline-lime .ripple-wave {
    background-color: rgba(255, 255, 255, 0.55);
}

body:not(.dark-theme) .btn-outline-lime .ripple-wave,
body:not(.dark-theme) .social-action-btn .ripple-wave,
body:not(.dark-theme) .quick-link-item .ripple-wave {
    background-color: rgba(15, 23, 42, 0.25);
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ==========================================================================
   INFO BOT CARDS GRID & SERVER NO-BANNER FALLBACK
   ========================================================================== */
.info-bot-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

@media (max-width: 1100px) {
    .info-bot-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .info-bot-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Fallback background when server banner is not available */
.server-card.no-banner .project-card-banner {
    background: #161922 !important;
    background-image: none !important;
    box-shadow: none !important;
}

.server-card.no-banner .server-banner-bg {
    display: none !important;
    background-image: none !important;
}

.server-card.no-banner .project-banner-overlay {
    display: none !important;
}

.project-banner-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 8;
    background: rgba(15, 23, 42, 0.95);
    border: none;
    border-radius: 8px;
    padding: 0.35rem 0.8rem;
    font-weight: 800;
    font-size: 0.75rem;
    color: var(--primary-lime-bright);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    backdrop-filter: blur(5px);
}

.card-avatar-status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 4px solid var(--bg-card, #ffffff);
    z-index: 10;
    pointer-events: none;
    user-select: none;
    box-sizing: border-box;
    transition: background-color 0.25s ease, border-color var(--transition-normal);
}

body.dark-theme .card-avatar-status-dot {
    border-color: var(--bg-dark-card, #1e293b);
}

.card-avatar-status-dot.online {
    background-color: #23a55a;
}

.card-avatar-status-dot.idle {
    background-color: #f0b232;
}

.card-avatar-status-dot.dnd {
    background-color: #f23f43;
}

.card-avatar-status-dot.offline {
    background-color: #80848e;
}