:root {
    --bg-main: #0d0708;
    --bg-card: rgba(13, 7, 8, 0.75);
    --bg-glass: rgba(13, 7, 8, 0.5);
    --text-main: #fbf5f6;
    --text-muted: #a89b9d;
    --accent: #3efee3;
    --accent-rgb: 62, 254, 227;
    --accent-hover: #2acdb7;
    --accent-hover-rgb: 42, 205, 183;
    --accent-dark: #168072;
    --border-color: rgba(var(--accent-rgb), 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    cursor: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

#custom-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent);
    box-shadow: 0 0 8px var(--accent-hover);
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.15s, height 0.15s, background-color 0.15s;
}

#custom-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid rgba(var(--accent-rgb), 0.55);
    background-color: rgba(var(--accent-hover-rgb), 0.05);
    box-shadow: 0 0 10px rgba(var(--accent-hover-rgb), 0.25);
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease-out, height 0.2s ease-out, border-color 0.2s, background-color 0.2s;
}

.cursor-hover #custom-cursor-ring {
    width: 48px;
    height: 48px;
    border-color: rgba(var(--accent-rgb), 0.85);
    background-color: rgba(var(--accent-hover-rgb), 0.2);
    box-shadow: 0 0 25px rgba(var(--accent-hover-rgb), 0.6);
}

.cursor-hover #custom-cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
}

#bg-canvas-container {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background-color: var(--bg-main);
}

#bg-canvas-container canvas {
    display: block;
    width: 100vw;
    height: 100vh;
}

#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    z-index: 10000;
    pointer-events: none;
    background: linear-gradient(90deg, var(--accent-hover) 0%, var(--accent) 50%, #8afff1 100%);
    box-shadow: 0 0 10px rgba(var(--accent-hover-rgb), 0.8), 0 0 5px rgba(var(--accent-rgb), 0.6);
}

.btn,
.btn-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 28px;
    border-radius: 12px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: none !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    border: none;
    text-transform: none;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn::after,
.btn-social::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom left, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 60%);
    background-size: 300% 300%;
    background-position: 100% 0%;
    transition: background-position 0.5s ease-out;
    z-index: 2;
    pointer-events: none;
}

.btn:hover::after,
.btn-social:hover::after {
    background-position: 0% 100%;
}

.btn-sm {
    padding: 6.4px 17.6px;
    border-radius: 20px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(var(--accent-hover-rgb), 0.35);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-dark) 0%, #0c544a 100%);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px -5px rgba(var(--accent-hover-rgb), 0.5);
    transform: translateY(-2px);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-outlined {
    border: 1px solid rgba(var(--accent-rgb), 0.35);
    color: var(--text-main);
    background-color: transparent;
    padding: 10px 25.6px;
    height: 44px;
}

.btn-outlined:hover {
    border-color: var(--accent);
    background-color: rgba(var(--accent-rgb), 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(var(--accent-rgb), 0.2);
}

.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

#main-header {
    position: sticky;
    top: 0;
    z-index: 9999 !important;
    background-color: var(--bg-glass);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(100px);
}

header.scrolled {
    background-color: rgba(13, 7, 8, 0.92);
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
    background: linear-gradient(180deg, #ffffff 0%, #d1d5db 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover {
    transform: scale(1.05) translateY(-1px);
    filter: drop-shadow(0 4px 12px rgba(var(--accent-rgb), 0.25));
}

.brand-logo {
    filter: drop-shadow(0 4px 12px rgba(var(--accent-rgb), 0.15));
}

.nav-links {
    display: none;
    gap: 8px;
}

@media (min-width: 900px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    padding: 6.4px 16px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.nav-links a:hover {
    color: #ffffff;
    background-color: rgba(var(--accent-rgb), 0.1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-switch {
    display: flex;
    padding: 3.2px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    position: relative;
}

.lang-btn {
    position: relative;
    padding: 3.2px 12.8px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 0.75rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    border: none;
    background: transparent;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    z-index: 1;
}

.lang-btn:hover {
    color: #ffffff;
}

.lang-btn.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-dark) 100%);
    box-shadow: 0 2px 10px rgba(var(--accent-hover-rgb), 0.4);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.2rem;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: none !important;
    transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(13, 7, 8, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.2);
    padding: 16px 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1050;
}

.mobile-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-link {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 600;
    color: var(--text-muted);
}

.mobile-link:last-child {
    border-bottom: none;
}

.mobile-link:hover {
    color: #fff;
}

.mobile-contact-wrapper {
    margin-top: 12px;
    padding-top: 16px;
    display: flex;
}

.mobile-contact-wrapper .btn {
    width: 100%;
    justify-content: center;
}

.mobile-contact-wrapper .btn,
.mobile-contact-wrapper .btn span,
.mobile-contact-wrapper .btn i {
    color: #ffffff !important;
}

#mobile-spotify-container {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.hero {
    padding: 80px 0;
}

.hero-card {
    background-color: rgba(18, 10, 12, 0.55);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(var(--accent-hover-rgb), 0.08);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.hero-window-bar {
    background-color: rgba(12, 6, 8, 0.9);
    padding: 9.6px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.window-dots {
    display: flex;
    align-items: center;
    gap: 9.6px;
}

.window-bar-text {
    font-family: monospace;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-left: 12px;
}

.window-bar-command {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: monospace;
    font-size: 0.76rem;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.blinking-cursor {
    display: inline-block;
    width: 6px;
    height: 12px;
    background-color: var(--accent);
    animation: cursorBlink 0.8s infinite ease-in-out;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.dot-red {
    background-color: #ef4444;
}

.dot-yellow {
    background-color: #eab308;
}

.dot-green {
    background-color: #22c55e;
}

.hero-content {
    padding: 52px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

@media (min-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr 1.15fr;
    }
}

.hero-role {
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
    border-left: 2px solid rgba(var(--accent-rgb), 0.5);
    padding-left: 16px;
}

.hero-title {
    font-size: 4.2rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    display: inline-block;
    transform-style: preserve-3d;
    background-image: linear-gradient(90deg, #ffffff 0%, var(--text-main) 60%, var(--accent) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.4));
    transition: filter 0.3s ease, background-image 0.3s ease, transform 0.15s ease-out;
}

.hero-title:hover {
    background-image: linear-gradient(135deg, #ffffff 0%, #ccfff9 35%, var(--accent) 70%, #ffffff 100%);
    filter: drop-shadow(0 8px 25px rgba(var(--accent-rgb), 0.45)) drop-shadow(0 0 15px rgba(var(--accent-hover-rgb), 0.5));
}

.hero-desc {
    font-size: 1.18rem;
    color: var(--text-muted);
    max-width: 560px;
    margin-bottom: 32px;
    line-height: 1.7;
    font-weight: 500;
}

.hero-btns {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    align-items: stretch;
}

.terminal {
    width: 100%;
    max-width: 650px;
    border-radius: 12px;
    overflow: hidden;
    background-color: rgba(8, 4, 6, 0.95);
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(var(--accent-hover-rgb), 0.15);
    font-family: 'Fira Code', 'Roboto Mono', monospace;
    text-align: left;
    transition: all 0.35s ease;
}

.terminal:hover {
    border-color: rgba(var(--accent-rgb), 0.5);
}

.terminal-top {
    background-color: rgba(18, 9, 11, 0.95);
    padding: 16px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.terminal-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.4;
    text-align: center;
}

.terminal-body {
    line-height: 1.7;
    height: 360px;
    overflow-y: auto;
    padding: 22.4px;
    display: flex;
    flex-direction: column;
    font-size: 0.75rem;
}

.terminal-body::-webkit-scrollbar {
    width: 6px;
}

.terminal-body::-webkit-scrollbar-thumb {
    background-color: rgba(var(--accent-rgb), 0.3);
    border-radius: 3px;
}

.terminal-prompt-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.terminal-prompt-label {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.75rem;
}

.terminal-input-wrapper {
    position: relative;
    flex: 1;
    display: inline-flex;
    align-items: center;
}

.terminal-cursor-block {
    display: inline-block;
    width: 8px;
    height: 15px;
    background-color: var(--accent);
    margin-left: 2px;
    animation: cursorBlink 0.8s infinite ease-in-out;
}

@keyframes cursorBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.terminal-hidden-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-family: inherit;
    font-size: 0.75rem;
}

#terminal-rendered-text {
    font-size: 0.75rem;
}

.section {
    padding: 80px 0;
    background-color: rgba(22, 13, 15, 0.45);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

#expertise {
    background-color: transparent !important;
    backdrop-filter: none !important;
    border: none !important;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 1.5px;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-top: 4px;
    margin-bottom: 12px;
}

.section-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.cards-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
    background-color: var(--bg-card);
    border: 1px solid rgba(var(--accent-rgb), 0.12);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-6px);
}

.card-icon-bg {
    position: absolute;
    top: -15px;
    right: -15px;
    opacity: 0.04;
    font-size: 125px;
    pointer-events: none;
    transition: all 0.4s ease;
}

.card:hover .card-icon-bg {
    transform: scale(1.15) rotate(-5deg);
    opacity: 0.15;
}

.hero-social-links {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 50;
}

.social-circle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid rgba(var(--accent-rgb), 0.12) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.125rem;
    transition: all 0.2s ease;
    position: relative;
    z-index: 10;
}

.social-circle-btn::before,
.social-circle-btn::after {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 9999;
    transform: translateX(-50%) translateY(8px) scale(0.9);
}

.social-circle-btn::after {
    content: attr(data-tooltip);
    bottom: calc(100% + 8px);
    left: 50%;
    background-color: rgba(70, 70, 70, 0.9);
    color: #fff;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    font-family: 'Nunito', sans-serif;
}

.social-circle-btn::before {
    content: '';
    bottom: calc(100% + 3px);
    left: 50%;
    border-width: 5px 5px 0 5px;
    border-style: solid;
    border-color: rgba(70, 70, 70, 0.9) transparent transparent transparent;
}

.social-circle-btn:hover {
    transform: translateY(-4px) scale(1.1);
    z-index: 100;
}

.social-circle-btn.gh:hover {
    background-color: rgba(240, 246, 252, 0.15);
    border-color: #f0f6fc !important;
    color: #f0f6fc;
    box-shadow: 0 0 15px rgba(240, 246, 252, 0.5);
}

.social-circle-btn.li:hover {
    background-color: rgba(10, 102, 194, 0.15);
    border-color: #0a66c2 !important;
    color: #0a66c2;
    box-shadow: 0 0 15px rgba(10, 102, 194, 0.5);
}

.social-circle-btn.dc:hover {
    background-color: rgba(88, 101, 242, 0.15);
    border-color: #5865f2 !important;
    color: #5865f2;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.5);
}

.social-circle-btn.em:hover {
    background-color: rgba(var(--accent-rgb), 0.15);
    border-color: var(--accent) !important;
    color: var(--accent);
    box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.5);
}

.social-circle-btn:hover::before,
.social-circle-btn:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

.social-card .social-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.social-card .social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

.social-card.github .social-icon {
    color: #f0f6fc;
    background-color: rgba(240, 246, 252, 0.1);
    border: 1px solid rgba(240, 246, 252, 0.25);
    box-shadow: 0 4px 12px rgba(240, 246, 252, 0.15);
}

.social-card.linkedin .social-icon {
    color: #0a66c2;
    background-color: rgba(10, 102, 194, 0.15);
    border: 1px solid rgba(10, 102, 194, 0.25);
    box-shadow: 0 4px 12px rgba(10, 102, 194, 0.15);
}

.social-card.discord .social-icon {
    color: #5865f2;
    background-color: rgba(88, 101, 242, 0.15);
    border: 1px solid rgba(88, 101, 242, 0.25);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.15);
}

.social-card.email .social-icon {
    color: var(--accent);
    background-color: rgba(var(--accent-rgb), 0.15);
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.15);
}

.social-card.github:hover .social-icon {
    box-shadow: 0 0 25px 5px rgba(240, 246, 252, 0.35);
}

.social-card.linkedin:hover .social-icon {
    box-shadow: 0 0 25px 5px rgba(10, 102, 194, 0.35);
}

.social-card.discord:hover .social-icon {
    box-shadow: 0 0 25px 5px rgba(88, 101, 242, 0.35);
}

.social-card.email:hover .social-icon {
    box-shadow: 0 0 25px 5px rgba(var(--accent-rgb), 0.35);
}

.social-card.github:hover {
    border-color: #f0f6fc;
    box-shadow: 0 15px 35px -10px #f0f6fc45;
}

.social-card.github .card-icon-bg {
    color: #f0f6fc;
}

.social-card.linkedin:hover {
    border-color: #0a66c2;
    box-shadow: 0 15px 35px -10px #0a66c245;
}

.social-card.linkedin .card-icon-bg {
    color: #0a66c2;
}

.social-card.discord:hover {
    border-color: #5865f2;
    box-shadow: 0 15px 35px -10px #5865f245;
}

.social-card.discord .card-icon-bg {
    color: #5865f2;
}

.social-card.email:hover {
    border-color: var(--accent);
    box-shadow: 0 15px 35px -10px rgba(var(--accent-rgb), 0.45);
}

.social-card.email .card-icon-bg {
    color: var(--accent);
}

.social-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.social-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    word-break: break-all;
}

.btn-social {
    width: 100%;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-main);
    font-family: 'Nunito', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    background: transparent;
    cursor: none !important;
    margin-top: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-social i {
    font-size: 14px;
    color: inherit;
}

.btn-social:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(255, 255, 255, 0.1);
}

.social-card.github .btn-social:hover {
    border-color: #f0f6fc;
    background-color: rgba(240, 246, 252, 0.1);
    color: #f0f6fc;
    box-shadow: 0 8px 25px -5px rgba(240, 246, 252, 0.2);
}

.social-card.linkedin .btn-social:hover {
    border-color: #0a66c2;
    background-color: rgba(10, 102, 194, 0.15);
    color: #0a66c2;
    box-shadow: 0 8px 25px -5px rgba(10, 102, 194, 0.2);
}

.social-card.discord .btn-social:hover {
    border-color: #5865f2;
    background-color: rgba(88, 101, 242, 0.15);
    color: #5865f2;
    box-shadow: 0 8px 25px -5px rgba(88, 101, 242, 0.2);
}

.social-card.email .btn-social:hover {
    border-color: var(--accent);
    background-color: rgba(var(--accent-rgb), 0.15);
    color: var(--accent);
    box-shadow: 0 8px 25px -5px rgba(var(--accent-rgb), 0.2);
}

.work-card:hover {
    border-color: var(--accent-hover);
    box-shadow: 0 15px 35px -5px rgba(var(--accent-hover-rgb), 0.3);
}

.work-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.work-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0;
}

.work-card .work-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(var(--accent-rgb), 0.08);
    color: var(--accent);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    box-shadow: 0 0 15px 2px rgba(var(--accent-rgb), 0.15);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.work-desc {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
    text-align: center;
}

.badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    justify-content: center;
}

.badge {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 8px;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    white-space: nowrap;
}

.badge:hover {
    background-color: rgba(var(--accent-rgb), 0.15);
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.25);
}

#expertise .card {
    background-color: rgba(18, 10, 12, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

#portfolio .badge {
    background-color: rgba(var(--accent-rgb), 0.06) !important;
    border-color: rgba(var(--accent-rgb), 0.15) !important;
    color: rgba(var(--accent-rgb), 0.65) !important;
    font-weight: 600 !important;
}

#portfolio .badge:hover {
    transform: none !important;
    box-shadow: none !important;
    background-color: rgba(var(--accent-rgb), 0.06) !important;
    border-color: rgba(var(--accent-rgb), 0.15) !important;
    color: rgba(var(--accent-rgb), 0.65) !important;
}

#toast {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(50px);
    background-color: var(--accent-hover);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(var(--accent-hover-rgb), 0.5);
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
    pointer-events: none;
    opacity: 0;
    min-width: 320px;
    max-width: 90vw;
    font-weight: 700;
    font-size: 0.9rem;
}

#toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-icon svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}

#toast-message {
    flex-grow: 1;
    margin-right: 8px;
}

.toast-close {
    background: transparent;
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
    margin-left: auto;
}

.toast-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.toast-close svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

footer {
    padding: 48px 0;
    background-color: rgba(8, 4, 5, 0.6);
    border-top: 1px solid rgba(var(--accent-rgb), 0.2);
    position: relative;
    z-index: 1;
}

.spotify-widget {
    position: fixed;
    bottom: 24px;
    left: 24px;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background-color 0.3s ease;
    z-index: 9950;
    width: auto;
    max-width: 400px;
}

.spotify-widget:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.spotify-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.05);
}

#spotify-album-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#spotify-default-icon {
    color: var(--text-muted);
    font-size: 26px;
}

.spotify-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    overflow: hidden;
    flex-grow: 1;
}

.spotify-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    gap: 12px;
}

.spotify-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 800;
    white-space: nowrap;
}

.spotify-equalizer {
    display: none;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
    flex-shrink: 0;
}

.spotify-equalizer span {
    width: 2.5px;
    height: 100%;
    background-color: var(--accent);
    border-radius: 2px;
    transform-origin: bottom;
    animation: smooth-wave 1.4s ease-in-out infinite;
}

.spotify-equalizer span:nth-child(1) {
    animation-delay: -1.2s;
}

.spotify-equalizer span:nth-child(2) {
    animation-delay: -0.7s;
}

.spotify-equalizer span:nth-child(3) {
    animation-delay: -1.0s;
}

.spotify-equalizer span:nth-child(4) {
    animation-delay: -0.4s;
}

@keyframes smooth-wave {

    0%,
    100% {
        transform: scaleY(0.2);
        opacity: 0.6;
    }

    30% {
        transform: scaleY(1);
        opacity: 1;
    }

    60% {
        transform: scaleY(0.4);
        opacity: 0.8;
    }

    80% {
        transform: scaleY(0.8);
        opacity: 1;
    }
}

.spotify-song {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none;
    overflow: hidden;
}

.spotify-title {
    font-size: 0.85rem;
    color: var(--text-main);
    font-weight: 800;
    line-height: 1.3;
    transition: color 0.2s ease;
    white-space: normal;
    word-break: break-word;
}

.spotify-artist {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.3;
    white-space: normal;
    word-break: break-word;
    margin-top: 2px;
}

.spotify-song:hover .spotify-title {
    color: var(--accent);
}

#mobile-spotify-container .spotify-widget {
    position: static;
    display: flex;
    width: 100%;
    max-width: 100%;
    margin-top: 16px;
    box-shadow: none;
    transform: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
}

#mobile-spotify-container .spotify-widget:hover {
    transform: none;
    background-color: rgba(255, 255, 255, 0.05);
}

@media (max-width: 900px) {
    * {
        cursor: auto !important;
    }

    #custom-cursor-dot,
    #custom-cursor-ring {
        display: none !important;
    }

    .nav-links,
    .desktop-only {
        display: none !important;
    }

    .nav-links,
    .desktop-only {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding: 32px 24px;
        gap: 32px;
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-role {
        border-left: none !important;
        padding-left: 0 !important;
    }

    .hero-title {
        font-size: 3rem;
        transform: none !important;
        transform-style: flat !important;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
        text-align: center;
    }

    .hero-social-links {
        justify-content: center;
        margin-top: 16px;
    }

    .cards-grid,
    .cards-grid-3 {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2.2rem;
    }

    footer .container {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .window-bar-text {
        display: inline-block !important;
        font-size: 0.53rem;
        margin-left: 8px;
    }

    .window-bar-command {
        font-size: 0.53rem;
        white-space: nowrap;
    }

    .hero-window-bar {
        padding: 10px 12px;
    }

    .terminal-title {
        white-space: normal;
        overflow: visible;
        max-width: 65%;
        font-size: 0.65rem;
        line-height: 1.2;
    }
}