:root {
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --secondary-text-color: #b0b0b0;
    --primary-color: #00d4ff;
    --primary-gradient: linear-gradient(135deg, #00d4ff 0%, #0099cc 50%, #0066ff 100%);
    --accent-color: #ff0066;
    --accent-gradient: linear-gradient(135deg, #ff0066 0%, #ff3399 50%, #ff66cc 100%);
    --border-color: rgba(255, 255, 255, 0.1);
    --card-bg-color: rgba(255, 255, 255, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --code-font: 'Fira Code', 'Roboto Mono', monospace;
    --main-font: 'Poppins', sans-serif;
    --header-height: 70px;
    --code-text-color: #00ff88;
    --code-comment-color: #888888;
    --code-keyword-color: #ff6b6b;
    --code-string-color: #4ecdc4;
    --code-punctuation-color: #ffffff;
    --neon-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    --neon-shadow-pink: 0 0 20px rgba(255, 0, 102, 0.5);
}

[data-theme="light"] {
    --bg-color: #f8fafc;
    --text-color: #1a202c;
    --secondary-text-color: #4a5568;
    --primary-color: #3182ce;
    --primary-gradient: linear-gradient(135deg, #3182ce 0%, #2b6cb0 50%, #1a365d 100%);
    --accent-color: #e53e3e;
    --accent-gradient: linear-gradient(135deg, #e53e3e 0%, #c53030 50%, #742a2a 100%);
    --border-color: rgba(0, 0, 0, 0.1);
    --card-bg-color: rgba(255, 255, 255, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(0, 0, 0, 0.1);
    --code-text-color: #2d3748;
    --code-comment-color: #718096;
    --code-keyword-color: #e53e3e;
    --code-string-color: #38a169;
    --code-punctuation-color: #2d3748;
    --neon-shadow: 0 0 20px rgba(49, 130, 206, 0.3);
    --neon-shadow-pink: 0 0 20px rgba(229, 62, 62, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--main-font);
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: all 0.3s ease-in-out;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 102, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 102, 255, 0.05) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundShift 20s ease-in-out infinite;
    will-change: transform;
}

@keyframes backgroundShift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-10px, -10px) scale(1.05); }
    50% { transform: translate(10px, -5px) scale(1.02); }
    75% { transform: translate(-5px, 10px) scale(1.03); }
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease-in-out;
    position: relative;
}

a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px currentColor;
}

h1, h2, h3 {
    color: var(--text-color);
    font-family: var(--main-font);
    font-weight: 700;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

p {
    font-size: 1rem;
    color: var(--secondary-text-color);
}

.hidden {
    display: none;
}

.active {
    font-weight: bold;
    color: var(--primary-color) !important;
    text-shadow: 0 0 10px var(--primary-color);
}

/* Barra de movimento contínuo com tecnologias */
.tech-scroll-bar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: 60px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 999;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.tech-scroll-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    animation: scrollTech 60s linear infinite;
    white-space: nowrap;
    padding: 0 1rem;
}

.tech-scroll-content:hover {
    animation-play-state: paused;
}

.tech-scroll-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    border-radius: 25px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease-in-out;
    min-width: 120px;
    justify-content: center;
}

.tech-scroll-item:hover {
    background: var(--primary-gradient);
    transform: translateY(-2px);
    box-shadow: var(--neon-shadow);
}

.tech-scroll-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.3));
}

.tech-scroll-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-color);
}

@keyframes scrollTech {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Efeito de partículas flutuantes otimizado */
.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    opacity: 0.6;
    will-change: transform, opacity;
}

.particle:nth-child(odd) {
    background: var(--accent-color);
    animation-duration: 8s;
}

.particle:nth-child(3n) {
    background: #00ff88;
    animation-duration: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* Efeito de código matrix otimizado */
.code-effect-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: transparent;
    font-family: var(--code-font);
    font-size: 0.7rem;
    line-height: 1.2;
    white-space: pre-wrap;
    padding: 2rem;
    opacity: 0.3;
    transition: opacity 1s;
    will-change: opacity, transform;
}

[data-theme="light"] .code-effect-overlay {
    opacity: 0.15;
}

[data-theme="light"] .code-effect-overlay .comment {
    color: var(--code-comment-color);
    opacity: 1;
    font-weight: 500;
}

.code-effect-overlay .line {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease-out;
    animation: matrixRain 8s linear infinite;
    will-change: transform, opacity;
}

@keyframes matrixRain {
    0% {
        transform: translateY(-100vh);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

.code-effect-overlay .char {
    display: inline-block;
    color: var(--code-text-color);
    text-shadow: 0 0 5px currentColor;
}

.code-effect-overlay .comment {
    color: var(--code-comment-color);
    opacity: 0.8;
    font-style: italic;
}

.code-effect-overlay .keyword {
    color: var(--code-keyword-color);
    text-shadow: 0 0 8px currentColor;
}

.code-effect-overlay .string {
    color: var(--code-string-color);
    text-shadow: 0 0 8px currentColor;
}

.code-effect-overlay .punctuation {
    color: var(--code-punctuation-color);
}

/* Efeito de estrelas otimizado */
.stars-effect-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    transition: opacity 1s;
    will-change: opacity, transform;
}

.stars-effect-overlay::before,
.stars-effect-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 200px 200px;
    opacity: 0;
    animation: none;
}

[data-theme="dark"] .stars-effect-overlay::before {
    opacity: 0.8;
    animation: shooting-star 25s linear infinite;
    background-image: 
        radial-gradient(circle, rgba(0, 212, 255, 0.8) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 0, 102, 0.6) 0.5px, transparent 0.5px),
        radial-gradient(circle, rgba(0, 255, 136, 0.4) 0.3px, transparent 0.3px);
    background-position: 0% 0%, 20% 50%, 40% 80%, 60% 30%, 80% 90%;
}

[data-theme="dark"] .stars-effect-overlay::after {
    opacity: 0.6;
    animation: shooting-star 35s linear infinite;
    animation-delay: 15s;
    background-image: 
        radial-gradient(circle, rgba(255, 255, 255, 0.4) 0.8px, transparent 0.8px),
        radial-gradient(circle, rgba(0, 212, 255, 0.2) 0.3px, transparent 0.3px);
    background-position: 10% 90%, 30% 20%, 50% 70%, 70% 50%, 90% 10%;
}

[data-theme="light"] .stars-effect-overlay::before {
    opacity: 0.4;
    animation: shooting-star 30s linear infinite;
    background-image: 
        radial-gradient(circle, rgba(49, 130, 206, 0.6) 1px, transparent 1px),
        radial-gradient(circle, rgba(229, 62, 62, 0.4) 0.5px, transparent 0.5px),
        radial-gradient(circle, rgba(56, 161, 105, 0.3) 0.3px, transparent 0.3px);
    background-position: 0% 0%, 20% 50%, 40% 80%, 60% 30%, 80% 90%;
}

[data-theme="light"] .stars-effect-overlay::after {
    opacity: 0.3;
    animation: shooting-star 40s linear infinite;
    animation-delay: 20s;
    background-image: 
        radial-gradient(circle, rgba(45, 55, 72, 0.3) 0.8px, transparent 0.8px),
        radial-gradient(circle, rgba(49, 130, 206, 0.2) 0.3px, transparent 0.3px);
    background-position: 10% 90%, 30% 20%, 50% 70%, 70% 50%, 90% 10%;
}

@keyframes shooting-star {
    0% {
        transform: translate(100vw, -100vh) rotate(-45deg);
        opacity: 0;
    }
    2% {
        opacity: 1;
    }
    98% {
        opacity: 1;
    }
    100% {
        transform: translate(-100vw, 100vh) rotate(-45deg);
        opacity: 0;
    }
}

/* Header moderno com glassmorphism */
.main-header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: var(--header-height);
    transition: all 0.3s ease-in-out;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.main-header .logo a {
    font-family: var(--main-font);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-color);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    transition: all 0.3s ease-in-out;
}

.main-header .logo a:hover {
    transform: scale(1.05);
    text-shadow: 0 0 40px rgba(0, 212, 255, 0.8);
}

.main-header nav ul {
    list-style: none;
    display: flex;
    gap: 3rem;
}

.main-header nav ul li a {
    color: var(--secondary-text-color);
    font-family: var(--main-font);
    font-weight: 600;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease-in-out;
    background: transparent;
}

.main-header nav ul li a:hover {
    color: var(--text-color);
    background: var(--glass-bg);
    box-shadow: var(--neon-shadow);
    transform: translateY(-2px);
}

.main-header nav ul li a.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--neon-shadow);
    transform: translateY(-2px);
}

.main-header nav ul li a.active::after {
    display: none;
}

/* Botões flutuantes modernos */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1100;
}

.theme-toggle-button, .chat-toggle-button {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
    color: var(--text-color);
    z-index: 1101;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.theme-toggle-button:hover, .chat-toggle-button:hover {
    background: var(--primary-gradient);
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--neon-shadow);
}

.theme-toggle-button .icon {
    width: 24px;
    height: 24px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffffff"><path d="M12 2.25a.75.75 0 01.75.75v2.25a.75.75 0 01-1.5 0V3a.75.75 0 01.75-.75zM7.5 12a4.5 4.5 0 119 0 4.5 4.5 0 01-9 0zM18.846 18.846a.75.75 0 01-.059-1.06l1.06-1.06a.75.75 0 011.06 1.06l-1.06 1.06a.75.75 0 01-1.001.059zM21.75 12a.75.75 0 01-.75.75h-2.25a.75.75 0 010-1.5H21a.75.75 0 01.75.75zM18.906 5.654a.75.75 0 010 1.06l-1.06 1.06a.75.75 0 11-1.06-1.06l1.06-1.06a.75.75 0 011.06 0zM12 21.75a.75.75 0 01-.75-.75v-2.25a.75.75 0 011.5 0V21a.75.75 0 01-.75.75zM7.054 18.906a.75.75 0 01-1.06 0l-1.06 1.06a.75.75 0 11-1.06-1.06l1.06-1.06a.75.75 0 011.06 0zM2.25 12a.75.75 0 01.75-.75h2.25a.75.75 0 010 1.5H3a.75.75 0 01-.75-.75zM4.06 7.054a.75.75 0 010-1.06l1.06-1.06a.75.75 0 111.06 1.06l-1.06 1.06a.75.75 0 01-1.06 0z"/></svg>');
    transition: all 0.3s ease-in-out;
}

[data-theme="light"] .theme-toggle-button .icon {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23000000"><path fill-rule="evenodd" d="M9.52 2.683a.75.75 0 01.78-.344l.003.001c.422.08.826.234 1.206.45.19.106.4.156.61.156h.001c.321 0 .641-.082.937-.233a7.5 7.5 0 015.426 5.426c.15.296.232.616.232.937v.001c0 .21-.05.42-.156.61a7.5 7.5 0 01-.45 1.206l-.001.002a.75.75 0 01-.344.78c-.31.096-.62.15-1.002.188a10.504 10.504 0 01-1.002.188c-.147 0-.293.011-.439.034-.1.016-.201.028-.301.034a.75.75 0 01-.58.125c-.328-.15-.658-.337-.962-.572a7.502 7.502 0 01-2.529-2.529.75.75 0 01.125-.58c.006-.1.018-.201.034-.301.023-.146.034-.292.034-.438 0-.382-.053-.762-.188-1.002a.75.75 0 01-.344-.78zm1.758 5.75a4.5 4.5 0 100 9 4.5 4.5 0 000-9z" clip-rule="evenodd" /><path d="M12.75 18a.75.75 0 01-.75.75H7.5a.75.75 0 010-1.5h4.5a.75.75 0 01.75.75zM7.5 12.75a.75.75 0 01-1.5 0v-4.5a.75.75 0 011.5 0v4.5zM18 19.5a.75.75 0 01-.75-.75V15a.75.75 0 011.5 0v3.75a.75.75 0 01-.75.75zM15 12.75a.75.75 0 01-1.5 0v-4.5a.75.75 0 011.5 0v4.5zM12.75 6a.75.75 0 01-.75-.75V2.25a.75.75 0 011.5 0v3a.75.75 0 01-.75.75z"/></svg>');
}

#main-content {
    padding-top: calc(var(--header-height) + 60px); /* Ajustado para incluir a barra de tecnologias */
    max-width: 1400px;
    margin: 0 auto;
}

#main-content.content-2-column {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 4rem;
    padding: 2rem;
}

@media (max-width: 992px) {
    #main-content.content-2-column {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 2rem 1rem;
    }
}

/* Hero Section otimizado */
.hero-section {
    min-height: calc(100vh - var(--header-height) - 60px); /* Ajustado para a barra de tecnologias */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: var(--primary-gradient);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.1;
    filter: blur(100px);
    animation: pulse 4s ease-in-out infinite;
    z-index: -1;
    will-change: transform, opacity;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.1; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.2; }
}

.hero-content {
    max-width: 900px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.mascote-img {
    width: clamp(200px, 50vw, 800px);
    height: auto;
    filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.5));
    animation: floatMascot 6s ease-in-out infinite;
    will-change: transform;
}

@keyframes floatMascot {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(1deg); }
    50% { transform: translateY(-5px) rotate(-1deg); }
    75% { transform: translateY(-15px) rotate(0.5deg); }
}

.hero-section h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    margin: 2rem 0 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 50px rgba(0, 212, 255, 0.5);
    animation: glowText 3s ease-in-out infinite alternate;
}

@keyframes glowText {
    0% { text-shadow: 0 0 50px rgba(0, 212, 255, 0.5); }
    100% { text-shadow: 0 0 80px rgba(0, 212, 255, 0.8); }
}

.hero-section .subtitle {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    color: var(--secondary-text-color);
    margin-bottom: 3rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: slideInUp 1s ease-out 0.5s both;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Botões modernos otimizados */
.cta-button {
    display: inline-block;
    background: var(--primary-gradient);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: var(--main-font);
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease-in-out;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--neon-shadow);
    animation: slideInUp 1s ease-out 1s both;
    will-change: transform;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.4);
}

.secondary-button {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: var(--main-font);
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.secondary-button:hover {
    background: var(--primary-gradient);
    color: #fff;
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--neon-shadow);
}

/* Cards com glassmorphism otimizados */
.project-card, .skill-card, .service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    will-change: transform;
}

.project-card::before, .skill-card::before, .service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: -1;
}

.project-card:hover, .skill-card:hover, .service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.2);
    border-color: var(--primary-color);
}

.project-card:hover::before, .skill-card:hover::before, .service-card:hover::before {
    opacity: 0.1;
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    transition: all 0.3s ease-in-out;
}

.project-card:hover img {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-card h3, .skill-card h3, .service-card h3 {
    margin-top: 1.5rem;
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
}

/* Grid de projetos melhorado */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Seção de habilidades otimizada */
.skills-section h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
}

.skill-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
    transition: all 0.3s ease-in-out;
    will-change: transform, filter;
}

.skill-card:hover .skill-icon {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.6));
}

/* Tags modernas */
.tag {
    background: var(--primary-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-family: var(--main-font);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease-in-out;
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5);
}

/* Sidebar do perfil otimizada */
.profile-info-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.profile-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
}

.profile-pic-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    margin: 0 auto 1.5rem;
    display: block;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    transition: all 0.3s ease-in-out;
    will-change: transform;
}

.profile-pic-large:hover {
    transform: scale(1.1);
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.8);
}

.profile-name {
    font-size: 1.8rem;
    margin: 0;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.profile-username {
    font-size: 1.1rem;
    color: var(--secondary-text-color);
    margin: 0.5rem 0 1.5rem;
}

.profile-contact-link {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    width: 100%;
    padding: 1rem;
    display: block;
    border-radius: 15px;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-align: center;
    transition: all 0.3s ease-in-out;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    will-change: transform;
}

.profile-contact-link:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--neon-shadow);
}

/* Chatbot moderno otimizado */
.chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: clamp(350px, 90vw, 450px);
    height: clamp(500px, 80vh, 600px);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 25px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    z-index: 1100;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

.chatbot-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 212, 255, 0.1) 0%, 
        rgba(255, 0, 102, 0.05) 50%, 
        rgba(0, 102, 255, 0.1) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.chatbot-container:hover::before {
    opacity: 1;
}

.chatbot-container.hidden {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    pointer-events: none;
}

.chatbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--glass-border);
    background: var(--glass-bg);
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    position: relative;
    overflow: hidden;
}

.chatbot-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-gradient);
    animation: headerGlow 3s ease-in-out infinite;
}

@keyframes headerGlow {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.chatbot-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-grow: 1;
    margin-left: 1rem;
}

.chatbot-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
    transition: all 0.3s ease-in-out;
    animation: avatarPulse 2s ease-in-out infinite;
}

@keyframes avatarPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(0, 212, 255, 0.8);
    }
}

.chatbot-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(0, 212, 255, 1);
}

.chatbot-close-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--secondary-text-color);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease-in-out;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.chatbot-close-btn:hover {
    color: var(--accent-color);
    background: var(--accent-gradient);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 0, 102, 0.5);
}

.chatbot-body {
    flex-grow: 1;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: linear-gradient(135deg, 
        rgba(0, 212, 255, 0.02) 0%, 
        rgba(255, 0, 102, 0.01) 100%);
}

.message {
    padding: 1.2rem 1.8rem;
    border-radius: 20px;
    font-size: 0.95rem;
    max-width: 85%;
    position: relative;
    animation: messageSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.5;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chatbot-message {
    background: var(--primary-gradient);
    color: #fff;
    align-self: flex-start;
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.2);
    position: relative;
}

.chatbot-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.chatbot-message:hover::before {
    opacity: 1;
}

.user-message {
    background: var(--glass-bg);
    color: var(--text-color);
    align-self: flex-end;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    position: relative;
}

.user-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: -1;
}

.user-message:hover::before {
    opacity: 0.1;
}

.chatbot-carousel {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--glass-border);
    background: var(--glass-bg);
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
    position: relative;
}

.chatbot-carousel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--primary-gradient);
}

.chatbot-questions {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0.5rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.chatbot-questions::-webkit-scrollbar {
    display: none;
}

.question-btn {
    background: var(--glass-bg);
    color: var(--text-color);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease-in-out;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    min-width: 120px;
    text-align: center;
}

.question-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    transition: left 0.3s ease-in-out;
    z-index: -1;
}

.question-btn:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
    border-color: var(--primary-color);
}

.question-btn:hover::before {
    left: 0;
}

.question-btn:active {
    transform: translateY(-1px);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease-in-out;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--primary-gradient);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.carousel-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

#carousel-left-btn {
    left: 1rem;
}

#carousel-right-btn {
    right: 1rem;
}

/* Indicador de digitação */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 1rem 1.5rem;
    background: var(--glass-bg);
    border-radius: 20px;
    align-self: flex-start;
    max-width: 60px;
    animation: messageSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: typingDot 1.4s ease-in-out infinite;
    box-shadow: 0 0 5px var(--primary-color);
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDot {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Responsividade do chatbot */
@media (max-width: 768px) {
    .chatbot-container {
        width: 95%;
        height: 75%;
        bottom: 2.5%;
        right: 2.5%;
        border-radius: 20px;
    }
    
    .chatbot-header {
        padding: 1rem 1.5rem;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }
    
    .chatbot-header h3 {
        font-size: 1.1rem;
    }
    
    .chatbot-avatar {
        width: 40px;
        height: 40px;
    }
    
    .chatbot-body {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .message {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
        max-width: 90%;
    }
    
    .chatbot-carousel {
        padding: 1rem 1.5rem;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
    }
    
    .question-btn {
        padding: 0.7rem 1rem;
        font-size: 0.8rem;
        min-width: 100px;
    }
    
    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    #carousel-left-btn {
        left: 0.5rem;
    }
    
    #carousel-right-btn {
        right: 0.5rem;
    }
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 10px;
    border: 2px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gradient);
}

/* Responsividade otimizada */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        height: auto;
        padding: 1rem;
    }
    
    .main-header nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .tech-scroll-bar {
        height: 50px;
    }
    
    .tech-scroll-item {
        min-width: 100px;
        padding: 0.25rem 0.75rem;
    }
    
    .tech-scroll-icon {
        width: 20px;
        height: 20px;
    }
    
    .tech-scroll-name {
        font-size: 0.7rem;
    }
    
    #main-content {
        padding-top: calc(var(--header-height) + 50px);
    }
    
    .hero-section {
        min-height: calc(100vh - var(--header-height) - 50px);
    }
    
    .chatbot-container {
        width: 95%;
        height: 75%;
        bottom: 2.5%;
        right: 2.5%;
    }
    
    .floating-buttons {
        bottom: 20px;
        right: 20px;
    }
    
    .hero-section h1 {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Animações de entrada otimizadas */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
    will-change: opacity, transform;
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Efeitos de hover adicionais */
.project-links a {
    background: var(--glass-bg);
    color: var(--text-color);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease-in-out;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.project-links a:hover {
    background: var(--primary-gradient);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--neon-shadow);
}

/* Footer moderno */
.main-footer {
    text-align: center;
    padding: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--secondary-text-color);
    border-top: 1px solid var(--glass-border);
    margin-top: 6rem;
    position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-gradient);
}