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

/* ========== LIGHT THEME (mặc định) ========== */
:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --text: #1e293b;
    --text-light: #64748b;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --header-bg: rgba(255, 255, 255, 0.92);
    --card-bg: #ffffff;
    --input-bg: #ffffff;
    --radius: 12px;
    --transition: 0.3s ease;
}

/* ========== DARK THEME ========== */
[data-theme="dark"] {
    --primary: #60a5fa;
    --primary-dark: #3b82f6;
    --text: #f1f5f9;
    --text-light: #94a3b8;
    --bg: #0f172a;
    --bg-alt: #1e293b;
    --border: #334155;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --header-bg: rgba(15, 23, 42, 0.92);
    --card-bg: #1e293b;
    --input-bg: #1e293b;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    transition: background-color 0.35s ease, color 0.35s ease;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== HEADER ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    transition: color 0.3s ease;
}

/* Menu dropdown — luôn ẩn, mở bằng nút 3 gạch */
.nav {
    position: fixed;
    top: 70px;
    right: 16px;
    width: min(240px, calc(100vw - 32px));
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    padding: 8px;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(0.96);
    transform-origin: top right;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.35s ease, border-color 0.35s ease;
    z-index: 1001;
}

.nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    transition: color var(--transition), background 0.2s ease;
    position: relative;
    padding: 10px 12px;
    border-radius: 8px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
}

.nav-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 6px;
}

.nav-auth-primary {
    background: var(--primary) !important;
    color: #fff !important;
    text-align: center;
    font-weight: 600;
}

.nav-auth-primary:hover {
    background: var(--primary-dark) !important;
    color: #fff !important;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--bg-alt);
    border-color: var(--primary);
    color: var(--primary);
    transform: rotate(15deg);
}

.theme-toggle .icon-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: block;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    padding: 10px;
    width: 42px;
    height: 42px;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.menu-toggle:hover {
    border-color: var(--primary);
    background: var(--bg-alt);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    margin: 0 auto;
}

/* Hamburger → X khi mở menu */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    transition: background 0.5s ease;
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-greeting {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 8px;
}

.hero-name {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
}

.hero-title {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 20px;
}

.hero-desc {
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.avatar-img {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    margin: 0 auto;
    display: block;
    box-shadow: var(--shadow);
    border: 4px solid rgba(255, 255, 255, 0.8);
    animation: float 4s ease-in-out infinite;
    transition: box-shadow 0.3s ease, border-color 0.35s ease;
}

[data-theme="dark"] .avatar-img {
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.35);
}

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

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}

.btn-outline {
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
}

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

/* ========== SECTIONS ========== */
.section {
    padding: 90px 0;
    transition: background-color 0.35s ease;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* ========== ABOUT (cuối trang) ========== */
.about {
    position: relative;
    background: var(--bg);
    padding: 96px 0 110px;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, var(--bg-alt) 0%, transparent 28%),
        radial-gradient(circle at 0% 100%, rgba(59, 130, 246, 0.09), transparent 42%),
        radial-gradient(circle at 100% 0%, rgba(99, 102, 241, 0.07), transparent 38%);
    pointer-events: none;
    z-index: 0;
}

.about > .container {
    position: relative;
    z-index: 1;
}

.about .section-title {
    margin-bottom: 12px;
}

.about-lead {
    text-align: center;
    color: var(--text-light);
    margin: 0 auto 40px;
    max-width: 440px;
    font-size: 0.95rem;
    line-height: 1.55;
}

/* Khung chính: 1 khối thống nhất */
.about-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.85fr);
    gap: 0;
    max-width: 920px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 12px 40px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .about-shell {
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.2),
        0 16px 48px rgba(0, 0, 0, 0.35);
}

.about-main {
    padding: 32px 36px 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-right: 1px solid var(--border);
}

.about-avatar-block {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.about-avatar-ring {
    width: 84px;
    height: 84px;
    border-radius: 22px;
    padding: 3px;
    background: linear-gradient(145deg, #3b82f6, #6366f1 45%, #8b5cf6);
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
}

.about-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 19px;
    object-fit: cover;
    display: block;
    background: var(--bg-alt);
}

.about-avatar-meta h3 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
    color: var(--text);
}

.about-role {
    display: inline-block;
    color: var(--primary);
    font-size: 0.84rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.1);
    line-height: 1.3;
}

.about-text p {
    margin: 0 0 14px;
    color: var(--text-light);
    line-height: 1.75;
    font-size: 0.97rem;
}

.about-text p:last-of-type {
    margin-bottom: 0;
}

.about-text p strong {
    color: var(--text);
    font-weight: 600;
}

.about-focus {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
    padding-top: 18px;
    border-top: 1px dashed var(--border);
}

.about-chip {
    font-size: 0.76rem;
    font-weight: 600;
    padding: 7px 13px;
    border-radius: 10px;
    background: var(--bg-alt);
    color: var(--text);
    border: 1px solid var(--border);
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.about-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(59, 130, 246, 0.08);
    transform: translateY(-1px);
}

[data-theme="dark"] .about-chip:hover {
    background: rgba(59, 130, 246, 0.14);
}

/* Cột thông tin */
.about-side {
    padding: 28px 24px 28px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.04), transparent 40%);
}

[data-theme="dark"] .about-side {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.08), transparent 45%);
}

.about-side-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.about-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.about-info-list li {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 8px;
    align-items: baseline;
    padding: 10px 8px;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.about-info-list li:hover {
    background: rgba(59, 130, 246, 0.06);
}

.about-k {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-light);
}

.about-v {
    font-size: 0.92rem;
    color: var(--text);
    font-weight: 500;
    word-break: break-word;
}

.about-cta {
    width: 100%;
    text-align: center;
    justify-content: center;
    display: inline-flex;
    margin-top: auto;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(59, 130, 246, 0.35);
}

.info-link {
    color: var(--primary);
    transition: color 0.2s ease, opacity 0.2s ease;
}

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

/* ========== EDUCATION ========== */
.education {
    background: var(--bg);
}

.education-card {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.35s ease, border-color 0.35s ease;
}

.education-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.education-icon {
    font-size: 2.2rem;
    line-height: 1;
    flex-shrink: 0;
}

.education-body h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.education-major {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 4px;
}

.education-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.education-desc {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ========== SKILLS ========== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.skill-card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.35s ease, border-color 0.35s ease;
}

.skill-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.skill-card h3 {
    margin-bottom: 14px;
    font-size: 1.1rem;
}

.progress-bar {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary), #60a5fa);
    border-radius: 4px;
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ========== PROJECTS ========== */
.projects {
    background: var(--bg-alt);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.project-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.15);
}

.project-image-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-image {
    height: 180px;
    background: linear-gradient(135deg, #bfdbfe, #93c5fd);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e40af;
    font-weight: 500;
    transition: background 0.35s ease;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

.project-image-placeholder {
    padding: 12px;
    text-align: center;
}

.project-info h3 a {
    color: inherit;
    text-decoration: none;
}

.project-info h3 a:hover {
    color: var(--primary);
}

[data-theme="dark"] .project-image {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: #bfdbfe;
}

.project-info {
    padding: 22px;
}

.project-info h3 {
    margin-bottom: 8px;
}

.project-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.project-tags span {
    background: rgba(59, 130, 246, 0.12);
    color: var(--primary);
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
    transition: background 0.3s ease;
}

[data-theme="dark"] .project-tags span {
    background: rgba(96, 165, 250, 0.15);
}

.project-link {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: letter-spacing 0.2s ease;
}

.project-link:hover {
    letter-spacing: 0.5px;
}

/* ========== CONTACT ========== */
.contact {
    position: relative;
    background: var(--bg-alt);
    padding: 96px 0;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12), transparent 70%);
    top: -120px;
    right: -80px;
    pointer-events: none;
}

.contact::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1), transparent 70%);
    bottom: -100px;
    left: -60px;
    pointer-events: none;
}

.contact > .container {
    position: relative;
    z-index: 1;
}

.contact-head {
    text-align: center;
    margin-bottom: 36px;
}

.contact-eyebrow {
    display: inline-block;
    margin: 0 0 8px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
}

.contact .section-title {
    margin-bottom: 10px;
}

.contact-desc {
    text-align: center;
    color: var(--text-light);
    max-width: 460px;
    margin: 0 auto;
    font-size: 0.96rem;
    line-height: 1.6;
}

.contact-aside-note {
    margin: 16px 0 0;
    font-size: 0.78rem;
    color: var(--text-light);
    line-height: 1.45;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.contact-form .req {
    color: #ef4444;
}

.form-group select {
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--input-bg);
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
}

.contact-panel {
    display: grid;
    grid-template-columns: minmax(200px, 0.85fr) minmax(0, 1.25fr);
    max-width: 880px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 14px 40px rgba(15, 23, 42, 0.07);
}

[data-theme="dark"] .contact-panel {
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.25),
        0 18px 48px rgba(0, 0, 0, 0.4);
}

.contact-aside {
    padding: 32px 28px;
    background:
        linear-gradient(160deg, rgba(59, 130, 246, 0.14), rgba(99, 102, 241, 0.06) 40%, transparent 70%),
        var(--card-bg);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

[data-theme="dark"] .contact-aside {
    background:
        linear-gradient(160deg, rgba(59, 130, 246, 0.18), rgba(99, 102, 241, 0.08) 45%, transparent 75%),
        var(--card-bg);
}

.contact-aside-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--text);
}

.contact-aside-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0 0 8px;
}

.contact-channels {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-channels li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.35);
    transition: border-color 0.2s ease, transform 0.15s ease;
}

[data-theme="dark"] .contact-channels li {
    background: rgba(15, 23, 42, 0.35);
}

.contact-channels li:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.contact-ch-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.12);
    color: var(--primary);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.contact-ch-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-light);
    margin-bottom: 2px;
}

.contact-ch-value {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
    word-break: break-all;
}

a.contact-ch-value {
    color: var(--primary);
}

a.contact-ch-value:hover {
    text-decoration: underline;
}

.contact-form {
    padding: 32px 30px 34px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.86rem;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--input-bg);
    color: var(--text);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.3s ease,
        color 0.3s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.55;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
    opacity: 0.75;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: rgba(59, 130, 246, 0.45);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
    background: var(--card-bg);
}

.field-hint {
    font-size: 0.78rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.4;
}

.contact-submit {
    margin-top: 4px;
    width: 100%;
    justify-content: center;
    padding: 13px 18px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(59, 130, 246, 0.36);
}

.contact-panel.reveal,
.contact-panel.reveal.delay-1 {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
}

.contact-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media (max-width: 768px) {
    .contact-panel {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .contact-aside {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 24px 22px;
    }

    .contact-form {
        padding: 24px 22px 28px;
    }

    .contact-form-row {
        grid-template-columns: 1fr;
    }
}

/* ========== FOOTER ========== */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 30px 0;
    transition: background 0.35s ease;
}

[data-theme="dark"] .footer {
    background: #020617;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: #94a3b8;
    transition: color var(--transition), transform 0.2s ease;
}

.social-links a:hover {
    color: white;
    transform: translateY(-2px);
}

/* ========== ANIMATIONS ========== */

/* Load animation (Hero) */
.animate-on-load {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.animate-on-load.delay-1 {
    animation-delay: 0.2s;
}

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

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

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

    .about-shell {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .about-main {
        padding: 24px 22px 28px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .about-side {
        padding: 22px;
    }

    .about-avatar-ring {
        width: 72px;
        height: 72px;
        border-radius: 18px;
    }

    .about-avatar-img {
        border-radius: 15px;
    }

    .about-info-list li {
        grid-template-columns: 68px 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        right: 12px;
        left: 12px;
        width: auto;
    }

    .logo {
        font-size: 1.15rem;
    }

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

    .avatar-img {
        width: 240px;
        height: 240px;
    }
}

.field-hint {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 6px;
}

.nav-cart { position: relative; }
.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: 4px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
}
.nav-user {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    padding: 0 8px;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nav-user-link {
    font-weight: 600;
}
.project-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.user-status {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--bg-alt);
}
.user-status.pending {
    background: rgba(234, 179, 8, 0.18);
    color: #ca8a04;
}
.user-status.active {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.product-price {
    font-weight: 700;
    color: var(--primary);
    margin: 6px 0 4px;
    font-size: 0.95rem;
}

.price-old { text-decoration: line-through; color: var(--text-light); font-weight: 500; margin-right: 6px; font-size: 0.85em; }

/* ========== VERIFIED BADGE (tích xanh) ========== */
.hero-name {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.about-avatar-meta h3 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
    vertical-align: middle;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.verified-badge svg {
    display: block;
    filter: drop-shadow(0 2px 4px rgba(29, 155, 240, 0.35));
}

.verified-badge:hover {
    transform: scale(1.12);
    filter: brightness(1.08);
}

.hero-name .verified-badge svg {
    width: 26px;
    height: 26px;
}

.about-avatar-meta .verified-badge svg {
    width: 18px;
    height: 18px;
}

/* Social links trong footer — làm rõ hơn */
.social-links a {
    font-weight: 500;
    letter-spacing: 0.01em;
}

.social-links a:hover {
    color: #60a5fa;
}

[data-theme="dark"] .social-links a:hover {
    color: #93c5fd;
}
