/* Template 05 - Criativo (Creative Purple) */
/* Ideal for design and marketing professionals */

/* ====================== */
/* TEMPLATE VARIABLES     */
/* ====================== */
.template-05 {
    --t-primary: #553c9a;
    --t-primary-light: #6b46c1;
    --t-secondary: #ed64a6;
    --t-accent: #fbb6ce;
    --t-text: #2d3748;
    --t-text-light: #718096;
    --t-bg: #ffffff;
    --t-border: #e2e8f0;

    --t-font-main: 'Open Sans', sans-serif;
    --t-font-heading: 'Montserrat', sans-serif;
    --t-font-size-base: 10pt;
    --t-font-size-sm: 9pt;
    --t-font-size-xs: 8pt;
    --t-font-size-name: 26pt;
    --t-font-size-section: 10pt;

    --t-spacing-base: 12px;
    --t-spacing-sm: 8px;
    --t-spacing-xs: 4px;
    --t-spacing-lg: 16px;
    --t-spacing-xl: 24px;
}

/* ====================== */
/* TEMPLATE BASE          */
/* ====================== */
.template-05 {
    font-family: var(--t-font-main);
    font-size: var(--t-font-size-base);
    color: var(--t-text);
    background: var(--t-bg);
    line-height: 1.5;
    padding: 0;
    width: 100%;
}

/* ====================== */
/* HEADER                 */
/* ====================== */
.template-05 .cv-header {
    background: linear-gradient(135deg, var(--t-primary) 0%, var(--t-primary-light) 50%, var(--t-secondary) 100%);
    color: white;
    padding: var(--t-spacing-lg) var(--t-spacing-xl);
    position: relative;
    overflow: hidden;
}

.template-05 .cv-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.template-05 .cv-contact-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--t-spacing-lg);
    font-size: var(--t-font-size-xs);
    margin-bottom: var(--t-spacing-base);
    position: relative;
    z-index: 1;
}

.template-05 .cv-contact-item {
    display: flex;
    align-items: center;
    gap: var(--t-spacing-xs);
}

.template-05 .cv-contact-item svg {
    width: 12px;
    height: 12px;
    fill: var(--t-accent);
}

.template-05 .cv-cnh {
    background: var(--t-secondary);
    color: white;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: var(--t-font-size-xs);
    font-weight: 600;
    display: inline-block;
    margin-top: var(--t-spacing-xs);
}

.template-05 .cv-name {
    font-family: var(--t-font-heading);
    font-size: var(--t-font-size-name);
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-align: center;
    padding: var(--t-spacing-lg) 0;
    position: relative;
    z-index: 1;
}

/* ====================== */
/* MAIN CONTENT           */
/* ====================== */
.template-05 .cv-body {
    padding: var(--t-spacing-xl);
}

.template-05 .cv-section {
    margin-bottom: var(--t-spacing-xl);
    overflow: hidden;
    transition: margin 0.4s ease-out, opacity 0.3s ease;
}

.template-05 .cv-section:last-child {
    margin-bottom: 0;
}

.template-05 .cv-section-header {
    background: linear-gradient(90deg, var(--t-primary) 0%, var(--t-secondary) 100%);
    color: white;
    font-family: var(--t-font-heading);
    font-size: var(--t-font-size-section);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: var(--t-spacing-sm) var(--t-spacing-base);
    margin-bottom: var(--t-spacing-base);
    border-radius: 4px;
    display: inline-block;
}

.template-05 .cv-section-content {
    padding-left: var(--t-spacing-sm);
}

/* ====================== */
/* EXPERIENCE ENTRIES     */
/* ====================== */
.template-05 .cv-entry {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: var(--t-spacing-lg);
    margin-bottom: var(--t-spacing-lg);
    padding-bottom: var(--t-spacing-lg);
    border-bottom: 2px dashed var(--t-accent);
}

.template-05 .cv-entry:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.template-05 .cv-entry-period {
    font-size: var(--t-font-size-sm);
    color: var(--t-primary);
    font-weight: 600;
    text-align: left;
}

.template-05 .cv-entry-title {
    font-weight: 700;
    color: var(--t-text);
    margin-bottom: var(--t-spacing-xs);
}

.template-05 .cv-entry-company {
    color: var(--t-secondary);
    font-weight: 600;
    font-size: var(--t-font-size-sm);
    margin-bottom: var(--t-spacing-sm);
}

.template-05 .cv-entry-location {
    font-weight: 400;
    color: var(--t-text-light);
}

.template-05 .cv-entry-activities {
    margin-top: var(--t-spacing-sm);
    padding-left: var(--t-spacing-base);
}

.template-05 .cv-entry-activities li {
    position: relative;
    padding-left: var(--t-spacing-base);
    margin-bottom: var(--t-spacing-xs);
    font-size: var(--t-font-size-sm);
    line-height: 1.6;
}

.template-05 .cv-entry-activities li::before {
    content: '✧';
    position: absolute;
    left: 0;
    color: var(--t-secondary);
}

/* ====================== */
/* EDUCATION ENTRIES      */
/* ====================== */
.template-05 .cv-education-entry {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: var(--t-spacing-lg);
    margin-bottom: var(--t-spacing-base);
}

.template-05 .cv-education-entry:last-child {
    margin-bottom: 0;
}

.template-05 .cv-education-level {
    font-weight: 700;
    margin-bottom: var(--t-spacing-xs);
}

.template-05 .cv-education-institution {
    font-size: var(--t-font-size-sm);
    color: var(--t-text-light);
}

/* ====================== */
/* SKILLS SECTION         */
/* ====================== */
.template-05 .cv-skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--t-spacing-sm);
}

.template-05 .cv-skill-item {
    background: linear-gradient(135deg, var(--t-primary), var(--t-secondary));
    color: white;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: var(--t-font-size-xs);
    font-weight: 500;
}

/* ====================== */
/* OBJECTIVE              */
/* ====================== */
.template-05 .cv-objective-text {
    font-size: var(--t-font-size-sm);
    line-height: 1.7;
    padding: var(--t-spacing-base);
    background: linear-gradient(90deg, rgba(85, 60, 154, 0.05), rgba(237, 100, 166, 0.05));
    border-radius: 8px;
    border-left: 4px solid var(--t-secondary);
}

/* ====================== */
/* HIDDEN & ANIMATIONS    */
/* ====================== */
.template-05 .cv-section.hidden {
    display: none;
}

.template-05 .cv-section.hiding {
    animation: sectionHideGlow 0.8s ease-out forwards;
}

.template-05 .cv-section.showing {
    animation: sectionShowGlow 0.8s ease-out forwards;
}

@media print {
    .template-05 {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}