/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Color Palette */
    --color-bg-dark: #08080a;
    --color-bg-card: rgba(18, 18, 22, 0.6);
    --color-text-main: #f8f9fa;
    --color-text-muted: #8a8f9c;
    
    /* Warm Artistic Accents */
    --color-primary: #ff6b35;
    --color-secondary: #ffb100;
    --gradient-accent: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --gradient-overlay-desktop: linear-gradient(to right, 
        var(--color-bg-dark) 0%, 
        var(--color-bg-dark) 35%, 
        rgba(8, 8, 10, 0.85) 55%, 
        rgba(8, 8, 10, 0.3) 75%, 
        transparent 100%
    );
    --gradient-overlay-mobile: linear-gradient(to bottom, 
        rgba(8, 8, 10, 0.7) 0%, 
        rgba(8, 8, 10, 0.9) 60%, 
        var(--color-bg-dark) 100%
    );
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout */
    --header-height: 80px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 30px;
    --container-width: 1200px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: #08080a;
    background-image: 
        radial-gradient(at 0% 0%, rgba(255, 107, 53, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(162, 89, 255, 0.03) 0px, transparent 50%);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 53, 0.3);
    border-radius: 4px;
    transition: var(--transition-fast);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.main-header.scrolled {
    height: 70px;
    background-color: rgba(8, 8, 10, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: var(--container-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    font-weight: 300;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    letter-spacing: 2px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    padding-left: 8px;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.6);
}

/* Nav Menu */
.nav-menu ul {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--color-text-main);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-talk {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-main);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-talk i {
    transition: var(--transition-fast);
}

.btn-talk:hover {
    background: var(--color-text-main);
    color: var(--color-bg-dark);
    border-color: var(--color-text-main);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.btn-talk:hover i {
    transform: translateX(4px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--color-text-main);
    transition: var(--transition-fast);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    position: relative;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay-desktop);
    z-index: -1;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 620px;
}

/* Tagline badge */
.tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.25);
    color: var(--color-primary);
    padding: 6px 16px;
    border-radius: var(--border-radius-lg);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.05);
}

/* Title */
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.text-artist {
    font-family: 'Alex Brush', 'Great Vibes', 'Ephesis', cursive;
    font-weight: 400;
    font-size: clamp(3.2rem, 10vw, 8.5rem);
    background: linear-gradient(135deg, #ff3e3e 0%, #ff6b35 50%, #ffb100 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    filter: drop-shadow(0 2px 15px rgba(255, 107, 53, 0.3));
    line-height: 1.1;
    padding-right: 0.2em; /* Ngăn chặn lỗi cắt chữ (clipping bug) ở ký tự cuối cùng */
    padding-bottom: 8px;
    letter-spacing: 1px;
}

/* Description */
.hero-desc {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--color-text-muted);
    margin-bottom: 40px;
    font-weight: 400;
    max-width: 540px;
}

/* Motto Block */
.hero-motto {
    border-left: 3px solid var(--color-primary);
    padding-left: 18px;
    margin-bottom: 40px;
    margin-top: -20px;
    text-align: left;
}

.motto-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-secondary);
    margin-bottom: 6px;
}

.motto-text {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--color-text-main);
    line-height: 1.6;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.btn {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: var(--border-radius-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--gradient-accent);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
    border: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 107, 53, 0.45);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary span, .btn-primary i {
    position: relative;
    z-index: 2;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-main);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Socials Column */
.hero-socials {
    position: absolute;
    left: 48px;
    bottom: 48px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    z-index: 10;
}

.hero-socials::after {
    content: '';
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    margin-top: 10px;
}

.social-icon {
    font-size: 1.3rem;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icon:hover {
    color: var(--color-primary);
    background: rgba(255, 107, 53, 0.08);
    border-color: rgba(255, 107, 53, 0.2);
    transform: translateY(-3px);
}

/* Scroll Down Indicator */
.scroll-indicator {
    position: absolute;
    right: 48px;
    bottom: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    cursor: pointer;
}

.scroll-text {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    color: var(--color-text-muted);
}

.mouse-scroll {
    width: 20px;
    height: 32px;
    border: 2px solid var(--color-text-muted);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.mouse-scroll .wheel {
    width: 4px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 2px;
    animation: scroll-wheel 1.6s ease-out infinite;
}

@keyframes scroll-wheel {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(10px);
        opacity: 0;
    }
}

/* ==========================================================================
   ANIMATIONS (ON LOAD REVEAL)
   ========================================================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
    transition-delay: var(--delay, 0s);
}

.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   SKILLS & TOOLS SECTION
   ========================================================================== */
.skills-section {
    padding: 100px 0;
    background-color: #0b0c10; /* Lighter dark background for section separation */
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
}

/* Header for sections */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tagline {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--color-text-muted);
}

/* Skills Category Groups */
.skills-category-group {
    text-align: left;
}

.category-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-title .logo-dot {
    width: 6px;
    height: 6px;
    box-shadow: 0 0 8px rgba(255, 107, 53, 0.6);
}

/* Skills Mini Grid (4 columns) */
.skills-mini-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.mini-skill-card {
    background: radial-gradient(circle at 10% 10%, rgba(255, 107, 53, 0.06) 0%, transparent 60%), rgba(14, 14, 18, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--border-radius-md);
    padding: 28px 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.mini-skill-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 107, 53, 0.4) !important;
    background: radial-gradient(circle at 10% 10%, rgba(255, 107, 53, 0.15) 0%, transparent 60%), rgba(18, 18, 24, 0.85);
    box-shadow: 0 20px 45px rgba(255, 107, 53, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mini-card-icon {
    font-size: 1.7rem;
    color: #ff7f49;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.12) 0%, rgba(255, 177, 0, 0.12) 100%);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 107, 53, 0.25);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.08);
    transition: var(--transition-fast);
}

.mini-skill-card:hover .mini-card-icon {
    background: var(--gradient-accent);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.35), 0 0 12px rgba(255, 107, 53, 0.25);
}

.mini-skill-card h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
    line-height: 1.3;
}

.mini-skill-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
}

.mini-skill-card:hover p {
    color: rgba(255, 255, 255, 0.9);
}

/* Tools Container */
.tools-container {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.tools-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 28px;
    letter-spacing: 0.5px;
}

.tools-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.tool-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(14, 14, 18, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 12px 24px;
    border-radius: var(--border-radius-lg);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-main);
    transition: var(--transition-smooth);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.tool-logo {
    display: block;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.tool-badge i {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    transition: var(--transition-fast);
}

.tool-badge:hover {
    transform: translateY(-4px);
    background: rgba(18, 18, 24, 0.85);
    border-color: var(--tool-color, var(--color-primary));
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4), 0 0 15px var(--tool-color);
}

.tool-badge:hover .tool-logo {
    transform: scale(1.15) rotate(5deg); /* Hiệu ứng xoay nhẹ logo khi hover cực kỳ cao cấp */
}

.tool-badge:hover i {
    color: var(--tool-color, var(--color-primary));
}

/* ==========================================================================
   PROJECTS SECTION (CATEGORIZED PORTFOLIO)
   ========================================================================== */
.projects-section {
    padding: 0;
    background-color: var(--color-bg-dark);
    position: relative;
}

.portfolio-category {
    margin-bottom: 80px;
}

.category-banner-wrapper {
    margin-bottom: 40px;
    position: relative;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-left: none;
    border-right: none;
    width: 100%;
    transition: var(--transition-smooth);
}

.category-banner-wrapper:hover {
    border-top-color: rgba(255, 107, 53, 0.3);
    border-bottom-color: rgba(255, 107, 53, 0.3);
    box-shadow: 0 20px 50px rgba(255, 107, 53, 0.1);
}

.category-banner {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Environment Banner specific image adjustment */
.env-banner {
    background-color: #0b0d14;
    height: auto; /* Tự động điều chỉnh chiều cao theo tỉ lệ ảnh */
    display: block; /* Hủy flexbox để ảnh dàn hàng tự nhiên */
}

.banner-img {
    width: 100%;
    height: auto; /* Hiển thị trọn vẹn 100% hình ảnh không cắt xén */
    display: block;
    transition: transform var(--transition-smooth);
}

.category-banner-wrapper:hover .banner-img {
    transform: none; /* Không zoom để đảm bảo không bị cắt xén dù chỉ 1px */
}

/* Gradient banner for UI/UX */
.ui-banner {
    background: radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.15) 0%, transparent 50%), 
                radial-gradient(circle at 10% 80%, rgba(255, 177, 0, 0.1) 0%, transparent 60%),
                linear-gradient(135deg, #0f1015 0%, #171822 100%);
    padding: 60px 0;
    align-items: center;
    justify-content: flex-start;
}

.ui-banner-content {
    position: relative;
    z-index: 5;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.ui-banner-badge {
    display: inline-block;
    background: rgba(255, 177, 0, 0.1);
    border: 1px solid rgba(255, 177, 0, 0.25);
    color: var(--color-secondary);
    padding: 6px 14px;
    border-radius: var(--border-radius-lg);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.ui-banner-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #dcdcdc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ui-banner-desc {
    color: var(--color-text-muted);
    font-size: 1.02rem;
    line-height: 1.6;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(8, 8, 10, 0.4) 0%, rgba(8, 8, 10, 0.1) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Artworks Collage (Freestyle Layout) */
.artworks-collage {
    display: flex;
    flex-wrap: wrap; /* Cho phép các cột dọc tự động xuống dòng bên dưới banner */
    gap: 30px;
    margin-top: 50px;
    position: relative;
    align-items: stretch;
}

/* Định nghĩa cột dọc cho Masonry */
.collage-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.col-left {
    flex: 0 0 calc(58.33% - 15px); /* Khống chế độ rộng tuyệt đối cột trái */
    width: calc(58.33% - 15px);
}

.col-right {
    flex: 0 0 calc(41.67% - 15px); /* Khống chế độ rộng tuyệt đối cột phải */
    width: calc(41.67% - 15px);
}

/* Custom columns for Environment Collage to balance heights perfectly */
.env-collage .col-left {
    flex: 0 0 calc(42% - 15px);
    width: calc(42% - 15px);
}

.env-collage .col-right {
    flex: 0 0 calc(58% - 15px);
    width: calc(58% - 15px);
}

/* Custom columns for UI Collage to align side-by-side perfectly */
.ui-collage .col-left {
    flex: 0 0 calc(50% - 15px);
    width: calc(50% - 15px);
}

.ui-collage .col-right {
    flex: 0 0 calc(50% - 15px);
    width: calc(50% - 15px);
}

.ui-collage .collage-item {
    transform: none !important;
}

.ui-collage .collage-item:hover {
    transform: translateY(-8px) scale(1.02) !important;
}

/* Thẻ tác phẩm 100% chiều ngang (khung to) */
.item-fullwidth {
    flex: 0 0 100%;
    width: 100%;
    transform: rotate(-0.5deg) translateY(-10px); /* Nghiêng nhẹ phối hợp Option 2 */
}

.item-fullwidth:hover {
    transform: scale(1.01) translateY(-15px) !important;
}

.collage-column .collage-item {
    width: 100%;
}

.collage-item {
    position: relative;
    border-radius: 0; /* Đảm bảo hình ảnh sắc cạnh, tuyệt đối không bo tròn */
    overflow: hidden;
    background: rgba(14, 14, 18, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
                box-shadow 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
                border-color 0.6s ease;
}
/* Freestyle positions (varying columns & offsets & rotations) */
.item-large {
    transform: rotate(-1deg) translateY(-10px);
}

.item-medium {
    transform: rotate(1.5deg) translateY(10px);
    margin-top: 0;
}

.item-small {
    transform: rotate(-1.2deg) translateY(-5px);
    margin-top: 0;
}

.item-wide {
    transform: rotate(1.2deg) translateY(5px);
    margin-top: 0;
}
.gdd-card {
    flex: 0 0 calc(50% - 15px);
    width: calc(50% - 15px);
    transform: none;
}

/* Hover state: lift vertically, scale, and glow */
.collage-item:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 107, 53, 0.45);
    box-shadow: 0 25px 50px rgba(255, 107, 53, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 100; /* Hiển thị đè lên trên các ảnh khác khi di chuột vào */
}

.collage-img-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #0c0d12;
}

/* Proportional heights for varied collage feel */
.item-large .collage-img-container {
    height: 380px;
}

.item-medium .collage-img-container {
    height: 290px;
}

.item-small .collage-img-container {
    height: 260px;
}

.item-wide .collage-img-container {
    height: 280px;
}

/* Override fixed heights and columns for collage items containing actual images to prevent cropping and show full width */

.collage-item.has-img .collage-img-container {
    height: auto !important;
}

.collage-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-smooth);
}

.collage-item.has-img .collage-img {
    height: auto;
    object-fit: contain; /* Hiển thị trọn vẹn 100% hình ảnh không cắt xén */
}

/* Thẻ chứa hình ảnh thật trong lưới: hỗ trợ nâng nhẹ và phát sáng viền */
.collage-item.has-img:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 25px 50px rgba(255, 107, 53, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 107, 53, 0.45) !important;
}

.collage-item:hover .collage-img {
    transform: scale(1.03);
}

.collage-item.has-img:hover .collage-img {
    transform: scale(1.02) !important; /* Phóng to nhẹ ảnh thật khi di chuột */
}

/* Image placeholder inside collage */
.collage-img-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: 12px;
    color: var(--color-text-muted);
    background: linear-gradient(135deg, #0e0f14 0%, #171820 100%);
}

.collage-img-placeholder i {
    font-size: 2.8rem;
    color: rgba(255, 107, 53, 0.25);
    text-shadow: 0 0 15px rgba(255, 107, 53, 0.08);
}

.collage-img-placeholder.ui-placeholder i {
    color: rgba(255, 177, 0, 0.25);
    text-shadow: 0 0 15px rgba(255, 177, 0, 0.08);
}

.collage-img-placeholder span {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Floating overlay on hover */
.collage-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 24px 20px;
    background: linear-gradient(to top, rgba(8, 8, 10, 0.95) 0%, rgba(8, 8, 10, 0.4) 60%, transparent 100%);
    z-index: 10;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    text-align: left;
}

.collage-item:hover .collage-overlay {
    opacity: 1;
    transform: translateY(0);
}

.collage-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 107, 53, 0.15);
    border: 1px solid rgba(255, 107, 53, 0.25);
    color: var(--color-primary);
    padding: 4px 12px;
    border-radius: var(--border-radius-lg);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

/* UI/UX badge color override */
.ui-placeholder ~ .collage-overlay .collage-badge {
    background: rgba(255, 177, 0, 0.15);
    border-color: rgba(255, 177, 0, 0.25);
    color: var(--color-secondary);
}

.collage-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
}


/* ==========================================================================
   COLOR SCRIPT & STORYBOARD (Tràn viền)
   ========================================================================== */
.color-script-fullwidth {
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition-smooth);
}

.color-script-fullwidth:hover {
    border-top-color: rgba(162, 89, 255, 0.3);
    border-bottom-color: rgba(162, 89, 255, 0.3);
    box-shadow: 0 20px 50px rgba(162, 89, 255, 0.2);
}

.color-script-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-smooth);
}

.color-script-fullwidth:hover .color-script-img {
    transform: scale(1.008);
}

/* ==========================================================================
   CONTACT SECTION (THANK YOU BANNER)
   ========================================================================== */
.contact-section {
    width: 100%;
    padding: 0;
    margin-top: 0;
    margin-bottom: 0;
    background-color: var(--color-bg-dark);
    position: relative;
    overflow: hidden;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* For Tablet Devices */
@media (max-width: 991px) {
    :root {
        --header-height: 70px;
    }

    .hero-section {
        background-position: 70% center;
    }
    
    .hero-overlay {
        background: linear-gradient(to right, 
            var(--color-bg-dark) 0%, 
            rgba(8, 8, 10, 0.95) 45%, 
            rgba(8, 8, 10, 0.8) 70%, 
            rgba(8, 8, 10, 0.4) 100%
        );
    }
    
    .hero-content {
        max-width: 550px;
    }

    .hero-socials {
        left: 24px;
    }
    
    .scroll-indicator {
        right: 24px;
    }
    
    .skills-mini-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .category-banner {
        height: 280px;
    }
    
    .env-banner {
        height: auto;
    }
    
    .artworks-collage {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 24px;
        margin-top: 30px;
    }
    
    .col-left {
        flex: 0 0 calc(58.33% - 12px) !important;
        width: calc(58.33% - 12px) !important;
    }
    
    .col-right {
        flex: 0 0 calc(41.67% - 12px) !important;
        width: calc(41.67% - 12px) !important;
    }

    .env-collage .col-left {
        flex: 0 0 calc(42% - 12px) !important;
        width: calc(42% - 12px) !important;
    }
    
    .env-collage .col-right {
        flex: 0 0 calc(58% - 12px) !important;
        width: calc(58% - 12px) !important;
    }

    .ui-collage .col-left {
        flex: 0 0 calc(50% - 12px) !important;
        width: calc(50% - 12px) !important;
    }
    
    .ui-collage .col-right {
        flex: 0 0 calc(50% - 12px) !important;
        width: calc(50% - 12px) !important;
    }
    
    .item-fullwidth {
        flex: 0 0 100% !important;
        width: 100% !important;
        transform: none !important;
    }

    
    .collage-column {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
    
    .collage-item {
        transform: none !important;
        margin-top: 0 !important;
    }
    
    .collage-item.has-img {
        transform: none !important;
    }
    
    .collage-item.has-img:hover {
        transform: none !important;
    }
    
    .collage-item:not(.has-img) .collage-img-container {
        height: 240px !important;
    }
}
/* For Mobile Devices */
@media (max-width: 768px) {
    /* Responsive Spacing & Containers */
    .container, .header-container {
        padding: 0 16px;
    }

    /* Header menu mobile */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(11, 11, 15, 0.95);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        z-index: 1050;
        transition: var(--transition-smooth);
        padding: 120px 40px 40px;
    }
    
    .nav-menu.open {
        right: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 28px;
    }
    
    .nav-link {
        font-size: 1.15rem;
    }
    
    .header-actions {
        margin-right: 0; /* Align mobile toggle perfectly with the container right padding */
    }
    
    .btn-talk {
        display: none; /* Hide button on small devices header */
    }

    /* Menu Toggle Hamburger Animation */
    .mobile-menu-toggle.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-menu-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.open .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Logo size adjustments for extra small screens */
    @media (max-width: 480px) {
        .logo {
            font-size: 1.2rem;
            gap: 6px;
        }
        .logo span {
            font-size: 0.75rem;
            padding-left: 6px;
            letter-spacing: 1px;
        }
    }

    /* Hero Responsive */
    .hero-section {
        background-position: 78% center;
        padding-top: 120px;
        padding-bottom: 100px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-overlay {
        background: var(--gradient-overlay-mobile);
    }
    
    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .hero-motto {
        border-left: 3px solid var(--color-primary);
        padding: 8px 0 8px 16px;
        margin-top: -10px;
        margin-bottom: 30px;
        text-align: left;
        width: 100%;
        max-width: 500px;
    }
    
    .hero-actions {
        justify-content: center;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* Hide Side Socials and Scroll Down on Mobile */
    .hero-socials, .scroll-indicator {
        display: none;
    }

    /* Section Header compacting */
    .section-header {
        margin-bottom: 40px;
    }

    /* Skills Section Responsive */
    .skills-section {
        padding: 80px 0;
    }
    
    .skills-mini-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .mini-skill-card {
        padding: 24px 20px;
    }
    
    .tools-grid {
        gap: 12px;
    }
    
    .tool-badge {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    .projects-section {
        padding: 0;
    }
    
    .portfolio-category {
        margin-bottom: 40px;
    }
    
    .contact-section {
        margin-top: 0;
    }
    
    .category-banner-wrapper {
        margin-bottom: 24px;
    }
    
    .category-banner {
        height: 200px;
    }
    
    .env-banner {
        height: auto;
    }
    
    .ui-banner {
        padding: 30px 20px;
    }
    
    .ui-banner-badge {
        margin-bottom: 12px;
    }
    
    .ui-banner-title {
        margin-bottom: 8px;
    }
    
    .artworks-collage {
        flex-direction: column;
        gap: 20px;
        margin-top: 24px;
    }
    
    .collage-column,
    .col-left,
    .col-right,
    .env-collage .col-left,
    .env-collage .col-right,
    .ui-collage .col-left,
    .ui-collage .col-right {
        width: 100% !important;
        flex: 0 0 100% !important;
        gap: 20px;
    }
    
    .item-fullwidth {
        flex: 0 0 100% !important;
        width: 100% !important;
        transform: none !important;
    }
    
    .collage-item {
        transform: none !important;
        margin-top: 0 !important;
    }
    
    .collage-item.has-img {
        transform: none !important;
    }
    
    .collage-item.has-img:hover {
        transform: none !important;
    }
    
    .collage-item:not(.has-img) .collage-img-container {
        height: 200px !important;
    }
}
