:root {
    --primary-lime: #84cc16;
    --primary-lime-hover: #65a30d;
    --primary-lime-light: #a3e635;
    --primary-lime-bright: #bef264;
    --lime-subtle: #ecfccb;
    --lime-dark: #3f6212;

    /* Light Theme (Default) */
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --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: 'Asap', 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: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 12px 30px -5px rgba(132, 204, 22, 0.25);
    --shadow-lime-glow: 0 0 35px rgba(132, 204, 22, 0.55);
}

::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.15);
    --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: linear-gradient(to bottom, #14532d 0%, #022c22 40%, #0f172a 100%);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
}

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

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

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

/* 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: 8rem;
    opacity: 0.4;
    color: var(--primary-lime-bright);
    font-size: 1.2rem;
    filter: drop-shadow(0 0 6px var(--primary-lime));
}

.side-line .l-line { left: 15px; }
.side-line .r-line { right: 15px; }

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

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

/* ==========================================================================
   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,
                box-shadow 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);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.08);
    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);
    box-shadow: var(--shadow-lime-glow);
}

.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 Brand Name displayed next to MENU button on mobile */
.mobile-header-brand {
    display: none;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.6rem;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    transition: var(--transition-fast);
}

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

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

.header-socials {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

.social-icon-link {
    color: #ffffff;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 6px rgba(132, 204, 22, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.header.scrolled .social-icon-link {
    color: var(--text-dark);
}

.social-icon-link:hover {
    color: var(--primary-lime-bright) !important;
    transform: translateY(-3px) scale(1.15);
    filter: drop-shadow(0 0 12px var(--primary-lime));
}

/* 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: 40vw;
    height: 100vh;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    z-index: 1100;
    clip-path: polygon(0% 0%, 100% 0%, 100% 41%, 91% 45%, 100% 44%, 100% 100%, 0% 100%);
    padding: 4em 3em 3em;
    transition: all 0.8s 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);
}

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

@media screen and (max-width: 1600px) {
    .sidemenu, .nav-drawer { width: 50vw; }
}

@media screen and (max-width: 1024px) {
    .sidemenu, .nav-drawer { width: 100vw; clip-path: none; padding: 2em; }
}

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

.drawer-logo {
    font-size: 2.6rem;
    color: var(--primary-lime-hover);
    font-family: var(--font-heading);
    font-weight: 900;
    letter-spacing: 2px;
}

.drawer-close {
    background: var(--primary-lime-hover);
    color: #ffffff;
    display: flex;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    padding: 0.4em 1em;
    border-radius: 8px;
    gap: 10px;
    align-items: center;
    transition: var(--transition-fast);
}

.drawer-close:hover {
    background: var(--lime-dark);
}

.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, .hero {
    position: relative;
    min-height: 100vh;
    background: #0f172a;
    clip-path: polygon(0 0, 0 71%, 49% 93%, 71% 81%, 100% 100%, 100% 0);
    padding-top: 6.5rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.3) 0%, rgba(15, 23, 42, 0.65) 100%);
    z-index: 1;
    pointer-events: none;
}

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

@media screen and (max-width: 768px) {
    #hero, .hero {
        clip-path: polygon(0 0, 100% 1%, 100% 100%, 76% 93%, 46% 99%, 0 85%);
    }
}

/* 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: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.2);
    letter-spacing: 6px;
    padding-right: 4rem;
}

@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: 420px;
    height: auto;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: heroBobble 6s infinite ease-in-out alternate;
}

@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, rgba(255, 255, 255, 0.9), var(--primary-lime-bright));
    border-radius: 8px;
    transform: rotate(-4deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    z-index: 1;
}

.character-img-wrapper {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-radius: 50%;
}

.character-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%; /* Less round corner */
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.5s ease;
}

.character-frame:hover img {
    transform: scale(1.04);
}

/* 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: #ffffff;
    background: linear-gradient(180deg, #ffffff 30%, #bef264 70%, #a3e635 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.35));
    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-bright);
    letter-spacing: 10px;
    text-transform: uppercase;
    margin-top: 0.3rem;
    padding-left: 4px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(0, 0, 0, 0.3);
    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(--primary-lime-bright);
}

.hero-bio {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #f1f5f9;
    max-width: 520px;
    font-weight: 500;
}

.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(0, 0, 0, 0.35);
    color: #ffffff;
    padding: 0.45rem 1.1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
}

.social-pill i {
    color: var(--primary-lime-bright);
}

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

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.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 {
    background: linear-gradient(to left, var(--primary-lime-light), var(--primary-lime-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.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: var(--lime-subtle);
    color: var(--lime-dark);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: var(--transition-fast);
}

.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;
    background: var(--bg-card);
    transition: var(--transition-normal);
}

.about-image-card:hover {
    transform: translateY(-6px);
}

.about-image-card img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.about-floating-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(15, 23, 42, 0.9);
    color: #ffffff;
    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: #ffffff;
}

.about-info-text p {
    font-size: 0.85rem;
    color: var(--primary-lime-bright);
}

/* ==========================================================================
   02 FAVORITE MOVIES & ANIME SECTION
   ========================================================================== */
.movies-section {
    background: var(--bg-card);
    clip-path: polygon(0 4vw, 100% 0, 100% calc(100% - 4vw), 0 100%);
    padding: 10rem 0;
    margin-top: -4vw;
    margin-bottom: -4vw;
}

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

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

/* Hover glow & scale effects */
.movie-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.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: var(--lime-subtle);
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
}

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

/* Hover glow & scale effects */
.hobby-card:hover {
    transform: translateY(-8px) scale(1.02);
}

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

/* 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;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    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: scale(1.1) rotate(15deg);
}

.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: var(--lime-subtle);
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
}

.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: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    
    /* Expand up & out transition from card cursor position */
    opacity: 0;
    transform: scale(0.95); /* smooth subtle scale, no tiny shrink */
    transition: opacity 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), 
                transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.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;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--primary-lime);
    color: var(--bg-dark);
}

.modal-img-wrap {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.modal-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-body {
    padding: 2rem;
}

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

/* Quick Links Modal */
.links-popup-content {
    background: var(--bg-card);
    max-width: 600px;
    padding: 3rem 2.5rem;
    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);
    clip-path: polygon(0 0, 100% 4vw, 100% 100%, 0 calc(100% - 4vw));
    padding: 10rem 0;
    margin-top: -4vw;
    margin-bottom: -4vw;
}

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

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

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

/* ==========================================================================
   FOOTER 
   ========================================================================== */
#footer, .footer {
    background: linear-gradient(to bottom, #15803d, #3f6212);
    color: #ffffff;
    padding: 5rem 0 2rem 0;
    clip-path: polygon(0% 0%, 61% 4%, 61% 11%, 63% 4%, 100% 0%, 100% 100%, 0% 100%);
}

@media screen and (max-width: 1024px) {
    #footer, .footer {
        clip-path: polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%, 75% 0%, 72% 2%, 71% 0%);
    }
}

.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;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.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;
    box-shadow: -4px 4px 15px rgba(0, 0, 0, 0.15);
    border-left: 3px solid var(--primary-lime);
    z-index: 1;
}

.arrow-nav-container:hover .arrow-nav-tooltip {
    max-width: 450px;
    opacity: 1;
    padding: 0 36px 0 18px;
}

@keyframes suggestRingPulse {
    0%   { transform: scale(1);   opacity: 0.7; }
    70%  { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1.6); opacity: 0; }
}

.arrow-nav-container:hover .arrow-nav-btn {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(132, 204, 22, 0.2);
    background: var(--primary-lime);
    color: #0f172a;
}

/* Lime ring pulse on arrow-nav-btn hover */
.arrow-nav-btn::before,
.arrow-nav-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--primary-lime);
    opacity: 0;
    pointer-events: none;
}

.arrow-nav-container:hover .arrow-nav-btn::before {
    animation: suggestRingPulse 1.2s ease-out infinite;
    opacity: 0.7;
}

.arrow-nav-container:hover .arrow-nav-btn::after {
    animation: suggestRingPulse 1.2s ease-out 0.4s infinite;
    opacity: 0.7;
}

/* ==========================================================================
   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;
    box-shadow: 0 4px 14px rgba(132, 204, 22, 0.35);
    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);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px 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 (bottom of hero section) */
.hero-slant {
    bottom: -1px;
    height: 6vw;
    z-index: 2;
}
.hero-slant.layer-1 {
    background: rgba(132, 204, 22, 0.15);
    clip-path: polygon(0 4vw, 49% 2vw, 71% 3.5vw, 100% 0, 100% 100%, 0 100%);
    animation: slantPulse1 6s infinite alternate ease-in-out;
}
.hero-slant.layer-2 {
    background: rgba(255, 255, 255, 0.1);
    clip-path: polygon(0 2vw, 49% 3.5vw, 71% 2vw, 100% 4vw, 100% 100%, 0 100%);
    animation: slantPulse2 8s infinite alternate-reverse ease-in-out;
}

/* 2. Movies Section Slants */
.movies-top-slant {
    top: -1px;
    height: 6vw;
}
.movies-top-slant.layer-1 {
    background: rgba(132, 204, 22, 0.1);
    clip-path: polygon(0 0, 100% 0, 100% 2.5vw, 0 4.5vw);
    animation: slantPulse1 7s infinite alternate ease-in-out;
}
.movies-top-slant.layer-2 {
    background: rgba(132, 204, 22, 0.05);
    clip-path: polygon(0 0, 100% 0, 100% 4.5vw, 0 2.5vw);
    animation: slantPulse2 9s infinite alternate-reverse ease-in-out;
}

.movies-bottom-slant {
    bottom: -1px;
    height: 6vw;
}
.movies-bottom-slant.layer-1 {
    background: rgba(132, 204, 22, 0.1);
    clip-path: polygon(0 calc(100% - 2.5vw), 100% calc(100% - 4.5vw), 100% 100%, 0 100%);
    animation: slantPulse2 8s infinite alternate ease-in-out;
}
.movies-bottom-slant.layer-2 {
    background: rgba(132, 204, 22, 0.05);
    clip-path: polygon(0 calc(100% - 4.5vw), 100% calc(100% - 2.5vw), 100% 100%, 0 100%);
    animation: slantPulse1 10s infinite alternate-reverse ease-in-out;
}

/* 3. Socials Section Slants */
.socials-top-slant {
    top: -1px;
    height: 6vw;
}
.socials-top-slant.layer-1 {
    background: rgba(132, 204, 22, 0.1);
    clip-path: polygon(0 0, 100% 0, 100% 4.5vw, 0 2.5vw);
    animation: slantPulse2 9s infinite alternate ease-in-out;
}
.socials-top-slant.layer-2 {
    background: rgba(132, 204, 22, 0.05);
    clip-path: polygon(0 0, 100% 0, 100% 2.5vw, 0 4.5vw);
    animation: slantPulse1 11s infinite alternate-reverse ease-in-out;
}

.socials-bottom-slant {
    bottom: -1px;
    height: 6vw;
}
.socials-bottom-slant.layer-1 {
    background: rgba(132, 204, 22, 0.1);
    clip-path: polygon(0 calc(100% - 4.5vw), 100% calc(100% - 2.5vw), 100% 100%, 0 100%);
    animation: slantPulse1 7s infinite alternate ease-in-out;
}
.socials-bottom-slant.layer-2 {
    background: rgba(132, 204, 22, 0.05);
    clip-path: polygon(0 calc(100% - 2.5vw), 100% calc(100% - 4.5vw), 100% 100%, 0 100%);
    animation: slantPulse2 9s infinite alternate-reverse ease-in-out;
}

@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;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    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;
    box-shadow: -4px 4px 15px rgba(0, 0, 0, 0.15);
    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: 200px;
    opacity: 1;
    padding: 0 36px 0 18px;
}

@media screen and (max-width: 480px) {
    .about-image-card img {
        height: 320px;
    }
}

/* 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;
    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-activity-widget);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    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);
    background: var(--bg-activity-widget-hover);
}
.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);
}

/* Single-column grid (full-width when only 1 project) */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
    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: none;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    min-height: 380px;
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-sm); /* Keep normal shadow, no hover glow */
}

/* 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: 140px;
    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: scale(1.05);
}

/* 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 {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 30%, rgba(163, 230, 53, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(132, 204, 22, 0.12) 0%, transparent 35%);
}

.project-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.45) 100%);
}

.project-avatar-wrap {
    position: absolute;
    bottom: -36px;
    left: 24px;
    z-index: 3;
}

.project-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid var(--bg-card);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    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;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.7);
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 4px rgba(34, 197, 94, 0.5); }
    50% { box-shadow: 0 0 10px rgba(34, 197, 94, 0.9); }
}

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

.project-title span {
    color: var(--primary-lime);
}

/* Description */
.project-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* 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-override: 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
   ======================================================= */
.chatbot-fab {
    position: fixed;
    top: calc(100vh - 198px);
    right: 27px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1050;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25), 0 0 0 3px var(--bg-card), 0 0 0 5px var(--primary-lime);
    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),
                transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease;
    user-select: none;
    flex-shrink: 0;
}

.chatbot-fab.at-bottom {
    top: 90px;
    right: 24px;
}

.chatbot-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(0,0,0,0.3), 0 0 0 3px var(--bg-card), 0 0 0 5px var(--primary-lime-light);
}

.chatbot-fab-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.chatbot-fab-fallback {
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--primary-lime);
    color: white;
    font-size: 1.4rem;
    border-radius: 50%;
}

.chatbot-fab-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid var(--bg-card);
    box-shadow: 0 0 6px rgba(34,197,94,0.6);
    animation: pulseDot 2s ease-in-out infinite;
}

/* =======================================================
   AI CHATBOT PANEL
   ======================================================= */
.chatbot-panel {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 360px;
    max-height: 520px;
    min-height: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 20px 60px -10px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    z-index: 9997;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transform-origin: bottom right;
    transition: opacity 0.28s cubic-bezier(0.165, 0.84, 0.44, 1),
                transform 0.28s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.chatbot-panel.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* Panel header */
.chatbot-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg,
        rgba(132,204,22,0.12) 0%,
        transparent 60%);
    flex-shrink: 0;
}

.chatbot-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-header-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-lime);
}

.chatbot-header-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
    display: block;
    line-height: 1.2;
}

.chatbot-header-sub {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.gemini-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.chatbot-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.1rem;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chatbot-close-btn:hover {
    background: var(--border-color);
    color: var(--text-dark);
}

/* 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: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--lime-subtle);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
body.dark-theme .bubble-avatar {
    background: rgba(132,204,22,0.12);
}

.bubble-avatar .gemini-icon {
    width: 16px;
    height: 16px;
}

.bubble-content {
    padding: 10px 14px;
    border-radius: 16px;
    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-bubble .bubble-avatar {
    /* same as bot */
}

.typing-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    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-row {
    display: flex;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
    background: var(--bg-card);
}

.chatbot-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    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: 12px;
    border: none;
    background: var(--primary-lime);
    color: #fff;
    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);
    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;
    box-shadow: var(--shadow-sm);
    border: none;
}

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

.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;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
    border: none;
    min-height: 180px;
}

.hub-movie-card:hover {
    transform: translateY(-4px);
}

.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);
    box-shadow: 0 4px 12px rgba(245, 197, 24, 0.25);
}

/* inline btn spacing adjustments in horizontal watched card */
.inline-imdb-btn {
    margin-top: 15px;
    align-self: flex-start;
}
