/* SEU CÓDIGO ORIGINAL COMEÇA AQUI */
:root {
    --bg-dark: #03050a;
    --bg-card: rgba(18, 24, 38, 0.7);
    --bg-button: #1a2235;
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --accent-blue: #5dbeff;
    --accent-green: #10b981;
    --border-color: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    --glass-blur: blur(15px);
}

body.light-theme {
    --bg-dark: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.85);
    /* Mais clareza e opacidade para o glassmorphism */
    --bg-button: #ffffff;
    --text-main: #0f172a;
    --text-muted: #334155;
    /* Escurecido para melhor contraste */
    --border-color: rgba(0, 0, 0, 0.08);
    --card-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    --accent-blue: #2563eb;
    /* Azul profundo no lugar de ciano */
    --accent-green: #059669;
    /* Verde mais escuro e legível */
}

html {
    scroll-behavior: smooth;
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal.reveal-left {
    transform: translateX(-40px);
}

.reveal.reveal-right {
    transform: translateX(40px);
}

.reveal.reveal-scale {
    transform: scale(0.94) translateY(20px);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Stagger delays for children */
.reveal-child>*:nth-child(1) {
    transition-delay: 0s;
}

.reveal-child>*:nth-child(2) {
    transition-delay: 0.08s;
}

.reveal-child>*:nth-child(3) {
    transition-delay: 0.16s;
}

.reveal-child>*:nth-child(4) {
    transition-delay: 0.24s;
}


body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
}

a:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

.bg-animation {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: -1;
    background: linear-gradient(135deg, #03050a 0%, #0a0e1a 25%, #03050a 50%, #0f0a15 75%, #03050a 100%);
    background-size: 400% 400%;
    animation: gradientShift 20s ease-in-out infinite;

    /* Camadas de gradientes radiais para efeito de aurora borealis */
    background-image:
        radial-gradient(ellipse 600px 400px at 15% 25%, rgba(93, 190, 255, 0.25), transparent 40%),
        radial-gradient(ellipse 700px 500px at 85% 15%, rgba(168, 85, 247, 0.2), transparent 45%),
        radial-gradient(ellipse 800px 600px at 50% 85%, rgba(16, 185, 129, 0.18), transparent 50%),
        radial-gradient(ellipse 750px 450px at 80% 70%, rgba(244, 63, 94, 0.15), transparent 45%),
        radial-gradient(ellipse 650px 350px at 20% 60%, rgba(59, 130, 246, 0.12), transparent 40%);

    will-change: transform;
    animation: auroraMove 25s ease-in-out infinite alternate;
    transform: translate3d(0, 0, 0);
    /* Force GPU layer */
}

@keyframes auroraMove {
    0% {
        transform: translate3d(-2%, -2%, 0) rotate(0.01deg);
    }

    100% {
        transform: translate3d(2%, 2%, 0) rotate(-0.01deg);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

body.light-theme .bg-animation {
    background-image:
        radial-gradient(ellipse 600px 400px at 15% 25%, rgba(93, 190, 255, 0.18), transparent 40%),
        radial-gradient(ellipse 700px 500px at 85% 15%, rgba(168, 85, 247, 0.15), transparent 45%),
        radial-gradient(ellipse 800px 600px at 50% 85%, rgba(16, 185, 129, 0.12), transparent 50%),
        radial-gradient(ellipse 750px 450px at 80% 70%, rgba(244, 63, 94, 0.12), transparent 45%),
        radial-gradient(ellipse 650px 350px at 20% 60%, rgba(59, 130, 246, 0.1), transparent 40%),
        linear-gradient(135deg, #f8fafc 0%, #f1f5f9 25%, #f8fafc 50%, #e8f0f9 75%, #f8fafc 100%);
}

/* Alterado para evitar conflito com Bootstrap */
.card-custom {
    position: relative;
    background-color: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border-radius: 24px;
    padding: 50px;
    width: 100%;
    max-width: 950px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;

    /* Content display optimization */
    content-visibility: auto;
    contain-intrinsic-size: 1px 500px;
}

.tag-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(93, 190, 255, 0.1);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 24px;
    border: 1px solid rgba(93, 190, 255, 0.2);
}

.tag-name .dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-blue);
    border-radius: 50%;
}

h1 span {
    color: var(--accent-blue);
}

/* Melhorias no greeting/título principal */
.greeting-title {
    line-height: 1.2;
    letter-spacing: -0.5px;
    animation: fadeInDown 0.8s ease-out;
}

.greeting-prefix {
    display: block;
    font-size: 0.9em;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 0.2em;
}

.greeting-name {
    display: block;
    background: linear-gradient(135deg, var(--accent-blue) 0%, rgba(93, 190, 255, 0.7) 50%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShimmer 3s ease-in-out infinite, slideInLeft 0.8s ease-out 0.2s backwards;
    font-weight: 800;
    letter-spacing: -1px;
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

@keyframes gradientShimmer {
    0% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }

    100% {
        background-position: 0% center;
    }
}

body.light-theme .greeting-name {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #7c3aed 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bio {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 30px;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, var(--border-color), transparent);
    margin-bottom: 24px;
}

.social-title {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--bg-button);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 12px;
    text-decoration: none !important;
    color: var(--text-main) !important;
    transition: 0.3s;
    touch-action: manipulation;
    /* Removes early mobile click delay */
}

.social-btn:hover {
    transform: translateY(-5px);
    background-color: rgba(93, 190, 255, 0.1);
    border-color: var(--accent-blue);
    box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.5);
}

/* Ícones: aumentar tamanho e garantir consistência entre SVGs e Lucide icons */
.social-btn svg,
.social-btn .lucide {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.social-btn .social-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 16px;
}

@media (min-width: 700px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.about-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background-color: rgba(31, 41, 55, 0.65);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 12px 14px;
    color: var(--text-main);
    transition: transform 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease, border-color 0.28s ease;
}

.about-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    color: var(--accent-blue);
    background: rgba(93, 190, 255, 0.06);
    padding: 8px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.28s ease, color 0.28s ease, background 0.28s ease;
}

.about-content strong {
    display: block;
    font-weight: 700;
    color: var(--accent-blue);
}

.about-content span {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
}

.about-item:hover,
.about-item:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.6);
    background-color: rgba(93, 190, 255, 0.04);
}

.about-item:hover .about-icon,
.about-item:focus-within .about-icon {
    transform: translateY(-3px) scale(1.04);
    color: var(--accent-green);
    background: rgba(16, 185, 129, 0.08);
}

.about-item:focus {
    outline: 2px solid rgba(93, 190, 255, 0.12);
    outline-offset: 6px;
}

.avatar-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    animation: float 5s ease-in-out infinite;
}

@keyframes float {

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

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

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-blue);
}

.status-badge {
    position: absolute;
    bottom: -10px;
    right: -20px;
    background: rgba(17, 24, 39, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.status-badge:hover {
    transform: translateY(-6px) scale(1.04);
}

.status-badge .dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-green);
}

.theme-toggle-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    touch-action: manipulation;
}

.theme-toggle-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-blue);
}

body.light-theme .theme-toggle-btn:hover {
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
}

/* NOVOS ESTILOS PARA AS LISTAS (Baseado na imagem) */
.interest-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.interest-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    color: var(--text-main);
    font-size: 14px;
    background: rgba(93, 190, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.interest-item:hover {
    background: rgba(93, 190, 255, 0.12);
    border-color: var(--accent-blue);
    transform: translateX(5px);
    box-shadow: 0 4px 12px -2px rgba(93, 190, 255, 0.2);
}

.interest-item svg,
.interest-item .lucide,
.interest-item i {
    width: 22px;
    height: 22px;
    min-width: 22px;
    color: var(--accent-blue);
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .interest-item {
        padding: 10px 14px;
        font-size: 13px;
        gap: 12px;
    }

    .interest-item svg,
    .interest-item .lucide,
    .interest-item i {
        width: 18px;
        height: 18px;
    }
}

.light-3 {
    top: 50%;
    left: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.4) 0%, transparent 70%);
    transform: translateY(-50%);
    animation-delay: -3s;
}

.light-4 {
    top: -200px;
    right: -150px;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(244, 63, 94, 0.35) 0%, transparent 70%);
    animation-delay: -7s;
}

.light-5 {
    bottom: -100px;
    left: 20%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.25) 0%, transparent 70%);
    animation-delay: -2s;
}

/* Skills Section */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(93, 190, 255, 0.1), rgba(124, 58, 237, 0.05));
    border: 1px solid rgba(93, 190, 255, 0.2);
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.skill-pill i,
.skill-pill svg {
    color: var(--accent-blue);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.skill-pill:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(93, 190, 255, 0.15);
    border-color: rgba(93, 190, 255, 0.4);
    background: linear-gradient(135deg, rgba(93, 190, 255, 0.15), rgba(124, 58, 237, 0.1));
}

.icon-instagram {
    color: #E4405F;
}

.icon-discord {
    color: #5865F2;
}

.icon-github {
    color: #ffffff;
}

body.light-theme .icon-github {
    color: #1f2937;
}

/* Header */
.site-header {
    position: fixed;
    left: 24px;
    top: 18px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1000;
}

.site-header .brand {
    font-weight: 800;
    font-size: 18px;
    background: linear-gradient(90deg, var(--accent-blue), #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.site-nav .nav-link {
    color: var(--text-muted);
    margin-left: 8px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 10px;
    text-decoration: none;
}

.site-nav .nav-link.active,
.site-nav .nav-link:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.project-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(93, 190, 255, 0.08) 0%, rgba(124, 58, 237, 0.04) 100%);
    border: 1px solid rgba(93, 190, 255, 0.15);
    padding: 20px;
    border-radius: 14px;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.project-card:hover {
    background: linear-gradient(135deg, rgba(93, 190, 255, 0.15) 0%, rgba(124, 58, 237, 0.08) 100%);
    border-color: rgba(93, 190, 255, 0.25);
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(93, 190, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.project-media {
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(93, 190, 255, 0.2);
}

.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

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

.project-title {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: var(--text-main);
    letter-spacing: -0.3px;
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.tech-badges span {
    display: inline-block;
    background: linear-gradient(135deg, rgba(93, 190, 255, 0.12), rgba(124, 58, 237, 0.08));
    padding: 5px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(93, 190, 255, 0.2);
    color: var(--accent-blue);
    letter-spacing: 0.3px;
}

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

.project-links .btn {
    margin: 0;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.25s ease;
}

/* Footer */
.site-footer {
    margin-top: 8px;
    color: var(--text-muted);
    text-align: center;
}

/* Button enhancements */
.project-links .btn-outline-light {
    background: transparent;
    border: 1.5px solid rgba(93, 190, 255, 0.4);
    color: var(--text-main);
    transition: all 0.25s ease;
}

.project-links .btn-outline-light:hover {
    background: linear-gradient(135deg, rgba(93, 190, 255, 0.15), rgba(124, 58, 237, 0.1));
    border-color: var(--accent-blue);
    box-shadow: 0 4px 12px rgba(93, 190, 255, 0.2);
    transform: translateY(-2px);
}

.project-links .btn:disabled,
.project-links .btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .site-header {
        left: 12px;
        top: 12px;
    }

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

    .project-card {
        padding: 16px;
        gap: 14px;
    }
}

.top-actions {
    position: fixed;
    top: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1050;
}

/* Language switch (top-left of toggle) */
.lang-switch {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    height: 38px;
    align-items: center;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: #9ca3af;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.3s ease;
    border-radius: 40px;
    z-index: 2;
    position: relative;
    touch-action: manipulation;
}

.lang-btn.active {
    color: white;
}

/* Background pill that slides */
.switch-pill {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: linear-gradient(135deg, #5dbeff, #3b82f6);
    border-radius: 40px;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 0;
    /* Changed from 1 to avoid covering text */
    box-shadow: 0 4px 12px rgba(93, 190, 255, 0.3);
    pointer-events: none;
    /* Let clicks pass through to buttons */
}

.lang-switch[data-active="en"] .switch-pill {
    transform: translateX(100%);
}

.lang-btn svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    border-radius: 50%;
}

body.light-theme .lang-switch {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .lang-btn:hover {
    color: #0f172a;
    background: rgba(0, 0, 0, 0.06);
}

body.light-theme .lang-btn.active {
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.3);
}

/* Contact Section Styles */
.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-contact:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-email {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white !important;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-email:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.4);
}

.btn-discord {
    background: linear-gradient(135deg, #5865F2, #4752C4);
    color: white !important;
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.3);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-discord:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(88, 101, 242, 0.4);
}

.btn-copy {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white !important;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.btn-copy-inline {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 6px;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    transition: all 0.2s ease;
}

.btn-copy-inline:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.btn-copy-inline i {
    width: 16px;
    height: 16px;
    color: white;
}

.email-display {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 14px;
    padding: 4px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.email-display:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.4);
}

.email-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: white !important;
    text-decoration: none !important;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.email-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.email-link i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.email-link span {
    font-weight: 600;
    font-size: 14px;
}

.btn-copy-email {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-copy-email:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-copy-email i {
    width: 18px;
    height: 18px;
    color: white;
}

.btn-contact i {
    width: 20px;
    height: 20px;
}

/* Footer */
.site-footer {
    color: var(--text-muted);
    text-align: center;
    padding-bottom: 24px;
}

.site-footer small {
    opacity: 0.9;
}

/* Light theme status badge */
body.light-theme .status-badge {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.15);
    /* Torna a borda do GEOVANNE da foto mais visível */
    color: #0f172a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

body.light-theme .status-badge .dot {
    background-color: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

/* Ensure language buttons stack nicely on small screens */
@media (max-width: 576px) {
    .top-actions {
        right: 16px;
        top: 16px;
        gap: 8px;
    }
}

/* Mobile adjustments: hide full nav and avoid header overlaying content */
@media (max-width: 576px) {
    .site-nav {
        display: none;
    }

    .site-header .brand {
        font-size: 16px;
    }

    .container {
        padding-top: 84px;
    }
}


/* ==========================
   Minimalist overrides
   Reduce visual noise, refine spacing and add subtle particles
   ========================== */

/* Slightly smaller, cleaner cards */
.card-custom {
    padding: 34px;
    border-radius: 16px;
    background-color: rgba(18, 24, 38, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 12px 40px rgba(2, 6, 23, 0.55);
}

/* Tag simplified */
.tag-name {
    background: transparent;
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 12px;
    border: none;
    font-size: 11px;
}

/* Smoother animated socials */
.social-btn {
    padding: 10px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
    border-color: rgba(93, 190, 255, 0.3);
    background: rgba(93, 190, 255, 0.1);
}

body.light-theme .social-btn:hover {
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.1);
}

/* Interest items minimal */
.interest-item {
    background: transparent;
    border: none;
    padding: 8px 12px;
    gap: 12px;
}

.interest-item:hover {
    transform: none;
    box-shadow: none;
    border-left: 3px solid rgba(93, 190, 255, 0.10);
    background: rgba(255, 255, 255, 0.02);
}

.interest-item img.interest-icon,
.interest-item svg {
    width: 18px;
    height: 18px;
}

.interest-item span {
    font-weight: 600;
    color: var(--text-main);
}

/* Smaller avatar for a cleaner header */
.avatar-wrapper {
    width: 200px;
    height: 200px;
}

.avatar-img {
    border-width: 3px;
}

/* Subtle moving dot texture over the existing aurora background */
.bg-animation::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.22;
    mix-blend-mode: overlay;
    animation: starsMove 60s linear infinite;
    pointer-events: none;
}

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

    to {
        background-position: 1600px 1200px;
    }
}

/* Reduce emphasis on hover translations across the site */
* {
    transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

@media (max-width: 992px) {
    .card-custom {
        padding: 26px;
    }

    .avatar-wrapper {
        width: 160px;
        height: 160px;
    }
}


.social-btn:hover svg {
    transform: scale(1.1);
}

/* Layout refinements: reduzir fontes e espaçamentos, responsividade */
:root {
    --card-padding-desktop: 32px;
    --card-padding-mobile: 18px;
    --avatar-size-desktop: 220px;
    --avatar-size-mobile: 140px;
    --base-font-size: 15px;
}

body {
    font-size: var(--base-font-size);
    line-height: 1.5;
    letter-spacing: 0.2px;
}

.card-custom {
    padding: var(--card-padding-desktop);
    max-width: 900px;
}

h1.display-4 {
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    line-height: 1.06;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.bio {
    font-size: 14px;
}

.social-title {
    font-size: 11px;
    letter-spacing: 0.6px;
}

.social-btn {
    padding: 10px;
    gap: 12px;
}

.social-btn .social-info strong {
    font-size: 13px;
}

.social-btn .social-info span {
    font-size: 12px;
    color: var(--text-muted);
}

.avatar-wrapper {
    width: var(--avatar-size-desktop);
    height: var(--avatar-size-desktop);
}

.status-badge {
    font-size: 11px;
    padding: 5px 10px;
}

.interest-item {
    font-size: 13px;
}

@media (max-width: 992px) {
    .card-custom {
        padding: 28px;
    }

    .avatar-wrapper {
        width: 180px;
        height: 180px;
    }

    h1.display-4 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    :root {
        --card-padding-desktop: var(--card-padding-mobile);
    }

    .card-custom {
        padding: var(--card-padding-mobile);
    }

    .avatar-wrapper {
        width: var(--avatar-size-mobile);
        height: var(--avatar-size-mobile);
    }

    h1.display-4 {
        font-size: 1.4rem;
    }

    .social-btn {
        padding: 9px;
        gap: 10px;
    }

    .social-btn svg,
    .social-btn .lucide {
        width: 18px;
        height: 18px;
    }

    .bio {
        font-size: 13px;
    }

    .interest-item {
        font-size: 12px;
        gap: 8px;
    }
}

/* ============================== */
/* DESIGN OVERHAUL - GLOBAL OVERRIDES */
/* ============================== */

/* Small reset and utilities */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --brand-primary: var(--accent-blue);
    --brand-accent: #7c3aed;
    --bg-surface: rgba(255, 255, 255, 0.02);
    --radius-lg: 18px;
    --max-page-width: 1100px;
}

/* Container layout refinement */
.container {
    max-width: var(--max-page-width);
    padding-left: 20px;
    padding-right: 20px;
}

/* Card visual refresh */
.card-custom {
    padding: clamp(20px, 3.2vw, 44px);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.6);
}

.tag-name {
    background: linear-gradient(90deg, rgba(93, 190, 255, 0.06), rgba(124, 58, 237, 0.04));
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 12px;
}

/* Hero / greeting */
.greeting-title {
    margin-bottom: 6px;
}

.greeting-prefix {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.greeting-name {
    font-size: clamp(1.6rem, 4vw, 3rem);
    line-height: 1.02;
    font-weight: 900;
    display: inline-block;
}

.bio {
    max-width: 700px;
    color: var(--text-muted);
}

/* Social buttons refined */
.social-btn {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 10px 12px;
    gap: 12px;
    align-items: center;
}

.social-btn svg {
    background: transparent;
    border-radius: 8px;
}

.social-btn:focus-visible {
    outline: 3px solid rgba(93, 190, 255, 0.18);
    outline-offset: 2px;
}

/* Interest list layout as grid */
.interest-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.interest-item {
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.interest-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.6);
}

@media (max-width: 768px) {
    .interest-list {
        grid-template-columns: 1fr;
    }
}

/* Avatar final polish (non-destructive override) */
.avatar-wrapper {
    display: inline-block;
    border-radius: 999px;
}

.avatar-img {
    transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
}

.avatar-img:hover {
    transform: translateY(-6px) scale(1.04);
}

/* Theme subtle tweaks */
body.light-theme .card-custom {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    border: 1px solid rgba(0, 0, 0, 0.12);
    /* Mais presença no card principal */
}

/* Light theme top tweaks */
body.light-theme .tag-name {
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.25);
}

/* Light theme social links base state */
body.light-theme .social-btn {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

/* Light theme project cards */
body.light-theme .project-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.06) 0%, rgba(249, 115, 22, 0.03) 100%);
    border-color: rgba(59, 130, 246, 0.15);
}

body.light-theme .project-card:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(249, 115, 22, 0.08) 100%);
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 16px 40px rgba(59, 130, 246, 0.15);
}

body.light-theme .tech-badges span {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.06));
    border-color: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

/* Light theme: Sobre mim cards */
body.light-theme .about-item {
    background-color: rgba(241, 245, 249, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.12);
    /* Fim de itens parecendo apagados */
    color: #0f172a;
}

body.light-theme .about-content strong {
    color: #2563eb;
}

body.light-theme .about-content span {
    color: #475569;
}

/* Light theme: Skills */
body.light-theme .skill-pill {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: #0f172a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

body.light-theme .skill-pill:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.15);
    background: #f8fafc;
}

body.light-theme .skill-pill i,
body.light-theme .skill-pill svg {
    color: #2563eb;
}

body.light-theme .about-icon {
    color: #ffffff;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

body.light-theme .about-item:hover,
body.light-theme .about-item:focus-within {
    background-color: #ffffff;
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.35);
    /* Borda azul bem delimitada ao passar o mouse */
}

/* Light theme: Interest items */
body.light-theme .interest-item {
    background-color: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

body.light-theme .interest-item:hover {
    background-color: #ffffff;
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.15);
    border-left-color: rgba(59, 130, 246, 0.5);
}

/* Light theme: Project external links */
body.light-theme .project-links .btn-outline-light {
    border-color: rgba(37, 99, 235, 0.35);
    color: #2563eb;
}

body.light-theme .project-links .btn-outline-light:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(124, 58, 237, 0.1));
    border-color: #2563eb;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.18);
    color: #1e3a8a;
}

/* Light theme: Contact Buttons */
body.light-theme .btn-email {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.25);
    border: none;
}

body.light-theme .btn-email:hover {
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.35);
}

body.light-theme .btn-discord {
    background: linear-gradient(135deg, #5865F2, #4752C4);
    box-shadow: 0 10px 25px rgba(88, 101, 242, 0.25);
    border: none;
}

body.light-theme .btn-discord:hover {
    box-shadow: 0 15px 35px rgba(88, 101, 242, 0.35);
}

body.light-theme .btn-copy {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.25);
    border: none;
}

body.light-theme .btn-copy-inline {
    background: rgba(255, 255, 255, 0.25);
}

body.light-theme .btn-copy-inline:hover {
    background: rgba(255, 255, 255, 0.4);
}

body.light-theme .email-display {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
}

body.light-theme .email-link {
    color: white !important;
}

body.light-theme .btn-copy-email {
    background: rgba(255, 255, 255, 0.25);
}

body.light-theme .btn-copy-email:hover {
    background: rgba(255, 255, 255, 0.4);
}

body.light-theme .btn-contact:hover {
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.3);
}

/* Small utility helpers */
.divider {
    opacity: 0.6;
}

/* End of design overhaul */

/* Image sizing fixes and header spacing */
.container {
    padding-top: 84px;
}

.avatar-wrapper {
    width: 300px;
    height: 300px;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}


.project-media {
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.interest-item img.interest-icon {
    width: 20px;
    height: 20px;
}

.project-card {
    align-items: center;
}

@media (max-width: 992px) {
    .avatar-wrapper {
        width: 250px;
        height: 250px;
    }

    .status-badge {
        bottom: -15px;
        right: -10px;
    }

    .project-media {
        width: 72px;
        height: 72px;
    }
}

@media (max-width: 576px) {
    .avatar-wrapper {
        width: 180px;
        height: 180px;
    }

    .status-badge {
        bottom: -5px;
        right: -5px;
        font-size: 11px;
        padding: 4px 10px;
    }

    .container {
        padding-top: 120px;
    }

    .project-media {
        width: 56px;
        height: 56px;
    }
}

/* Contact text visibility fix */
#contact .contact-description {
    color: rgba(255, 255, 255, 0.85);
    /* Much more readable in dark mode */
}

body.light-theme #contact .contact-description {
    color: #475569;
    /* Proper contrast for light mode */
}

/* Music Player Widget (Retractable Version) */
.music-player-widget {
    position: fixed;
    bottom: 24px;
    right: 20px;
    background: rgba(18, 24, 38, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(93, 190, 255, 0.25);
    border-radius: 24px;
    padding: 0 24px 0 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1),
        box-shadow 0.6s ease,
        border-color 0.6s ease;
    width: max-content;
    max-width: 90vw;
    height: 56px;

    /* Initially hidden mostly, moves away from the edge */
    transform: translateX(calc(100% - 60px + 20px));
    cursor: pointer;
    overflow: hidden;
    will-change: transform;
    /* Hardware acceleration */
}

@media (min-width: 577px) {
    .music-player-widget:hover {
        transform: translateX(0) !important;
        box-shadow: 0 12px 40px rgba(93, 190, 255, 0.3);
        border-color: rgba(93, 190, 255, 0.6);
    }
}

.music-player-widget.expanded {
    transform: translateX(0) !important;
    box-shadow: 0 12px 40px rgba(93, 190, 255, 0.3);
    border-color: rgba(93, 190, 255, 0.6);
}

/* Premium flow glow animation for the player border */
.music-player-widget:hover::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(90deg, transparent, rgba(93, 190, 255, 0.3), transparent);
    border-radius: inherit;
    z-index: -1;
    animation: flow-glow 3s linear infinite;
}

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

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

.music-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex-shrink: 0;
}

.music-icon-wrapper {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #000;
    /* Dark background to center light images better */
}

.music-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Avoid baseline alignment issues */
}

.music-meta {
    display: flex;
    flex-direction: column;
    min-width: 100px;
    max-width: 150px;
}

.song-title {
    font-size: 13px;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artist-name {
    font-size: 11px;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.next-song-label {
    font-size: 9px;
    color: rgba(156, 163, 175, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
    font-style: italic;
}

.music-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 10px;
}

.music-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 50%;
    touch-action: manipulation;
}

.music-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-blue);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.v-icon {
    width: 14px;
    height: 14px;
    color: #9ca3af;
}

#volume-value {
    font-size: 10px;
    font-weight: 600;
    color: #9ca3af;
    min-width: 25px;
}

/* Premium Volume Slider Customization */
#music-volume {
    -webkit-appearance: none;
    appearance: none;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--accent-blue) 0%, var(--accent-blue) var(--volume-percent, 10%), var(--volume-track-bg, rgba(255, 255, 255, 0.1)) var(--volume-percent, 10%), var(--volume-track-bg, rgba(255, 255, 255, 0.1)) 100%);
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

#music-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: var(--accent-blue);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(93, 190, 255, 0.6);
    transition: all 0.2s ease;
}

#music-volume::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(93, 190, 255, 0.8);
}

#music-volume::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--accent-blue);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(93, 190, 255, 0.6);
}

/* Animations */
@keyframes pulse-soft {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.4);
    }

    70% {
        transform: scale(1.08);
        box-shadow: 0 0 0 8px rgba(168, 85, 247, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(168, 85, 247, 0);
    }
}

.pulse-animation {
    animation: pulse-soft 2s infinite;
}

/* Light Theme Overrides */
body.light-theme .music-player-widget {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: -4px 8px 32px rgba(0, 0, 0, 0.08);
}

body.light-theme .song-title {
    color: #0f172a;
}

body.light-theme .artist-name {
    color: #64748b;
}

body.light-theme .music-btn {
    color: #1e293b;
}

body.light-theme .v-icon,
body.light-theme #volume-value {
    color: #64748b;
}

body.light-theme .music-controls {
    border-left-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .music-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

body.light-theme .next-song-label {
    color: #64748b;
}

body.light-theme .music-player-widget {
    --volume-track-bg: rgba(0, 0, 0, 0.08);
}

@media (max-width: 576px) {
    .music-player-widget {
        bottom: 20px;
        right: 20px;
        left: auto;
        transform: translateX(calc(100% - 60px + 20px));
        width: max-content;
        max-width: 90vw;
        height: 64px;
        padding: 0 12px;
        border-radius: 32px;
        background: rgba(18, 24, 38, 0.98);
        border-color: rgba(255, 255, 255, 0.1);
        transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1),
            width 0.6s ease;
    }

    body.light-theme .music-player-widget {
        background: rgba(255, 255, 255, 0.98);
        border-color: rgba(0, 0, 0, 0.08);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }

    .music-player-widget.expanded {
        transform: translateX(0) !important;
        left: 50% !important;
        right: auto !important;
        transform: translate(-50%, 0) !important;
        width: 95%;
    }


    .music-info {
        gap: 6px;
    }

    .music-icon-wrapper {
        width: 38px;
        height: 38px;
    }

    .music-meta {
        min-width: 70px;
    }

    .song-title {
        font-size: 11px;
    }

    .artist-name {
        font-size: 9px;
    }

    .next-song-label {
        font-size: 8px !important;
        margin-top: 1px;
    }

    .music-controls {
        gap: 6px;
        padding-left: 8px;
        border-left: 1px solid rgba(255, 255, 255, 0.05);
    }

    body.light-theme .music-controls {
        border-left-color: rgba(0, 0, 0, 0.05);
    }

    .music-btn {
        padding: 6px;
    }

    .volume-control {
        display: flex !important;
        gap: 4px;
        margin-left: 4px;
    }

    #music-volume {
        width: 40px;
    }

    #volume-value {
        font-size: 8px;
        min-width: 20px;
    }
}

/* Language switching animation */
.lang-switching {
    opacity: 1;
    /* Instant update now */
}

.container {
    transition: none;
    /* Removed page slide */
}

/* Theme Reveal Animation (View Transitions) */
::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}

::view-transition-old(root) {
    z-index: 1;
}

::view-transition-new(root) {
    z-index: 999;
}