/* ============================================
   DESIGN SYSTEM - TIENDUNG PORTFOLIO
   ============================================ */

:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a2e;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);

    --text-primary: #e8e8ef;
    --text-secondary: #8a8a9a;
    --text-tertiary: #5a5a6e;
    --text-accent: #a78bfa;

    --accent-primary: #a78bfa;
    --accent-secondary: #818cf8;
    --accent-gradient: linear-gradient(135deg, #a78bfa 0%, #818cf8 50%, #6366f1 100%);
    --accent-glow: rgba(167, 139, 250, 0.15);
    --accent-glow-strong: rgba(167, 139, 250, 0.3);

    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(167, 139, 250, 0.3);

    /* Code Colors */
    --code-keyword: #c084fc;
    --code-string: #34d399;
    --code-var: #60a5fa;
    --code-prop: #fbbf24;
    --code-method: #f472b6;
    --code-bg: #0d0d15;

    /* Spacing */
    --section-padding: 16px;
    --container-max: 1200px;
    --gap: 24px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transition */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Font */
    --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'DM Mono', 'Fira Code', monospace;
    --font-serif: 'Manrope', Georgia, serif;
}

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

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

ul {
    list-style: none;
}

/* ============================================
   LOADING SCREEN
   ============================================ */

.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 15, 0.5);
    backdrop-filter: blur(4px);
    transition: opacity 0.6s var(--ease), visibility 0.6s;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-enter-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 40px;
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s var(--ease);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.loading-enter-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.loading-enter-btn:active {
    transform: scale(0.98);
}

.loading-enter-btn.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    animation: btn-ready-pulse 2s ease-in-out infinite;
}

.loading-enter-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 30px var(--accent-glow-strong);
}

.loading-enter-btn:active {
    transform: translateY(0) scale(0.98);
}

@keyframes btn-ready-pulse {
    0%, 100% { box-shadow: 0 4px 20px var(--accent-glow); }
    50% { box-shadow: 0 4px 30px var(--accent-glow-strong), 0 0 40px var(--accent-glow); }
}

.loading-wait {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-tertiary);
    opacity: 0.6;
}

/* Hide main content behind loading overlay */
body:not(.loaded) .navbar,
body:not(.loaded) .section,
body:not(.loaded) .footer,
body:not(.loaded) .audio-player-mini,
body:not(.loaded) .bg-grid,
body:not(.loaded) .bg-glow,
body:not(.loaded) #particles-canvas,
body:not(.loaded) .page-transition {
    opacity: 0;
    visibility: hidden;
}

body.loaded .navbar,
body.loaded .section,
body.loaded .footer,
body.loaded .audio-player-mini,
body.loaded .bg-grid,
body.loaded .bg-glow,
body.loaded #particles-canvas,
body.loaded .page-transition {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s var(--ease);
}

::selection {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

/* ============================================
   PAGE TRANSITION OVERLAY
   ============================================ */

.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.transition-inner {
    position: absolute;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--accent-gradient);
    opacity: 0;
    transition: none;
}

.page-transition.active .transition-inner {
    animation: transitionExpand 0.8s var(--ease) forwards;
}

@keyframes transitionExpand {
    0% {
        width: 0;
        height: 0;
        opacity: 0.6;
        border-radius: 50%;
    }
    50% {
        width: 200vmax;
        height: 200vmax;
        opacity: 0.15;
        border-radius: 50%;
    }
    100% {
        width: 200vmax;
        height: 200vmax;
        opacity: 0;
        border-radius: 50%;
    }
}

/* ============================================
   BACKGROUND EFFECTS
   ============================================ */

.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
    filter: blur(4px) brightness(0.5);
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(167, 139, 250, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(167, 139, 250, 0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
    animation: float 15s ease-in-out infinite;
}

.bg-glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.15), transparent 70%);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.bg-glow-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1), transparent 70%);
    bottom: 20%;
    left: -10%;
    animation-delay: -5s;
}

.bg-glow-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.08), transparent 70%);
    top: 40%;
    right: 20%;
    animation-delay: -10s;
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
}

/* ============================================
   SECTION HEADER
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: 36px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 12px;
    opacity: 0.6;
}

.section-tag-close {
    display: block;
    text-align: center;
    margin-top: 32px;
    opacity: 0.3;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    font-family: var(--font-serif);
    font-style: italic;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.section-line {
    width: 60px;
    height: 3px;
    background: var(--accent-gradient);
    margin: 0 auto;
    border-radius: 2px;
}

/* ============================================
   GLASS CARD
   ============================================ */

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s var(--ease);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px var(--accent-glow);
}

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

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.4s var(--ease);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 2px;
    transition: transform 0.3s var(--ease);
}

.nav-logo:hover {
    transform: scale(1.05);
}

.logo-bracket {
    color: var(--accent-primary);
}

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

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.3s var(--ease);
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link i {
    font-size: 0.8rem;
    transition: transform 0.3s var(--ease);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover i {
    transform: scale(1.2);
}

.nav-link.active {
    color: var(--accent-primary);
    background: var(--accent-glow);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    z-index: 1001;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 24px 60px;
    max-width: var(--container-max);
    margin: 0 auto;
    gap: 60px;
}

.hero-content {
    flex: 1;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(167, 139, 250, 0.08);
    border: 1px solid rgba(167, 139, 250, 0.2);
    font-size: 0.85rem;
    color: var(--accent-primary);
    margin-bottom: 24px;
    animation: fadeInUp 0.8s var(--ease) 0.2s both;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #34d399;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
}

.hero-greeting {
    display: block;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 4px;
    animation: fadeInUp 0.8s var(--ease) 0.4s both;
}

.hero-name {
    display: block;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 400;
    line-height: 1.1;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    animation: nameReveal 1s var(--ease) 0.5s both;
}

@keyframes nameReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.hero-role {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--accent-primary);
    margin-bottom: 24px;
    animation: fadeInUp 0.8s var(--ease) 1s both;
}

.role-prefix {
    color: var(--text-tertiary);
}

.cursor {
    animation: blink 1s step-end infinite;
    color: var(--accent-primary);
    font-weight: 300;
}

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

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 500px;
    line-height: 1.8;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s var(--ease) 1.2s both;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s var(--ease) 1.4s both;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}

.btn i {
    transition: transform 0.3s var(--ease);
}

.btn:hover i {
    transform: translateX(3px);
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 20px rgba(167, 139, 250, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(167, 139, 250, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    border: 1px solid var(--border-hover);
    color: var(--accent-primary);
    background: transparent;
}

.btn-secondary:hover {
    background: var(--accent-glow);
    transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    animation: fadeInUp 0.8s var(--ease) 1.6s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.stat-plus {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* Hero Visual - Code Window */
.hero-visual {
    flex: 1;
    max-width: 480px;
    animation: fadeInRight 1s var(--ease) 0.8s both;
    z-index: 1;
}

.code-window {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--code-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px var(--accent-glow);
    transition: all 0.4s var(--ease);
}

.code-window:hover {
    transform: translateY(-8px) rotate(-1deg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px var(--accent-glow);
}

.code-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
}

.code-dots {
    display: flex;
    gap: 8px;
    margin-right: 16px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.code-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.code-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.8;
    overflow-x: auto;
}

.code-body code {
    color: var(--text-secondary);
}

.code-keyword { color: var(--code-keyword); }
.code-string { color: var(--code-string); }
.code-var { color: var(--code-var); }
.code-prop { color: var(--code-prop); }
.code-method { color: var(--code-method); }

/* Hero About Info Strip */
.hero-about-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
    animation: fadeInUp 0.8s var(--ease) 1.8s both;
}

.hero-about-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.hero-about-item i {
    color: var(--accent-primary);
    font-size: 0.8rem;
    opacity: 0.8;
}

.hero-about-divider {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    opacity: 0.4;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-tertiary);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeInUp 0.8s var(--ease) 2s both;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-tertiary);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    animation: scroll-anim 2s ease-in-out infinite;
}

@keyframes scroll-anim {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(10px); }
}

/* ============================================
   EXPERIENCE SECTION
   ============================================ */

.experience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
    margin-bottom: 32px;
}

.exp-card {
    padding: 22px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.exp-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--exp-color, var(--accent-primary));
    opacity: 0.8;
    transition: opacity 0.3s var(--ease);
}

.exp-card:hover .exp-card-accent {
    opacity: 1;
    box-shadow: 0 0 20px var(--exp-color);
}

.exp-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.exp-icon-wrapper {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1.2rem;
    color: var(--exp-color, var(--accent-primary));
    transition: all 0.3s var(--ease);
    flex-shrink: 0;
    overflow: hidden;
}

.exp-card:hover .exp-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.exp-header-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.exp-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.exp-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.exp-role-badge i {
    font-size: 0.65rem;
}

.exp-role-badge.manager {
    background: rgba(88, 101, 242, 0.15);
    color: #818cf8;
    border: 1px solid rgba(88, 101, 242, 0.25);
}

.exp-role-badge.admin {
    background: rgba(244, 114, 182, 0.15);
    color: #f472b6;
    border: 1px solid rgba(244, 114, 182, 0.25);
}

.exp-role-badge.support {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.25);
}

.exp-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.exp-stats {
    display: flex;
    gap: 20px;
}

.exp-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-tertiary);
}

.exp-stat i {
    font-size: 0.85rem;
    color: var(--accent-primary);
    opacity: 0.8;
}

.exp-stat-number {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.exp-stat-label {
    color: var(--text-tertiary);
}

.exp-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: rgba(88, 101, 242, 0.08);
    border: 1px solid rgba(88, 101, 242, 0.2);
    color: #818cf8;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s var(--ease);
    margin-top: auto;
}

.exp-link:hover {
    background: rgba(88, 101, 242, 0.15);
    border-color: rgba(88, 101, 242, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.15);
}

.exp-link-arrow {
    margin-left: auto;
    font-size: 0.75rem;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s var(--ease);
}

.exp-link:hover .exp-link-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Experience Summary Bar */
.exp-summary {
    padding: 24px 40px;
    margin-top: 8px;
}

.exp-summary:hover {
    transform: translateY(-2px);
}

.exp-summary-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.exp-summary-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.exp-summary-item > i {
    font-size: 1.3rem;
    color: var(--accent-primary);
    opacity: 0.8;
}

.exp-summary-number {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
}

.exp-summary-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.exp-summary-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* ============================================
   SKILLS SECTION
   ============================================ */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
    margin-bottom: 48px;
}

.skill-card {
    padding: 32px;
}

.skill-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.skill-icon-wrapper {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(167, 139, 250, 0.08);
    border-radius: var(--radius-md);
    border: 1px solid rgba(167, 139, 250, 0.15);
    font-size: 1.3rem;
    color: var(--accent-primary);
    transition: all 0.3s var(--ease);
}

.skill-card:hover .skill-icon-wrapper {
    transform: rotate(10deg) scale(1.1);
    background: var(--accent-glow-strong);
}

.skill-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.skill-subtitle {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    transition: all 0.3s var(--ease);
}

.skill-tag:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--tag-color, var(--accent-primary));
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.skill-tag i {
    font-size: 0.85rem;
    opacity: 0.7;
    transition: all 0.3s var(--ease);
}

.skill-tag:hover i {
    opacity: 1;
    color: var(--tag-color, var(--accent-primary));
}

/* Skill Bars */
.skill-levels {
    margin-top: 48px;
}

.skill-levels-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 32px;
}

.skill-bar-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.skill-bar-item {
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.skill-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 500;
}

.skill-bar-header i {
    margin-right: 6px;
    opacity: 0.7;
}

.skill-percent {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-weight: 600;
}

.skill-bar-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    width: 0;
    background: var(--bar-color, var(--accent-primary));
    border-radius: 3px;
    transition: width 1.5s var(--ease);
    position: relative;
}

.skill-bar-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
    border-radius: 3px;
}

.skill-bar-fill.animate {
    width: calc(var(--target-width) * 1%);
}

/* ============================================
   PROJECTS SECTION
   ============================================ */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

.project-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

/* Real project image */
.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

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

/* Hide placeholder when image loads */
.project-img + .project-image-placeholder {
    display: none;
}

.project-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
}

/* Bot Visual */
.bot-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bot-icon-fa {
    font-size: 3.5rem;
    color: var(--accent-primary);
    position: relative;
    z-index: 2;
    animation: bot-float 3s ease-in-out infinite;
}

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

.bot-pulse {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow-strong), transparent 70%);
    animation: pulse-ring 2s ease-in-out infinite;
}

@keyframes pulse-ring {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.5); opacity: 0.2; }
}

/* Portfolio Visual */
.portfolio-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.portfolio-icon-fa {
    font-size: 3rem;
    color: var(--accent-primary);
}

.portfolio-grid-mini {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.portfolio-grid-mini span {
    width: 30px;
    height: 20px;
    background: rgba(167, 139, 250, 0.15);
    border-radius: 4px;
    animation: mini-pulse 2s ease-in-out infinite;
}

.portfolio-grid-mini span:nth-child(2) { animation-delay: 0.3s; }
.portfolio-grid-mini span:nth-child(3) { animation-delay: 0.6s; }
.portfolio-grid-mini span:nth-child(4) { animation-delay: 0.9s; }

@keyframes mini-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.project-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
}

.project-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.project-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.project-tag {
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--accent-glow);
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
    flex: 1;
}

.project-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.project-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.project-stat i {
    font-size: 0.85rem;
    color: var(--accent-primary);
}

.project-links {
    display: flex;
    gap: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s var(--ease);
}

.project-link:hover {
    color: var(--accent-primary);
}

.project-link:hover i {
    transform: scale(1.2);
}

.project-link i {
    transition: transform 0.3s var(--ease);
}

/* Coming Soon Card */
.coming-soon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    border-style: dashed;
    border-color: rgba(167, 139, 250, 0.15);
}

.coming-soon:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.coming-soon-content {
    text-align: center;
    padding: 40px;
}

.coming-soon-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--accent-primary);
    animation: rocket 3s ease-in-out infinite;
}

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

.coming-soon-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.coming-soon-content p {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.coming-soon-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 20px;
}

.coming-soon-dots span {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: dots-bounce 1.4s ease-in-out infinite;
}

.coming-soon-dots span:nth-child(2) { animation-delay: 0.2s; }
.coming-soon-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dots-bounce {
    0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1.2); }
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-grid {
    display: flex;
    justify-content: center;
}

.contact-card {
    padding: 40px;
    height: 100%;
}

.contact-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.contact-card h3 i {
    color: var(--accent-primary);
    margin-right: 8px;
}

.contact-card > p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    transition: all 0.3s var(--ease);
}

.contact-method:hover {
    background: var(--accent-glow);
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.contact-method-icon {
    font-size: 1.2rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    color: var(--accent-primary);
    transition: all 0.3s var(--ease);
}

.contact-method:hover .contact-method-icon {
    background: var(--accent-glow-strong);
    transform: scale(1.1);
}

.contact-method-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-method-value {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* Contact Form */
.contact-form {
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group label i {
    margin-right: 6px;
    color: var(--accent-primary);
    font-size: 0.8rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: all 0.3s var(--ease);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-primary);
    background: rgba(167, 139, 250, 0.05);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

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

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

.btn-submit {
    width: 100%;
    justify-content: center;
}

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

.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.footer-text strong {
    color: var(--accent-primary);
}

.footer-copyright {
    color: var(--text-tertiary);
    font-size: 0.8rem;
}

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

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease);
}

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

/* Section transition for nav clicks */
.section-transitioning {
    animation: sectionFadeIn 0.6s var(--ease) both;
}

@keyframes sectionFadeIn {
    from {
        opacity: 0.7;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   PROFILE SECTION (Discord + About Me)
   ============================================ */

.profile-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: center;
}

.profile-column {
    width: 300px;
    flex-shrink: 0;
}

.discord-card {
    width: 100%;
    background: rgba(17, 18, 20, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: all 0.4s var(--ease);
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.discord-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 40px var(--accent-glow);
}

.discord-banner {
    height: 120px;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    position: relative;
    background-size: cover;
    background-position: center;
    transition: all 0.3s ease;
    -webkit-transform: translate3d(0, 0, 1px);
    transform: translate3d(0, 0, 1px);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    overflow: hidden;
}

.discord-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, #111111 100%);
    pointer-events: none;
    z-index: 2;
    -webkit-transform: translate3d(0, 0, 2px);
    transform: translate3d(0, 0, 2px);
}

.discord-profile-section {
    padding: 0 16px 14px;
    position: relative;
    z-index: 3;
    -webkit-transform: translate3d(0, 0, 10px);
    transform: translate3d(0, 0, 10px);
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.discord-avatar-wrapper {
    position: relative;
    width: 64px;
    height: 64px;
    margin-top: -38px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 5px);
    transform: translate3d(0, 0, 5px);
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.discord-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 4px solid #111111;
    object-fit: cover;
    background: #1a1a1a;
    display: block;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 1px);
    transform: translate3d(0, 0, 1px);
}

.discord-avatar-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 96px;
    height: 96px;
    transform: translate(-50%, -50%) translate3d(0, 0, 2px);
    -webkit-transform: translate(-50%, -50%) translate3d(0, 0, 2px);
    pointer-events: none;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.discord-status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid #111111;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 3px);
    transform: translate3d(0, 0, 3px);
}

.discord-status-online { background: #3ba55d; }
.discord-status-idle { background: #faa81a; }
.discord-status-dnd { background: #ed4245; }
.discord-status-offline { background: #747f8d; }

.discord-user-info {
    margin-top: 8px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 5px);
    transform: translate3d(0, 0, 5px);
}

.discord-display-name {
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.discord-username {
    color: #72767d;
    font-size: 12px;
    margin-top: 1px;
}

.discord-badges {
    display: flex;
    gap: 4px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.discord-badge-item {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}

.discord-badge-img {
    width: 22px;
    height: 22px;
    filter: brightness(0.9);
    transition: transform 0.2s ease;
}

.discord-badge-item:hover .discord-badge-img {
    transform: scale(1.2);
    filter: brightness(1.1);
}

.discord-bio-wrapper, .discord-connections-wrapper {
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.discord-section-title {
    font-size: 9px;
    color: #949ba4;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.discord-bio {
    padding: 0;
    color: #dbdee1;
    font-size: 12px;
    line-height: 1.4;
}

.discord-bio a {
    color: #00aff4;
    text-decoration: none;
}

.discord-bio a:hover {
    text-decoration: underline;
}

.discord-connected-accounts {
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.discord-connected-account {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(30, 31, 34, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    color: #dbdee1;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s ease;
}

.discord-connected-account:hover {
    background: rgba(35, 36, 40, 0.7);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.discord-account-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.discord-account-icon svg {
    width: 16px;
    height: 16px;
}

.discord-activities-wrapper {
    display: none;
}

.discord-activities {
    padding: 0;
}

.discord-activity-card {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 6px;
    border: 1px solid #222;
}

.discord-activity-card:last-child {
    margin-bottom: 0;
}

.discord-activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: #222;
}

.discord-activity-info {
    overflow: hidden;
    flex: 1;
}

.discord-activity-type {
    font-size: 10px;
    color: #72767d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.discord-activity-name {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.discord-activity-details {
    color: #b9bbbe;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.discord-activity-state {
    color: #72767d;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.discord-activity-time {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #72767d;
    font-size: 11px;
    margin-top: 4px;
}

.discord-activity-time svg {
    flex-shrink: 0;
}

.discord-spotify-card {
    background: linear-gradient(135deg, #1a1a1a, #1a2a1a);
    border-color: #1a3a1a;
}

.discord-spotify-icon {
    color: #1db954;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.discord-progress-bar {
    height: 3px;
    background: #333;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.discord-progress-fill {
    height: 100%;
    background: #1db954;
    border-radius: 2px;
    transition: width 1s linear;
}

.discord-timestamps {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #72767d;
    margin-top: 4px;
}

.discord-loading-text {
    color: #72767d;
    font-size: 11px;
    text-align: center;
    padding: 12px 0;
}

.discord-no-activity {
    color: #72767d;
    font-size: 11px;
    text-align: center;
    padding: 12px 0;
}

.discord-clan-tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #dbdee1;
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    vertical-align: middle;
    margin-left: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.discord-clan-tag-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.discord-clan-badge-img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

/* Info Card */
.profile-info-card {
    flex: 1;
    background: rgba(17, 18, 20, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 22px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: all 0.4s var(--ease);
}

.profile-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 40px var(--accent-glow);
}

.profile-info-header {
    margin-bottom: 16px;
    border-bottom: 1px solid #1f2023;
    padding-bottom: 16px;
}

.profile-badge-status {
    background: rgba(88, 101, 242, 0.15);
    color: #5865f2;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 8px;
}

.profile-info-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.profile-title-tag {
    background: rgba(255, 255, 255, 0.08);
    color: #949ba4;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    vertical-align: middle;
    margin-left: 6px;
    display: inline-block;
    letter-spacing: 0.5px;
}

.profile-info-subtitle {
    color: #949ba4;
    font-size: 14px;
    line-height: 1.6;
}

.profile-info-body {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Skills inside Profile */
.profile-skills {
    margin-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 20px;
}

.profile-skills-header {
    margin-bottom: 16px;
}

.profile-skills-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.profile-skills .skills-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.profile-skills .skill-card {
    padding: 14px 18px;
}

.profile-skills .skill-card-header {
    margin-bottom: 12px;
    gap: 12px;
}

.profile-skills .skill-icon-wrapper {
    width: 38px;
    height: 38px;
    font-size: 1rem;
}

.profile-skills .skill-card h3 {
    font-size: 1rem;
}

.profile-skills .skill-tags {
    gap: 6px;
}

.profile-skills .skill-tag {
    padding: 4px 10px;
    font-size: 0.75rem;
}

.profile-skills .skill-levels {
    margin-top: 0;
}

.profile-skills .skill-levels-title {
    font-size: 0.95rem;
    text-align: left;
    margin-bottom: 12px;
}

.profile-skills .skill-bar-grid {
    gap: 10px;
}

.profile-skills .skill-bar-item {
    padding: 10px 14px;
}

.profile-skills .skill-bar-header {
    font-size: 0.82rem;
    margin-bottom: 6px;
}

.profile-skills .skill-percent {
    font-size: 0.78rem;
}

/* ============================================
   ACTIVITY CARD (Discord RPC)
   ============================================ */

.activity-card {
    margin-top: 20px;
    background: rgba(14, 14, 18, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s var(--ease);
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.04);
    overflow: visible;
}

.activity-card:hover {
    border-color: rgba(167, 139, 250, 0.15);
    box-shadow: 0 0 30px rgba(167, 139, 250, 0.08);
}

.activity-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.activity-card-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--activity-dot, #747f8d);
    box-shadow: 0 0 6px var(--activity-dot, #747f8d);
    flex-shrink: 0;
}

.activity-card-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.activity-card-status {
    margin-left: auto;
    font-size: 10px;
    font-weight: 600;
    font-family: var(--font-mono);
}

.activity-card-body {
    flex: 1;
    overflow: hidden;
}

.activity-card-grid {
    display: flex;
    gap: 12px;
    flex: 1;
}

.activity-card-grid .activity-slot {
    flex: 1;
    min-width: 0;
}

.activity-card-grid.split .activity-slot {
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    padding-right: 12px;
}

.activity-card-grid.split .activity-slot:last-child {
    border-right: none;
    padding-right: 0;
}

.activity-card-empty {
    color: var(--text-tertiary);
    font-size: 12px;
    text-align: center;
    padding: 16px 0;
}

.activity-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.activity-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: #1a1a1a;
}

.activity-item-icon-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 1.1rem;
}

.activity-item-info {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.activity-item-label {
    font-size: 10px;
    color: #72767d;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.activity-item-name {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.activity-item-detail {
    font-size: 11px;
    color: #b9bbbe;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.activity-item-time {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #72767d;
    margin-top: 2px;
    font-family: var(--font-mono);
    line-height: 1.4;
}

.activity-progress-bar {
    height: 3px;
    background: #222;
    border-radius: 2px;
    margin-top: 4px;
    overflow: hidden;
}

.activity-progress-fill {
    height: 100%;
    background: #1db954;
    border-radius: 2px;
    transition: width 1s linear;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
        gap: 40px;
    }

    .hero-description {
        max-width: 100%;
    }

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

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

    .hero-visual {
        max-width: 420px;
        width: 100%;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .experience-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-layout {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .profile-column {
        width: 100%;
        max-width: 480px;
    }

    .profile-info-card {
        width: 100%;
        max-width: 480px;
        padding: 20px;
    }

    .profile-info-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 40px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100vh;
        background: rgba(10, 10, 15, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 80px 24px 24px;
        gap: 6px;
        transition: right 0.4s var(--ease);
        border-left: 1px solid var(--border-color);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .container {
        padding: 0 16px;
    }

    .profile-layout {
        flex-direction: column;
        gap: 12px;
    }

    .profile-column {
        width: 100%;
        max-width: 100%;
    }

    .discord-card {
        border-radius: 12px;
    }

    .discord-banner {
        height: 100px;
    }

    .discord-avatar-wrapper {
        width: 56px;
        height: 56px;
        margin-top: -32px;
    }

    .discord-avatar {
        width: 56px;
        height: 56px;
    }

    .discord-avatar-decoration {
        width: 72px;
        height: 72px;
    }

    .discord-display-name {
        font-size: 15px;
    }

    .discord-username {
        font-size: 11px;
    }

    .discord-bio-wrapper, .discord-connections-wrapper {
        padding: 10px 14px;
    }

    .profile-info-card {
        width: 100%;
        max-width: 100%;
        padding: 16px;
        border-radius: 12px;
    }

    .profile-info-title {
        font-size: 22px;
    }

    .profile-info-header {
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .profile-info-body p {
        font-size: 0.9rem;
    }

    .activity-card {
        padding: 14px;
        min-height: 120px;
        border-radius: 12px;
    }

    .activity-card-grid.split {
        flex-direction: column;
    }

    .activity-card-grid.split .activity-slot {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        padding-bottom: 10px;
    }

    .activity-card-grid.split .activity-slot:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .profile-skills .skill-bar-grid {
        grid-template-columns: 1fr;
    }

    .profile-skills .skill-bar-item {
        padding: 10px 12px;
    }

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

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

    .exp-card {
        padding: 18px;
    }

    .exp-title {
        font-size: 1rem;
    }

    .exp-desc {
        font-size: 0.82rem;
    }

    .hero-name {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }

    .section-title {
        font-size: clamp(1.6rem, 4vw, 2.2rem);
    }

    .section-header {
        margin-bottom: 28px;
    }

    .skill-bar-grid {
        grid-template-columns: 1fr;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 28px;
    }

    .container {
        padding: 0 12px;
    }

    .profile-section {
        padding-top: 60px !important;
    }

    .discord-banner {
        height: 80px;
    }

    .discord-avatar-wrapper {
        width: 50px;
        height: 50px;
        margin-top: -28px;
    }

    .discord-avatar {
        width: 50px;
        height: 50px;
    }

    .discord-avatar-decoration {
        width: 66px;
        height: 66px;
    }

    .discord-display-name {
        font-size: 14px;
    }

    .discord-bio-wrapper, .discord-connections-wrapper {
        padding: 8px 12px;
    }

    .discord-section-title {
        font-size: 8px;
    }

    .discord-bio {
        font-size: 11px;
    }

    .profile-info-card {
        padding: 14px;
    }

    .profile-info-title {
        font-size: 20px;
    }

    .profile-info-body p {
        font-size: 0.85rem;
    }

    .activity-card {
        padding: 12px;
        min-height: 100px;
    }

    .activity-item {
        gap: 10px;
    }

    .activity-item-icon {
        width: 36px;
        height: 36px;
    }

    .activity-item-name {
        font-size: 12px;
    }

    .profile-skills .skill-card {
        padding: 12px 14px;
    }

    .profile-skills .skill-bar-item {
        padding: 8px 10px;
    }

    .skill-bar-header {
        font-size: 0.78rem;
    }

    .exp-card {
        padding: 16px;
    }

    .exp-header {
        gap: 10px;
    }

    .exp-icon-wrapper {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .exp-stats {
        gap: 12px;
        flex-wrap: wrap;
    }

    .section-title {
        font-size: clamp(1.4rem, 5vw, 1.8rem);
    }

    .nav-links {
        width: 240px;
        padding: 70px 20px 20px;
    }
}

/* ============================================
   MINIMAL FLOATING AUDIO BUTTON STYLE
   ============================================ */

.audio-player-mini {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(18, 18, 26, 0.5);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease;
}

.audio-player-mini:hover {
    transform: scale(1.08);
    border-color: rgba(167, 139, 250, 0.35);
    box-shadow: 0 8px 25px rgba(167, 139, 250, 0.2);
}

.audio-toggle-btn {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.audio-bars {
    display: none;
    align-items: flex-end;
    gap: 2.5px;
    height: 14px;
}

.audio-bars .bar {
    width: 2px;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 1px;
    transition: height 0.15s ease;
}

/* Sóng nhạc nhấp nhô khi đang phát */
.audio-player-mini.playing .audio-bars {
    display: flex;
}

.audio-player-mini.playing .audio-bars .bar {
    animation: soundWaveMini 1.2s ease-in-out infinite alternate;
}

.audio-player-mini.playing .audio-bars .bar:nth-child(1) { animation-delay: 0.1s; animation-duration: 0.8s; }
.audio-player-mini.playing .audio-bars .bar:nth-child(2) { animation-delay: 0.3s; animation-duration: 1.2s; }
.audio-player-mini.playing .audio-bars .bar:nth-child(3) { animation-delay: 0.2s; animation-duration: 0.9s; }
.audio-player-mini.playing .audio-bars .bar:nth-child(4) { animation-delay: 0.4s; animation-duration: 1.1s; }

/* Icon tắt tiếng */
.mute-icon {
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: block;
}

.audio-player-mini.playing .mute-icon {
    display: none;
}

/* Tooltip hiển thị bài hát khi hover */
.audio-tooltip {
    position: absolute;
    left: 56px;
    background: rgba(18, 18, 26, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-family: var(--font-sans);
    color: var(--text-primary);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-10px);
    transition: all 0.3s var(--ease);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.audio-player-mini:hover .audio-tooltip {
    opacity: 1;
    transform: translateX(0);
}

.audio-tooltip-text {
    display: block;
}

@keyframes soundWaveMini {
    0% { height: 2px; }
    100% { height: 14px; }
}

/* Responsive */
@media (max-width: 768px) {
    .audio-player-mini {
        bottom: 20px;
        left: 20px;
    }
    .audio-tooltip {
        display: none;
    }
}

/* =============================================================
   ZEN TOOLS INTEGRATION STYLES
   ============================================================= */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 30px;
    width: 100%;
}

.tool-card {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle 100px at var(--mouse-x, 0) var(--mouse-y, 0), rgba(244, 114, 182, 0.15), transparent 70%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.tool-card:hover .card-glow {
    opacity: 1;
}

.tool-card:hover {
    transform: translateY(-6px);
    border-color: rgba(244, 114, 182, 0.4) !important;
    box-shadow: 0 20px 40px -15px rgba(244, 114, 182, 0.2) !important;
}

.tool-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    font-size: 1.5rem;
}

.icon-red {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.icon-pink {
    background: rgba(244, 114, 182, 0.1);
    color: #f472b6;
    border: 1px solid rgba(244, 114, 182, 0.15);
}

.icon-download {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.15);
}

.tool-card:hover .tool-icon {
    transform: scale(1.1);
}

.tool-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    letter-spacing: -0.2px;
}

/* Back Button */
.btn-back:hover {
    color: #FFFFFF !important;
    border-color: rgba(244, 114, 182, 0.4) !important;
    background: rgba(244, 114, 182, 0.1) !important;
}

/* Responsive overrides */
@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

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

/* =============================================================
   ZEN DOWNLOAD PROGRESS MODAL OVERLAY STYLES
   ============================================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.download-modal-content {
    width: 95%;
    max-width: 380px;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    background: rgba(18, 18, 24, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
    transform: scale(0.92);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.download-modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 20px;
}

.download-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 12px;
}

.download-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #f472b6, #c084fc);
    border-radius: 999px;
    transition: width 0.1s linear;
}

.download-progress-status {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 700;
    color: #a1a1aa;
}

/* =============================================================
   INLINE DISCORD ACTIVITY CARD INTEGRATION
   ============================================================= */
.discord-card .activity-card {
    margin-top: 16px;
    padding: 16px 0 0 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    min-height: auto;
    box-shadow: none;
}

.discord-card .activity-card:hover {
    border-top-color: rgba(255, 255, 255, 0.15);
    box-shadow: none;
}

/* =============================================================
   TOOLS GRID RESPANNING OVERRIDES (Uniform 1x1 cells on profile)
   ============================================================= */
.tools-grid > .tool-card[data-id="profile"] {
    grid-column: span 1 !important;
}

.tools-grid > .tool-card[data-id="zen-desktop"] {
    grid-column: span 1 !important;
}

.profile-info-card .tools-grid {
    grid-template-columns: repeat(3, 1fr) !important;
}

@media (max-width: 900px) {
    .profile-info-card .tools-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .profile-info-card .tools-grid {
        grid-template-columns: 1fr !important;
    }
}


/* =============================================================
   PREMIUM ZEN TOOL CARDS MINIMALIST REDESIGN (Clean, flat hover)
   ============================================================= */
.tool-card {
    min-height: 120px !important;
    padding: 16px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px !important;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: none !important;
    transform: none !important;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease !important;
}

/* Minimalist Hover: Just light up background and border */
.tool-card:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Tactile Active Click state */
.tool-card:active {
    transform: scale(0.97) !important;
}

/* Clean, uniform icons in solid branding color without backgrounds */
.tool-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: transparent !important;
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #f472b6 !important;
    transition: color 0.2s ease;
    transform: none !important;
}

.tool-card:hover .tool-icon {
    transform: none !important;
    color: #FFFFFF !important; /* turns white on hover for clean minimal look */
}

/* Hide background card mouse spotlights */
.card-glow {
    display: none !important;
}

.tool-title {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    letter-spacing: -0.1px;
}

/* =============================================================
   INLINE DISCORD ACTIVITY CARD INTEGRATION (Vertical Stack)
   ============================================================= */
.discord-card .activity-card {
    margin-top: 16px;
    padding: 16px 0 0 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 0;
    min-height: auto;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.discord-card .activity-card:hover {
    box-shadow: none;
}

/* Force vertical column stack for activities */
.discord-card .activity-card-grid {
    flex-direction: column !important;
    gap: 14px !important;
}

.discord-card .activity-card-grid.split .activity-slot {
    border-right: none !important;
    padding-right: 0 !important;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
    padding-bottom: 12px;
}

.discord-card .activity-card-grid.split .activity-slot:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

/* =============================================================
   OLM HELPER SINGLE TOOL REMAKE
   ============================================================= */
.tools-panel {
    padding: 28px !important;
    display: flex;
    flex-direction: column;
    gap: 22px;
    overflow: hidden;
    min-width: 0;
}

.tools-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(244, 114, 182, 0.12), transparent 34%),
        radial-gradient(circle at 92% 10%, rgba(255, 255, 255, 0.12), transparent 28%);
    opacity: 0.85;
}

.tools-panel-header {
    position: relative;
    z-index: 1;
    margin-bottom: 0 !important;
    padding-bottom: 18px !important;
}

.tools-badge {
    background: rgba(244, 114, 182, 0.14) !important;
    color: #f9a8d4 !important;
    border: 1px solid rgba(244, 114, 182, 0.22) !important;
}

.tools-heading {
    color: #ffffff;
    font-size: clamp(1.8rem, 4vw, 2.65rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.04em;
    margin: 4px 0 10px;
}

.tools-subtitle {
    max-width: 360px;
    color: #a1a1aa;
    font-size: 0.95rem;
    line-height: 1.55;
}

.olm-tool-card {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 132px;
    padding: 22px;
    border-radius: 16px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(244, 114, 182, 0.18), rgba(99, 102, 241, 0.08)),
        rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), background 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.olm-tool-card:hover {
    transform: translateY(-4px);
    border-color: rgba(244, 114, 182, 0.42);
    background:
        linear-gradient(135deg, rgba(244, 114, 182, 0.28), rgba(99, 102, 241, 0.13)),
        rgba(255, 255, 255, 0.07);
    box-shadow: 0 28px 74px rgba(0, 0, 0, 0.36), 0 0 36px rgba(244, 114, 182, 0.14);
}

.olm-tool-card:active {
    transform: translateY(-1px) scale(0.99);
}

.olm-card-glow {
    position: absolute;
    width: 190px;
    height: 190px;
    right: -78px;
    top: -84px;
    border-radius: 50%;
    background: rgba(244, 114, 182, 0.18);
    filter: blur(10px);
    z-index: -1;
}

.olm-tool-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fbcfe8;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 1.35rem;
    flex-shrink: 0;
}

.olm-tool-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.olm-tool-kicker {
    color: #f9a8d4;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.olm-tool-title {
    color: #ffffff;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.olm-tool-desc {
    color: #d4d4d8;
    font-size: 0.92rem;
    line-height: 1.45;
}

.olm-tool-action {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.28s var(--ease), background 0.28s var(--ease);
}

.olm-tool-card:hover .olm-tool-action {
    transform: translate(2px, -2px);
    background: rgba(244, 114, 182, 0.2);
}

@media (max-width: 768px) {
    .profile-layout,
    .profile-column,
    .profile-info-card,
    .discord-card {
        min-width: 0;
    }

    .profile-layout {
        width: 100%;
        overflow: hidden;
    }

    .profile-column,
    .profile-info-card {
        width: calc(100vw - 32px) !important;
        max-width: calc(100vw - 32px) !important;
    }

    .tools-panel {
        padding: 20px !important;
    }

    .olm-tool-card {
        grid-template-columns: auto 1fr;
        width: calc(100vw - 72px) !important;
        max-width: calc(100vw - 72px) !important;
        min-height: 120px;
        padding: 18px;
    }

    .olm-tool-card:hover {
        transform: none;
    }

    .olm-tool-action {
        grid-column: 2;
        justify-self: start;
        margin-top: 4px;
    }
}

@media (max-width: 420px) {
    .olm-tool-card {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .olm-tool-icon {
        width: 52px;
        height: 52px;
    }
}

/* =============================================================
   TOOL DIRECTORY REMAKE - COMPACT, EXTENSIBLE CARDS
   ============================================================= */
body {
    letter-spacing: 0;
}

.nav-logo,
.discord-display-name,
.tools-heading,
.tool-tile-title {
    font-family: var(--font-sans);
    font-stretch: normal;
    letter-spacing: 0;
}

.tools-panel {
    padding: 24px !important;
    gap: 18px;
}

.tools-panel::before {
    background:
        linear-gradient(135deg, rgba(244, 114, 182, 0.1), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 60%);
}

.tools-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    position: relative;
    z-index: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    margin-bottom: 0 !important;
    padding-bottom: 16px !important;
}

.tools-badge {
    margin-bottom: 8px;
    color: #f9a8d4 !important;
}

.tools-heading {
    color: #ffffff;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.08;
    margin: 0;
}

.tools-subtitle {
    max-width: 260px;
    color: #a1a1aa;
    font-size: 0.86rem;
    line-height: 1.5;
    text-align: right;
}

.tools-directory {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.tool-tile {
    min-width: 0;
    min-height: 104px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.075);
    box-shadow: none;
    transition: background 0.22s var(--ease), border-color 0.22s var(--ease), transform 0.22s var(--ease);
}

.tool-tile:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.075);
    border-color: rgba(244, 114, 182, 0.32);
}

.tool-tile-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f9a8d4;
    background: rgba(244, 114, 182, 0.1);
    border: 1px solid rgba(244, 114, 182, 0.13);
    font-size: 1rem;
    flex-shrink: 0;
}

.tool-tile-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tool-tile-title {
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tool-tile-desc {
    color: #b7b7c4;
    font-size: 0.78rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tool-tile-arrow {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d4d4d8;
    background: rgba(255, 255, 255, 0.055);
    font-size: 0.78rem;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .tools-directory {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tools-panel-header {
        flex-direction: column;
        gap: 8px;
    }

    .tools-subtitle {
        max-width: none;
        text-align: left;
    }

    .tool-tile {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* =============================================================
   CLEAN TOOL LIST + DISCORD ACTIVITY REMAKE
   ============================================================= */
.tools-panel {
    padding: 16px !important;
}

.tools-panel::before {
    display: none;
}

.tools-directory {
    gap: 10px;
}

.tool-tile {
    min-height: 84px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.07);
    transition: border-color 0.16s var(--ease);
}

.tool-tile:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.07);
}

.tool-tile-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(244, 114, 182, 0.08);
}

.tool-tile-arrow {
    background: transparent;
}

.discord-card .activity-card {
    margin: 0;
    padding: 12px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(0, 0, 0, 0.12);
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0;
    box-shadow: none;
    min-height: 0;
}

.discord-card .activity-card:hover {
    transform: none;
    box-shadow: none;
    border-top-color: rgba(255, 255, 255, 0.06);
}

.discord-card .activity-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 18px;
}

.discord-card .activity-card-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--activity-dot, #747f8d);
    box-shadow: 0 0 12px var(--activity-dot, #747f8d);
}

.discord-card .activity-card-title {
    color: #d7d8df;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.discord-card .activity-card-status {
    margin-left: auto;
    font-size: 0.68rem;
    font-weight: 800;
}

.discord-card .activity-card-grid {
    display: grid;
    gap: 8px;
}

.discord-card .activity-card-grid.split {
    grid-template-columns: 1fr;
}

.discord-card .activity-slot,
.discord-card .activity-card-grid.split .activity-slot {
    min-width: 0;
    padding: 0 !important;
    border: 0 !important;
}

.discord-card .activity-item {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 10px;
    align-items: center;
    min-width: 0;
    padding: 9px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.055);
}

.discord-card .activity-item-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    object-fit: cover;
}

.discord-card .activity-item-icon-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f9a8d4;
    background: rgba(244, 114, 182, 0.09);
}

.discord-card .activity-item-info {
    min-width: 0;
}

.discord-card .activity-item-label {
    color: #a1a1aa;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.discord-card .activity-item-name {
    margin-top: 2px;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.discord-card .activity-item-detail,
.discord-card .activity-item-time {
    margin-top: 2px;
    color: #a1a1aa;
    font-size: 0.72rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.discord-card .activity-progress-bar {
    height: 3px;
    margin: 7px 0 4px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.discord-card .activity-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: #1db954;
}

@media (max-width: 768px) {
    .tools-panel {
        padding: 14px !important;
    }
}

/* Keep the tools panel itself still; only each tool cell animates. */
.profile-info-card.tools-panel,
.profile-info-card.tools-panel:hover {
    transform: none !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    background: rgba(17, 18, 20, 0.7) !important;
}

.tool-tile,
.tool-tile:focus {
    background: rgba(255, 255, 255, 0.035) !important;
    border-color: rgba(255, 255, 255, 0.07) !important;
    outline: none;
}

.tool-tile:hover {
    transform: translateY(-2px) !important;
    background: rgba(255, 255, 255, 0.055) !important;
    border-color: rgba(244, 114, 182, 0.18) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16) !important;
}

.tool-tile:hover .tool-tile-icon {
    transform: translateY(-1px) !important;
    background: rgba(244, 114, 182, 0.14) !important;
}

.tool-tile-arrow,
.tool-tile:focus .tool-tile-arrow {
    background: transparent !important;
    color: #d4d4d8 !important;
}

.tool-tile:hover .tool-tile-arrow {
    transform: translateX(2px) !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

.nav-logo-empty {
    width: 0;
    min-width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

.tool-tile-title {
    white-space: normal !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
