:root {
    --color-bg: #050508;
    --color-bg-secondary: #0a0a0f;
    --color-card-bg: rgba(255, 255, 255, 0.03);
    --color-text: #f5f5f7;
    --color-text-secondary: #a1a1a6;
    --color-accent: #8b5cf6;
    --color-accent-secondary: #06b6d4;
    --color-accent-hover: #7c3aed;
    --color-border: rgba(255, 255, 255, 0.06);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.5);
    --animation-speed: 0.3s;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --text-max: 68ch;
    --glow-primary: rgba(139, 92, 246, 0.4);
    --glow-secondary: rgba(6, 182, 212, 0.4);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --gradient-text: linear-gradient(90deg, #a855f7, #ec4899, #f97316, #eab308, #22c55e, #06b6d4, #3b82f6, #a855f7);
}

[data-theme="light"] {
    --color-bg: #fafafa;
    --color-bg-secondary: #f4f4f5;
    --color-card-bg: #ffffff;
    --color-text: #09090b;
    --color-text-secondary: #52525b;
    --color-accent: #7c3aed;
    --color-accent-hover: #6d28d9;
    --color-border: #e4e4e7;
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
    --glow-primary: rgba(124, 58, 237, 0.2);
    --glow-secondary: rgba(6, 182, 212, 0.2);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    perspective: 1000px;
}

body {
    font-family: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
}


body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 80% 50% at 20% -20%, rgba(139, 92, 246, 0.25), transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 10%, rgba(6, 182, 212, 0.2), transparent 50%),
        radial-gradient(ellipse 70% 50% at 50% 100%, rgba(236, 72, 153, 0.15), transparent 50%),
        radial-gradient(ellipse 100% 100% at 50% 50%, rgba(139, 92, 246, 0.05), transparent);
    z-index: -10;
    animation: aurora 15s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes aurora {
    0% {
        opacity: 1;
        filter: hue-rotate(0deg);
    }

    50% {
        opacity: 0.8;
        filter: hue-rotate(15deg);
    }

    100% {
        opacity: 1;
        filter: hue-rotate(-10deg);
    }
}


body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -9;
    pointer-events: none;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(60px, 60px);
    }
}

[data-theme="light"] body::before {
    background:
        radial-gradient(ellipse 80% 50% at 20% -20%, rgba(139, 92, 246, 0.12), transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 10%, rgba(6, 182, 212, 0.1), transparent 50%),
        radial-gradient(ellipse 70% 50% at 50% 100%, rgba(236, 72, 153, 0.08), transparent 50%);
}

[data-theme="light"] body::after {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}


.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -5;
    pointer-events: none;
    overflow: hidden;
    will-change: transform;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    mix-blend-mode: screen;
}

.blob-1 {
    top: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.5), rgba(168, 85, 247, 0.3));
    animation: blob1 25s infinite alternate ease-in-out;
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.4), rgba(56, 189, 248, 0.3));
    animation: blob2 20s infinite alternate ease-in-out;
}

.blob-3 {
    top: 40%;
    left: 50%;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(244, 114, 182, 0.2));
    animation: blob3 22s infinite alternate ease-in-out;
}

@keyframes blob1 {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    33% {
        transform: translate(100px, 50px) scale(1.1) rotate(45deg);
    }

    66% {
        transform: translate(-50px, 100px) scale(0.95) rotate(-30deg);
    }

    100% {
        transform: translate(80px, -30px) scale(1.05) rotate(60deg);
    }
}

@keyframes blob2 {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    33% {
        transform: translate(-80px, -40px) scale(1.15) rotate(-45deg);
    }

    66% {
        transform: translate(60px, -80px) scale(0.9) rotate(30deg);
    }

    100% {
        transform: translate(-40px, 60px) scale(1.08) rotate(-60deg);
    }
}

@keyframes blob3 {
    0% {
        transform: translate(-50%, 0) scale(1) rotate(0deg);
    }

    50% {
        transform: translate(-50%, -80px) scale(1.2) rotate(45deg);
    }

    100% {
        transform: translate(-50%, 50px) scale(0.95) rotate(-45deg);
    }
}

[data-theme="light"] .blob {
    opacity: 0.15;
    mix-blend-mode: multiply;
}


.bg-3d-scene {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 70vh;
    height: 70vh;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
    opacity: 0.12;
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 30s infinite linear;
}

.cube-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid;
    border-image: var(--gradient-primary) 1;
    box-sizing: border-box;
    opacity: 0.4;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.02), transparent);
}

.cube-face:nth-child(1) {
    transform: rotateY(0deg) translateZ(35vh);
}

.cube-face:nth-child(2) {
    transform: rotateY(90deg) translateZ(35vh);
}

.cube-face:nth-child(3) {
    transform: rotateY(180deg) translateZ(35vh);
}

.cube-face:nth-child(4) {
    transform: rotateY(-90deg) translateZ(35vh);
}

.cube-face:nth-child(5) {
    transform: rotateX(90deg) translateZ(35vh);
}

.cube-face:nth-child(6) {
    transform: rotateX(-90deg) translateZ(35vh);
}

@keyframes rotateCube {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

[data-theme="light"] .bg-3d-scene {
    opacity: 0.04;
}


.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.8rem 0;
    z-index: 1000;
    background: rgba(5, 5, 8, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    transition: all 0.3s ease;
}

[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.8);
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    z-index: 10;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #a855f7, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo span {
    background: linear-gradient(135deg, #06b6d4, #22c55e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-list {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #a855f7, #06b6d4);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--color-text);
}

.nav-link:hover::after {
    width: 100%;
}

.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--color-text);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.icon-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #a855f7, #06b6d4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.icon-btn i {
    position: relative;
    z-index: 1;
}

.icon-btn:hover {
    transform: scale(1.1) rotate(10deg);
    border-color: transparent;
    box-shadow: 0 0 25px var(--glow-primary);
}

.icon-btn:hover::before {
    opacity: 1;
}

.icon-btn:hover i {
    color: #fff;
}


/* ===== HERO SECTION ===== */
.hero {
    padding-top: 50px;
    padding-bottom: 60px;
    text-align: center;
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
}


.hero-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 2rem;
    padding: 4px;
    background: linear-gradient(135deg, #a855f7, #ec4899, #06b6d4, #22c55e);
    background-size: 300% 300%;
    animation: avatarGlow 4s ease infinite, floatAvatar 6s ease-in-out infinite;
    box-shadow:
        0 0 40px rgba(139, 92, 246, 0.4),
        0 0 80px rgba(6, 182, 212, 0.2),
        0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.hero-avatar::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #ec4899, #06b6d4);
    background-size: 300% 300%;
    animation: avatarGlow 4s ease infinite;
    z-index: -1;
    filter: blur(15px);
    opacity: 0.6;
}

@keyframes avatarGlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes floatAvatar {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--color-bg);
}


.hero-name {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 0.5rem;
    background: var(--gradient-text);
    background-size: 400% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientText 8s linear infinite;
    position: relative;
    display: inline-block;
}

@keyframes gradientText {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 400% 50%;
    }
}

.hero-name::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #a855f7, #06b6d4, transparent);
    border-radius: 4px;
    animation: lineGlow 3s ease-in-out infinite;
}

@keyframes lineGlow {

    0%,
    100% {
        opacity: 0.5;
        width: 40%;
    }

    50% {
        opacity: 1;
        width: 80%;
    }
}

.hero-username {
    font-size: 1.2rem;
    background: linear-gradient(90deg, #a855f7, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    display: block;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.hero-bio {
    font-size: 1rem;
    color: var(--color-text-secondary);
    max-width: var(--text-max);
    margin: 0 auto 2rem;
    line-height: 1.8;
}


.section-title {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
    margin: 4rem 0 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--color-text), var(--color-text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title i {
    background: linear-gradient(135deg, #a855f7, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title::before,
.section-title::after {
    content: '';
    height: 2px;
    width: 60px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), rgba(6, 182, 212, 0.5), transparent);
    border-radius: 2px;
}


.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px) saturate(150%);
    box-shadow:
        var(--shadow-card),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    transform: perspective(1000px);
    position: relative;
    overflow: hidden;
}


.glass-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            transparent 20%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 80%);
    transform: rotate(45deg);
    transition: all 0.8s ease;
    opacity: 0;
}

.glass-card:hover::before {
    top: 100%;
    left: 100%;
    opacity: 1;
}


.glass-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0), rgba(6, 182, 212, 0));
    opacity: 0;
    z-index: -1;
    transition: all 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow:
        0 25px 60px rgba(139, 92, 246, 0.25),
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass-card:hover::after {
    background: linear-gradient(135deg, var(--glow-primary), var(--glow-secondary));
    opacity: 0.6;
    filter: blur(20px);
}

[data-theme="light"] .glass-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .glass-card:hover {
    box-shadow:
        0 20px 50px rgba(139, 92, 246, 0.15),
        0 10px 25px rgba(0, 0, 0, 0.08);
}


.platform-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 850px;
    margin: 0 auto;
}

.platform-card {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    position: relative;
}

.platform-icon {
    width: 48px;
    height: 48px;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--color-text);
    transition: all 0.4s ease;
    position: relative;
}

.platform-icon::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0;
    filter: blur(12px);
    transition: opacity 0.4s ease;
}

.platform-card:hover .platform-icon::after {
    opacity: 0.3;
}


.platform-card.facebook:hover .platform-icon {
    color: #1877F2;
    text-shadow: 0 0 30px rgba(24, 119, 242, 0.6);
}

.platform-card.telegram:hover .platform-icon {
    color: #229ED9;
    text-shadow: 0 0 30px rgba(34, 158, 217, 0.6);
}

.platform-card.github:hover .platform-icon {
    color: #f0f6fc;
    text-shadow: 0 0 30px rgba(240, 246, 252, 0.4);
}

.platform-card.tiktok:hover .platform-icon {
    color: #ff0050;
    text-shadow: 3px 3px 0px #00f2ea, 0 0 30px rgba(255, 0, 80, 0.6);
}

.platform-card.instagram:hover .platform-icon {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(225, 48, 108, 0.5));
}

.platform-card.threads:hover .platform-icon {
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

[data-theme="light"] .platform-card.threads:hover .platform-icon {
    color: #000000;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.platform-card.locket:hover .platform-icon {
    color: #FFD700;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
    animation: heartBeat 1s ease-in-out infinite;
}

@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.1);
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(1.15);
    }
}

.platform-card.zalo:hover .platform-icon {
    color: #0068FF;
    text-shadow: 0 0 30px rgba(0, 104, 255, 0.6);
}

.platform-card.soundcloud:hover .platform-icon {
    color: #ff5500;
    text-shadow: 0 0 30px rgba(255, 85, 0, 0.6);
}

.platform-info {
    flex: 1;
}

.platform-name {
    font-weight: 700;
    font-size: 1.05rem;
    display: block;
    margin-bottom: 0.2rem;
}

.platform-desc {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    display: block;
}


.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    max-width: 850px;
    margin: 0 auto;
}

.info-card {
    padding: 1.75rem;
    text-align: center;
    position: relative;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #a855f7, #06b6d4);
    border-radius: 3px;
    opacity: 0;
    transition: all 0.3s ease;
}

.info-card:hover::before {
    opacity: 1;
    width: 60px;
}

.info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.info-value {
    font-size: 1.15rem;
    font-weight: 700;
    display: inline-block;
    background: linear-gradient(135deg, var(--color-text), var(--color-text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto 5rem;
}

.project-card {
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-media {
    position: relative;
    overflow: hidden;
}

.qr-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
    backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.project-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #ffffff;
    transform: translateZ(0);
    transition: transform 0.6s ease;
    border-bottom: 1px solid var(--color-border);
}

.project-card:hover .project-thumb {
    transform: scale(1.08);
}


.bank-mb {
    --glow-color: rgba(59, 130, 246, 0.5);
}

.bank-tp {
    --glow-color: rgba(147, 51, 234, 0.5);
}

.bank-vtb {
    --glow-color: rgba(59, 130, 246, 0.5);
}

.bank-tcb {
    --glow-color: rgba(239, 68, 68, 0.5);
}

.bank-mb:hover {
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.3), 0 0 30px rgba(59, 130, 246, 0.2);
}

.bank-tp:hover {
    box-shadow: 0 20px 50px rgba(147, 51, 234, 0.3), 0 0 30px rgba(147, 51, 234, 0.2);
}

.bank-vtb:hover {
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.3), 0 0 30px rgba(59, 130, 246, 0.2);
}

.bank-tcb:hover {
    box-shadow: 0 20px 50px rgba(239, 68, 68, 0.3), 0 0 30px rgba(239, 68, 68, 0.2);
}

.project-content {
    padding: 1.5rem;
    background: var(--color-card-bg);
    position: relative;
    z-index: 2;
}

.project-topline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.bank-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    padding: 3px;
    flex: 0 0 auto;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--color-text), var(--color-text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}


.copy-btn {
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.1);
    color: var(--color-text);
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.copy-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #a855f7, #06b6d4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.copy-btn span,
.copy-btn {
    position: relative;
    z-index: 1;
}

.copy-btn:hover {
    border-color: #a855f7;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.3);
}

.copy-btn:hover::before {
    opacity: 1;
}

.copy-btn.copied {
    background: linear-gradient(135deg, #22c55e, #10b981);
    border-color: #22c55e;
    color: #ffffff;
}

.copy-btn.copied::after {
    content: '✓ Đã copy';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(34, 197, 94, 0.9);
    color: #ffffff;
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(10px) scale(0.8);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}


.email-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.email-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    background: rgba(139, 92, 246, 0.05);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(139, 92, 246, 0.15);
    transition: all 0.3s ease;
}

.email-item:hover {
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.1);
    transform: translateX(5px);
}

.email-item a {
    flex: 1 1 220px;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    color: var(--color-text);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.9rem;
}

.email-item .copy-btn {
    margin-top: 0;
    margin-left: auto;
}


.footer {
    text-align: center;
    padding: 4rem 0;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.03));
    position: relative;
    z-index: 2;
}

.footer p {
    background: linear-gradient(90deg, var(--color-text-secondary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.4s ease;
}

.overlay.active {
    opacity: 1;
    pointer-events: all;
}

.overlay-content {
    background: linear-gradient(135deg, rgba(20, 20, 25, 0.95), rgba(10, 10, 15, 0.98));
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 90%;
    width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow:
        0 25px 80px rgba(139, 92, 246, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(30px) scale(0.9);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2001;
}

[data-theme="light"] .overlay-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 250, 0.95));
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
}

.overlay.active .overlay-content {
    transform: translateY(0) scale(1);
    animation: modal-pop 0.4s ease-out;
}

@keyframes modal-pop {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


.overlay-content::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(6, 182, 212, 0.3));
    filter: blur(25px);
    opacity: 0.5;
    z-index: -1;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-text);
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 10;
}

.close-btn:hover {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    border-color: transparent;
    color: white;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.5);
}


.settings-group {
    text-align: left;
    margin-bottom: 2rem;
}

.setting-label {
    display: block;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.effect-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.effect-btn {
    padding: 0.85rem;
    border-radius: var(--radius-sm);
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.effect-btn:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

.effect-btn.active {
    background: linear-gradient(135deg, #a855f7, #06b6d4);
    border-color: transparent;
    color: white;
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
}

.effect-btn:active,
.icon-btn:active,
.copy-btn:active {
    transform: scale(0.95);
}


.back-to-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.2));
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 1200;
    backdrop-filter: blur(10px);
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #a855f7, #06b6d4);
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}


.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 70%);
    animation: ripple 700ms ease-out;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(3);
        opacity: 0;
    }
}


.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}


.platform-card:nth-child(1) {
    transition-delay: 0.05s;
}

.platform-card:nth-child(2) {
    transition-delay: 0.1s;
}

.platform-card:nth-child(3) {
    transition-delay: 0.15s;
}

.platform-card:nth-child(4) {
    transition-delay: 0.2s;
}

.platform-card:nth-child(5) {
    transition-delay: 0.25s;
}

.platform-card:nth-child(6) {
    transition-delay: 0.3s;
}

.platform-card:nth-child(7) {
    transition-delay: 0.35s;
}

.platform-card:nth-child(8) {
    transition-delay: 0.4s;
}

.platform-card:nth-child(9) {
    transition-delay: 0.45s;
}

.platform-card:nth-child(10) {
    transition-delay: 0.5s;
}

.project-card:nth-child(1) {
    transition-delay: 0.05s;
}

.project-card:nth-child(2) {
    transition-delay: 0.15s;
}

.project-card:nth-child(3) {
    transition-delay: 0.25s;
}

.project-card:nth-child(4) {
    transition-delay: 0.35s;
}

.info-card:nth-child(1) {
    transition-delay: 0.05s;
}

.info-card:nth-child(2) {
    transition-delay: 0.1s;
}

.info-card:nth-child(3) {
    transition-delay: 0.15s;
}

.info-card:nth-child(4) {
    transition-delay: 0.2s;
}

.info-card:nth-child(5) {
    transition-delay: 0.25s;
}

.info-card:nth-child(6) {
    transition-delay: 0.3s;
}


.glass-card:focus-within,
.glass-card:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

.close-btn:focus-visible,
.effect-btn:focus-visible,
.icon-btn:focus-visible,
.copy-btn:focus-visible,
.back-to-top:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}


.project-thumb.loading {
    background: linear-gradient(110deg, #ffffff 30%, #f0f0f0 45%, #ffffff 60%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}


@media (max-width: 768px) {
    .nav-list {
        display: none;
    }

    .hero {
        padding-top: 80px;
    }

    .hero-name {
        font-size: 2rem;
    }

    .hero-avatar {
        width: 120px;
        height: 120px;
    }

    .bg-3d-scene {
        width: 90vw;
        height: 90vw;
        opacity: 0.08;
    }

    .platform-grid {
        grid-template-columns: 1fr;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .section-title::before,
    .section-title::after {
        width: 30px;
    }

    .blob {
        filter: blur(80px);
    }

    .blob-1 {
        width: 300px;
        height: 300px;
    }

    .blob-2 {
        width: 250px;
        height: 250px;
    }

    .blob-3 {
        width: 200px;
        height: 200px;
    }
}


@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    #particle-canvas,
    .bg-3d-scene,
    .bg-blobs {
        display: none !important;
    }

    body::before,
    body::after {
        animation: none !important;
    }
}


.qr-large {
    width: 100%;
    border-radius: 16px;
    margin: 1.5rem 0;
    border: 1px solid var(--color-border);
    background: #ffffff;
}

.banking-square {
    width: min(75vw, 380px);
    height: min(75vw, 380px);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    box-shadow: none;
}

.qr-square {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 20px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}


::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #a855f7, #06b6d4);
    border-radius: 10px;
    border: 2px solid var(--color-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #9333ea, #0891b2);
}


* {
    scrollbar-width: thin;
    scrollbar-color: #a855f7 var(--color-bg);
}


.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #a855f7, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    animation: logoPulse 2s ease-in-out infinite;
}

.loader-logo span {
    background: linear-gradient(135deg, #06b6d4, #22c55e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes logoPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.loader-spinner {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.spinner-ring {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #06b6d4);
    animation: spinnerBounce 1.4s ease-in-out infinite;
}

.spinner-ring:nth-child(1) {
    animation-delay: 0s;
}

.spinner-ring:nth-child(2) {
    animation-delay: 0.2s;
}

.spinner-ring:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes spinnerBounce {

    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.loader-text {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    letter-spacing: 0.1em;
}











.hero-bio {
    min-height: 4.5em;
    white-space: pre-line;
    line-height: 1.8;
}




html.theme-transitioning * {
    transition: background-color 0.5s ease,
        color 0.5s ease,
        border-color 0.5s ease,
        box-shadow 0.5s ease !important;
}


.parallax-slow {
    will-change: transform;
}

.parallax-medium {
    will-change: transform;
}

.parallax-fast {
    will-change: transform;
}
