:root {
    --bg-color: #050510;
    /* Deep Void Space */
    --card-bg: rgba(20, 20, 35, 0.6);
    --card-border: rgba(0, 243, 255, 0.2);
    --text-primary: #ffffff;
    --text-secondary: #a0a0ff;

    /* Neon Palette */
    --cyan: #00f3ff;
    --magenta: #bc13fe;
    --blue: #2d5af8;

    --font-heading: 'Outfit', sans-serif;
    /* Geometric/Tech */
    --font-body: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth;
}

/* --- Futuristic Background --- */
.background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 15%, rgba(188, 19, 254, 0.2), transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(0, 243, 255, 0.2), transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(5, 5, 25, 1), #020205);
}

.background-canvas::before {
    content: "";
    position: absolute;
    inset: -20%;
    background:
        repeating-linear-gradient(to bottom,
            rgba(0, 243, 255, 0.08) 0px,
            rgba(0, 243, 255, 0.08) 1px,
            transparent 1px,
            transparent 7px);
    opacity: 0.06;
    pointer-events: none;
    transform: translate3d(0, 0, 0);
    will-change: background-position;
    animation: scanlines 14s linear infinite;
}

@keyframes scanlines {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 0 220px;
    }
}

.grid-overlay {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image:
        linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg) translate3d(0, 0, 0);
    animation: grid-move 20s linear infinite;
    pointer-events: none;
    will-change: transform;
}

@keyframes grid-move {
    0% {
        transform: perspective(500px) rotateX(60deg) translate3d(0, 0, 0);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translate3d(0, 50px, 0);
    }
}

.noise-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    mix-blend-mode: overlay;
    transform: translate3d(0, 0, 0) scale(1.05);
    will-change: transform;
    animation: noise-drift 10s ease-in-out infinite alternate;
}

@keyframes noise-drift {
    from {
        transform: translate3d(-1%, 0%, 0) scale(1.05);
    }

    to {
        transform: translate3d(1%, -1%, 0) scale(1.05);
    }
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    flex: 1;
    z-index: 1;
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards, float 6s ease-in-out infinite 0.8s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.profile-container {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto 1.5rem;
}

.profile-img-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--cyan), var(--magenta));
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.4), 0 0 80px rgba(188, 19, 254, 0.2);
    position: relative;
    z-index: 2;
}

.gradient-orb {
    position: absolute;
    width: 60vh;
    height: 60vh;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

.orb-1 {
    top: -10%;
    left: -10%;
    background: var(--magenta);
    animation: floating 25s infinite alternate ease-in-out;
}

.orb-2 {
    bottom: -10%;
    right: -10%;
    background: var(--cyan);
    animation: floating 30s infinite alternate-reverse ease-in-out;
}

@keyframes floating {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(10%, 15%) scale(1.1);
    }

    100% {
        transform: translate(-10%, 10%) scale(0.9);
    }
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.1);
    border-radius: 50%;
    border: 3px solid var(--bg-color);
}

.status-badge {
    position: absolute;
    bottom: -16px;
    right: -42px;
    z-index: 10;
    background: rgba(5, 5, 16, 0.95);
    border: 1px solid var(--cyan);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--cyan);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
    white-space: nowrap;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--cyan);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.name {
    font-size: clamp(2rem, 8vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #ffffff 30%, #a0a0ff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.highlight {
    color: var(--cyan);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
}

.bio {
    font-size: 0.9rem;
    color: #8892b0;
    max-width: 400px;
    margin: 0 auto;
}

.link-stack {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    position: relative;
    z-index: 5;
}

.card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2) {
    animation-delay: 0.2s;
}

.card:nth-child(3) {
    animation-delay: 0.3s;
}

.card:nth-child(4) {
    animation-delay: 0.4s;
}

/* Card Styles */
.card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.25rem;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    min-height: 80px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    will-change: transform, box-shadow;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.05),
            transparent);
    transform: translateX(-100%);
    pointer-events: none;
}

.card:hover::after {
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.card:active {
    transform: scale(0.98) !important;
}

/* Gradient Border Trick */
.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-2px) scale(1.01);
    background: rgba(30, 30, 50, 0.8);
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.15);
    border-color: var(--cyan);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.2), 0 0 60px rgba(188, 19, 254, 0.1);
}

/* Recommended Badge */
.recommended-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #00a3ff, #00e0ff);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(0, 163, 255, 0.45);
    z-index: 99;
    animation: badgeFloat 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes badgeFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.card:hover::before {
    background: linear-gradient(90deg, var(--cyan), var(--magenta));
}

/* Featured Card (Loudio) */
.featured-card {
    background: linear-gradient(90deg, rgba(0, 243, 255, 0.1), rgba(188, 19, 254, 0.05));
    border: 1px solid rgba(0, 243, 255, 0.3);
}

.featured-card:hover {
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.25);
}

.featured-card .card-icon {
    color: var(--cyan);
    text-shadow: 0 0 10px var(--cyan);
}

.featured-card h3 {
    background: linear-gradient(to right, #fff, var(--cyan));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Content Layout */
.card-icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-right: 1rem;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.card:hover .card-icon {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.zalo-logo {
    width: 22px;
    height: 22px;
    display: block;
}

/* WhatsApp Brand Color */
.whatsapp-card:hover {
    border-color: #25D366;
    box-shadow: 0 0 25px rgba(37, 211, 102, 0.2);
}

/* Zalo Brand Color (Blue) */
.zalo-card:hover {
    border-color: #0068ff;
    box-shadow: 0 0 25px rgba(0, 104, 255, 0.2);
}

/* Phone Card Color (Greenish/Cyan) */
.phone-card:hover {
    border-color: var(--cyan);
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 2px;
    letter-spacing: 0.03em;
}

.card p {
    font-size: 0.85rem;
    color: #8892b0;
}

.card-arrow {
    color: var(--text-secondary);
    opacity: 0.5;
    transition: all 0.3s;
}

.card:hover .card-arrow {
    color: var(--cyan);
    opacity: 1;
    transform: translateX(4px);
}

/* Email Copy Feedback */
.email-card {
    position: relative;
}

.copy-feedback {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--cyan), #2d5af8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    border-radius: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.email-card.copied .copy-feedback {
    opacity: 1;
}

/* Contact Button */
.contact-card {
    justify-content: center;
    background: transparent;
    border: 1px solid var(--text-secondary);
    margin-top: 1rem;
}

.contact-card:hover {
    background: var(--text-primary);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.contact-card h3 {
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.8rem;
    color: #555c70;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Mobile Tweaks */
@media (max-width: 480px) {
    .name {
        font-size: 2rem;
    }

    .status-badge {
        bottom: -12px;
        right: -32px;
    }

    .background-canvas::before {
        opacity: 0.04;
        animation-duration: 20s;
    }

    .gradient-orb {
        filter: blur(90px);
        opacity: 0.12;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero {
        animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    }

    .grid-overlay,
    .orb-1,
    .orb-2,
    .noise-overlay,
    .background-canvas::before {
        animation: none !important;
    }
}
