/* =========================================================
   VARIABLES & FONTS
   ========================================================= */

:root {
    --dark: #050505;
    --pink: #ff4d94;
    --cyan: #00d4ff;
    --text: #ffffff;
    --text-dim: #888;
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
    --spacing-md: 15px;
    --spacing-lg: 30px;
}

:root {
    --bg-0: #040406;
    --bg-1: rgba(255, 255, 255, 0.08);
    --bg-2: rgba(255, 255, 255, 0.03);
    --glass-strong: rgba(255, 255, 255, 0.10);
    --glass-soft: rgba(255, 255, 255, 0.05);
    --glass-stroke: rgba(255, 255, 255, 0.14);
    --glass-highlight: rgba(255, 255, 255, 0.28);
    --shadow-soft: 0 20px 70px rgba(0, 0, 0, 0.38);
    --shadow-deep: 0 35px 120px rgba(0, 0, 0, 0.52);
}


:root {
    --content-max-width: 1600px;
    --page-padding: max(min(5vw, 56px), calc((100vw - var(--content-max-width)) / 2));
}

/* =========================================================
   GLOBAL RESET & BASE
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--dark);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    width: 100%;
    line-height: 1.7;
    /* Giúp các đoạn văn bản thoáng hơn */
}

body {
    line-height: 1.65;
    letter-spacing: -0.01em;
}

body {
    background: #050505;
}

/* =========================================================
   UTILITIES & COMPONENTS
   ========================================================= */

.glow-container {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.glow {
    position: absolute;
    width: 600px;
    height: 600px;
    filter: blur(150px);
    opacity: 0.1;
    border-radius: 50%;
}

.glow-1 {
    background: var(--pink);
    top: -200px;
    left: -100px;
}

.glow-2 {
    background: var(--cyan);
    bottom: -200px;
    right: -100px;
}

.headline {
    font-size: clamp(1.5rem, 2px, 2.5rem);
    font-weight: 700;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(90deg, var(--pink), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    margin: 0 10px;
    display: inline-block;
    transition: 0.3s;
}

.btn-pink {
    background: var(--pink);
    color: white;
    box-shadow: 0 10px 20px rgba(255, 51, 102, 0.2);
}

.btn-cyan {
    background: var(--cyan);
    color: white;
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.2);
}

.btn:hover {
    transform: translateY(-5px);
}

.section-tag {
    text-align: center;
    letter-spacing: 5px;
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-bottom: 60px;
    text-transform: uppercase;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    /* Căn giữa container */
    padding: 0 5%;
    /* Chừa 5% chiều rộng làm spacing 2 bên */
}

.section-tag {
    margin-bottom: 0;
    text-align: left;
    font-size: 0.78rem;
    letter-spacing: 0.32em;
    color: rgba(255, 255, 255, 0.38);
}

.glow {
    opacity: 0.18;
    filter: blur(170px);
}

.btn {
    margin: 0;
    min-width: 170px;
    padding: 15px 24px;
    border-radius: 999px;
    font-size: 0.94rem;
    letter-spacing: 0.01em;
}

.btn-primary-glass {
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 77, 148, 0.92), rgba(255, 77, 148, 0.62));
    box-shadow: 0 12px 36px rgba(255, 77, 148, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

.btn-secondary-glass {
    color: #fff;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.26), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* bỏ glow tím/cyan cố định trên nền */
.glow-container {
    pointer-events: none;
}

.glow-1,
.glow-2 {
    background: rgba(255, 255, 255, 0.22);
    opacity: 0.045;
}

/* Nút bấm tối giản */
.btn-filled {
    display: inline-block;
    margin-top: 40px;
    padding: 15px 35px;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    transition: 0.3s;
}

.btn-filled:hover {
    background: #ccc;
    transform: translateY(-3px);
}

/* Nút bấm tinh tế */
.btn-filled {
    display: inline-block;
    margin-top: 40px;
    padding: 18px 40px;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-filled:hover {
    letter-spacing: 0.25em;
    background: #f0f0f0;
}

/* =========================================================
   NAVIGATION
   ========================================================= */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    width: 100%;
    z-index: 1000;
}

.logo {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(4rem, 2vw, 10rem);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -6px;
    text-transform: uppercase;
}

.logo span {
    color: transparent;
    -webkit-text-stroke: 1px var(--text);
    opacity: 0.4;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--pink);
}

.nav-contact-btn {
    background: var(--pink);
    padding: 8px 20px;
    border-radius: 4px;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    right: 40px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px 0;
    list-style: none;
    min-width: 220px;

    /* Trạng thái ẩn */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nav-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(10px);
}

.nav-dropdown li a {
    display: block;
    padding: 12px 30px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: 0.3s;
}

.nav-dropdown li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    padding-left: 35px;
}

.logo {
    font-size: clamp(2.75rem, 3vw, 4.2rem);
    letter-spacing: -0.09em;
}

.nav-dropdown {
    right: 0;
    margin-top: 14px;
    min-width: 250px;
    background: linear-gradient(180deg, rgba(20, 20, 24, 0.90), rgba(10, 10, 12, 0.86));
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: var(--shadow-soft);
}

/* =========================================================
   HERO SECTION
   ========================================================= */

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 20px;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px) brightness(0.5);
    transform: scale(1.1);
}

.hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.main-title {
    font-family: 'Archivo';
    font-size: clamp(3.5rem, 10vw, 8rem);
    letter-spacing: -4px;
    line-height: 0.85;
    margin: 20px 0;
}

.hero-sub {
    color: var(--text-dim);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.main-title {
    font-family: 'Archivo', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Video phủ kín toàn bộ header */
    opacity: 0.4;
    /* Để video hơi tối một chút cho chữ nổi lên */
    filter: brightness(0.8) contrast(1.1);
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(5, 5, 5, 0.5) 0%,
            rgba(5, 5, 5, 0.2) 50%,
            rgba(5, 5, 5, 1) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    /* Đảm bảo chữ nằm trên cùng */
}

.main-title {
    animation: fadeInUp 1s ease forwards;
}

.hero {
    min-height: 100vh;
    padding: 130px 26px 72px;
    align-items: flex-end;
}

.hero-video {
    filter: blur(2px) brightness(0.34) saturate(1.05);
    transform: scale(1.05);
}

.video-overlay {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.02) 0%, rgba(5, 5, 8, 0.26) 38%, rgba(4, 4, 7, 0.82) 100%);
    z-index: 2;
}

.hero-kicker-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 34px;
    flex-wrap: wrap;
}

.glass-badge,
.hero-status,
.hero-meta-card,
.btn-primary-glass,
.btn-secondary-glass,
.p-body,
.skill-item,
.tool-card,
.profile-frame,
.contact-details,
.timeline,
.service-item {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(18px) saturate(155%);
    -webkit-backdrop-filter: blur(18px) saturate(155%);
}

.hero-status {
    padding: 10px 16px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.82rem;
}

.hero-copy {
    max-width: 940px;
}

.hero-eyebrow {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.48);
    margin-bottom: 18px;
}

.hero-title-xl {
    font-size: clamp(4.8rem, 12vw, 8.6rem);
    line-height: 0.92;
    letter-spacing: -0.08em;
    margin: 0 0 18px;
    text-wrap: balance;
}

.hero-role {
    font-size: clamp(1rem, 1.8vw, 1.35rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.hero-sub-large {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.70);
    font-size: clamp(1rem, 1.6vw, 1.14rem);
    margin-bottom: 0;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.hero-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 34px;
}

.hero-meta-card {
    padding: 16px 18px;
    border-radius: 22px;
}

.hero-meta-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.48);
    margin-bottom: 6px;
}

.hero-meta-card strong {
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
}

/* Hero Section Layout */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 5% 60px;
    overflow: hidden;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    /* Chia tỉ lệ chữ và ảnh */
    gap: 40px;
    align-items: center;
}

/* Typography phong cách mạnh mẽ */
.hero-title {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    /* Tự động co giãn size chữ */
    line-height: 0.9;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.title-line {
    display: block;
}

.title-line.outline {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 500px;
    margin-bottom: 40px;
}

/* Hiệu ứng ảnh bên phải */
.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    /* Có thể điều chỉnh tùy độ phân giải ảnh */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.hero-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    /* Hơi ám nhẹ màu phim */
    transition: transform 0.5s ease;
}

.hero-image-wrapper:hover .hero-main-image {
    transform: scale(1.05);
}

.hero-new {
    min-height: 100vh;
    background-color: var(--dark-bg);
    display: flex;
    align-items: center;
    padding: 0 8%;
    position: relative;
    overflow: hidden;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    align-items: center;
    width: 100%;
}

/* Style cho tiêu đề lớn */
.main-title {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(4rem, 10vw, 8rem);
    line-height: 0.85;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: #fff;
}

.main-title span {
    display: block;
}

.main-title .outline {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.4);
    margin-top: 10px;
}

.hero-desc {
    margin-top: 40px;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #888;
    max-width: 450px;
    line-height: 1.6;
}

/* Style cho hình ảnh */
.hero-image-box {
    position: relative;
    height: 75vh;
    display: flex;
    justify-content: flex-end;
}

.image-inner {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.image-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.1) grayscale(0.2);
}

/* 2. Video Background Styling */
.hero-new {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 8%;
    overflow: hidden;
    background: #000;
    /* Nền đen dự phòng */
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Làm tối video 40% để nổi bật chữ */
    z-index: 1;
}

/* 3. Nội dung phía trên video */
.hero-wrapper {
    position: relative;
    z-index: 2;
    /* Đẩy nội dung lên trên video */
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    width: 100%;
}

/* Tinh chỉnh lại tiêu đề chính để không bị tràn màn hình */
.main-title {
    font-family: 'Archivo', sans-serif !important;
    /* Sử dụng clamp với giá trị nhỏ nhất an toàn hơn cho mobile (3rem) */
    font-size: clamp(3.2rem, 12vw, 8.5rem);
    line-height: 0.85;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    margin: 0;
    width: 100%;
    word-wrap: break-word;
    /* Đảm bảo chữ không đâm thủng màn hình */
}

.main-title span {
    display: block;
    width: 100%;
}

.hero-image-box img {
    width: 100%;
    height: 75vh;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* =========================================================
   ABOUT & TIMELINE
   ========================================================= */

.about {
    padding: 100px 10%;
    border-top: 1px solid var(--border);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.profile-frame {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    line-height: 0;
}

.profile-frame img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Giãn dòng thông tin cá nhân */
.contact-details p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dim);
}

.contact-details a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.contact-details a:hover {
    color: var(--pink);
    text-decoration: underline;
}

.about-main {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.highlight-bio {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.timeline {
    margin-top: 50px;
}

.timeline-title {
    font-family: 'Archivo';
    margin-bottom: 30px;
    letter-spacing: 3px;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    color: var(--pink);
}

.t-item {
    margin-bottom: 35px;
}

.t-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.t-comp {
    color: var(--cyan);
    font-weight: 700;
}

.t-date {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.t-role {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

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

.showcase,
.about,
.software-stack,
#skills,
#customtools {
    position: relative;
    padding-left: min(5vw, 56px);
    padding-right: min(5vw, 56px);
}

.showcase-shell,
.about-grid,
.skills-container,
#customtools .container,
.software-marquee-shell {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
}

.showcase-heading,
#customtools .showcase-title,
.timeline-title,
.section-tag {
    position: relative;
}

.p-body p,
.t-desc,
.bio-intro p:not(.highlight-bio),
.contact-details p {
    color: rgba(255, 255, 255, 0.62);
}

.about {
    padding-top: 110px;
}

.about-grid {
    grid-template-columns: clamp(250px, 35%, 420px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: 120px;
}

.profile-frame,
.contact-details,
.timeline,
.skill-item,
.tool-card {
    border-radius: 28px;
}

.profile-frame {
    overflow: hidden;
}

.contact-details,
.timeline {
    padding: 22px;
}

.highlight-bio {
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.03;
    letter-spacing: -0.05em;
    max-width: 16ch;
}

.timeline-title {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 24px;
    color: #fff;
    letter-spacing: -0.04em;
    font-size: 1.5rem;
}

.timeline-title::before {
    content: "Section";
    display: block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-family: 'Inter', sans-serif;
}

.t-item+.t-item {
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ép section phía sau nằm dưới marquee overlay */
#skills,
#customtools,
footer,
.showcase,
.about {
    position: relative;
    z-index: 1;
}

/* =========================================================
   SHOWCASE & PROJECTS
   ========================================================= */

.showcase {
    padding: 100px 10%;
    background: #080808;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    width: 100%;
}

.p-card {
    position: relative;
    display: block;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 20px 60px rgba(0, 0, 0, 0.42);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.45s ease,
        box-shadow 0.45s ease;
}

.p-card:hover {
    border-color: var(--pink);
    transform: scale(1.08);
    box-shadow: 0 20px 40px rgba(255, 77, 148, 0.15);
}

.p-img-container {
    position: relative;
    height: clamp(280px, 32vw, 420px);
    overflow: hidden;
    border-radius: 22px;
    margin: 10px 10px 0;
}

.p-img {
    height: 280px;
    overflow: hidden;
    /* Cắt phần ảnh thừa khi phóng to */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    /* Nền dự phòng nếu ảnh lỗi */
}

.p-card:hover .card-video {
    transform: scale(1.08);
}

.p-body {
    position: relative;
    z-index: 2;
    padding: 22px 28px 30px;
    margin: 0 10px 10px;
    border-radius: 0 0 22px 22px;
    background:
        linear-gradient(180deg, rgba(8, 8, 8, 0.82) 0%, rgba(4, 4, 4, 0.96) 100%);
}

.p-body h3 {
    margin-bottom: 12px;
    font-size: 1.4rem;
}

.p-body p {
    color: var(--text-dim);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.p-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.p-meta span {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 12px;
    border-radius: 100px;
    border: 1px solid var(--border);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    width: 100%;
    margin-top: 40px;
}

.showcase {
    padding: 120px 5%;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.035), transparent 26%),
        linear-gradient(180deg, #060606 0%, #020202 100%);
}

.showcase-shell {
    max-width: 1380px;
    margin: 0 auto;
}

.showcase-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 38px;
}

.showcase-title {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: -2px;
    line-height: 0.95;
    color: rgba(255, 255, 255, 0.92);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    width: 100%;
    margin-top: 0;
}

.p-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border-radius: 32px;
    padding: 10px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.012) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.045),
        0 0 0 1px rgba(255, 255, 255, 0.02),
        0 22px 70px rgba(0, 0, 0, 0.46);
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.45s ease,
        box-shadow 0.45s ease;
    isolation: isolate;
}

.p-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.09) 0%,
            rgba(255, 255, 255, 0.03) 18%,
            transparent 38%,
            transparent 68%,
            rgba(255, 255, 255, 0.04) 100%);
    opacity: 0.72;
}

.p-card::after {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: -10%;
    height: 42%;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 32%, transparent 72%);
    filter: blur(34px);
    opacity: 0.92;
}

.p-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.055),
        0 0 0 1px rgba(255, 255, 255, 0.025),
        0 30px 90px rgba(0, 0, 0, 0.56);
}

.p-img-container {
    position: relative;
    height: clamp(280px, 32vw, 420px);
    overflow: hidden;
    border-radius: 24px;
    margin: 0;
    z-index: 1;
}

.p-img-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.12) 62%, rgba(0, 0, 0, 0.25) 100%);
    z-index: 1;
    pointer-events: none;
}

.p-card:hover .card-video {
    transform: scale(1.06);
    filter: saturate(1.08) contrast(1.05);
}

.p-card:hover .p-hover-marquee {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.p-body {
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 22px 28px 30px;
    border-radius: 0 0 24px 24px;
    background:
        linear-gradient(180deg, rgba(10, 10, 10, 0.52) 0%, rgba(6, 6, 6, 0.86) 28%, rgba(3, 3, 3, 0.98) 100%);
}

.p-body h3 {
    margin-bottom: 8px;
    font-size: clamp(1.35rem, 2vw, 2rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: rgba(255, 255, 255, 0.95);
}

.p-body p {
    color: rgba(255, 255, 255, 0.52);
    margin-bottom: 18px;
    font-size: 0.98rem;
    line-height: 1.55;
    max-width: 92%;
}

.p-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.p-meta span {
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.76);
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.software-stack .showcase-title {
    margin-bottom: 24px;
}

.software-marquee-section .showcase-title {
    margin-bottom: 30px;
    text-align: center;
}

.showcase {
    padding-top: 110px;
    background: transparent;
}

.showcase-title,
#customtools .showcase-title {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
    margin-bottom: 22px;
}

.showcase-heading::before,
#customtools .showcase-title::before {
    content: "Selected work";
    display: block;
    font-size: 0.82rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
    margin-bottom: 14px;
    font-family: 'Inter', sans-serif;
}

.project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 26px;
}

.p-card {
    border-radius: 28px;
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.p-img-container {
    height: clamp(300px, 34vw, 420px);
    margin: 12px 12px 0;
    border-radius: 24px;
}

.p-body {
    margin: 0 12px 12px;
    padding: 22px 24px 24px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(16, 16, 18, 0.32), rgba(10, 10, 12, 0.58));
}

.p-body h3 {
    font-size: 1.22rem;
    line-height: 1.2;
}

/* =========================================================
   SKILLS & SOFTWARE STACK
   ========================================================= */

.skills-container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 20px;
}

.skill-item {
    background: var(--glass);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid var(--border);
    transition: 0.3s;
}

.skill-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.skill-percentage {
    color: var(--text-dim);
}

.software-stack {
    padding: 80px 5%;
    text-align: center;
    position: relative;
}

.stack-container {
    display: grid;
    /* CHÌA KHÓA: Chia chính xác thành 5 cột bằng nhau */
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.stack-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    /* Đảm bảo item luôn căn giữa trong cột của nó */
    text-align: center;
}

.stack-container::-webkit-scrollbar {
    height: 5px;
}

.stack-container::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

.stack-container::-webkit-scrollbar {
    height: 4px;
    /* Thanh cuộn cực mảnh */
}

.stack-container::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

.stack-container::-webkit-scrollbar-thumb:hover {
    background: var(--pink);
    /* Hiện màu khi người dùng tương tác */
}

.stack-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    /* Giúp icon nhảy vào giữa màn hình khi dừng cuộn */
    scroll-snap-align: center;
}

.stack-icon {
    width: 75px;
    height: 75px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    /* Cắt bỏ phần thừa nếu logo tràn ra */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.software-img {
    /* Ép logo chiếm trọn 100% chiều rộng và cao của ô stack-icon */
    width: 100%;
    height: 100%;
    /* object-fit: cover sẽ giúp logo lấp đầy box mà không bị méo hình */
    object-fit: cover;
    transition: all 0.4s ease;
}

.stack-item:hover .stack-icon {
    border-color: var(--icon-color);
    box-shadow: 0 0 30px var(--icon-color);
    transform: translateY(-10px);
}

.stack-item:hover .software-img {
    transform: scale(1.1);
    /* Phóng to nhẹ icon bên trong */
    /* Tạo hiệu ứng icon tự phát sáng */
    filter: drop-shadow(0 0 5px var(--icon-color)) brightness(1.5);
}

.stack-item:hover .stack-icon svg {
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px var(--icon-color));
}

.stack-item p {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin-top: 5px;
}

.stack-item:hover p {
    color: var(--icon-color);
    text-shadow: 0 0 12px var(--icon-color);
    letter-spacing: 2px;
    /* Hiệu ứng giãn chữ nhẹ khi hover */
}

.stack-container {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    align-items: start;
}

.stack-icon {
    margin: 0 auto;
}

.software-img {
    object-fit: contain;
    padding: 10px;
}

.software-marquee-section {
    padding: 90px 0 110px;
    background: #000;
    overflow: hidden;
}

.software-marquee-shell {
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    width: 100%;
    padding: 64px 0 120px;
}

.software-marquee-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 10vw;
    z-index: 1;
    pointer-events: none;
}

.software-marquee-fade-left {
    left: 0;
    background: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.82) 45%, rgba(0, 0, 0, 0) 100%);
}

.software-marquee-fade-right {
    right: 0;
    background: linear-gradient(270deg, #000 0%, rgba(0, 0, 0, 0.82) 45%, rgba(0, 0, 0, 0) 100%);
}

.software-marquee-track {
    display: flex;
    width: max-content;
    align-items: center;
    will-change: transform;
    animation: software-marquee-rtl 24s linear infinite;
}

.software-marquee-group {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.service-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0 3.5vw;
}

.service-dot {
    width: 13px;
    height: 13px;
    margin-left: 3.5vw;
    border-radius: 50%;
    background: #00d4ff;
    box-shadow: 0 0 10px rgba(255, 29, 37, 0.8);
    flex-shrink: 0;
}

.service-icons {
    position: absolute;
    left: 50%;
    top: calc(100% + 18px);
    bottom: auto;
    transform: translateX(-50%) translateY(-8px);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.95) 0%, rgba(7, 7, 7, 0.93) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    z-index: 6;
}

.service-icons-wide {
    flex-wrap: nowrap;
}

.service-item:hover .service-icons {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.service-item:hover .service-label {
    filter: brightness(1.32) saturate(1.1) contrast(1.08);
    transform: translateY(-1px);
}

.service-item .service-text {
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(210, 210, 210, 0.72) 20%,
            rgba(120, 120, 120, 0.38) 52%,
            rgba(18, 18, 18, 0.98) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;

    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06),
        0 6px 16px rgba(0, 0, 0, 0.72),
        0 0 2px rgba(255, 255, 255, 0.08);
}

.service-icon-card {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 24px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    flex-shrink: 0;
}

.service-icon-card img {
    width: 74%;
    height: 74%;
    object-fit: contain;
    display: block;
}

.service-icon-text {
    font-family: 'Archivo', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.92);
}

.skills-container {
    max-width: 1320px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 0;
}

.skill-item {
    padding: 22px;
}

.software-stack {
    padding-top: 110px;
}

/* motion marquee sạch, full-width, icon không bị section sau che */
.software-marquee-section,
.software-stack.software-marquee-section {
    padding: 56px 0 150px !important;
    background: #000 !important;
    overflow: visible !important;
    position: relative;
    z-index: 50;
    isolation: isolate;
}

.software-marquee-shell,
.software-marquee-shell.software-marquee-shell--bleed {
    position: relative;
    max-width: none;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow-x: hidden !important;
    overflow-y: visible !important;
}

.software-marquee-shell--bleed .software-marquee-fade {
    width: 5vw;
    z-index: 1;
}

.software-marquee-track,
.software-marquee-track.software-marquee-track--xl {
    display: flex;
    align-items: center;
    gap: 0;
    width: max-content;
    animation: software-marquee-rtl 24s linear infinite;
    will-change: transform;
}

.software-marquee-group,
.software-marquee-track--xl .software-marquee-group {
    display: flex;
    align-items: center;
    min-width: max-content;
    flex-shrink: 0;
}

.service-item,
.software-marquee-track--xl .service-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    min-height: auto;
    padding: 0 2vw;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    z-index: 3;
}

.service-item::before,
.service-item::after,
.service-label::before,
.service-label::after,
.software-marquee-track--xl .service-item::before,
.software-marquee-track--xl .service-item::after,
.software-marquee-track--xl .service-label::before,
.software-marquee-track--xl .service-label::after {
    content: none !important;
    display: none !important;
}

.service-label,
.software-marquee-track--xl .service-label {
    position: relative;
    z-index: 3;
    font-weight: 800;
    white-space: nowrap;
    font-family: 'Archivo', sans-serif;
    font-size: clamp(3rem, 6vw, 6rem);
    line-height: 0.9;
    letter-spacing: -0.07em;
    color: transparent;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(220, 220, 220, 0.72) 22%,
            rgba(120, 120, 120, 0.34) 58%,
            rgb(99 99 99 / 95%) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0 !important;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
    filter: saturate(0.92) contrast(1.06);
    transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;

}

.service-item.is-featured .service-label,
.software-marquee-track--xl .service-item.is-featured .service-label {
    filter: brightness(1.03);
}

.service-dot,
.software-marquee-track--xl .service-dot {
    width: 12px;
    height: 12px;
    margin-left: 2vw;
    flex-shrink: 0;
    border-radius: 999px;
    background: #00d4ff;
    box-shadow: 0 0 14px rgba(0, 212, 255, 0.7);
}

.service-icons,
.software-marquee-track--xl .service-icons {
    position: absolute;
    left: 50%;
    top: calc(100% + 12px);
    transform: translateX(-50%) translateY(-6px);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 20px;
    background: rgba(12, 12, 12, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 9999;
}

.service-item:hover,
.service-item:hover .service-label,
.service-item:hover .service-icons {
    z-index: 9999;
}

.service-item:hover .service-icons,
.software-marquee-track--xl .service-item:hover .service-icons {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.service-icons-wide {
    flex-wrap: nowrap;
}

.service-icon-card {
    width: 52px;
    height: 52px;
    border-radius: 15px;
}

/* =========================================================
   TOOL GRID
   ========================================================= */

.tool-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.tool-card {
    position: relative;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 60px 45px;
    text-decoration: none;
    overflow: hidden;
    display: flex;
    align-items: center;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 220px;
    color: #ffffff;
    /* Luôn là chữ trắng */
}

.tool-bg-icon {
    position: absolute;
    left: -45px;
    /* Lệch sang trái */
    top: 50%;
    transform: translateY(-50%) scale(2.4);
    /* To gấp đôi */
    opacity: 0.1;
    /* Mờ chìm tinh tế */
    filter: grayscale(1) brightness(0.8);
    transition: all 0.7s ease;
    z-index: 0;
    pointer-events: none;
}

.tool-bg-icon img {
    height: 140px;
    width: auto;
}

.tool-content {
    position: relative;
    z-index: 1;
    margin-left: 20px;
}

.tool-content h3 {
    color: #ffffff !important;
    font-size: 1.8rem;
    margin-bottom: 8px;
    transition: all 0.4s ease;
}

.tool-content p {
    color: #ffffff !important;
    opacity: 0.7;
    font-size: 1rem;
    line-height: 1.5;
}

/* Tông màu xanh Python */


.tool-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--glow);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Logo sáng lên, hiện màu và tỏa Glow khi hover */
.tool-card:hover .tool-bg-icon {
    opacity: 0.4;
    transform: translateY(-50%) scale(2.6) rotate(-8deg);
    filter: grayscale(0) brightness(1.1) drop-shadow(0 0 20px var(--glow));
}

.tool-card:hover h3 {
    color: var(--glow) !important;
    /* Tiêu đề đổi màu theo logo */
}

.tool-grid-2col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.tool-card {
    min-height: 240px;
    padding: 34px 30px;
}

.tool-content h3 {
    font-size: 1.55rem;
    line-height: 1.02;
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
    text-align: center;
    padding: 60px 0;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.85rem;
}

.card-footer {
    margin-top: 15px;
    font-weight: 700;
    color: #fff;
    font-size: 0.85rem;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.4s;
}

.square-card:hover .card-footer {
    opacity: 1;
    transform: translateY(0);
}

footer {
    margin-top: 70px;
    color: rgba(255, 255, 255, 0.45);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* =========================================================
   FINAL FIXES & OVERRIDES
   ========================================================= */

/* giảm tint tím ở các section dùng gradient cũ */
.showcase,
.about,
#customtools,
footer {
    background-image: none !important;
}

.navbar,
.showcase,
.about,
.software-stack,
#skills,
#customtools,
.hero-new {
    padding-left: var(--page-padding) !important;
    padding-right: var(--page-padding) !important;
}

/* =========================================================
   MEDIA QUERIES (RESPONSIVE)
   ========================================================= */

/* Tùy chỉnh màu sắc riêng cho từng loại nếu muốn (Đã tích hợp trong style của thẻ span ở HTML) */


@media (max-width: 600px) {

    /* 1. Giảm kích thước chữ tiêu đề để không bị tràn màn hình */
    .main-title {
        font-size: 3.5rem;
        /* Nhỏ hơn so với máy tính */
        letter-spacing: -2px;
    }

    nav .nav-links {
        display: none;
    }

    .headline {
        font-size: 1.8rem;
    }

    /* 2. Chuyển các cột từ hàng ngang thành hàng dọc */
    .about-grid {
        grid-template-columns: 1fr;
    }

    /* 3. Điều chỉnh phần Hero để video và nội dung cân đối hơn */
    .hero {
        height: auto;
        padding: 120px 20px 60px;
    }

    .hero-btns {
        display: flex;
        gap: 15px;
        justify-content: center;
        margin-top: 30px;
        flex-wrap: wrap;
    }

    .btn {
        margin: 0;
        width: 100%;
        /* Nút bấm rộng hết màn hình cho dễ bấm */
    }

    /* 4. Ẩn bớt menu hoặc điều chỉnh nav nếu quá chật */
    nav {
        padding: 15px 5%;
    }

    .nav-links a {
        margin-left: 15px;
        font-size: 0.7rem;
    }
}

@media (max-width: 600px) {
    .stack-container {
        gap: 25px;
        padding: 0 10px;
    }

    .stack-icon {
        width: 65px;
        height: 65px;
        border-radius: 15px;
    }

    .stack-icon svg {
        width: 30px;
        height: 30px;
    }

    .stack-item p {
        font-size: 0.65rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
        /* Luôn là 1 cột trên đt để không bị lệch */
    }
}

@media (max-width: 992px) {
    .tool-grid-2col {
        grid-template-columns: 1fr;
        /* Chuyển về 1 cột trên điện thoại */
    }

    .container {
        padding: 0 30px;
    }
}

/* Responsive cho điện thoại */
@media (max-width: 900px) {
    .lebrov-card {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .main-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 1100px) {
    .tool-square-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .tool-square-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .project-grid {
        grid-template-columns: 1fr;
    }

    .showcase-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 28px;
    }

    .p-img-container {
        height: 420px;
    }
}

@media (max-width: 700px) {
    .showcase {
        padding: 90px 20px;
    }

    .p-card {
        border-radius: 26px;
        padding: 8px;
    }

    .p-img-container {
        height: 250px;
        margin: 0;
        border-radius: 20px;
    }

    .p-hover-marquee {
        left: 0;
        right: 0;
        top: 38%;
        padding: 16px 0;
        border-radius: 0;
    }

    .p-hover-track {
        gap: 28px;
    }

    .p-hover-track span {
        font-size: 0.92rem;
    }

    .p-body {
        margin: 0;
        padding: 18px 18px 22px;
        border-radius: 0 0 20px 20px;
    }

    .p-body p {
        max-width: 100%;
        font-size: 0.92rem;
    }
}

@media (max-width: 600px) {
    .stack-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .software-marquee-shell {
        padding: 48px 0 96px;
    }

    .service-item {
        padding: 0 5vw;
    }

    .service-dot {
        width: 10px;
        height: 10px;
        margin-left: 5vw;
    }

    .service-icons {
        gap: 10px;
        padding: 10px 12px;
        border-radius: 18px;
    }

    .service-icon-card {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }
}

@media (max-width: 640px) {
    .software-marquee-section {
        padding: 70px 0 90px;
    }

    .software-marquee-shell {
        padding: 32px 0 88px;
    }

    .software-marquee-track {
        animation-duration: 18s;
    }

    .service-label {
        font-size: clamp(2.2rem, 10vw, 3.2rem);
    }

    .service-item {
        padding: 0 7vw;
    }

    .service-dot {
        width: 9px;
        height: 9px;
        margin-left: 7vw;
    }

    .service-icons {
        top: calc(100% + 12px);
        gap: 8px;
        padding: 8px 10px;
        border-radius: 16px;
    }

    .service-icon-card {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }
}

@media (max-width: 1100px) {

    .project-grid,
    .hero-meta-grid,
    .tool-grid-2col,
    .skills-container {
        grid-template-columns: 1fr 1fr;
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 780px) {

    .hero {
        padding: 112px 14px 40px;
        min-height: auto;
    }

    .liquid-glass-panel {
        border-radius: 26px;
        padding: 22px;
    }

    .hero-title-xl {
        font-size: clamp(3.6rem, 20vw, 5.4rem);
    }

    .hero-meta-grid,
    .project-grid,
    .tool-grid-2col,
    .skills-container {
        grid-template-columns: 1fr;
    }

    .showcase,
    .about,
    .software-stack,
    #skills,
    #customtools {
        padding-left: 16px;
        padding-right: 16px;
    }

    .showcase-title,
    #customtools .showcase-title,
    .timeline-title {
        font-size: 2rem;
    }

    .logo {
        font-size: 2.1rem;
    }

    .hero-status {
        font-size: 0.76rem;
    }
}

@media (max-width: 900px) {

    .software-marquee-section,
    .software-stack.software-marquee-section {
        padding: 44px 0 120px !important;
    }

    .service-item,
    .software-marquee-track--xl .service-item {
        padding: 0 3vw;
    }

    .service-label,
    .software-marquee-track--xl .service-label {
        font-size: clamp(2.3rem, 9vw, 4.2rem);
    }

    .service-dot,
    .software-marquee-track--xl .service-dot {
        width: 10px;
        height: 10px;
        margin-left: 3vw;
    }

    .service-icons,
    .software-marquee-track--xl .service-icons {
        top: calc(100% + 10px);
    }
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 60px;
    }

    .hero-subtitle {
        margin: 0 auto 40px;
    }

    .hero-image-wrapper {
        height: 400px;
        order: -1;
        /* Đưa ảnh lên trên cùng ở mobile nếu muốn */
    }
}

/* Responsive cho điện thoại */
@media (max-width: 1024px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        padding-top: 100px;
    }

    .hero-image-box {
        height: 50vh;
        order: -1;
    }

    .main-title {
        font-size: 4rem;
    }
}

/* Responsive cho thiết bị di động (Mobile) */
@media (max-width: 768px) {
    .hero-new {
        padding: 0 5%;
        /* Giảm padding hai bên để có thêm không gian cho chữ */
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        /* Chuyển sang 1 cột */
        gap: 30px;
        text-align: left;
        /* Giữ canh lề trái cho đúng style portfolio */
    }

    .main-title {
        /* Fix cứng font-size trên mobile nếu clamp vẫn còn quá to */
        font-size: 14vw;
        line-height: 0.9;
    }

    .hero-image-box {
        order: -1;
        /* Đưa ảnh lên trên chữ nếu muốn (tùy bạn chọn nhé) */
        height: 40vh;
        /* Giảm chiều cao ảnh trên mobile */
        margin-top: 80px;
        /* Tránh đè lên Menu */
    }

    .hero-desc {
        font-size: 0.95rem;
        max-width: 100%;
    }
}

/* =========================================================
   OTHER / UNCATEGORIZED
   ========================================================= */

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.card-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.progress-line {
    position: relative;
    height: 6px;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-line span {
    position: absolute;
    height: 100%;
    border-radius: 10px;
    left: 0;
    top: 0;
    animation: animate-progress 2s cubic-bezier(1, 0, 0.5, 1) forwards;
}

@keyframes animate-progress {
    from {
        width: 0;
    }
}

.houdini-card {
    --glow: #ff8500;
}

.blender-card {
    --glow: #ea7600;
}

/* Tông màu cam Blender */
.automation-card {
    --glow: #3776ab;
}

.tool-hero-minimal {
    padding: 180px 0 80px;
    border-bottom: 1px solid var(--border);
}

.category-tag {
    color: var(--h-orange);
    /* Màu cam Houdini */
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 15px;
}

.main-description {
    color: var(--text-dim);
    font-size: 1.2rem;
    max-width: 600px;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
    /* Khoảng cách rộng giữa các bài viết */
    padding: 80px 0;
}

.lebrov-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    /* Tỉ lệ ảnh và chữ */
    gap: 50px;
    text-decoration: none;
    align-items: center;
    transition: all 0.4s ease;
}

.card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
    border: 1px solid var(--border);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-info {
    padding-right: 20px;
}

.card-meta {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dim);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.card-title {
    font-size: 2.2rem;
    font-family: 'Archivo';
    margin-bottom: 20px;
    color: #fff;
    line-height: 1.2;
}

.card-excerpt {
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1rem;
}

.card-link {
    font-weight: 700;
    color: #fff;
    font-size: 0.9rem;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

.lebrov-card:hover {
    opacity: 0.9;
}

.lebrov-card:hover .card-image img {
    transform: scale(1.05);
    /* Ảnh to lên nhẹ */
}

.lebrov-card:hover .card-title {
    color: var(--h-orange);
    /* Tiêu đề đổi sang màu cam Houdini */
}

.lebrov-card:hover .card-link {
    border-bottom: 1px solid var(--h-orange);
    padding-left: 10px;
}

.lebrov-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 100px 0;
}

.lebrov-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 24px;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.2, 1, 0.3, 1);
    /* Chuyển động kiểu Lebrov */
}

.item-content {
    position: relative;
    z-index: 2;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
    max-width: 60%;
}

.lebrov-item:hover .item-content {
    transform: translateX(-20px);
    /* Chữ dạt sang trái 20px khi hover */
}

.item-tag {
    color: var(--h-orange);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.item-title {
    font-family: 'Archivo';
    font-size: 2.2rem;
    color: #fff;
    margin: 10px 0;
}

.item-desc {
    color: var(--text-dim);
    line-height: 1.6;
}

.item-image-box {
    position: absolute;
    right: 40px;
    /* Nằm bên phải */
    width: 320px;
    height: 80%;
    border-radius: 16px;
    overflow: hidden;

    /* Trạng thái mặc định: Mờ và nhỏ */
    opacity: 0.1;
    transform: scale(0.8) translateX(20px);
    filter: blur(10px) grayscale(1);
    transition: all 0.7s cubic-bezier(0.2, 1, 0.3, 1);
    z-index: 1;
}

/* Khi Hover: Ảnh hiện rõ, hết opacity, phóng to về gốc */
.lebrov-item:hover .item-image-box {
    opacity: 1;
    /* Hết opacity hoàn toàn */
    transform: scale(1) translateX(0);
    /* Về vị trí và kích thước chuẩn */
    filter: blur(0) grayscale(0);
    /* Hết mờ và hiện màu */
}

.item-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hover toàn card: Viền sáng lên nhẹ */
.lebrov-item:hover {
    border-color: rgba(255, 133, 0, 0.4);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Lưới chia cột cho card hình vuông */
.tool-square-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    /* Tự động chia cột */
    gap: 30px;
    padding: 100px 0;
}

.square-card {
    position: relative;
    aspect-ratio: 1 / 1;
    /* Cố định tỉ lệ hình vuông */
    background: #0f0f0f;
    border: 1px solid var(--border);
    border-radius: 32px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.card-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;

    /* Trạng thái mặc định: Mờ và tối */
    opacity: 0.2;
    filter: grayscale(1) blur(5px);
    transform: scale(1.1);
    /* Hơi phóng to nhẹ */
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

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

/* Khi Hover: Ảnh hiện rõ nét, hết opacity */
/* Lưới chia 3 cột */
.tool-square-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Chia đúng 3 cột đều nhau */
    gap: 25px;
    /* Khoảng cách giữa các card */
    padding: 80px 0;
}

.square-card {
    position: relative;
    aspect-ratio: 1 / 1;
    /* Luôn giữ hình vuông */
    background: #0a0a0a;
    border: 1px solid var(--border);
    border-radius: 28px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.card-image-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.15;
    /* Mờ mặc định */
    filter: grayscale(1) blur(8px);
    transform: scale(1.1);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

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

.square-card:hover .card-image-bg {
    opacity: 0.7;
    /* Hiện rõ hình ảnh */
    filter: grayscale(0) blur(0);
    transform: scale(1);
}

.card-content-overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

/* Hiệu ứng dạt trái */
.square-card:hover .card-content-overlay {
    transform: translateX(-15px);
}

/* Thiết kế Tag phong cách tối giản kỹ thuật */
.card-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    /* Nhỏ nhắn, tinh tế */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    /* Giãn chữ tạo cảm giác sang trọng */
    color: #ffffff;
}

/* Thêm đường kẻ dọc nhỏ phía trước để tăng tính dẫn dắt thị giác */
.card-tag::before {
    content: '';
    width: 1px;
    height: 12px;
    background-color: #ffffff;
    opacity: 0.6;
}

/* Hiệu ứng nhẹ khi Hover vào Card (Tag sáng lên) */
.square-card:hover .card-tag {
    letter-spacing: 3px;
    /* Giãn thêm một chút khi hover */
    transition: all 0.4s ease;
}

.card-title {
    font-family: 'Archivo';
    font-size: 1.8rem;
    /* Giảm nhẹ size chữ để vừa 3 cột */
    line-height: 1.2;
    color: #fff;
    margin: 12px 0;
}

.card-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Giới hạn 2 dòng để đều card */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.square-card:hover {
    border-color: rgba(255, 133, 0, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.tool-hero-minimal.video-hero {
    position: relative;
    padding: 220px 0 120px;
    /* Tăng padding để hero lớn hơn */
    overflow: hidden;
    background: #000;
    border-bottom: 1px solid var(--border);
}

.video-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-toggle {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    z-index: 1001;
}

.menu-text {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #fff;
    transition: 0.3s;
}

.has-submenu {
    position: relative;
}

.submenu-toggle {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
}

.arrow {
    font-size: 0.6rem;
    transition: transform 0.3s ease;
}

.submenu {
    list-style: none;
    padding-left: 20px;
    /* Thụt lề vào trong để phân biệt */
    max-height: 0;
    /* Chiều cao bằng 0 để ẩn */
    overflow: hidden;
    /* Giấu nội dung thừa */
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: rgba(255, 255, 255, 0.02);
    /* Nền tối hơn một chút */
}

.has-submenu.open .submenu {
    max-height: 200px;
    /* Cho phép hiển thị hết các mục con */
    padding-top: 10px;
    padding-bottom: 10px;
}

.has-submenu.open .arrow {
    transform: rotate(180deg);
    /* Xoay mũi tên lên trên */
}

.submenu li a {
    padding: 8px 30px !important;
    font-size: 0.75rem !important;
    /* Chữ nhỏ hơn một chút so với menu chính */
    opacity: 0.7;
}

.submenu li a:hover {
    opacity: 1;
    padding-left: 35px !important;
}

.card-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition:
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.6s ease;
    filter: saturate(1.02) contrast(1.02);
}

.p-hover-marquee {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 39%;
    transform: translateY(-50%);
    overflow: hidden;
    padding: 22px 0;
    opacity: 0;
    pointer-events: none;
    z-index: 3;
    background: rgba(208, 186, 165, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px) saturate(130%);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 10px 30px rgba(0, 0, 0, 0.16);
    transition:
        opacity 0.35s ease,
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: 0;
}

.p-hover-track {
    width: max-content;
    display: flex;
    align-items: center;
    gap: 44px;
    animation: showcase-marquee 11s linear infinite;
}

.p-hover-track span {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-weight: 600;
    font-size: clamp(1rem, 1vw, 1.15rem);
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.96);
    white-space: nowrap;
}

@keyframes showcase-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-25%);
    }
}

@keyframes software-marquee-rtl {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-50%, 0, 0);
    }
}

.navbar {
    padding: 18px 22px 18px 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.menu-text {
    color: rgba(255, 255, 255, 0.78);
}

.video-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(3, 3, 5, 0.38) 0%, rgba(3, 3, 6, 0.52) 40%, rgba(4, 4, 8, 0.88) 100%),
        radial-gradient(circle at center, rgba(255, 255, 255, 0.03), transparent 44%);
    z-index: 1;
}

.liquid-glass-panel {
    width: min(100%, 1180px);
    padding: clamp(28px, 4vw, 44px);
    border-radius: 34px;
    text-align: left;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.04) 100%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: var(--shadow-deep), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(26px) saturate(165%);
    -webkit-backdrop-filter: blur(26px) saturate(165%);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 70%, var(--dark-bg));
}

.video-content {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Đảm bảo video phủ kín màn hình */
}

/* =========================================================
   DESKTOP NAVIGATION MENU RESPONSIVE LAYOUT
   ========================================================= */
@media (min-width: 993px) {

    /* Ẩn nút hamburger trên PC */
    .menu-toggle {
        display: none !important;
    }

    /* Đưa menu thành dàn ngang (Flexbox) trơn tru, giống thiết kế chuẩn */
    .nav-dropdown {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        min-width: auto !important;
    }

    /* Khoảng cách giữa các mục menu */
    .nav-dropdown>li {
        position: relative;
        margin-left: 45px;
        /* Tăng khoảng cách trải đều */
    }

    .nav-dropdown>li>a {
        display: inline-block;
        padding: 10px 0;
        background: transparent !important;
        color: rgba(255, 255, 255, 0.85);
        font-size: 0.85rem;
        font-weight: 600;
        letter-spacing: 1.5px;
        transition: color 0.3s ease;
    }

    /* Reset các hiệu ứng hover bị "giật chữ" sang phải trên di động do kế thừa */
    .nav-dropdown>li>a:hover {
        padding-left: 0 !important;
        /* Bỏ thay đổi padding khi lướt lên trên PC */
        background: transparent !important;
        /* Loại bỏ box xám đằng sau như mobile */
        color: #fff;
    }

    /* Submenu (Phần TOOLS) */
    .has-submenu {
        position: relative;
    }

    .submenu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        background: rgba(10, 10, 10, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        min-width: 180px;
        opacity: 0;
        visibility: hidden;
        max-height: none !important;
        padding: 10px 0;
        transition: all 0.3s ease;
        text-align: center;
    }

    .submenu li a:hover {
        background: rgba(255, 255, 255, 0.05) !important;
        padding-left: 30px !important;
    }

    /* Tool dropdown hover cho PC */
    .has-submenu:hover .submenu,
    .has-submenu.open .submenu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}