:root {
    --primary-lime: #84cc16;
    --primary-lime-hover: #65a30d;
    --primary-lime-light: #a3e635;
    --primary-lime-bright: #bef264;
    --lime-subtle: #d9f99d;
    --lime-dark: #3f6212;
    --primary-orange: #f97316;
    --primary-yellow: #facc15;

    /* Light Theme (Default) */
    --bg-main: rgba(248, 250, 252, 0.92);
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-dark: #0f172a;
    --bg-dark-card: #1e293b;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --border-color: #e2e8f0;
    --bg-activity-widget: rgba(226, 232, 240, 0.45);
    --bg-activity-widget-hover: rgba(226, 232, 240, 0.65);

    /* 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;
}

::selection {
    background: #15803d;
    color: #ffffff;
    border-radius: 1px;
}

/* Dark Theme overrides */
body.dark-theme {
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --text-dark: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --lime-subtle: rgba(132, 204, 22, 0.32);
    --bg-activity-widget: rgba(30, 41, 59, 0.25);
    --bg-activity-widget-hover: rgba(30, 41, 59, 0.35);
}

body.dark-theme #footer,
body.dark-theme .footer {
    background: #1e293b;
}

/* 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;
}

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);
}

button {
    padding: 0;
    outline: none;
    border: none;
    background: none;
    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(1440px, 100%);
    margin: 0 auto;
    padding: 0 1.5rem;
}

@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;
    }
}

.side-line .l-line,
.side-line .r-line {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    opacity: 0.8;
    color: var(--primary-lime-hover);
    font-size: 1.15rem;
}

.side-line-bar {
    width: 4px;
    height: 220px;
    background: var(--primary-lime-hover);
    border-radius: 999px;
    box-shadow: none;
}

.side-line .l-line {
    left: 16px;
    pointer-events: auto;
    cursor: pointer;
    padding: 20px 15px;
    margin-left: -15px;
}

.side-line .r-line {
    right: 16px;
}

/* Solid Glossy Lime Buttons */
.btn {
    text-decoration: none;
    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: #ffffff;
    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: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--primary-lime-bright);
    color: var(--primary-lime-bright);
    padding: 0.75em 1.8em;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    backdrop-filter: blur(5px);
}

.btn-outline-lime:hover {
    background: var(--primary-lime);
    color: #ffffff;
}

/* 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;
}

@media screen and (max-width: 550px) {
    .linehead {
        font-size: 1.2rem;
        padding: 0 16px;
    }
}

.linehead .line {
    height: 30px;
    width: 5px;
    background: var(--primary-lime);
    border-radius: 2px;
}

@media screen and (max-width: 550px) {
    .linehead .line {
        height: 20px;
    }
}

.linehead hr {
    margin-left: 1em;
    height: 30px;
    width: 190px;
    background: rgba(132, 204, 22, 0.25);
    clip-path: polygon(0 0, 100% 0, 86% 100%, 0% 100%);
    border: none;
}

@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: pointer;
}

/* Quick Left Icon Dock (Triggered by hovering/clicking left edge line) */
.quick-sidebar {
    position: fixed;
    left: 44px;
    top: 50%;
    transform: translateY(-50%) translateX(-12px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 6px 4px;
    z-index: 2200;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.25s ease;
}

.quick-sidebar.open {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    pointer-events: auto;
}

.quick-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.quick-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 8px 10px;
    color: rgba(255, 255, 255, 0.75);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, gap 0.2s ease, padding-right 0.2s ease;
    overflow: hidden;
    white-space: nowrap;
}

.quick-sidebar-link:hover {
    color: var(--primary-lime);
    gap: 10px;
    padding-right: 4px;
}

.quick-sidebar-icon {
    font-size: 1.05rem;
    color: inherit;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

.quick-sidebar-label {
    font-size: 0.88rem;
    font-weight: 600;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-width 0.22s ease, opacity 0.18s ease;
    display: inline-block;
    white-space: nowrap;
}

.quick-sidebar-link:hover .quick-sidebar-label {
    max-width: 120px;
    opacity: 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;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.menu-toggle:hover {
    scale: 1.05;
    background: var(--primary-lime-hover);
}

.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: 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);
}

.mobile-header-brand {
    display: none;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.6rem;
    letter-spacing: 2px;
    color: #ffffff;
    transition: var(--transition-fast);
}

.header.scrolled .mobile-header-brand {
    color: var(--primary-lime-hover);
}

@media screen and (max-width: 768px) {
    .mobile-header-brand {
        display: flex;
        align-items: center;
    }
}

.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);
    }
}

.sidemenu,
.nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 480px;
    max-width: 90vw;
    height: 100vh;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    z-index: 1100;
    clip-path: none;
    padding: 3.5em 3em 3em;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: translateX(-100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid var(--border-color);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.35);
}

.sidemenu.open,
.nav-drawer.active {
    transform: translateX(0);
}

@media screen and (max-width: 1600px) {

    .sidemenu,
    .nav-drawer {
        width: 450px;
    }
}

@media screen and (max-width: 1024px) {

    .sidemenu,
    .nav-drawer {
        width: 400px;
        clip-path: none;
        padding: 2.5em 2em;
    }
}

@media screen and (max-width: 600px) {

    .sidemenu,
    .nav-drawer {
        width: 85vw;
        padding: 2em 1.5em;
    }
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.7);
    z-index: 1099;
    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: 1.5rem;
}

.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);
}

@media screen and (max-width: 768px) {
    .drawer-logo {
        display: none !important;
    }

    .drawer-header {
        justify-content: flex-end;
    }
}

.drawer-close {
    background: var(--primary-lime-hover);
    color: #ffffff;
    display: flex;
    font-size: 1.3rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: var(--transition-fast);
}

.drawer-close:hover {
    background: var(--lime-dark);
    color: #ffffff !important;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    /* Clean vertical spacing between menu links */
    padding: 2em 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;
    /* Clean, synchronized smaller font size */
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.drawer-link i {
    font-size: 2rem;
    width: 36px;
    /* Fixed width to align link text perfectly */
    text-align: center;
    color: var(--primary-lime);
}

.drawer-link:hover,
.drawer-link.active {
    color: var(--primary-lime-hover);
    transform: translateX(12px);
}

@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 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(132, 204, 22, 0.18);
    clip-path: polygon(0 0, 0 94%, 25% 89%, 50% 99.5%, 70% 88%, 100% 97%, 100% 0);
    z-index: 0;
    transition: background-color var(--transition-normal);
}

body.dark-theme .hero-stripe {
    background: rgba(132, 204, 22, 0.25);
}

#hero,
.hero {
    position: relative;
    min-height: 100vh;
    background: #0f172a url('https://horuzy.rintarytaziru.space/proxy-image?url=http%3A%2F%2Fmbasic6.pikamc.vn%3A25300%2Fuploads%2F%2525E6%252598%2525A5_1_Meow_from_rednote_web_(1)_upscayl_1x_digital-art-4x-1788938170381.png') no-repeat center/cover;
    clip-path: polygon(0 0, 0 88%, 23% 84%, 46% 97%, 69% 82%, 100% 93%, 100% 0);
    padding-top: 6.5rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, transparent 0%, rgba(226, 226, 226, 0.6) 80%);
    z-index: 2;
    pointer-events: none;
}

body.dark-theme .hero {
    color: #ffffff;
}

body.dark-theme .hero::before {
    background: linear-gradient(to bottom right, transparent 0%, rgba(15, 23, 42, 0.6) 80%);
}

.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: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 3.5rem;
    width: 100%;
    padding-bottom: 4rem;
}

@media screen and (max-width: 1024px) {
    .hero-grid {
        display: flex;
        flex-direction: column-reverse;
        text-align: center;
    }
}

/* Left Hero Character Cutout Showcase */
.hero-left {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.character-frame {
    position: relative;
    width: 100%;
    max-width: 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;
}

@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;
}

body.dark-theme .brand-subtitle-sub {
    color: var(--primary-lime-bright);
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(132, 204, 22, 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: var(--text-dark);
    max-width: 520px;
    font-weight: 500;
}

body.dark-theme .hero-bio {
    color: #f1f5f9;
}

.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);
}

/* ==========================================================================
   01 ABOUT ME SECTION
   ========================================================================== */
.section {
    padding: 6.5rem 0;
    position: relative;
}

/* Section background hierarchy (light theme) */
.about-section {
    background: #f1f5f9;
}

.projects-section {
    background: #f8fafc;
}

.movies-section {
    background: #f1f5f9;
}

.hobbies-section {
    background: #f8fafc;
}

.socials-section {
    background: #f1f5f9;
}

/* Dark theme overrides — keep sections unified in dark */
body.dark-theme .about-section,
body.dark-theme .projects-section,
body.dark-theme .movies-section,
body.dark-theme .hobbies-section,
body.dark-theme .socials-section {
    background: transparent;
}


.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: rgba(132, 204, 22, 0.15);
    color: var(--lime-dark);
    border: 1px solid rgba(132, 204, 22, 0.25);
    padding: 0.8rem 1.2rem;
    border-radius: 16px;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: var(--transition-fast);
}

body.dark-theme .point-badge {
    color: var(--primary-lime-light) !important;
    background: rgba(132, 204, 22, 0.12) !important;
    border-color: rgba(132, 204, 22, 0.3) !important;
}

.point-badge i {
    color: var(--primary-lime-hover);
}

.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;
}

.movie-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    border: 2px solid transparent;
    box-sizing: border-box;
}

body.dark-theme .movie-card {
    background: var(--bg-dark-card, #1e293b);
}

/* Hover glow & scale effects */
.movie-card:hover {
    border: 2px solid var(--primary-lime-hover);
}

.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-card:hover .movie-card-img-wrap img {
    transform: scale(1.08);
} */

.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);
}

.movie-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.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: 700;
    color: var(--lime-dark);
    background: rgba(132, 204, 22, 0.15);
    border: 1px solid rgba(132, 204, 22, 0.25);
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
}

body.dark-theme .movie-tags span {
    color: var(--primary-lime-light) !important;
    background: rgba(132, 204, 22, 0.12) !important;
    border: 1px solid rgba(132, 204, 22, 0.3) !important;
}

.movie-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   03 HOBBIES & SKILLS SECTION
   ========================================================================== */
.hobbies-section {
    background: var(--bg-main);
}

.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.hobby-card {
    background: var(--bg-card);
    border-radius: 8px;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: visible;
    /* Prevents badge clipping */
    cursor: pointer;
    border: 2px solid transparent;
    box-sizing: border-box;
}

/* Match movie card hover style (lime border highlight, no scale transform) */
.hobby-card:hover {
    border: 2px solid var(--primary-lime-hover);
    transform: none;
}

.hobby-card-image-wrap {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    background: var(--bg-dark);
}

.hobby-card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hobby-card:hover .hobby-card-image-wrap img {
    transform: none;
}

/* Icon badge positioned safely inside card body with unclipped visibility */
.hobby-card-body {
    padding: 1.8rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    overflow: visible;
}

.hobby-icon-badge {
    position: absolute;
    top: -26px;
    right: 20px;
    width: 52px;
    height: 52px;
    background: var(--primary-lime);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;

    border: 3px solid var(--bg-card);
    z-index: 20;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hobby-card:hover .hobby-icon-badge {
    transform: none;
}

.hobby-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

.hobby-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--lime-dark);
    background: rgba(132, 204, 22, 0.15);
    border: 1px solid rgba(132, 204, 22, 0.25);
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
}

body.dark-theme .hobby-tag {
    color: var(--primary-lime-light) !important;
    background: rgba(132, 204, 22, 0.12) !important;
    border: 1px solid rgba(132, 204, 22, 0.3) !important;
}

.hobby-title {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 0.6rem;
    transition: color var(--transition-fast);
}

.hobby-card:hover .hobby-title {
    color: var(--primary-lime-hover);
}

.hobby-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

.hobby-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.hobby-detail-btn {
    background: transparent;
    color: var(--primary-lime-hover);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-fast);
}

.hobby-detail-btn:hover {
    color: var(--lime-dark);
    gap: 0.7rem;
}

/* 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;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(15, 23, 42, 0.7);
    color: #ffffff;
    border-radius: 50%;
    border: none;
    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: rotate(180deg);
}

.drawer-close:hover {
    background: var(--lime-dark);
    color: #ffffff !important;
    transform: rotate(360deg);
}

.modal-close:active,
.suggest-overlay-close:active,
.chatbot-close-btn:active {
    transform: rotate(360deg) scale(0.9);
}

.drawer-close:active {
    transform: rotate(360deg) scale(0.92);
}

.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;
}

/* Fullscreen modal style on small screens (mobile view) for natural look without margin */
@media screen and (max-width: 768px) {
    #hobby-modal {
        padding: 0;
    }

    #hobby-modal .modal-content {
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        max-width: 100vw;
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 0;
        border: 2px solid var(--primary-lime);
        margin: 0;
        display: flex;
        flex-direction: column;
        transform: none !important;
    }

    #hobby-modal .modal-img-wrap {
        width: 100%;
        height: 38vh;
        max-height: 320px;
        min-height: 200px;
        flex-shrink: 0;
    }

    #hobby-modal .modal-body {
        padding: 1.5rem 1.25rem 2rem 1.25rem;
        flex-grow: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    #hobby-modal .modal-title {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }

    #hobby-modal .modal-desc {
        font-size: 1rem;
        line-height: 1.7;
    }

    #hobby-modal .modal-close {
        top: 15px;
        right: 15px;
        position: fixed;
        width: 42px;
        height: 42px;
        background: rgba(15, 23, 42, 0.8);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        color: #ffffff;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    }
}

/* 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);
}

.quick-link-item:hover {
    background: var(--primary-lime-hover);
}

/* ==========================================================================
   04 CONNECT SECTION
   ========================================================================== */
.socials-section {
    background: var(--bg-card);
    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: 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: var(--bg-card);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    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,
.socials-section {
    position: relative;
}

.footer {
    position: relative;
    margin-top: -8px;
    -webkit-mask-image: radial-gradient(circle at 16px 0px, transparent 8px, black 9px);
    -webkit-mask-size: 32px 100%;
    -webkit-mask-repeat: repeat-x;
    mask-image: radial-gradient(circle at 16px 0px, transparent 8px, black 9px);
    mask-size: 32px 100%;
    mask-repeat: repeat-x;
}

/* ==========================================================================
   FOOTER (Clean & Modern Redesign)
   ========================================================================== */
#footer,
.footer {
    background-color: #e2e8f0;
    color: var(--text-dark);
    padding: 6rem 0 3rem 0;
    position: relative;
}

body.dark-theme #footer,
body.dark-theme .footer {
    background-color: #0f172a;
    color: #ffffff;
}

.footer-logo-title {
    color: var(--primary-lime-hover) !important;
}

.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-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
}

.footer-logo-sub {
    font-size: 0.95rem;
    color: var(--primary-lime-bright);
    letter-spacing: 4px;
    text-transform: uppercase;
}

.footer-text {
    color: #ecfccb;
    /* 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: #ecfccb;
    /* High-contrast light lime green */
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #ecfccb;
    /* High-contrast light lime green */
}

.back-to-top {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    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: 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-left: 3px solid var(--primary-lime);
    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(132, 204, 22, 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(132, 204, 22, 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: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.suggest-overlay-close:hover {
    background: rgba(132, 204, 22, 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: 100vh;
    pointer-events: none;
    z-index: 0;
}

.hero-slant.layer-1 {
    background: rgba(132, 204, 22, 0.22);
    clip-path: polygon(0 0, 0 96%, 30% 91%, 55% 99.8%, 75% 89%, 100% 98.5%, 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 92%, 20% 87%, 45% 98%, 65% 86%, 100% 95%, 100% 0);
    animation: slantPulse2 8s infinite alternate-reverse ease-in-out;
}

body.dark-theme .hero-slant.layer-1 {
    background: rgba(132, 204, 22, 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: 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-left: 3px solid var(--primary-lime);
    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%);
    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-layout-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 2.5rem;
}

@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;
}

.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,
            #2d5016 0%,
            #3a6b1a 25%,
            #4a8522 50%,
            #5c9e2a 75%,
            #3a6b1a 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;
    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: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--lime-subtle);
    color: var(--primary-lime-hover);
    border: 1px solid rgba(132, 204, 22, 0.25);
}

body.dark-theme .project-tag {
    background: rgba(132, 204, 22, 0.12);
    color: var(--primary-lime-bright);
    border-color: rgba(132, 204, 22, 0.2);
}

/* 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(132, 204, 22, 0.3);
}

body.dark-theme .project-feature:hover {
    background: rgba(132, 204, 22, 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(132, 204, 22, 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: 158px;
}

.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: 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-left: 3px solid var(--primary-lime);
    z-index: 1;
}

.chatbot-fab-container:hover .chatbot-fab-tooltip {
    max-width: 300px;
    opacity: 1;
    padding: 0 54px 0 18px;
}

/* =======================================================
   AI CHATBOT PANEL (Full Height Right Side Drawer)
   ======================================================= */
.chatbot-panel {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: 390px;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-card);
    border-left: 2px solid var(--primary-lime);
    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(132, 204, 22, 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: 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: rotate(180deg);
}

/* Live2D Avatar Container inside Chatbot Panel */
.chatbot-live2d-container {
    position: fixed;
    bottom: 65px;
    right: 0px;
    width: 220px;
    height: 250px;
    pointer-events: auto;
    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: grabbing !important;
}

.chatbot-live2d-container:active {
    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: 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: 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: 12px;
    scroll-behavior: smooth;
}

.chatbot-messages::-webkit-scrollbar {
    width: 4px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 999px;
}

/* Chat bubbles */
.chat-bubble {
    display: flex;
    gap: 8px;
    max-width: 90%;
    animation: bubbleFadeIn 0.25s ease;
}

@keyframes bubbleFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bot-bubble {
    align-self: flex-start;
    flex-direction: row;
}

.user-bubble {
    align-self: flex-end;
    flex-direction: row-reverse;
    max-width: 85%;
}

.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: 10px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    line-height: 1.55;
    word-break: break-word;
}

.bot-bubble .bubble-content {
    background: var(--bg-main);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    border-top-left-radius: 4px;
}

.user-bubble .bubble-content {
    background: var(--primary-lime);
    color: #fff;
    border-top-right-radius: 4px;
}

/* Typing indicator */
.typing-bubble {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: bubbleFadeIn 0.25s ease;
}



.typing-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    border-top-left-radius: 4px;
}

/* 3 large bouncing dots */
.typing-dots {
    display: flex;
    gap: 5px;
    align-items: center;
}

.typing-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-lime);
    animation: typingBounce 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 typingBounce {

    0%,
    80%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    40% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

/* Blinking "Đang nhập..." text */
.typing-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    animation: typingBlink 1s ease-in-out infinite alternate;
    white-space: nowrap;
}

@keyframes typingBlink {
    from {
        opacity: 0.4;
    }

    to {
        opacity: 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: 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(132, 204, 22, 0.15);
    color: var(--primary-lime);
    border: 1px solid rgba(132, 204, 22, 0.3);
    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: rotate(90deg);
}

.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.65rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(132, 204, 22, 0.12);
    color: var(--primary-lime-bright);
    padding: 2px 8px;
    border-radius: 4px;
}

.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;
}

/* 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: #84cc16;
    /* Styled with primary lime green */
    --size: 1px;

    width: calc(48 * var(--size));
    height: calc(48 * var(--size));
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: animloader 1s linear infinite;
}

body.dark-theme .loader {
    --color-1: #bef264;
    /* Light lime on dark theme */
}

@keyframes animloader {
    0% {
        box-shadow: calc(-72 * var(--size)) 0 var(--color-1) inset;
    }

    100% {
        box-shadow: calc(48 * var(--size)) 0 var(--color-1) inset;
    }
}

/* 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-right-col,
    .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);
}

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(132, 204, 22, 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(132, 204, 22, 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: rgba(132, 204, 22, 0.12);
    color: var(--primary-lime);
    border: 1px solid rgba(132, 204, 22, 0.25);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.social-action-btn:hover {
    background: var(--primary-lime);
    color: #ffffff;
    border-color: var(--primary-lime);
}

/* Quick Links Modal inside Popup */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.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);
}