:root {
    --bg-color: #0a0a0a;
    --text-color: #e0e0e0;
    --primary-color: #00d4ff;
    /* Neon Blue */
    --secondary-color: #7000ff;
    /* Neon Purple */
    --accent-color: #ff0055;
    /* Neon Pink/Red */
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
    --transition-speed: 0.3s;
}

.text-highlight {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

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

body {
    font-family: var(--font-main);
    background: linear-gradient(135deg, #050505 0%, #1a0b2e 100%);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

/* Cursor Glow Effect */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: transform 0.1s ease;
    mix-blend-mode: screen;
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--card-border);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color var(--transition-speed);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.lang-btn .flag-icon {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.lang-btn .lang-code {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.lang-btn:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

.lang-btn.active {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(112, 0, 255, 0.15));
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.lang-btn.active .lang-code {
    color: var(--primary-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all var(--transition-speed);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding: 8rem 10% 4rem;
}

.hero-content {
    width: 55%;
}

.greeting {
    font-size: 1.2rem;
    color: var(--primary-color);
    display: block;
    margin-bottom: 1rem;
}

.glitch {
    font-size: 5.5rem;
    font-weight: 700;
    color: #fff;
    position: relative;
    margin-bottom: 0.5rem;
    /* white-space: nowrap; Removed to allow wrapping */
    line-height: 1.1;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 red;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-1 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 blue;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        clip: rect(30px, 9999px, 10px, 0);
    }

    20% {
        clip: rect(80px, 9999px, 90px, 0);
    }

    40% {
        clip: rect(10px, 9999px, 50px, 0);
    }

    60% {
        clip: rect(40px, 9999px, 20px, 0);
    }

    80% {
        clip: rect(70px, 9999px, 60px, 0);
    }

    100% {
        clip: rect(20px, 9999px, 80px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(10px, 9999px, 80px, 0);
    }

    20% {
        clip: rect(60px, 9999px, 10px, 0);
    }

    40% {
        clip: rect(20px, 9999px, 50px, 0);
    }

    60% {
        clip: rect(90px, 9999px, 30px, 0);
    }

    80% {
        clip: rect(50px, 9999px, 20px, 0);
    }

    100% {
        clip: rect(30px, 9999px, 70px, 0);
    }
}

.subtitle {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.description {
    font-size: 1.25rem;
    color: #aaa;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.btn.primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.6);
}

.btn.secondary {
    background: transparent;
    color: #fff;
    border: 2px solid var(--primary-color);
}

.btn.secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-3px);
}

.hero-visual {
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Profile Image */
.profile-image-container {
    position: relative;
    width: 500px;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    border: 3px solid transparent;
    background: linear-gradient(var(--bg-color), var(--bg-color)) padding-box,
        linear-gradient(45deg, var(--primary-color), var(--secondary-color)) border-box;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
    transition: all var(--transition-speed);
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.4);
}

/* Sections General */
.section {
    padding: 4rem 10%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* About Section */
.about-content {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.professional-differential {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(112, 0, 255, 0.05));
    border-left: 4px solid var(--primary-color);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 0 12px 12px 0;
    position: relative;
}

.professional-differential h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.professional-differential h3::before {
    content: '\f0b1';
    /* FontAwesome briefcase icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.professional-differential p {
    font-style: italic;
    color: #e0e0e0;
    margin-bottom: 0;
    line-height: 1.8;
}

.soft-skills {
    margin-top: 2rem;
}

.soft-skills h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.soft-skills ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    list-style: none;
}

.soft-skills li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.soft-skills i {
    color: var(--secondary-color);
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.skills-category h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-badge {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-speed);
}

.skill-badge:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.1);
}

.skill-badge i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 30px;
    text-align: center;
}

.skill-badge span {
    font-weight: 600;
    font-size: 1.1rem;
    z-index: 2;
}

.skill-level {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0.7;
    box-shadow: 0 0 10px var(--primary-color);
}

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

.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    transition: all var(--transition-speed);
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.project-content p {
    color: #aaa;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tags span {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    transition: color var(--transition-speed);
}

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

/* Contact Section */
.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    transition: all var(--transition-speed);
}

.contact-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    color: #000;
}

.contact-text {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.2rem;
    color: #aaa;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: rgba(10, 10, 10, 0.8);
    border-top: 1px solid var(--card-border);
    color: #666;
}

footer i {
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .navbar {
        padding: 1.5rem 2rem;
    }

    .hero {
        padding: 6rem 5% 4rem;
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .hero-content {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-visual {
        width: 100%;
    }

    .profile-image-container {
        width: 400px;
        height: 480px;
    }

    .glitch {
        font-size: 4rem;
        white-space: normal;
        text-align: center;
    }

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

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
    }

    .hamburger {
        display: flex;
        z-index: 1002;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 300px;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

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

    /* Adjust Language Selector for Mobile */
    .language-selector {
        margin-right: 3rem;
        /* Space for hamburger */
    }

    .lang-btn {
        padding: 0.4rem 0.6rem;
    }

    .lang-btn .lang-code {
        display: none;
        /* Hide text on very small screens if needed, or keep it */
        font-size: 0.8rem;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        padding-top: 120px;
    }

    .glitch {
        font-size: 2.8rem;
    }

    .subtitle {
        font-size: 1.5rem;
    }

    .profile-image-container {
        width: 280px;
        height: 350px;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .language-selector {
        gap: 0.3rem;
    }

    .lang-btn {
        padding: 0.3rem 0.5rem;
    }

    .glitch {
        font-size: 2.2rem;
    }

    .profile-image-container {
        width: 240px;
        height: 300px;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}
/* ==================== */
/* ACCESSIBILITY STYLES */
/* ==================== */

/* Skip Link - permite pular navegação */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--primary-color);
    color: #000;
    padding: 0.75rem 1.5rem;
    z-index: 10000;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    left: 0;
}

/* Focus States Visíveis */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

.nav-links a:focus-visible {
    outline-offset: 5px;
}

.btn:focus-visible {
    outline-offset: 4px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

/* Hamburger como button */
.hamburger {
    background: transparent;
    border: none;
}

/* Melhoria de Contrastes */
.description,
.project-content p,
.contact-text {
    color: #b8b8b8;
}

footer {
    color: #888;
}

/* Respeitar preferências de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .cursor-glow {
        display: none;
    }
    
    .glitch::before,
    .glitch::after {
        display: none;
    }
}
