/* Template 01 - Professional Teal */
/* Based on reference: Mariana Gabriele Rubin CV */

/* ====================== */
/* TEMPLATE VARIABLES     */
/* ====================== */
.template-01 {
    --t-primary: #2b5b5b;
    --t-secondary: #c9364a;
    --t-text: #333333;
    --t-text-light: #666666;
    --t-bg: #ffffff;
    --t-border: #e0e0e0;

    --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: 24pt;
    --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-01 {
    font-family: var(--t-font-main);
    font-size: var(--t-font-size-base);
    color: var(--t-text);
    background: var(--t-bg);
    line-height: 1.4;
    padding: 0;
    width: 100%;
}

/* ====================== */
/* HEADER                 */
/* ====================== */
.template-01 .cv-header {
    background: var(--t-primary);
    color: white;
    padding: var(--t-spacing-sm) var(--t-spacing-lg);
}

.template-01 .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);
    padding-bottom: var(--t-spacing-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.template-01 .cv-contact-item {
    display: flex;
    align-items: center;
    gap: var(--t-spacing-xs);
}

.template-01 .cv-contact-item svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.template-01 .cv-cnh {
    background: linear-gradient(135deg, #3d7a7a 0%, #2b6060 100%);
    padding: 2px 10px;
    border-radius: 3px;
    font-size: var(--t-font-size-xs);
    font-weight: 600;
    display: inline-block;
    margin-top: var(--t-spacing-xs);
    letter-spacing: 0.5px;
}

.template-01 .cv-name {
    font-family: var(--t-font-heading);
    font-size: var(--t-font-size-name);
    font-weight: 400;
    letter-spacing: 8px;
    text-transform: uppercase;
    text-align: center;
    padding: var(--t-spacing-lg) 0;
}

/* ====================== */
/* MAIN CONTENT           */
/* ====================== */
.template-01 .cv-body {
    padding: var(--t-spacing-lg);
}

/* Section Header */
.template-01 .cv-section {
    margin-bottom: var(--t-spacing-xl);
}

.template-01 .cv-section:last-child {
    margin-bottom: 0;
}

.template-01 .cv-section-header {
    background: var(--t-primary);
    color: white;
    font-family: var(--t-font-heading);
    font-size: var(--t-font-size-section);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: var(--t-spacing-sm) var(--t-spacing-base);
    margin-bottom: var(--t-spacing-base);
    display: inline-block;
}

.template-01 .cv-section-content {
    padding-left: var(--t-spacing-xs);
}

/* ====================== */
/* EXPERIENCE ENTRIES     */
/* ====================== */
.template-01 .cv-entry {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: var(--t-spacing-base);
    margin-bottom: var(--t-spacing-lg);
    padding-bottom: var(--t-spacing-lg);
    border-bottom: 1px solid var(--t-border);
}

.template-01 .cv-entry:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.template-01 .cv-entry-period {
    font-size: var(--t-font-size-sm);
    color: var(--t-text-light);
    text-align: left;
}

.template-01 .cv-entry-content {
    /* Main content area */
}

.template-01 .cv-entry-title {
    font-weight: 700;
    margin-bottom: var(--t-spacing-xs);
}

.template-01 .cv-entry-company {
    color: var(--t-primary);
    font-weight: 600;
    font-size: var(--t-font-size-sm);
    margin-bottom: var(--t-spacing-sm);
}

.template-01 .cv-entry-location {
    font-weight: 400;
    color: var(--t-text-light);
}

.template-01 .cv-entry-activities {
    margin-top: var(--t-spacing-sm);
    padding-left: var(--t-spacing-base);
}

.template-01 .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);
    color: var(--t-text);
    line-height: 1.5;
}

.template-01 .cv-entry-activities li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--t-text-light);
}

/* ====================== */
/* EDUCATION ENTRIES      */
/* ====================== */
.template-01 .cv-education-entry {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: var(--t-spacing-base);
    margin-bottom: var(--t-spacing-base);
}

.template-01 .cv-education-entry:last-child {
    margin-bottom: 0;
}

.template-01 .cv-education-level {
    font-weight: 700;
    margin-bottom: var(--t-spacing-xs);
}

.template-01 .cv-education-institution {
    font-size: var(--t-font-size-sm);
    color: var(--t-text-light);
}

.template-01 .cv-education-status {
    font-size: var(--t-font-size-xs);
    color: var(--t-text-light);
    font-style: italic;
}

/* ====================== */
/* SKILLS SECTION         */
/* ====================== */
.template-01 .cv-skills-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--t-spacing-xs) var(--t-spacing-xl);
}

.template-01 .cv-skill-item {
    position: relative;
    padding-left: var(--t-spacing-base);
    font-size: var(--t-font-size-sm);
}

.template-01 .cv-skill-item::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--t-text-light);
}

/* ====================== */
/* OBJECTIVE SECTION      */
/* ====================== */
.template-01 .cv-objective-text {
    font-size: var(--t-font-size-sm);
    line-height: 1.6;
    text-align: justify;
}

.template-01 .cv-objective-text::before {
    content: '• ';
    color: var(--t-text-light);
}

/* ====================== */
/* SECTION VISIBILITY ANIMATIONS */
/* ====================== */

/* Base transition for smooth height changes */
.template-01 .cv-section {
    overflow: hidden;
    transition: margin 0.4s ease-out, opacity 0.3s ease;
}

/* Hidden state (final) */
.template-01 .cv-section.hidden {
    display: none;
}

/* ---- HIDING ANIMATION ---- */
/* Step 1: Red glow highlight */
.template-01 .cv-section.hiding {
    animation: sectionHideGlow 0.8s ease-out forwards;
}

@keyframes sectionHideGlow {
    0% {
        box-shadow: inset 0 0 0 rgba(220, 53, 69, 0);
        opacity: 1;
        transform: scale(1);
    }

    20% {
        box-shadow: inset 0 0 30px rgba(220, 53, 69, 0.6),
            inset 0 0 60px rgba(220, 53, 69, 0.3);
        opacity: 1;
        transform: scale(1.01);
    }

    40% {
        box-shadow: inset 0 0 50px rgba(220, 53, 69, 0.8),
            inset 0 0 100px rgba(220, 53, 69, 0.4);
        opacity: 1;
        transform: scale(1);
    }

    70% {
        box-shadow: inset 0 0 30px rgba(220, 53, 69, 0.4);
        opacity: 0.5;
        transform: scale(0.98);
    }

    100% {
        box-shadow: inset 0 0 0 rgba(220, 53, 69, 0);
        opacity: 0;
        transform: scale(0.95);
        max-height: 0;
        margin-bottom: 0;
        padding: 0;
    }
}

/* ---- SHOWING ANIMATION ---- */
/* Step 1: Slide space and fade in with cyan glow */
.template-01 .cv-section.showing {
    animation: sectionShowGlow 0.8s ease-out forwards;
}

@keyframes sectionShowGlow {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
        box-shadow: inset 0 0 0 rgba(0, 212, 255, 0);
        max-height: 0;
    }

    30% {
        opacity: 0.3;
        transform: scale(0.98) translateY(-5px);
        box-shadow: inset 0 0 20px rgba(0, 212, 255, 0.3);
        max-height: 500px;
    }

    50% {
        opacity: 0.7;
        transform: scale(1) translateY(0);
        box-shadow: inset 0 0 50px rgba(0, 212, 255, 0.7),
            inset 0 0 100px rgba(0, 212, 255, 0.4);
    }

    70% {
        opacity: 1;
        transform: scale(1.01);
        box-shadow: inset 0 0 40px rgba(0, 212, 255, 0.5),
            inset 0 0 80px rgba(0, 212, 255, 0.3);
    }

    85% {
        transform: scale(1);
        box-shadow: inset 0 0 20px rgba(0, 212, 255, 0.3);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: inset 0 0 0 rgba(0, 212, 255, 0);
        max-height: 1000px;
    }
}

/* ====================== */
/* PRINT STYLES           */
/* ====================== */
@media print {
    .template-01 {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }

    .template-01 .cv-section {
        page-break-inside: avoid;
    }

    .template-01 .cv-entry {
        page-break-inside: avoid;
    }
}