/* ===================================
   CV DALLAN - ESTILOS PRINCIPAIS
   =================================== */

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

:root {
    --primary-color: #2c5aa0;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-light: #ecf0f1;
    --text-dark: #2c3e50;
    --bg-light: #f8f9fa;
    --bg-card: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, #2c5aa0 0%, #3498db 100%);
    --header-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

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

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.language-switcher a {
    padding: 6px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.language-switcher a.current,
.language-switcher a:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-1px);
}

/* Header - ALTURA REDUZIDA */
.header {
    background: var(--header-gradient);
    color: var(--text-light);
    padding: 40px 0 30px 0; /* REDUZIDO: padding superior e inferior */
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 300px; /* REDUZIDO: altura mínima do cabeçalho */
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255,255,255,0.08) 0%, transparent 50%);
    z-index: 0;
    animation: float 8s ease-in-out infinite;
}

.header .container {
    padding-bottom: 10px; /* REDUZIDO: padding do container */
    position: relative;
    z-index: 2;
}

/* Animações */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-10px) rotate(1deg);
        opacity: 1;
    }
}

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

.header .container {
    animation: fadeInUp 1.5s ease-out;
}

.profile-img {
    width: 120px; /* REDUZIDO: tamanho da imagem de perfil */
    height: 120px; /* REDUZIDO: tamanho da imagem de perfil */
    border-radius: 50%;
    margin: 0 auto 20px; /* REDUZIDO: margem inferior */
    border: 4px solid rgba(255,255,255,0.3); /* REDUZIDO: borda */
    overflow: hidden;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: profileFloat 4s ease-in-out infinite;
}

.profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    animation-play-state: paused;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes profileFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.header h1 {
    font-size: 2.2rem; /* REDUZIDO: tamanho do título */
    margin-bottom: 10px; /* REDUZIDO: margem inferior */
    position: relative;
    z-index: 2;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: -1px;
    animation: titleSlide 1.5s ease-out 0.5s both;
}

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

.header .subtitle {
    font-size: 1.1rem; /* REDUZIDO: tamanho do subtítulo */
    opacity: 0.95;
    margin-bottom: 20px; /* REDUZIDO: margem inferior */
    position: relative;
    z-index: 2;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
    animation: subtitleSlide 1.5s ease-out 0.8s both;
}

@keyframes subtitleSlide {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px; /* REDUZIDO: espaçamento entre itens */
    margin-top: 20px; /* REDUZIDO: margem superior */
    position: relative;
    z-index: 2;
    animation: contactFadeIn 1.5s ease-out 1.2s both;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px; /* REDUZIDO: espaçamento interno */
    font-size: 0.9rem; /* REDUZIDO: tamanho da fonte */
    transition: all 0.3s ease;
    opacity: 0;
    animation: contactItemSlide 0.8s ease-out forwards;
}

.contact-item:nth-child(1) { animation-delay: 1.4s; }
.contact-item:nth-child(2) { animation-delay: 1.6s; }
.contact-item:nth-child(3) { animation-delay: 1.8s; }
.contact-item:nth-child(4) { animation-delay: 2.0s; }

.contact-item:hover {
    transform: translateY(-2px) scale(1.05);
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.contact-item a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

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

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

/* Navigation */
.nav {
    background: var(--bg-card);
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 40px;
    flex-wrap: wrap;
}

.nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav a:hover,
.nav a.active {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 60px 0;
}

.section:nth-child(even) {
    background: white;
}

.section#sobre,
.section#about {
    background: white !important;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.card-icon {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.card-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 0;
}

.card-subtitle {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.skill-category {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: var(--bg-light);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-1px);
}

/* Experience Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--secondary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background: var(--secondary-color);
    border-radius: 50%;
    top: 20px;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.timeline-content .company-period {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 500;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.project-header {
    background: var(--gradient);
    color: white;
    padding: 20px;
    text-align: center;
}

.project-body {
    padding: 25px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.project-tag {
    background: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Project Links */
.project-links {
    margin-top: 20px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.project-links a,
.github-link,
.live-demo,
.company-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #4472C4;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    min-width: 120px;
    text-align: center;
}

.project-links a:hover,
.github-link:hover,
.live-demo:hover {
    background: #2D5AA0;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Botão Empresa - Verde */
.company-link {
    background: #059669;
}

.company-link:hover {
    background: #047857;
}

/* Education Grid */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.education-item {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.course-title {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 8px;
}

.institution {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.course-description {
    font-size: 0.85rem;
    color: #555;
}

/* Certifications */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.cert-item {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 3px solid var(--secondary-color);
}

.cert-item h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.cert-item .cert-provider {
    color: #666;
    font-size: 0.8rem;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 40px 0;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 20px;
}

.social-link:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--secondary-color);
    z-index: 1000;
    transition: width 0.3s ease;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Menu Styles */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
}

/* Accessibility */
a:focus, button:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.page-loaded {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

/* Responsive Design - Delegado para responsive.css */