* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body {
    background: #f4f2ee;
    color: #1a1a1a;
}

.navbar {
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    min-height: 60px;
    background: #e9ecef;
    border-bottom: 1px solid #c7ccd1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 16px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-links a {
    color: #5f6872;
    text-decoration: none;
    font-weight: 700;
    line-height: 60px;
}

.nav-links a.active,
.nav-links a:hover { color: #111827; }

.menu-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 8px;
    background: #1f2937;
    padding: 9px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #fff;
}

.main-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 80px auto 40px;
    padding: 0 20px;
}

.profile-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    overflow: hidden;
}

.banner {
    width: 100%;
    height: 280px;
    background: #3d4b5c;
}

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

.profile-content { padding: 0 30px 30px; }

.photo-area {
    position: relative;
    height: 80px;
}

.profile-photo {
    position: absolute;
    top: -100px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 4px solid #fff;
    background: #eee;
    overflow: hidden;
}

.header-info { margin: 20px 0 30px; }

.header-info h1 {
    font-size: clamp(1.45rem, 4vw, 1.9rem);
    margin-bottom: 6px;
}

.subtitle,
.empty-state {
    color: #666;
    line-height: 1.55;
}

.empty-state { padding: 20px 0; }

.about-text,
.content-text,
[data-db="texto_experiencia"],
[data-db="texto_estudos"],
[data-db="texto_hobbies"],
[data-db="texto_habilidades"] {
    color: #444;
    font-size: 1.02rem;
    line-height: 1.7;
    white-space: pre-line;
}

.profile-section-block {
    border-top: 1px solid #eee;
    padding-top: 22px;
    margin-top: 22px;
}

.profile-section-block h2,
.profile-section-block h3 {
    margin-bottom: 10px;
}

.link-back {
    display: inline-block;
    margin-top: 24px;
    color: #0073b1;
    text-decoration: none;
    font-weight: 700;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.gallery-album {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-album:hover,
.gallery-album:focus {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    outline: none;
}

.image-shell {
    position: relative;
    background: linear-gradient(90deg, #eef0f3, #f7f8fa, #eef0f3);
    overflow: hidden;
}

.gallery-album .image-shell { aspect-ratio: 4 / 3; }

.image-shell img,
#lightbox-img {
    opacity: 0;
    transition: opacity 0.35s ease;
}

.image-shell img.is-loaded,
#lightbox-img.is-loaded { opacity: 1; }

.gallery-album img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.album-counter {
    position: absolute;
    top: 10px;
    right: 10px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.82);
    color: #fff;
    padding: 5px 10px;
    font-size: 0.78rem;
    font-weight: 700;
}

.album-info { padding: 14px; }

.album-info h3 {
    margin: 0 0 5px;
    font-size: 1rem;
}

.album-info p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.45;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 70px 70px 56px;
    background: rgba(0, 0, 0, 0.92);
}

.lightbox.is-open { display: flex; }

#lightbox-img {
    max-width: min(100%, 1200px);
    max-height: 82vh;
    object-fit: contain;
    border-radius: 8px;
    background: #111827;
}

.close,
.prev,
.next {
    position: absolute;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.close {
    top: 18px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 32px;
}

.prev,
.next {
    top: 50%;
    width: 48px;
    height: 48px;
    transform: translateY(-50%);
    font-size: 28px;
}

.prev { left: 18px; }
.next { right: 18px; }
.prev:disabled,
.next:disabled { opacity: 0.35; cursor: default; }

.lightbox-counter {
    position: absolute;
    bottom: 22px;
    color: #fff;
    font-weight: 700;
}

.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.exp-item {
    display: flex;
    gap: 20px;
    padding-bottom: 28px;
    border-bottom: 1px solid #eee;
}

.exp-logo img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.exp-details h3,
.exp-free-text h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.company-name {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 2px 0;
}

.exp-date {
    display: block;
    margin-bottom: 10px;
    color: #666;
    font-size: 0.86rem;
}

.exp-description ul {
    margin-left: 20px;
    color: #444;
    line-height: 1.65;
}

.exp-free-text { display: block; }

@media (max-width: 760px) {
    .navbar { justify-content: flex-end; }
    .menu-toggle { display: block; }

    .nav-links {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        gap: 0;
        background: #e9ecef;
        border-bottom: 1px solid #c7ccd1;
        padding: 8px 16px 14px;
    }

    .nav-links.active { display: flex; }
    .nav-links a { display: block; line-height: 44px; }

    .main-wrapper {
        margin-top: 76px;
        padding: 0 12px 28px;
    }

    .banner { height: 190px; }
    .profile-content { padding: 0 18px 24px; }
    .photo-area { height: 58px; }

    .profile-photo {
        top: -72px;
        width: 116px;
        height: 116px;
    }

    .gallery-grid { grid-template-columns: 1fr; }
    .lightbox { padding: 62px 12px 56px; }

    .prev,
    .next {
        top: auto;
        bottom: 18px;
        transform: none;
    }

    .lightbox-counter { bottom: 32px; }
    .exp-item { gap: 14px; }
}
