/* ==========================================================================
   PORTFOLIO 3D CARTOON - NGUYỄN MINH NGHĨA
   Author: Nguyễn Minh Nghĩa (2004)
   Style: 3D Cartoon / Dark Mode / Glassmorphism / Neon Glow / 60 FPS
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. COLOR PALETTE & DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
    --bg-dark: #070914;
    --bg-dark-secondary: #0d1028;
    --bg-card: rgba(16, 20, 44, 0.65);
    --bg-card-hover: rgba(26, 32, 68, 0.85);

    --primary-cyan: #00f0ff;
    --primary-blue: #0066ff;
    --primary-purple: #8a2be2;
    --primary-pink: #ff007f;
    --accent-green: #00ff88;
    --accent-orange: #ff9900;

    --text-main: #f0f4fc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --border-glass: rgba(0, 240, 255, 0.18);
    --border-glass-hover: rgba(0, 240, 255, 0.5);

    --font-heading: 'Fredoka', 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    --shadow-3d-cyan: 0 10px 30px -5px rgba(0, 240, 255, 0.4);
    --shadow-3d-purple: 0 10px 30px -5px rgba(138, 43, 226, 0.4);
    --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.6);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE STYLES
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html {
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* 3D Background Canvas */
#bg-3d-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-cyan), var(--primary-purple));
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-blue), var(--primary-pink));
}

/* Typography Helpers */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, #38ef7d 30%, var(--primary-blue) 60%, var(--primary-purple) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

/* --------------------------------------------------------------------------
   3. PRELOADER (3D Cartoon Loader)
   -------------------------------------------------------------------------- */
#preloader {
    position: fixed;
    inset: 0;
    background: #050611;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 360px;
}

.loader-avatar-box {
    position: relative;
    width: 130px;
    height: 130px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-cyan);
    box-shadow: 0 0 25px var(--primary-cyan);
    z-index: 2;
}

.loader-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
}

.loader-ring-1 {
    inset: 0;
    border-top-color: var(--primary-cyan);
    animation: spinRing 1.2s linear infinite;
}
.loader-ring-2 {
    inset: -8px;
    border-right-color: var(--primary-purple);
    animation: spinRing 1.8s linear infinite reverse;
}
.loader-ring-3 {
    inset: -16px;
    border-bottom-color: var(--primary-pink);
    animation: spinRing 2.4s linear infinite;
}

@keyframes spinRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-main);
    margin-bottom: 0.3rem;
}

.loader-subtitle {
    color: var(--primary-cyan);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.loader-bar-wrapper {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-glass);
}

.loader-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-purple), var(--primary-pink));
    border-radius: var(--radius-full);
    transition: width 0.2s ease;
    box-shadow: 0 0 15px var(--primary-cyan);
}

.loader-percent {
    font-weight: 700;
    color: var(--primary-cyan);
    font-size: 1rem;
}

/* --------------------------------------------------------------------------
   4. GLASSMORPHISM & CARD EFFECTS
   -------------------------------------------------------------------------- */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-normal), border-color var(--transition-fast), box-shadow var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    border-color: var(--border-glass-hover);
    box-shadow: 0 25px 60px rgba(0, 240, 255, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

/* 3D Tilt Card Base */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    will-change: transform;
}

/* --------------------------------------------------------------------------
   5. NAVBAR & NAVIGATION
   -------------------------------------------------------------------------- */
.navbar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    transition: all var(--transition-fast);
}

.navbar-container.scrolled {
    padding: 0.7rem 0;
    background: rgba(7, 9, 20, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-badge-3d {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 6px 15px rgba(0, 240, 255, 0.4), inset 0 -3px 0 rgba(0, 0, 0, 0.3);
    transform: rotate(-6deg);
    transition: transform var(--transition-normal);
}

.nav-brand:hover .brand-badge-3d {
    transform: rotate(6deg) scale(1.1);
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 1px;
}

.brand-highlight {
    color: var(--primary-cyan);
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link i {
    font-size: 0.85rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-cyan);
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.btn-zalo-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #0084ff, #00c6ff);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 132, 255, 0.4), inset 0 -3px 0 rgba(0, 0, 0, 0.2);
    transition: all var(--transition-normal);
}

.btn-zalo-nav:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 132, 255, 0.6);
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    z-index: 1001;
}

.mobile-toggle .bar {
    width: 26px;
    height: 3px;
    background: var(--text-main);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.mobile-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.mobile-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   6. BUTTONS (3D CARTOON STYLES)
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.8rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
    user-select: none;
}

.btn-3d {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), inset 0 -4px 0 rgba(0, 0, 0, 0.3);
}

.btn-3d:active {
    transform: translateY(3px) !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.3) !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    color: #050611;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 240, 255, 0.5), inset 0 -4px 0 rgba(0, 0, 0, 0.3);
    color: #000;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
    color: #fff;
}

.btn-secondary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(255, 0, 127, 0.5), inset 0 -4px 0 rgba(0, 0, 0, 0.3);
}

.btn-zalo {
    background: linear-gradient(135deg, #0084ff, #00d2ff);
    color: #fff;
}

.btn-zalo:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 132, 255, 0.6), inset 0 -4px 0 rgba(0, 0, 0, 0.3);
}

.btn-outline {
    background: rgba(0, 240, 255, 0.1);
    color: var(--primary-cyan);
    border: 1px solid var(--primary-cyan);
}

.btn-outline:hover {
    background: var(--primary-cyan);
    color: #050611;
    transform: translateY(-3px);
}

.btn-sm {
    padding: 0.55rem 1.1rem;
    font-size: 0.88rem;
    border-radius: var(--radius-sm);
}

.btn-zalo-sm {
    background: rgba(0, 132, 255, 0.2);
    color: #38bdf8;
    border: 1px solid #0084ff;
    text-decoration: none;
}

.btn-zalo-sm:hover {
    background: #0084ff;
    color: #fff;
}

.btn-block {
    width: 100%;
}

/* --------------------------------------------------------------------------
   7. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 8rem;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.2rem;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    color: var(--primary-cyan);
    margin-bottom: 1.2rem;
    backdrop-filter: blur(10px);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-cyan);
    animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7); }
    70% { transform: scale(1.2); box-shadow: 0 0 0 10px rgba(0, 240, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.typing-container {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    min-height: 2.2rem;
}

.typing-prefix {
    color: var(--primary-cyan);
}

.typing-text {
    color: #fff;
}

.typing-cursor {
    color: var(--primary-cyan);
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 580px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-card {
    background: rgba(16, 20, 44, 0.5);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    backdrop-filter: blur(10px);
}

.stat-icon {
    width: 42px;
    height: 42px;
    background: rgba(0, 240, 255, 0.15);
    color: var(--primary-cyan);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.stat-value {
    display: block;
    font-weight: 800;
    font-size: 1.15rem;
    color: #fff;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Hero Visual & Avatar Card 3D */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.avatar-card-3d {
    position: relative;
    width: 340px;
    height: 380px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-glass);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(20px);
}

.avatar-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.3) 0%, rgba(138, 43, 226, 0.2) 50%, transparent 70%);
    filter: blur(30px);
    z-index: -1;
    border-radius: 50%;
    animation: glowPulse 4s infinite alternate;
}

@keyframes glowPulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.1); opacity: 0.9; }
}

.avatar-image-wrapper {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.hero-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.avatar-card-3d:hover .hero-avatar {
    transform: scale(1.05);
}

/* Floating Badges Around Avatar */
.floating-badge {
    position: absolute;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 5;
    pointer-events: none;
}

.badge-php {
    top: 10px;
    left: -20px;
    background: rgba(136, 146, 191, 0.9);
    color: #000;
}

.badge-css {
    top: 40%;
    right: -25px;
    background: rgba(38, 77, 228, 0.9);
    color: #fff;
}

.badge-js {
    bottom: 20px;
    left: -15px;
    background: rgba(247, 223, 30, 0.9);
    color: #000;
}

.badge-cpp {
    bottom: -15px;
    right: 20px;
    background: rgba(0, 89, 156, 0.9);
    color: #fff;
}

.float-anim-1 { animation: float 3s ease-in-out infinite; }
.float-anim-2 { animation: float 4s ease-in-out infinite 0.5s; }
.float-anim-3 { animation: float 3.5s ease-in-out infinite 1s; }
.float-anim-4 { animation: float 4.5s ease-in-out infinite 1.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* --------------------------------------------------------------------------
   8. SECTION HEADERS
   -------------------------------------------------------------------------- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}

.section-subtitle {
    display: inline-block;
    color: var(--primary-cyan);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
}

.section-divider {
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-purple));
    border-radius: var(--radius-full);
    margin: 1rem auto 0;
}

/* --------------------------------------------------------------------------
   9. ABOUT SECTION
   -------------------------------------------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2.5rem;
    align-items: stretch;
}

.about-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.about-card-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-glass);
    margin-bottom: 1.5rem;
}

.avatar-mini img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.profile-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}

.profile-role {
    color: var(--primary-cyan);
    font-size: 0.9rem;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-icon {
    width: 38px;
    height: 38px;
    background: rgba(0, 240, 255, 0.1);
    color: var(--primary-cyan);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
}

.info-content {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.info-val {
    font-weight: 600;
    color: #fff;
}

.info-link {
    color: var(--primary-cyan);
    font-weight: 700;
    text-decoration: none;
}

.info-link:hover {
    text-decoration: underline;
}

/* About Details Box */
.details-box {
    padding: 2rem;
    height: 100%;
}

.details-box h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.details-box h3 i {
    color: var(--accent-orange);
}

.details-box p {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.strengths-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-top: 1.8rem;
}

.strength-item {
    background: rgba(7, 9, 20, 0.4);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1rem;
    transition: transform var(--transition-fast);
}

.strength-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary-cyan);
}

.strength-item i {
    font-size: 1.4rem;
    color: var(--primary-cyan);
    margin-bottom: 0.5rem;
}

.strength-item h4 {
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 0.2rem;
}

.strength-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* --------------------------------------------------------------------------
   10. SKILLS SECTION
   -------------------------------------------------------------------------- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.skill-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.skill-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    margin-bottom: 1.2rem;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.3);
}

.php-theme { background: rgba(119, 123, 179, 0.2); color: #8892bf; border: 1px solid #8892bf; }
.css-theme { background: rgba(38, 77, 228, 0.2); color: #38bdf8; border: 1px solid #38bdf8; }
.js-theme { background: rgba(247, 223, 30, 0.2); color: #facc15; border: 1px solid #facc15; }
.cpp-theme { background: rgba(0, 89, 156, 0.2); color: #60a5fa; border: 1px solid #60a5fa; }

.skill-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 0.6rem;
}

.skill-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.skill-level-container {
    width: 100%;
    margin-bottom: 1.2rem;
}

.skill-level-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.skill-progress-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.skill-progress-bar {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 1.2s ease-in-out;
}

.php-bar { background: linear-gradient(90deg, #777bb3, #8892bf); box-shadow: 0 0 10px #8892bf; }
.css-bar { background: linear-gradient(90deg, #264de4, #38bdf8); box-shadow: 0 0 10px #38bdf8; }
.js-bar { background: linear-gradient(90deg, #eab308, #facc15); box-shadow: 0 0 10px #facc15; }
.cpp-bar { background: linear-gradient(90deg, #00599c, #60a5fa); box-shadow: 0 0 10px #60a5fa; }

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --------------------------------------------------------------------------
   11. PROJECTS SECTION
   -------------------------------------------------------------------------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 2rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-thumb-wrapper {
    position: relative;
    width: 100%;
    height: 190px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-glass);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img {
    transform: scale(1.08);
}

.project-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.project-category {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    background: rgba(7, 9, 20, 0.8);
    color: var(--primary-cyan);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
}

.project-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 0.6rem;
}

.project-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.project-tech-stack span {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    background: rgba(0, 240, 255, 0.08);
    color: var(--primary-cyan);
    border-radius: 4px;
}

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

/* --------------------------------------------------------------------------
   12. UTILITIES SECTION ("Play Together Code")
   -------------------------------------------------------------------------- */
.utility-wrapper {
    max-width: 750px;
    margin: 0 auto;
}

.utility-card {
    padding: 2.5rem;
}

.utility-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-glass);
}

.utility-badge-3d {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--primary-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    flex-shrink: 0;
}

.utility-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.utility-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 0.3rem;
}

.utility-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.utility-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: var(--primary-cyan);
}

.input-wrapper {
    position: relative;
}

.form-control {
    width: 100%;
    padding: 0.9rem 1.2rem 0.9rem 2.8rem;
    background: rgba(7, 9, 20, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    background: rgba(7, 9, 20, 0.9);
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
}

.quick-code-wrapper {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;

}

.quick-title {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.quick-code-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-preset-code {
    padding: 0.35rem 0.7rem;
    background: rgba(138, 43, 226, 0.15);
    border: 1px dashed var(--primary-purple);
    border-radius: var(--radius-sm);
    color: #d8b4fe;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-preset-code:hover {
    background: var(--primary-purple);
    color: #fff;
    transform: translateY(-2px);
}

/* Disable 3D Tilt in Utilities Section */
#utilities .utility-card,
.utility-card {
    transform: none !important;
    perspective: none !important;
    transform-style: flat !important;
}

/* TikTok Utility Card Styling */
.tiktok-badge {
    background: #000 !important;
    border: 2px solid #ff007f !important;
    box-shadow: 0 0 20px rgba(255, 0, 127, 0.4), inset 0 0 10px rgba(0, 240, 255, 0.4) !important;
    font-size: 2.2rem !important;
    color: #fff !important;
}

.btn-preset-tiktok {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
}

.tiktok-result-card {
    padding: 1.5rem;
    border-color: var(--primary-pink);
    box-shadow: 0 15px 40px rgba(255, 0, 127, 0.25);
    animation: fadeIn 0.4s ease;
}

.tiktok-result-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    align-items: center;
}

.tiktok-thumb-box {
    position: relative;
    width: 100%;
    height: 240px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid var(--border-glass);
}

.tiktok-result-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-duration-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.author-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    background: rgba(0, 0, 0, 0.6);
    color: var(--primary-cyan);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid var(--border-glass);
    margin-bottom: 0.6rem;
}

.video-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.video-stats-bar {
    display: flex;
    gap: 1.2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.text-pink { color: var(--primary-pink); }

.download-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

@media (max-width: 600px) {
    .tiktok-result-grid {
        grid-template-columns: 1fr;
    }
    .tiktok-thumb-box {
        height: 180px;
    }
}

/* Instant Validation Badge Below Input */
.instant-code-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.83rem;
    font-weight: 700;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    margin-top: 0.4rem;
    transition: all 0.25s ease;
}

.badge-idle {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-valid {
    background: rgba(0, 255, 136, 0.12);
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.25);
}

.badge-invalid {
    background: rgba(255, 0, 127, 0.12);
    color: var(--primary-pink);
    border: 1px solid var(--primary-pink);
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.25);
}

.instant-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    pointer-events: none;
}

.input-valid {
    border-color: var(--accent-green) !important;
    box-shadow: 0 0 18px rgba(0, 255, 136, 0.4) !important;
}

.input-invalid {
    border-color: var(--primary-pink) !important;
    box-shadow: 0 0 18px rgba(255, 0, 127, 0.4) !important;
}

/* Live Server Connection Bar */
.server-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(7, 9, 20, 0.8);
    border: 1px solid var(--border-glass);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
    font-size: 0.82rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.server-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.green-dot {
    background: var(--accent-green) !important;
    box-shadow: 0 0 10px var(--accent-green) !important;
}

.text-green { color: var(--accent-green); font-weight: 800; }

.server-protocol-badge {
    color: var(--primary-cyan);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* API Inspector Box */
.api-inspector-box {
    margin-top: 1.2rem;
    background: #050611;
    border: 1px solid var(--primary-cyan);
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.api-inspector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary-cyan);
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    margin-bottom: 0.6rem;
}

.api-status-badge {
    background: var(--accent-green);
    color: #050611;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.75rem;
}

.api-status-badge.status-err {
    background: var(--primary-pink);
    color: #fff;
}

.api-json-output {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.82rem;
    color: #38bdf8;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 200px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.8rem;
    border-radius: var(--radius-sm);
}

/* BOT Control Panel Styling */
.bot-control-panel {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(138, 43, 226, 0.15));
    border: 2px solid var(--primary-cyan);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.25);
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.8rem;
    border-radius: var(--radius-md);
}

.bot-panel-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.bot-icon-badge {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.6rem;
    box-shadow: 0 0 15px var(--primary-cyan);
    animation: botPulse 2s infinite alternate;
}

@keyframes botPulse {
    0% { transform: scale(1); box-shadow: 0 0 10px var(--primary-cyan); }
    100% { transform: scale(1.08); box-shadow: 0 0 25px var(--primary-purple); }
}

.bot-title-box {
    flex: 1;
    min-width: 240px;
}

.bot-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 0.2rem;
}

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

.btn-bot-action {
    background: linear-gradient(135deg, #00ff88, #00c6ff);
    color: #050611;
    font-weight: 800;
    padding: 0.8rem 1.4rem;
    font-size: 0.95rem;
}

.btn-bot-action:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 255, 136, 0.5);
    color: #000;
}

.bot-progress-wrapper {
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-glass);
}

.bot-status-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-cyan);
    margin-bottom: 0.5rem;
}

.bot-step-badge {
    background: rgba(0, 240, 255, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
}

.bot-progress-bar-bg {
    width: 100%;
    height: 10px;
    background: rgba(7, 9, 20, 0.8);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid var(--border-glass);
}

.bot-progress-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-green), var(--primary-cyan), var(--primary-purple));
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
    box-shadow: 0 0 15px var(--accent-green);
}

.bot-rewards-counter {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    background: rgba(7, 9, 20, 0.6);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-glass);
    flex-wrap: wrap;
}

.counter-item {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.text-cyan { color: var(--primary-cyan); }
.text-gold { color: #facc15; }
.text-purple { color: #d8b4fe; }
.auto-code-bar {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
    background: rgba(0, 240, 255, 0.05);
    border: 1px dashed var(--border-glass);
    padding: 1rem;
    border-radius: var(--radius-md);
}

.auto-select-wrapper {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.auto-select-wrapper label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-cyan);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.code-select {
    padding: 0.75rem 1rem;
    background: rgba(7, 9, 20, 0.8);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.88rem;
    cursor: pointer;
}

.code-select option {
    background: #0d1028;
    color: #fff;
}

.btn-autofill-btn {
    height: 42px;
    white-space: nowrap;
}

.form-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}

/* History Log Container */
.history-container {
    margin-top: 1.5rem;
    padding: 1.2rem;
    background: rgba(7, 9, 20, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
}

.history-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--accent-green);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.history-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.history-item {
    font-size: 0.85rem;
    color: var(--text-main);
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.2);
    padding: 0.6rem 0.9rem;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeIn 0.4s ease;
}

.history-code {
    font-weight: 700;
    color: var(--primary-cyan);
}

.history-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Status Indicator Area */
.status-container {
    border-radius: var(--radius-md);
    padding: 1.2rem;
    background: rgba(7, 9, 20, 0.5);
    border: 1px solid var(--border-glass);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.status-box {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.status-heading {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.status-message {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Status States */
.status-idle .status-icon {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.status-processing {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}
.status-processing .status-icon {
    background: rgba(0, 240, 255, 0.2);
    color: var(--primary-cyan);
    animation: spinIcon 1s linear infinite;
}

@keyframes spinIcon {
    100% { transform: rotate(360deg); }
}

.status-success {
    border-color: var(--accent-green);
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.3);
    background: rgba(0, 255, 136, 0.08);
}
.status-success .status-icon {
    background: var(--accent-green);
    color: #050611;
    box-shadow: 0 0 15px var(--accent-green);
}
.status-success .status-heading {
    color: var(--accent-green);
}

.status-error {
    border-color: var(--primary-pink);
    box-shadow: 0 0 25px rgba(255, 0, 127, 0.3);
    background: rgba(255, 0, 127, 0.08);
}
.status-error .status-icon {
    background: var(--primary-pink);
    color: #fff;
    box-shadow: 0 0 15px var(--primary-pink);
}
.status-error .status-heading {
    color: var(--primary-pink);
}

/* Progress bar inside status container */
.status-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    position: absolute;
    bottom: 0;
    left: 0;
    display: none;
}

.status-processing .status-progress-bar {
    display: block;
}

.status-progress-fill {
    width: 0%;
    height: 100%;
    background: var(--primary-cyan);
    transition: width 0.1s linear;
}

.utility-notice {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: var(--text-dim);
    text-align: left;
}

.utility-notice i {
    color: var(--primary-cyan);
}

/* --------------------------------------------------------------------------
   13. CONTACT SECTION
   -------------------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.contact-info-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    padding: 2rem;
}

.highlight-zalo-card {
    border-color: #0084ff;
    box-shadow: 0 15px 40px rgba(0, 132, 255, 0.25);
    text-align: center;
}

.zalo-badge-large {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #0084ff, #00c6ff);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    margin: 0 auto 1.2rem;
    box-shadow: 0 0 20px rgba(0, 132, 255, 0.5);
}

.highlight-zalo-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.highlight-zalo-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
}

.zalo-number-box {
    background: rgba(0, 132, 255, 0.1);
    border: 1px dashed #0084ff;
    border-radius: var(--radius-md);
    padding: 0.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
}

.zalo-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.zalo-number {
    font-weight: 800;
    font-size: 1.3rem;
    color: #38bdf8;
    letter-spacing: 1px;
}

.contact-meta-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 0.8rem 0;
}

.contact-meta-item:not(:last-child) {
    border-bottom: 1px solid var(--border-glass);
}

.meta-icon {
    width: 44px;
    height: 44px;
    background: rgba(0, 240, 255, 0.1);
    color: var(--primary-cyan);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.contact-meta-item h4 {
    font-size: 0.95rem;
    color: #fff;
}

.contact-meta-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Contact Form */
.contact-form-card {
    padding: 2rem;
}

.contact-form-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.contact-form-card h3 i {
    color: var(--primary-cyan);
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* --------------------------------------------------------------------------
   14. FLOATING ZALO WIDGET (Fixed Bottom Right)
   -------------------------------------------------------------------------- */
.floating-zalo-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0084ff, #00c6ff);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 132, 255, 0.6);
    z-index: 999;
    transition: transform var(--transition-normal);
}

.floating-zalo-btn:hover {
    transform: scale(1.1) rotate(6deg);
}

.zalo-icon-box {
    font-size: 1.8rem;
    z-index: 2;
}

.zalo-pulse {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: rgba(0, 132, 255, 0.4);
    animation: zaloPulseAnim 2s infinite;
    z-index: 1;
}

@keyframes zaloPulseAnim {
    0% { transform: scale(0.9); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

.zalo-tooltip {
    position: absolute;
    right: 70px;
    background: rgba(7, 9, 20, 0.9);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid var(--border-glass);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    pointer-events: none;
}

.floating-zalo-btn:hover .zalo-tooltip {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

/* --------------------------------------------------------------------------
   15. FOOTER
   -------------------------------------------------------------------------- */
.footer-container {
    background: rgba(5, 6, 17, 0.95);
    border-top: 1px solid var(--border-glass);
    padding: 2.5rem 0;
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 0.2rem;
}

.footer-techs {
    font-size: 0.85rem;
    color: var(--primary-cyan);
    font-weight: 600;
    letter-spacing: 1px;
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.back-to-top-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--border-glass);
    color: var(--primary-cyan);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all var(--transition-fast);
}

.back-to-top-btn:hover {
    background: var(--primary-cyan);
    color: #050611;
    transform: translateY(-4px);
}

/* --------------------------------------------------------------------------
   16. MODAL SYSTEM
   -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 6, 17, 0.8);
    backdrop-filter: blur(15px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    width: 100%;
    max-width: 650px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: var(--primary-pink);
}

.modal-project-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-glass);
}

.modal-project-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.modal-project-desc {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.modal-tech-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   17. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-description {
        margin: 0 auto 2rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-visual {
        margin-top: 2rem;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .strengths-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(7, 9, 20, 0.98);
        backdrop-filter: blur(25px);
        padding: 6rem 2rem 2rem;
        transition: right 0.4s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
        border-left: 1px solid var(--border-glass);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 1.2rem;
        width: 100%;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 0.8rem 1.2rem;
        width: 100%;
    }

    .btn-zalo-nav {
        display: none;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .avatar-card-3d {
        width: 280px;
        height: 320px;
    }

    .utility-header {
        flex-direction: column;
        text-align: center;
    }

    .floating-zalo-btn {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
    }

    .zalo-tooltip {
        display: none;
    }
}
