/* ===== VARIÁVEIS ===== */
:root {
    --primary-dark: #023e55;
    --primary-blue: #3b4e73;
    --primary-light: #2ba5b2;
    --accent: #f7af02;
    --secondary-gray: #546E7A;
    --light-gray: #F5F7FA;
    --white: #FFFFFF;

    /* Override Bootstrap primary */
    --bs-primary: #2ba5b2 !important;
    --bs-primary-rgb: 43, 165, 178 !important;
}

/* ===== BASE ===== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    padding-top: 76px;
}

/* ===== NAVBAR ===== */
.navbar {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-blue)) !important;
    padding: 0.8rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    position: relative;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #fff !important;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 70%;
}

/* ===== LANG SWITCHER ===== */
.lang-switcher {
    gap: 6px;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.lang-btn .fi {
    width: 18px;
    height: 13px;
    display: inline-block;
    background-size: cover;
    background-position: center;
    border-radius: 2px;
}

.lang-btn .fi-br {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 14'%3E%3Crect width='20' height='14' fill='%23009c3b'/%3E%3Cpath d='M10 1L19 7L10 13L1 7Z' fill='%23ffdf00'/%3E%3Ccircle cx='10' cy='7' r='3.5' fill='%23002776'/%3E%3Cpath d='M7 6.2c2 -0.8 4 -0.8 6 0' stroke='white' stroke-width='0.5' fill='none'/%3E%3C/svg%3E");
}

.lang-btn .fi-gb {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Crect width='60' height='30' fill='%23012169'/%3E%3Cpath d='M0 0L60 30M60 0L0 30' stroke='white' stroke-width='6'/%3E%3Cpath d='M0 0L60 30M60 0L0 30' stroke='%23C8102E' stroke-width='4' clip-path='url(%23t)'/%3E%3CclipPath id='t'%3E%3Cpath d='M30 0v30M0 15h60'/%3E%3C/clipPath%3E%3Cpath d='M30 0v30M0 15h60' stroke='white' stroke-width='10'/%3E%3Cpath d='M30 0v30M0 15h60' stroke='%23C8102E' stroke-width='6'/%3E%3C/svg%3E");
}

/* ===== DOWNLOAD BUTTON ===== */
.download-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(247, 175, 2, 0.2);
    border: 2px solid rgba(247, 175, 2, 0.5);
    border-radius: 20px;
    color: var(--accent);
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.download-btn:hover {
    background: rgba(247, 175, 2, 0.35);
    color: #fff;
    border-color: var(--accent);
}

.download-btn i {
    font-size: 0.8rem;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 50%, var(--primary-light) 100%);
    min-height: 100vh;
    padding: 6rem 0 4rem;
}

/* ===== HERO PHOTO AREA ===== */
.hero-photo-area {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== PHOTO CIRCLE ===== */
.photo-placeholder {
    width: 377px;
    height: 377px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: border-color 0.3s ease;
    flex-shrink: 0;
    z-index: 1;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

/* ===== QR CODE BOX ===== */
.qr-box {
    display: inline-block;
    background: #fff;
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    line-height: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qr-box:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.qr-box img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
}

.qr-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-top: 6px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.photo-placeholder:hover {
    border-color: var(--accent);
}

.photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}

/* ===== SKILLS TIMELINE ===== */
.skills-timeline {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
    position: relative;
    padding-right: 28px;
}

/* Linha vertical */
.skills-timeline::after {
    content: '';
    position: absolute;
    right: 4px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 1px;
}

.skill-item {
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 50px;
    white-space: nowrap;
    letter-spacing: 0.3px;
    line-height: 1.3;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.skill-item:hover {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateX(-3px);
}

/* Ponto (dot) na linha vertical */
.skill-item::after {
    content: '';
    position: absolute;
    right: -27px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* Linha horizontal do item até o ponto */
.skill-item::before {
    content: '';
    position: absolute;
    right: -19px;
    top: 50%;
    transform: translateY(-50%);
    width: 19px;
    height: 2px;
    background: rgba(255, 255, 255, 0.35);
}

/* Conector horizontal da timeline até a foto */
.timeline-connector {
    width: 30px;
    height: 2px;
    background: rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
}

/* ===== SECTIONS ===== */
.section-padding {
    padding: 5rem 0;
}

.section-title {
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.title-underline {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--primary-light));
    margin: 0 auto;
    border-radius: 2px;
}

/* ===== COMPETÊNCIAS ===== */
.competencia-card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid #e8edf2;
    transition: all 0.3s ease;
}

.competencia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(43, 165, 178, 0.15);
    border-color: var(--primary-light);
}

.competencia-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-light));
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.competencia-icon i {
    font-size: 1.5rem;
    color: #fff;
}

/* ===== SOFT SKILLS ===== */
.softskill-card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid #e8edf2;
    transition: all 0.3s ease;
}

.softskill-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(43, 165, 178, 0.12);
    border-color: var(--primary-light);
}

/* ===== EXPERIÊNCIA ===== */
.experience-card {
    border-left: 4px solid var(--primary-blue) !important;
    transition: all 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

/* ===== FORMAÇÃO ===== */
.formacao-card {
    transition: all 0.3s ease;
    border-top: 3px solid transparent !important;
}

.formacao-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    border-top-color: var(--accent) !important;
}

.formacao-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
}

/* ===== DIFERENCIAIS ===== */
.diferencial-card {
    transition: all 0.3s ease;
    border-top: 3px solid transparent !important;
}

.diferencial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    border-top-color: var(--accent) !important;
}

.diferencial-icon {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-light));
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.diferencial-icon i {
    font-size: 1.4rem;
    color: #fff;
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, #011a27, var(--primary-dark)) !important;
}

/* ===== BOOTSTRAP OVERRIDES ===== */
.bg-primary {
    background-color: var(--primary-light) !important;
}

.text-primary {
    color: var(--primary-dark) !important;
}

.badge.bg-primary {
    background-color: var(--primary-light) !important;
}

.badge.bg-secondary {
    background-color: var(--primary-blue) !important;
}

/* ===== BADGES ===== */
.badge {
    font-weight: 500;
}

/* ===== RESPONSIVE ===== */

/* Tablet landscape / desktop pequeno */
@media (max-width: 1199.98px) {
    .photo-placeholder {
        width: 320px;
        height: 320px;
    }

    .skill-item {
        font-size: 0.65rem;
        padding: 5px 11px;
    }

    .skills-timeline {
        gap: 5px;
    }
}

/* Tablet portrait */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 3rem 0 2rem;
        min-height: auto;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 0.95rem;
    }

    .hero-photo-area {
        margin-bottom: 1rem;
    }

    .photo-placeholder {
        width: 280px;
        height: 280px;
    }

    .skill-item {
        font-size: 0.60rem;
        padding: 5px 10px;
    }

    .skills-timeline {
        gap: 4px;
    }

    .section-padding {
        padding: 3.5rem 0;
    }

    .competencia-card {
        padding: 1rem !important;
    }
}

/* Celular grande */
@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }

    .photo-placeholder {
        width: 240px;
        height: 240px;
    }

    .skill-item {
        font-size: 0.55rem;
        padding: 4px 8px;
    }

    .skills-timeline {
        gap: 3px;
        padding-right: 22px;
    }

    .skill-item::after {
        right: -21px;
        width: 6px;
        height: 6px;
    }

    .skill-item::before {
        right: -15px;
        width: 15px;
    }

    .timeline-connector {
        width: 20px;
    }

    .section-padding {
        padding: 3rem 0;
    }

    .experience-card .d-flex.justify-content-between {
        flex-direction: column;
    }

    .experience-card .badge {
        margin-top: 0.5rem;
        align-self: flex-start;
    }
}

/* Celular */
@media (max-width: 575.98px) {
    body {
        padding-top: 66px;
    }

    html {
        scroll-padding-top: 66px;
    }

    .hero-section {
        padding: 2rem 0 1.5rem;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .hero-section .lead {
        font-size: 0.85rem;
    }

    .hero-section h5 {
        font-size: 1rem;
    }

    .hero-section p {
        font-size: 0.85rem;
    }

    .hero-photo-area {
        flex-direction: column;
    }

    .photo-placeholder {
        width: 220px;
        height: 220px;
    }

    /* Timeline vira lista horizontal no mobile */
    .skills-timeline {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        padding-right: 0;
        gap: 6px;
        margin-bottom: 1rem;
        order: 2;
    }

    .skills-timeline::after {
        display: none;
    }

    .skill-item::after,
    .skill-item::before {
        display: none;
    }

    .skill-item {
        font-size: 0.58rem;
        padding: 4px 10px;
        white-space: normal;
        text-align: center;
    }

    .timeline-connector {
        display: none;
    }

    .photo-placeholder {
        order: 1;
        margin-bottom: 0.8rem;
    }

    .d-flex.gap-3 {
        gap: 0.4rem !important;
    }

    .badge.px-3 {
        font-size: 0.7rem;
        padding: 0.35rem 0.6rem !important;
    }

    .qr-box img {
        width: 60px;
        height: 60px;
    }

    .qr-box {
        padding: 6px;
        border-radius: 10px;
    }

    .section-padding {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .competencia-icon {
        width: 48px;
        height: 48px;
    }

    .competencia-icon i {
        font-size: 1.2rem;
    }

    .diferencial-icon {
        width: 45px;
        height: 45px;
    }

    .diferencial-icon i {
        font-size: 1.1rem;
    }

    .formacao-icon {
        font-size: 2rem;
    }
}

/* Celular muito pequeno */
@media (max-width: 399.98px) {
    .photo-placeholder {
        width: 180px;
        height: 180px;
    }

    .skill-item {
        font-size: 0.50rem;
        padding: 3px 7px;
    }

    .hero-section h1 {
        font-size: 1.3rem;
    }
}
