@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

    /* Paleta Aço Escovado */
    --steel-bg-dark: #1a1d21;
    --steel-bg-medium: #2a2e33;
    --steel-surface-light: #e8ebef;
    --steel-surface: #d0d5db;
    --steel-border: #b8bfc6;
    --steel-accent: #8a9199;

    /* Cores de texto */
    --text-primary: #1a1d21;
    --text-secondary: #3d4449;
    --text-muted: #5f656b;
    --text-light: #e8ebef;

    /* Cores de destaque */
    --primary: #6b7178;
    --primary-hover: #5a5f66;
    --success: #7a8088;
    --warning: #8a8f96;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-light);
    background: linear-gradient(135deg, var(--steel-bg-medium) 0%, var(--steel-bg-dark) 50%, var(--steel-bg-medium) 100%);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Grid animado no fundo */
.animated-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.grid-line {
    position: absolute;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.03) 20%,
            rgba(255, 255, 255, 0.03) 80%,
            transparent);
    animation: gridMove 15s linear infinite;
}

.grid-line.horizontal {
    width: 100%;
    height: 1px;
    left: 0;
}

.grid-line.vertical {
    height: 100%;
    width: 1px;
    top: 0;
}

@keyframes gridMove {
    0% {
        transform: translateY(0) translateX(0);
    }

    100% {
        transform: translateY(100px) translateX(100px);
    }
}

/* Textura de aço escovado no fundo */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(90deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.015) 2px,
            rgba(255, 255, 255, 0.015) 4px);
    pointer-events: none;
    z-index: 1;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Tipografia */
h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

/* Cards com efeito de aço escovado */
.steel-card {
    background: linear-gradient(135deg, var(--steel-surface-light) 0%, #f5f7fa 50%, var(--steel-surface-light) 100%);
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.5),
        0 8px 25px rgba(0, 0, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.95),
        inset 0 -2px 0 rgba(0, 0, 0, 0.08);
    position: relative;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.steel-card>* {
    position: relative;
    z-index: 2;
}

.steel-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.95);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
}

.profile-section {
    margin-bottom: 2.5rem;
}

.profile-image-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid #ffffff;
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.6),
        0 8px 20px rgba(0, 0, 0, 0.4),
        inset 0 3px 5px rgba(255, 255, 255, 0.8);
    object-fit: cover;
    background: #fff;
    position: relative;
    z-index: 2;
}

.profile-image-wrapper::after {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #9aa0a6, var(--primary));
    z-index: 1;
    opacity: 0.7;
    filter: blur(15px);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.7;
        transform: scale(1);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.05);
    }
}

.hero-title {
    color: var(--text-primary);
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
    min-height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.hero-tagline {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 2;
}

/* Links sociais */
.social-links {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
    position: relative;
    z-index: 2;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    background: linear-gradient(135deg, #ffffff, #f8f9fb);
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.35),
        0 2px 8px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    position: relative;
    z-index: 2;
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow:
        0 8px 25px rgba(107, 113, 120, 0.6),
        0 4px 12px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.social-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.social-link:hover .social-icon {
    transform: rotate(15deg) scale(1.2);
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: 12px;
    border: 2px solid var(--primary);
    box-shadow:
        0 8px 25px rgba(107, 113, 120, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    margin-top: 1rem;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow:
        0 12px 35px rgba(107, 113, 120, 0.6),
        0 6px 15px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.cta-button:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }

    20% {
        transform: scale(25, 25);
        opacity: 0.3;
    }

    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

/* Seções */
section {
    padding: 5rem 0;
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    color: var(--steel-surface-light);
    margin-bottom: 3rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Grid de projetos */
/* Container do carrossel */
.carousel-container {
    position: relative;
    margin-top: 3rem;
    padding: 0 60px;
}

.carousel-wrapper {
    overflow: hidden;
    position: relative;
}

.projects-grid {
    display: flex;
    gap: 2rem;
    position: relative;
    z-index: 2;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-track {
    display: flex;
    gap: 2rem;
}

.project-card {
    background: linear-gradient(135deg, var(--steel-surface-light), #f5f7fa);
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 2rem;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.45),
        0 6px 20px rgba(0, 0, 0, 0.35),
        inset 0 2px 0 rgba(255, 255, 255, 1);
    position: relative;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    z-index: 2;
    flex: 0 0 calc((100% - 4rem) / 3);
    min-width: calc((100% - 4rem) / 3);
}

/* Botões de navegação do carrossel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(42, 46, 51, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: #ffffff;
    font-size: 1.5rem;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover:not(:disabled) {
    background: rgba(107, 113, 120, 0.95);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:disabled {
    cursor: not-allowed;
    opacity: 0.3;
}

.carousel-btn-prev {
    left: 0;
}

.carousel-btn-next {
    right: 0;
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 18px 55px rgba(0, 0, 0, 0.55),
        0 8px 25px rgba(0, 0, 0, 0.45),
        inset 0 2px 0 rgba(255, 255, 255, 1);
}

.project-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow:
        0 6px 20px rgba(107, 113, 120, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    font-size: 1.75rem;
    transition: transform 0.3s ease;
}

.project-card:hover .project-icon {
    transform: rotate(15deg) scale(1.1);
}

.project-title {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.tag {
    padding: 0.4rem 0.9rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #ffffff;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Timeline de experiência */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 3rem auto;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, transparent, var(--primary), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: calc(var(--item-index) * 0.2s);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -3.4rem;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    border: 3px solid var(--steel-bg-dark);
    box-shadow: 0 0 0 4px rgba(107, 113, 120, 0.3);
}

.timeline-content {
    background: linear-gradient(135deg, var(--steel-surface-light), #f5f7fa);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.timeline-date {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: linear-gradient(135deg, var(--warning), #9ca3aa);
    color: #ffffff;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.timeline-title {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.timeline-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

.skill-category {
    background: #ffffff;
    padding: 0;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: calc(var(--category-index) * 0.2s);
    z-index: 2;
}

.skill-category.visible {
    opacity: 1;
    transform: translateY(0);
}

.skill-category-header {
    background: linear-gradient(135deg, #6b7178, #8a9199);
    padding: 1.75rem 2rem;
    color: #ffffff;
}

.skill-category-header h3 {
    color: #ffffff;
    margin: 0;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
}

.skill-category-body {
    padding: 2rem;
}

.skill-item-professional {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: #f9fafb;
    border-radius: 12px;
    border-left: 4px solid #6b7178;
    transition: all 0.3s ease;
}

.skill-item-professional:hover {
    background: #f3f4f6;
    border-left-color: #8a9199;
    transform: translateX(5px);
}

.skill-icon-wrapper {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #6b7178, #8a9199);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(107, 113, 120, 0.3);
    transition: transform 0.3s ease;
}

.skill-item-professional:hover .skill-icon-wrapper {
    transform: rotate(10deg) scale(1.1);
}

.skill-info {
    flex: 1;
}

.skill-name-pro {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.skill-level {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.4rem;
}

.level-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
}

.level-dot.active {
    background: linear-gradient(135deg, #6b7178, #8a9199);
    box-shadow: 0 0 8px rgba(107, 113, 120, 0.4);
}

.skill-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Conquistas */
.achievements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

.achievement-card {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--steel-surface-light), #f5f7fa);
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.45),
        inset 0 2px 0 rgba(255, 255, 255, 1);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: calc(var(--achievement-index) * 0.1s);
    z-index: 2;
}

.achievement-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.achievement-card:hover {
    transform: translateY(-8px);
}

.achievement-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--success), #8a909a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow:
        0 8px 25px rgba(122, 128, 136, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
}

.achievement-card:hover .achievement-icon {
    transform: rotate(15deg) scale(1.1);
}

.achievement-title {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.achievement-description {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Footer / Contato */
.footer {
    background: linear-gradient(135deg, var(--steel-surface), var(--steel-surface-light));
    padding: 0.1rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 -10px 30px rgba(0, 0, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
}

.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.3) 2px,
            rgba(255, 255, 255, 0.3) 3px);
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 2;
}

.footer h2 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.footer p {
    color: var(--text-secondary);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.footer-info {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.15rem;
    padding-top: 0.15rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Animação flutuante para alguns elementos */
.float-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Efeito de brilho ao passar mouse */
.glow-on-hover {
    position: relative;
    z-index: 1;
}

.glow-on-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(45deg,
            rgba(255, 255, 255, 0.1),
            rgba(255, 255, 255, 0.05),
            rgba(255, 255, 255, 0.1));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow-on-hover:hover::before {
    opacity: 1;
}

/* Scroll progress indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-hover));
    z-index: 1000;
    transition: width 0.1s ease;
}

/* Animação de digitação */
.typing-animation {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--primary);
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--primary)
    }
}

/* Animações de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Botão Voltar ao Topo */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 8px 25px rgba(107, 113, 120, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow:
        0 12px 35px rgba(107, 113, 120, 0.6),
        0 6px 15px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, var(--primary-hover), var(--primary));
}

.back-to-top:active {
    transform: translateY(-2px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .steel-card {
        padding: 1.5rem;
        border-radius: 15px;
    }

    .hero {
        min-height: auto;
        padding: 1.5rem 0 2rem;
    }

    .hero-title {
        min-height: auto;
        white-space: normal;
        word-break: break-word;
        line-height: 1.2;
    }

    section {
        padding: 3rem 0;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .skills-grid,
    .achievements {
        grid-template-columns: 1fr;
    }
    
    /* Carrossel responsivo - mobile */
    .carousel-container {
        padding: 0 50px;
    }
    
    .project-card {
        flex: 0 0 100%;
        min-width: 100%;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .timeline {
        padding-left: 2rem;
    }

    .social-links {
        gap: 0.5rem;
    }

    .social-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.7rem;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }

    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* Tablets - 2 cards */
@media (min-width: 769px) and (max-width: 1199px) {
    .project-card {
        flex: 0 0 calc((100% - 2rem) / 2);
        min-width: calc((100% - 2rem) / 2);
    }
}

/* ===== Language Selector ===== */
/* ===== Language Selector (mesmo estilo do back-to-top) ===== */
.language-selector {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    font-family: inherit;
}

.language-btn {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 6px 20px rgba(107, 113, 120, 0.4),
        0 3px 10px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.3;
}

.language-btn:hover {
    opacity: 1;
    transform: translateY(-3px);
    box-shadow:
        0 10px 30px rgba(107, 113, 120, 0.6),
        0 5px 12px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, var(--primary-hover), var(--primary));
}

.language-btn:active {
    transform: translateY(-1px);
}

.language-btn i {
    display: none;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    box-shadow:
        0 8px 25px rgba(107, 113, 120, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 140px;
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.9rem;
    color: #ffffff;
    transition: all 0.2s ease;
    text-align: left;
    font-weight: 500;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.15);
}

.lang-option.active {
    background: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.lang-option.active::after {
    content: '✓';
    margin-left: auto;
    color: #ffffff;
    font-weight: bold;
}

/* Responsive Language Selector */
@media (max-width: 768px) {
    .language-selector {
        top: 1rem;
        right: 1rem;
    }
    
    .language-btn {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
    
    .lang-option {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
}
