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

body {
    font-family: 'Fira Code', 'Courier New', monospace;
    background: #0d1117;
    min-height: 100vh;
    padding: 2rem 1rem;
    color: #c9d1d9;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    background: #161b22;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: slideUp 0.8s ease-out;
    border: 1px solid #30363d;
}

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

header {
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
    color: #c9d1d9;
    padding: 3rem 2rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid #30363d;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(45deg, transparent 48%, #58a6ff 49%, #58a6ff 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, #79c0ff 49%, #79c0ff 51%, transparent 52%);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
    opacity: 0.03;
    pointer-events: none;
}

header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0;
    color: #58a6ff;
    position: relative;
    z-index: 1;
}

header .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    font-weight: 400;
    color: #79c0ff;
    position: relative;
    z-index: 1;
}

.contacts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    list-style: none;
    position: relative;
    z-index: 1;
}

.contacts li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(88, 166, 255, 0.08);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(88, 166, 255, 0.2);
}

.contacts li:hover {
    background: rgba(88, 166, 255, 0.15);
    transform: translateY(-2px);
    border-color: rgba(88, 166, 255, 0.4);
}

.contacts i {
    width: 24px;
    text-align: center;
    color: #58a6ff;
    font-size: 1.1rem;
}

.contacts strong {
    color: #79c0ff;
}

.contacts a {
    color: #58a6ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contacts a:hover {
    color: #79c0ff;
    text-decoration: underline;
}

.print-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(88, 166, 255, 0.1);
    color: #58a6ff;
    font-weight: 600;
    border-radius: 8px;
    z-index: 10;
    padding: 0.6rem 1.2rem;
    border: 1px solid #58a6ff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-family: inherit;
}

.print-btn:hover {
    background-color: rgba(88, 166, 255, 0.2);
    box-shadow: 0 5px 15px rgba(88, 166, 255, 0.2);
}

.language-switch {
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    z-index: 10;
}

.language-switch a {
    color: rgba(88, 166, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.language-switch a:hover,
.language-switch a.active {
    color: #58a6ff;
    text-decoration: underline;
}

.main-content {
    padding: 3rem 2rem;
    background: #0d1117;
}

.section {
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.section:nth-child(1) { animation-delay: 0.2s; }
.section:nth-child(2) { animation-delay: 0.4s; }
.section:nth-child(3) { animation-delay: 0.6s; }
.section:nth-child(4) { animation-delay: 0.8s; }
.section:nth-child(5) { animation-delay: 1s; }
.section:nth-child(6) { animation-delay: 1.2s; }

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

.section h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    color: #58a6ff;
    margin-bottom: 2rem;
    position: relative;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section h2::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, #58a6ff, #30363d);
    border-radius: 1px;
}

.section h2 i {
    color: #79c0ff;
    font-size: 1.3rem;
    width: 28px;
    text-align: center;
}

.summary {
    background: rgba(88, 166, 255, 0.05);
    padding: 2rem;
    border-radius: 8px;
    border-left: 3px solid #58a6ff;
    font-size: 0.95rem;
    line-height: 1.8;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    border: 1px solid #30363d;
}

.summary p {
    color: #c9d1d9;
}

.experience-item,
.education-item {
    background: rgba(22, 27, 34, 0.6);
    padding: 1.8rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 3px solid #58a6ff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #30363d;
}

.experience-item::before,
.education-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(88, 166, 255, 0.1), transparent);
    border-radius: 50%;
    transition: all 0.3s ease;
    pointer-events: none;
}

.experience-item:hover,
.education-item:hover {
    transform: translateY(-3px);
    border-color: #58a6ff;
    background: rgba(88, 166, 255, 0.08);
    box-shadow: 0 8px 20px rgba(88, 166, 255, 0.1);
}

.experience-item:hover::before,
.education-item:hover::before {
    right: -50px;
}

.experience-item h3,
.education-item h3 {
    color: #79c0ff;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.experience-item .period,
.education-item .period {
    color: #8b949e;
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 1rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.experience-description {
    color: #c9d1d9;
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: justify;
    position: relative;
    z-index: 1;
}

.tools-used {
    border-top: 1px solid #30363d;
    padding-top: 1rem;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

.tools-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.tools-list span {
    background: rgba(88, 166, 255, 0.15);
    color: #79c0ff;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(88, 166, 255, 0.3);
}

.tools-list span:hover {
    background: rgba(88, 166, 255, 0.25);
    border-color: #58a6ff;
    transform: translateY(-2px);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.skills-category {
    background: rgba(22, 27, 34, 0.6);
    padding: 2rem;
    border-radius: 8px;
    border-top: 3px solid #58a6ff;
    transition: all 0.3s ease;
    border: 1px solid #30363d;
    border-top: 3px solid #58a6ff;
}

.skills-category:hover {
    transform: translateY(-3px);
    border-color: #58a6ff;
    background: rgba(88, 166, 255, 0.08);
    box-shadow: 0 8px 20px rgba(88, 166, 255, 0.1);
}

.skills-category h3 {
    color: #79c0ff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.skills-category i {
    font-size: 1.2rem;
    color: #58a6ff;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    list-style: none;
}

.skills-list li {
    background: rgba(88, 166, 255, 0.15);
    color: #79c0ff;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(88, 166, 255, 0.3);
    cursor: default;
}

.skills-list li:hover {
    background: rgba(88, 166, 255, 0.25);
    border-color: #58a6ff;
    transform: translateY(-2px);
}

.languages {
    background: rgba(22, 27, 34, 0.6);
    padding: 2rem;
    border-radius: 8px;
    border-top: 3px solid #238636;
    border: 1px solid #30363d;
    border-top: 3px solid #238636;
}

.languages .level {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(35, 134, 54, 0.15);
    color: #3fb950;
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    font-weight: 700;
    margin-top: 1rem;
    font-size: 1rem;
    border: 1px solid rgba(35, 134, 54, 0.3);
}

.languages i {
    font-size: 1.2rem;
}

/* Estilos otimizados para impressão e ATS */
@media print {
    * {
        print-color-adjust: exact !important;
        -webkit-print-color-adjust: exact !important;
        transition: none !important;
        animation: none !important;
    }

    body {
        background: white !important;
        padding: 0.5in !important;
        font-size: 12px !important;
        line-height: 1.5 !important;
        color: #000 !important;
        font-family: Arial, sans-serif !important;
    }

    .container {
        max-width: 100% !important;
        margin: 0 !important;
        background: white !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        border: none !important;
    }

    header {
        background: white !important;
        color: #000 !important;
        padding: 0 0 1rem 0 !important;
        page-break-inside: avoid;
        border: none !important;
        margin-bottom: 1rem !important;
        text-align: center !important;
    }

    header::before {
        display: none !important;
    }

    header h1 {
        font-size: 18pt !important;
        font-weight: bold !important;
        margin: 0 0 0.1in 0 !important;
        color: #000 !important;
        letter-spacing: 0 !important;
    }

    header .subtitle {
        font-size: 11pt !important;
        margin-bottom: 0.1in !important;
        color: #000 !important;
        font-weight: normal !important;
    }

    .contacts {
        font-size: 11pt !important;
        gap: 0 !important;
        grid-template-columns: 1fr !important;
        display: block !important;
        margin-bottom: 0.1in !important;
    }

    .contacts li {
        padding: 0.05in 0 !important;
        background: none !important;
        border: none !important;
        display: block !important;
        line-height: 1.4 !important;
    }

    .contacts li::before {
        display: none !important;
    }

    .contacts i {
        display: none !important;
    }

    .contacts strong {
        color: #000 !important;
        font-weight: normal !important;
    }

    .contacts a {
        color: #000 !important;
        text-decoration: none !important;
    }

    .main-content {
        padding: 0 !important;
        background: white !important;
    }

    .section {
        margin-bottom: 0.2in !important;
        opacity: 1 !important;
        page-break-inside: avoid !important;
    }

    .section h2 {
        font-size: 12pt !important;
        font-weight: bold !important;
        margin: 0.15in 0 0.08in 0 !important;
        color: #000 !important;
        border: none !important;
        padding: 0 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.05em !important;
    }

    .section h2::after {
        display: none !important;
    }

    .section h2 i {
        display: none !important;
    }

    .summary {
        background: none !important;
        padding: 0 !important;
        border: none !important;
        font-size: 11pt !important;
        margin-bottom: 0.1in !important;
    }

    .summary p {
        color: #000 !important;
        margin: 0 0 0.1in 0 !important;
        line-height: 1.5 !important;
        text-align: left !important;
    }

    .experience-item,
    .education-item {
        background: white !important;
        padding: 0 !important;
        margin-bottom: 0.15in !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        page-break-inside: avoid !important;
    }

    .experience-item::before,
    .education-item::before {
        display: none !important;
    }

    .experience-item h3,
    .education-item h3 {
        font-size: 11pt !important;
        font-weight: bold !important;
        margin: 0.08in 0 0.02in 0 !important;
        color: #000 !important;
    }

    .experience-item .period,
    .education-item .period {
        font-size: 10pt !important;
        margin: 0 0 0.05in 0 !important;
        color: #333 !important;
        font-style: normal !important;
        font-weight: normal !important;
    }

    .experience-description {
        font-size: 11pt !important;
        line-height: 1.5 !important;
        color: #000 !important;
        margin: 0 0 0.08in 0 !important;
        text-align: left !important;
    }

    .tools-used {
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .tools-list {
        display: block !important;
        font-size: 11pt !important;
        margin-bottom: 0.05in !important;
    }

    .tools-list span {
        background: none !important;
        color: #000 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        font-size: 11pt !important;
        font-weight: normal !important;
        border: none !important;
        display: inline !important;
        margin: 0 !important;
    }

    .tools-list span::after {
        content: ' | ' !important;
    }

    .tools-list span:last-child::after {
        content: '' !important;
    }

    .skills-grid {
        display: block !important;
    }

    .skills-category {
        background: white !important;
        padding: 0 !important;
        margin-bottom: 0.15in !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        page-break-inside: avoid !important;
    }

    .skills-category:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    .skills-category h3 {
        font-size: 11pt !important;
        font-weight: bold !important;
        margin: 0 0 0.08in 0 !important;
        color: #000 !important;
    }

    .skills-category i {
        display: none !important;
    }

    .skills-list {
        display: block !important;
        font-size: 11pt !important;
    }

    .skills-list li {
        display: inline !important;
        background: none !important;
        color: #000 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        font-size: 11pt !important;
        font-weight: normal !important;
        border: none !important;
        margin: 0 !important;
    }

    .skills-list li::after {
        content: ' | ' !important;
    }

    .skills-list li:last-child::after {
        content: '' !important;
    }

    .languages {
        background: white !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }

    .languages .level {
        display: block !important;
        background: none !important;
        color: #000 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        font-size: 11pt !important;
        font-weight: normal !important;
        border: none !important;
    }

    .languages i {
        display: none !important;
    }

    .print-btn {
        display: none !important;
    }

    .language-switch {
        display: none !important;
    }

    *:hover {
        transform: none !important;
        box-shadow: none !important;
    }
}

@media (max-width: 768px) {
    body {
        padding: 1rem 0.5rem;
    }

    header {
        padding: 2.5rem 1rem 1.5rem;
    }

    header h1 {
        font-size: 2.2rem;
    }

    .main-content {
        padding: 2rem 1.5rem;
    }

    .contacts {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .section h2 {
        font-size: 1.3rem;
    }
}
