/* VARIABLES & COLOR PALETTE */
:root {
    --bg-main: #0b0c10;
    --bg-card: rgba(22, 24, 29, 0.75);
    --bg-card-hover: rgba(28, 31, 38, 0.85);
    --bg-element: rgba(35, 39, 47, 0.6);
    --bg-element-hover: rgba(45, 50, 60, 0.8);

    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(255, 255, 255, 0.2);

    /* DYNAMIC RGB LED COLOR VARIABLES */
    --accent-color: #10b981;
    --accent-glow: rgba(16, 185, 129, 0.3);
    --accent-light: #34d399;

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;

    --transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 16px 60px;
    position: relative;
    overflow-x: hidden;

    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* BACKGROUND CANVAS */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.7;
}

/* LANGUAGE SWITCHER */
.lang-switcher {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 999;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(22, 24, 29, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-switcher:hover {
    border-color: var(--accent-color);
    box-shadow: 0 8px 28px var(--accent-glow);
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}

.lang-btn .lang-flag {
    font-size: 0.95rem;
    line-height: 1;
}

.lang-btn .lang-code {
    letter-spacing: 0.05em;
}

.lang-btn:hover {
    color: var(--text-primary);
    background-color: var(--bg-element);
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: #0b0c10;
    font-weight: 800;
    box-shadow: 0 2px 10px var(--accent-glow);
}

.lang-btn.active:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: #0b0c10;
}

/* MAIN CONTAINER & CARD SPOTLIGHT */
.container {
    max-width: 820px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 22px;
    z-index: 1;
}

.card {
    background-color: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 26px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.5);
    transition: border-color 0.4s ease, transform var(--transition), box-shadow 0.4s ease;
}

.spotlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            var(--accent-glow),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 0;
}

.spotlight-card:hover::before {
    opacity: 1;
}

.spotlight-card:hover {
    border-color: var(--border-color-hover);
}

.card>* {
    position: relative;
    z-index: 1;
}

/* CONTACT CARD HIGHLIGHT ANIMATION */
.card.contact-card-highlight {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 35px var(--accent-glow), inset 0 0 20px var(--accent-glow) !important;
    transform: scale(1.015);
}

/* SECTION TITLE */
.section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 14px;
}

.title-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

/* HEADER INFO & PROFILE */
.profile-header {
    display: flex;
    align-items: flex-start;
    gap: 26px;
}

.profile-avatar-wrapper {
    flex-shrink: 0;
    position: relative;
}

.profile-avatar-wrapper::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), transparent 70%);
    z-index: -1;
    opacity: 0.8;
    animation: avatarPulse 4s ease-in-out infinite alternate;
}

@keyframes avatarPulse {
    0% {
        transform: scale(0.98);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.04);
        opacity: 1;
        filter: drop-shadow(0 0 12px var(--accent-color));
    }
}

.profile-avatar {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(15, 17, 21, 0.8);
    background-color: var(--bg-element);
    display: block;
}

.profile-info {
    flex-grow: 1;
}

.profile-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 4px;
}

.profile-name {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 40%, var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.profile-title {
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-details-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-bottom: 16px;
    font-size: 0.83rem;
}

.detail-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--bg-element);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all var(--transition);
}

.detail-item:hover {
    border-color: var(--accent-color);
    color: var(--text-primary);
    background-color: var(--bg-element-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px var(--accent-glow);
}

.detail-item i {
    color: var(--accent-color);
    font-size: 0.8rem;
}

/* STATUS PULSE */
.status-pulse-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px;
    border-radius: var(--radius-full);
    background: rgba(30, 34, 42, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.status-pulse-wrapper:hover {
    transform: translateY(-2px) scale(1.05);
}

.status-pulse-wrapper.available {
    border-color: rgba(74, 222, 128, 0.4);
}

.status-pulse-wrapper.available:hover {
    border-color: #4ade80;
    background-color: rgba(74, 222, 128, 0.15);
    box-shadow: 0 0 22px rgba(74, 222, 128, 0.45);
}

.status-pulse-wrapper.busy {
    border-color: rgba(245, 158, 11, 0.4);
}

.status-pulse-wrapper.busy:hover {
    border-color: #f59e0b;
    background-color: rgba(245, 158, 11, 0.15);
    box-shadow: 0 0 22px rgba(245, 158, 11, 0.45);
}

.status-pulse-wrapper.other {
    border-color: rgba(148, 163, 184, 0.4);
}

.status-pulse-wrapper.other:hover {
    border-color: #94a3b8;
    background-color: rgba(148, 163, 184, 0.15);
    box-shadow: 0 0 22px rgba(148, 163, 184, 0.45);
}

.status-pulse {
    position: relative;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.status-pulse-wrapper.available .dot-core {
    background-color: #4ade80;
}

.status-pulse-wrapper.available .dot-ring {
    border-color: #4ade80;
}

.status-pulse-wrapper.available .status-text-default,
.status-pulse-wrapper.available .status-text-hover {
    color: #4ade80;
}

.status-pulse-wrapper.busy .dot-core {
    background-color: #f59e0b;
}

.status-pulse-wrapper.busy .dot-ring {
    border-color: #f59e0b;
}

.status-pulse-wrapper.busy .status-text-default,
.status-pulse-wrapper.busy .status-text-hover {
    color: #f59e0b;
}

.status-pulse-wrapper.other .dot-core {
    background-color: #94a3b8;
}

.status-pulse-wrapper.other .dot-ring {
    border-color: #94a3b8;
}

.status-pulse-wrapper.other .status-text-default,
.status-pulse-wrapper.other .status-text-hover {
    color: #94a3b8;
}

.dot-core {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

.dot-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid currentColor;
    animation: statusRingExpand 2s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}

@keyframes statusRingExpand {
    0% {
        width: 8px;
        height: 8px;
        opacity: 0.9;
    }

    100% {
        width: 26px;
        height: 26px;
        opacity: 0;
    }
}

.status-text-default,
.status-text-hover {
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    transition: max-width 0.4s ease, opacity 0.3s ease;
}

.status-text-default {
    max-width: 160px;
    opacity: 1;
}

.status-text-hover {
    max-width: 0;
    opacity: 0;
}

.status-pulse-wrapper:hover .status-text-default {
    max-width: 0;
    opacity: 0;
}

.status-pulse-wrapper:hover .status-text-hover {
    max-width: 160px;
    opacity: 1;
}

.profile-bio {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    background-color: var(--bg-element);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    transition: all var(--transition);
}

.btn:hover {
    background-color: var(--bg-element-hover);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: #0b0c10;
    border: none;
    font-weight: 700;
}

.btn-primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 20px var(--accent-glow);
}

/* STATS & ANIMATED COUNTERS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.stat-item {
    background-color: var(--bg-element);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    text-align: center;
    transition: all var(--transition);
    position: relative;
}

.stat-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.stat-num {
    font-size: 1.75rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--accent-light);
    margin-bottom: 6px;
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* SKILLS */
.skills-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-category-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.skill-category-title i {
    color: var(--accent-color);
}

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

.skill-tag {
    font-size: 0.86rem;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    background-color: var(--bg-element);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition);
    user-select: none;
}

.skill-tag:hover {
    border-color: var(--accent-color);
    color: var(--text-primary);
    background-color: var(--bg-element-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px var(--accent-glow);
}

/* PROJECTS */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.project-item {
    background-color: var(--bg-element);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px;
    transition: all var(--transition);
}

.project-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.project-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-title i {
    font-size: 1.15rem;
}

.project-links {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    font-size: 0.84rem;
    font-weight: 600;
    font-family: var(--font-main);
    color: var(--text-secondary);
    background-color: var(--bg-element);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
    position: relative;
    user-select: none;
}

.project-link i:first-child {
    font-size: 0.92rem;
    color: var(--text-muted);
    transition: color var(--transition);
}

.project-link .link-arrow {
    font-size: 0.7rem;
    opacity: 0.5;
    transition: transform var(--transition), opacity var(--transition), color var(--transition);
}

.project-link:hover {
    border-color: var(--accent-color);
    color: var(--text-primary);
    background-color: var(--bg-element-hover);
    box-shadow: 0 0 16px var(--accent-glow);
    transform: translateY(-2px);
}

.project-link:hover i:first-child {
    color: var(--accent-color);
}

.project-link:hover .link-arrow {
    transform: translate(2px, -2px);
    opacity: 1;
    color: var(--accent-color);
}

.project-link:active {
    transform: translateY(0);
}

.project-desc {
    font-size: 0.91rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.project-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent-light);
    background-color: rgba(11, 12, 16, 0.7);
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition);
    user-select: none;
}

.tech-tag:hover {
    border-color: var(--accent-color);
    color: #ffffff;
    background-color: var(--bg-element-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

/* FOOTER & SOCIALS DOCK */
.socials-dock-wrapper {
    text-align: center;
    margin-bottom: 24px;
}

.socials-dock {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    background-color: var(--bg-element);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 10px 20px;
    max-width: 100%;
    flex-wrap: wrap;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.social-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
    will-change: transform;
}

@keyframes socialBounce {
    0% {
        transform: translateY(0) scale(1);
    }

    40% {
        transform: translateY(-16px) scale(1.28);
        color: var(--accent-color);
        border-color: var(--accent-color);
        box-shadow: 0 10px 24px var(--accent-glow);
    }

    70% {
        transform: translateY(2px) scale(1.05);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

.social-btn:hover {
    transform: scale(1.35) translateY(-8px);
    background-color: var(--bg-element-hover);
    color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 8px 20px var(--accent-glow);
    z-index: 5;
}

.footer-info {
    padding-top: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.footer-slogan {
    font-family: var(--font-mono);
    font-style: italic;
    color: var(--accent-light);
    font-size: 0.9rem;
}

.footer-author {
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* RESPONSIVE STYLES */
@media (max-width: 768px) {
    body {
        padding: 58px 12px 40px;
    }

    .lang-switcher {
        top: 12px;
        right: 12px;
        padding: 3px;
    }

    .lang-btn {
        padding: 5px 9px;
        font-size: 0.74rem;
        gap: 4px;
    }

    .lang-btn .lang-flag {
        font-size: 0.85rem;
    }

    .card {
        padding: 22px 18px;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 18px;
    }

    .profile-top-row {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 8px;
        width: 100%;
    }

    .profile-name {
        text-align: center;
    }

    .status-pulse-wrapper {
        padding: 8px 18px;
        min-height: 42px;
        gap: 8px;
        margin-top: 4px;
        border-color: rgba(74, 222, 128, 0.4);
        background: rgba(30, 34, 42, 0.88);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    }

    .status-pulse-wrapper .status-text-default {
        max-width: none !important;
        opacity: 1 !important;
        font-size: 0.85rem;
    }

    .status-pulse-wrapper .status-text-hover {
        max-width: none !important;
        opacity: 0.95 !important;
        font-size: 0.82rem;
        display: inline-flex !important;
        align-items: center;
        gap: 5px;
        padding-left: 8px;
        border-left: 1px solid rgba(255, 255, 255, 0.2);
    }

    .status-pulse-wrapper .status-text-hover::after {
        content: '\f063';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 0.7rem;
        opacity: 0.85;
    }

    .status-pulse-wrapper:active {
        transform: scale(0.96);
        background-color: rgba(74, 222, 128, 0.22);
        border-color: #4ade80;
        box-shadow: 0 0 20px rgba(74, 222, 128, 0.45);
    }

    .profile-title {
        justify-content: center;
    }

    .profile-details-grid {
        justify-content: center;
    }

    .profile-actions {
        justify-content: center;
        width: 100%;
    }

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

    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 12px;
    }

    .project-links {
        width: auto;
        display: flex;
        align-self: flex-start;
        gap: 10px;
    }

    .project-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 9px 18px;
        min-height: 40px;
        font-size: 0.88rem;
        font-weight: 600;
        color: #ffffff;
        background-color: rgba(35, 39, 47, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: var(--radius-full);
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
        touch-action: manipulation;
    }

    .project-link i:first-child {
        font-size: 1.05rem;
        color: var(--accent-light);
    }

    .project-link .link-arrow {
        font-size: 0.74rem;
        color: var(--accent-light);
        opacity: 0.85;
    }

    .project-link:active {
        transform: scale(0.96);
        border-color: var(--accent-color);
        background-color: var(--bg-element-hover);
        box-shadow: 0 0 16px var(--accent-glow);
    }
}

@media (max-width: 480px) {
    .profile-name {
        font-size: 1.5rem;
    }

    .status-pulse-wrapper {
        padding: 7px 15px;
    }

    .status-pulse-wrapper .status-text-default,
    .status-pulse-wrapper .status-text-hover {
        font-size: 0.8rem;
    }

    .project-title {
        font-size: 1.02rem;
    }

    .project-link {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

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

    .socials-dock {
        gap: 8px;
        padding: 8px 12px;
    }

    .social-btn {
        width: 40px;
        height: 40px;
        font-size: 1.05rem;
    }
}