/* ==================== RESET E VARIÁVEIS ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF6B35;
    --secondary-color: #F7931E;
    --dark-color: #1a1a1a;
    --light-color: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.18);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --transition-speed: 0.4s;
    --blur-amount: 0px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--light-color);
    overflow-x: hidden;
    background-color: var(--dark-color);
    position: relative;
    min-height: 100vh;
}

/* ==================== BACKGROUND COM BLUR PROGRESSIVO ==================== */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    filter: blur(var(--blur-amount));
    transition: filter 0.3s ease;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.7) 0%, 
        rgba(255, 107, 53, 0.3) 50%,
        rgba(247, 147, 30, 0.4) 100%);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* ==================== NAVEGAÇÃO GLASSMORPHISM ==================== */
.navigation {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 1000;
    animation: slideUp 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-speed) cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity var(--transition-speed);
    z-index: -1;
}

.nav-item i {
    font-size: 16px;
    transition: transform var(--transition-speed);
}

.nav-item:hover {
    color: var(--light-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

.nav-item:hover i {
    transform: scale(1.2) rotate(5deg);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-color);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
}

.nav-item.active::before {
    opacity: 1;
}

/* ==================== CONTEÚDO PRINCIPAL ==================== */
.main-content {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
}

.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== SEÇÃO HOME ==================== */
.home-content {
    max-width: 600px;
    margin-right: auto;
    margin-left: 0;
    padding-left: 50px;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 30px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 107, 53, 0);
    }
}

.title-container {
    margin-bottom: 40px;
}

.subtitle {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    animation: fadeIn 1s ease 0.3s both;
}

.main-title {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}

.title-line {
    display: block;
    background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeIn 1s ease 0.5s both;
}

.title-line:nth-child(2) {
    animation-delay: 0.7s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    animation: fadeIn 1s ease both;
}

.contact-item:nth-child(1) { animation-delay: 0.9s; }
.contact-item:nth-child(2) { animation-delay: 1s; }
.contact-item:nth-child(3) { animation-delay: 1.1s; }
.contact-item:nth-child(4) { animation-delay: 1.2s; }

.contact-item i {
    font-size: 16px;
    color: var(--secondary-color);
    width: 20px;
    text-align: center;
}

/* ==================== SEÇÕES GERAIS ==================== */
.section-content {
    max-width: 1000px;
    width: 100%;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 50px;
    background: linear-gradient(135deg, #ffffff 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideRight 0.8s ease;
}

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

/* ==================== SEÇÃO RESUMO ==================== */
.resume-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.8s ease;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.resume-text {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.resume-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.highlight-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-speed);
}

.highlight-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
}

.highlight-item i {
    font-size: 28px;
    color: var(--secondary-color);
    min-width: 40px;
}

.highlight-item h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--light-color);
}

.highlight-item p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* ==================== SEÇÃO EXPERIÊNCIA ==================== */
.experience-timeline {
    position: relative;
    padding-left: 40px;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    animation: fadeInLeft 0.8s ease both;
}

.timeline-item:nth-child(1) { animation-delay: 0.2s; }
.timeline-item:nth-child(2) { animation-delay: 0.4s; }

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

.timeline-dot {
    position: absolute;
    left: -45px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.2);
    animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.2);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 107, 53, 0);
    }
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-speed);
}

.timeline-content:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(10px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.2);
}

.timeline-date {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary-color);
    background: rgba(247, 147, 30, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.timeline-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--light-color);
}

.timeline-company {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 15px;
}

.timeline-description {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 107, 53, 0.1);
    color: var(--secondary-color);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(255, 107, 53, 0.2);
    transition: all 0.3s;
}

.tag:hover {
    background: rgba(255, 107, 53, 0.2);
    transform: scale(1.05);
}

/* ==================== SEÇÃO HABILIDADES ==================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all var(--transition-speed);
    animation: scaleIn 0.8s ease both;
}

.skill-card:nth-child(1) { animation-delay: 0.1s; }
.skill-card:nth-child(2) { animation-delay: 0.2s; }
.skill-card:nth-child(3) { animation-delay: 0.3s; }
.skill-card:nth-child(4) { animation-delay: 0.4s; }
.skill-card:nth-child(5) { animation-delay: 0.5s; }
.skill-card:nth-child(6) { animation-delay: 0.6s; }

.skill-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.3);
}

.skill-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    font-size: 32px;
    color: var(--light-color);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(5deg) scale(1.05);
    }
}

.skill-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--light-color);
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    width: var(--progress);
    animation: fillBar 1.5s ease-in-out;
    position: relative;
}

@keyframes fillBar {
    from {
        width: 0;
    }
    to {
        width: var(--progress);
    }
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

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

.skill-percentage {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-color);
}

/* ==================== SEÇÃO LINKS ==================== */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: var(--light-color);
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease both;
}

.link-card:nth-child(1) { animation-delay: 0.1s; }
.link-card:nth-child(2) { animation-delay: 0.2s; }
.link-card:nth-child(3) { animation-delay: 0.3s; }
.link-card:nth-child(4) { animation-delay: 0.4s; }

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
}

.link-card:hover::before {
    left: 100%;
}

.link-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px) translateX(5px);
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.3);
    border-color: rgba(255, 107, 53, 0.3);
}

.link-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    font-size: 24px;
    flex-shrink: 0;
    transition: transform var(--transition-speed);
}

.link-card:hover .link-icon {
    transform: rotate(5deg) scale(1.1);
}

.link-info {
    flex: 1;
}

.link-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.link-info p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.link-arrow {
    font-size: 18px;
    color: var(--secondary-color);
    transition: transform var(--transition-speed);
}

.link-card:hover .link-arrow {
    transform: translateX(5px);
}

/* ==================== PARTÍCULAS DECORATIVAS ==================== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ==================== RESPONSIVIDADE ==================== */
@media (max-width: 768px) {
    .navigation {
        bottom: 20px;
        padding: 10px 12px;
        gap: 5px;
    }
    
    .nav-item {
        padding: 10px 15px;
        font-size: 12px;
    }
    
    .nav-item span {
        display: none;
    }
    
    .nav-item i {
        font-size: 18px;
    }
    
    .section {
        padding: 60px 15px;
    }
    
    .home-content {
        padding-left: 15px;
        margin-left: 0;
    }
    
    .resume-card,
    .timeline-content {
        padding: 25px;
    }
    
    .skills-grid,
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .experience-timeline {
        padding-left: 30px;
    }
    
    .timeline-dot {
        left: -36px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 42px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .resume-highlights {
        grid-template-columns: 1fr;
    }
}
