/* ==========================================================================
   SOBRE MIM - EDITORIAL LAYOUT
   ========================================================================== */

/* =========================================
   HERO (EXACT REPLICA OF SERVICES - INVERTED)
========================================= */
.servicos-hero {
    min-height: 100vh;
    padding: 12rem 4.5rem 4rem;
    background-color: var(--color-bg-main);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.hero-content-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}

.asymmetric-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.hero-text-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-image-side {
    flex: 0 0 500px;
}

.editorial-marker {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    line-height: 18px;
    font-weight: 600;
    letter-spacing: 3.6px;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.servicos-title {
    font-family: 'Outfit', sans-serif;
    font-size: 88px;
    line-height: 96.8px;
    font-weight: 600;
    letter-spacing: -3.5px;
    margin: 0;
    color: var(--color-text-main);
}

.hero-description p {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    line-height: 32px;
    color: var(--color-text-muted);
    max-width: 800px;
    margin-top: 1.5rem;
    letter-spacing: -0.2px;
}

.hero-visual-wrapper {
    width: 100%;
    height: 75vh;
    overflow: hidden;
    border-radius: var(--radius-lg);
    position: relative;
    background-color: var(--color-bg-card);
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85) contrast(1.05);
}

.hero-visual-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: filter 0.5s var(--ease-out-expo);
}

@media (max-width: 1024px) {
    .asymmetric-hero {
        flex-direction: column-reverse;
        align-items: flex-start;
        text-align: left;
    }

    .hero-visual-wrapper {
        height: 50vh;
    }
}

/* Dynamic Animation Delays for AJAX Transitions */
body.is-ajax {
    --delay-text-1: 0.30s;
    --delay-text-2: 0.45s;
    --delay-text-3: 0.60s;
    --delay-img: 0.85s;
}

.about-intro-section {
    padding-top: 6rem;
    padding-bottom: 4rem;
}

.about-bio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .about-bio-grid {
        grid-template-columns: 4fr 6fr;
        gap: 6rem;
    }
}

.about-image-sticky {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
}

.about-image-sticky img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: var(--radius-sm);
    filter: grayscale(20%);
    transition: filter 0.5s var(--ease-out-expo);
}

.about-image-sticky img:hover {
    filter: grayscale(0%);
}

.about-typography p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.about-typography p:first-child {
    font-size: 1.5rem;
    color: var(--color-text);
    font-weight: 500;
}

.about-typography p.about-intro-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 100;
    font-size: 20px;
    line-height: 32px;
    letter-spacing: -0.2px;
    color: var(--color-text-muted);
}

.about-typography p.about-intro-text:not(:last-child) {
    margin-bottom: 1rem;
}

/* Timeline Styles */
.timeline-section {
    padding: 6rem 0;
    margin-top: 4rem;
}

.label-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 18px;
    letter-spacing: 3.6px;
    text-transform: uppercase;
    display: block;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.section-title-editorial {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 64px;
    line-height: 96.8px;
    letter-spacing: -3.5px;
    margin-top: 1rem;
    color: var(--color-text-main);
}

.timeline-header {
    margin-bottom: 4rem;
}

.timeline-list {
    display: flex;
    flex-direction: column;
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 3rem 0;
    border-top: 1px solid var(--color-border);
}

@media (min-width: 768px) {
    .timeline-item {
        grid-template-columns: 300px 1fr;
        gap: 3rem;
    }
}

.timeline-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.timeline-year {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--color-primary);
    letter-spacing: 0.05em;
}

.timeline-role {
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1.2;
}

.timeline-company {
    font-size: 1rem;
    color: var(--color-text);
    opacity: 0.8;
}

.timeline-desc {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Minimal Grid for Certifications (2-column layout) */
.certs-minimal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.cert-grid-card {
    border: 1px solid var(--color-border);
    padding: 2.5rem;
    border-radius: 2rem;
    background-color: var(--color-bg-card);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 2rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.cert-grid-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(26, 26, 24, 0.015);
    /* very subtle dark tint */
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
}

.cert-grid-card:hover {
    border-color: var(--color-primary) !important;
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04) !important;
}

.cert-grid-card:hover::before {
    opacity: 1;
}

.cert-card-logo {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    background-color: #FFFFFF;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    align-self: flex-start;
}

.cert-grid-card:hover .cert-card-logo {
    border-color: var(--color-primary);
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
}

.cert-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cert-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cert-card-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 1.375rem;
    line-height: 1.35;
    margin: 0 0 0.5rem 0;
    color: var(--color-text-main);
    letter-spacing: -0.01em;
}

.cert-card-issuer {
    font-family: var(--font-mono);
    font-size: 0.825rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
    display: block;
}

.cert-card-date {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    display: block;
}

.cert-card-desc {
    color: var(--color-text-muted);
    font-size: 0.925rem;
    line-height: 1.55;
    margin: 0 0 0.5rem 0;
    max-width: 90%;
}

.cert-card-code {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-text-light);
    background-color: var(--color-bg-main);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 1.25rem;
    border: 1px solid var(--color-border);
}

.cert-card-skills {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-top: auto;
    border-top: 1px dashed var(--color-border);
    padding-top: 1rem;
}

.cert-card-skills .skills-label {
    font-weight: 500;
    color: var(--color-text-main);
}

.cert-card-footer-action {
    flex-shrink: 0;
    margin-left: auto;
    color: var(--color-text-light);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.cert-card-footer-action svg {
    width: 22px;
    height: 22px;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cert-grid-card:hover .cert-card-footer-action {
    color: var(--color-primary);
}

.cert-grid-card:hover .cert-card-footer-action svg {
    transform: translate(3px, -3px);
}

.cert-pdf-container {
    width: 100%;
    height: 500px;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--color-border);
    margin-top: 1.5rem;
    background: #fdfdfd;
}

.download-link {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 500;
}

/* Center lone last card in a 2-column grid */
.certs-minimal-grid .cert-grid-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 1rem);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

@media (max-width: 992px) {
    .certs-minimal-grid {
        grid-template-columns: 1fr;
    }

    /* Reset when single column */
    .certs-minimal-grid .cert-grid-card:last-child:nth-child(odd) {
        grid-column: auto;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .cert-grid-card {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem;
    }

    .cert-card-footer-action {
        bottom: 2rem;
        right: 2rem;
    }
}

/* Skills Grid Editorial (2 columns on desktop/tablet, 1 column on mobile) */
.skills-grid-editorial {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 4rem;
}

.skills-category-editorial {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    margin-bottom: 0;
}

.skills-category-editorial:first-child {
    padding-top: 0;
}

.skills-category-editorial:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

@media (min-width: 768px) {
    .skills-grid-editorial {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-category-editorial {
        border-bottom: none;
        border-right: none;
        padding-top: 4rem;
        padding-bottom: 5.5rem;
    }

    /* Left column vertical border */
    .skills-category-editorial:nth-child(odd) {
        border-right: 1px solid rgba(0, 0, 0, 0.1);
        padding-left: 0;
        padding-right: 4rem;
    }

    /* Right column padding adjustment */
    .skills-category-editorial:nth-child(even) {
        padding-left: 4rem;
        padding-right: 0;
    }

    /* All rows except the last row get border-bottom */
    .skills-category-editorial:nth-last-child(n+3) {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    /* First row padding-top: 0 */
    .skills-category-editorial:nth-child(1),
    .skills-category-editorial:nth-child(2) {
        padding-top: 0;
    }
}

/* Accordion Panel for Extra Skills */
.skills-extra-panel {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease;
}

.skills-extra-panel .skills-grid-editorial {
    margin-top: 0;
}

/* Divider line on top of extra grid on desktop when expanded */
@media (min-width: 768px) {

    .skills-extra-panel .skills-category-editorial:nth-child(1),
    .skills-extra-panel .skills-category-editorial:nth-child(2) {
        padding-top: 5.5rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    /* Keep last elements of the expanded accordion neat at the bottom */
    .skills-extra-panel .skills-category-editorial:nth-last-child(1),
    .skills-extra-panel .skills-category-editorial:nth-last-child(2) {
        padding-bottom: 0;
    }
}

/* Toggle Button Container */
.skills-toggle-container {
    display: flex;
    justify-content: center;
    margin-top: 5rem;
}

/* Luxury Brutalist Toggle Button */
.skills-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
    background: transparent;
    border: 1px solid var(--color-text-main);
    color: var(--color-text-main);
    padding: 1.2rem 2.8rem;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2rem;
    transition: background-color 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        color 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.skills-toggle-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-text-main);
    transform: translateY(100%);
    border-radius: 2rem;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -1;
}

.skills-toggle-btn:hover {
    color: var(--color-bg-main);
    background-color: var(--color-text-main);
    border-color: var(--color-text-main);
}

.skills-toggle-btn:hover::after {
    transform: translateY(0);
}

.skills-toggle-btn .toggle-arrow {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Rotation of arrow when expanded */
.skills-toggle-btn[aria-expanded="true"] .toggle-arrow {
    transform: rotate(180deg);
}


/* Skills & Languages Split */
.skills-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-top: 4rem;
}

@media (min-width: 1024px) {
    .skills-split {
        grid-template-columns: 1fr 1fr;
        gap: 6rem;
    }
}

.skills-category {
    margin-bottom: 3rem;
}

.skills-category-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    color: var(--color-text);
    opacity: 0.95;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.skills-category-title svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    opacity: 1;
}

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

.skill-tag {
    padding: 0.6rem 1.4rem;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-tag:hover {
    background: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
    transform: translateY(-2px);
}

.skill-tag-pill {
    border-radius: 100px;
    padding: 0.6rem 1.4rem;
}

/* --- Languages & Interests --- */
.skills-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: 4rem;
}

.languages-column {
    padding-right: 3rem;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.interests-column {
    padding-left: 3rem;
}

.lang-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.lang-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-text);
}

.lang-level {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1;
}

.lang-item-interactive {
    cursor: pointer;
    transition: border-bottom-color 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.lang-item-interactive:hover {
    border-bottom-color: #000;
}

.lang-item-interactive:hover .lang-level {
    color: var(--color-text);
}

.lang-level-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cert-arrow-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: var(--color-text);
    opacity: 0.3;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.lang-item-interactive:hover .cert-arrow-btn {
    opacity: 1;
    transform: translate(4px, -4px) scale(1.1);
}

/* --- Modal Styles --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0.6s step-end;
}

.modal.active {
    visibility: visible;
    pointer-events: auto;
    transition: visibility 0s step-start;
}

.modal-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    opacity: 0;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        backdrop-filter 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        -webkit-backdrop-filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.active .modal-backdrop {
    opacity: 1;
    background-color: transparent;
    /* No color overlay, completely pristine blur */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.modal-container {
    position: relative;
    width: 95%;
    max-width: 520px;
    background: #1A1A18;
    /* Black luxury background matching the dark theme */
    border: 3px solid rgba(255, 255, 255, 0.08);
    /* Heavy luxury thick but subtle border */
    padding: 3rem 2rem 2rem 2rem;
    border-radius: 2.5rem;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.92) translateY(40px);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.active .modal-container {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.modal-content {
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
        opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.modal.active .modal-content {
    opacity: 1;
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    /* Transparent white */
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    /* White close icon */
    z-index: 10;
    pointer-events: auto;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.modal-close:hover {
    background: #FFFFFF;
    /* White background on hover */
    color: #1A1A18;
    /* Black icon on hover */
    border-color: #FFFFFF;
    transform: rotate(90deg);
}

.cert-header-modal {
    margin-bottom: 2rem;
}

.cert-header-modal h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #FFFFFF;
    /* White title */
}

.cert-header-modal p {
    color: rgba(255, 255, 255, 0.55);
    /* White subtext */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
}

.cert-image-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    aspect-ratio: 0.707;
    /* A4 Portrait ratio */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 1.5rem;
    border: none;
    /* Border removed for seamless look */
}

.cert-img-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none !important;
}

.modal-actions {
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .modal-container {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 992px) {
    .skills-split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .languages-column {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        padding-bottom: 3rem;
    }

    .interests-column {
        padding-left: 0;
    }
}

/* Testimonials / Recommendations */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 4rem;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.testimonial-card {
    background-color: #ffffff;
    border-radius: 2.5rem;
    position: relative;
    display: flex;
    overflow: hidden;
    height: 600px;
    border: 1px solid var(--color-border);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.testimonial-card:hover {
    border-color: #000;
    transition: all 0.1s ease-out;
}

.testimonial-content {
    flex: 1;
    padding: 6rem 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #ffffff;
    position: relative;
}

.testimonial-content::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background-color: var(--color-border);
    transition: background-color 0.3s ease;
    opacity: 0.5;
}

.testimonial-card:hover .testimonial-content::after {
    background-color: #000;
    opacity: 1;
}

.testimonial-visual {
    flex: 0 0 42%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 4rem;
    overflow: hidden;
}

/* Quote icon removed */

.testimonial-text {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #1a1a1a;
    margin-bottom: 2rem;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.org-logo {
    width: 100%;
    height: 100%;
    max-width: 350px;
    /* Increased max size */
    object-fit: contain;
    filter: none;
    opacity: 1;
    transition: transform 0.6s var(--ease-out-expo);
}

/* Removed hover expansion */

.author-info {
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
}

.author-name {
    font-weight: 600;
    font-size: 1.25rem;
    color: #1a1a1a;
}

.author-meta {
    font-size: 0.95rem;
    color: #666666;
    margin-top: 0.25rem;
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .testimonial-content {
        padding: 3rem;
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        flex-direction: column;
        height: 100%;
    }

    .testimonial-content::after {
        display: none;
    }

    .testimonial-visual {
        flex: 0 0 200px;
        border-left: none;
        border-top: 1px solid var(--color-border);
        padding: 2rem;
    }

    .quote-icon {
        left: 2rem;
    }
}

/* Recommendations Carousel */
.recommendations-carousel {
    position: relative;
    width: 100%;
    margin-top: 4rem;
    overflow: hidden;
}

.carousel-track-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    width: 100%;
    will-change: transform;
    backface-visibility: hidden;
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    opacity: 0.15;
    transform: scale(0.96);
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.carousel-nav {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.carousel-btn:hover {
    border-color: var(--color-text-main);
    background-color: var(--color-text-main);
    color: var(--color-bg-main);
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
}

.carousel-indicators {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background-color: var(--color-border);
    transition: all 0.3s ease;
    cursor: pointer;
}

.indicator.active {
    background-color: var(--color-primary);
    width: 24px;
}

/* Project Directory Cards (Shared with Projects Page) */
.dir-project-item {
    display: flex;
    align-items: center;
    padding: 2rem;
    border: 1px solid var(--color-border);
    border-radius: 2rem;
    background-color: transparent;
    text-decoration: none;
    color: var(--color-text-main);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    gap: 2.5rem;
    margin-bottom: 1.5rem;
}

.projects-list .dir-project-item:hover {
    border-color: #000 !important;
    background-color: rgba(0, 0, 0, 0.03) !important;
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.1s ease-out;
}

.dir-thumb {
    width: 240px;
    height: 160px;
    border-radius: 1.25rem;
    overflow: hidden;
    flex-shrink: 0;
}

.dir-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dir-project-item:hover .dir-thumb img {
    transform: scale(1.05);
}

.dir-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dir-title {
    font-size: 1.75rem;
    font-weight: 500;
    margin: 0;
    letter-spacing: -0.02em;
}

.dir-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dir-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dir-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: 2rem;
    color: var(--color-text-muted);
}

.dir-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.5;
}

.dir-year {
    font-family: var(--font-secondary);
    font-size: 1.125rem;
    color: var(--color-text-muted);
    width: 60px;
    text-align: right;
}

.dir-action {
    width: 32px;
    display: flex;
    justify-content: flex-end;
}

.dir-action svg {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

.dir-project-item:hover .dir-action svg {
    transform: translateX(5px);
}

@media (max-width: 992px) {
    .dir-project-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .dir-thumb {
        width: 100%;
        height: 220px;
    }

    .dir-year,
    .dir-action {
        display: none;
    }
}

/* =========================================
   SECTION DIVIDER
========================================= */
.section-divider {
    border: 0;
    border-top: 1px solid var(--color-border);
    margin: 0;
    width: 100%;
}

/* =========================================
   DARK SECTION STYLES (SECTIONS 06 & 07)
========================================= */
.about-dark-section {
    background-color: #1A1A18;
    color: #FFFFFF;
    position: relative;
    padding: 100px 0 0;
    /* Padding bottom removed */
    margin: 100px 0;
    /* Add vertical space for dividers to slide under */
    z-index: 10;
}

/* Remove container lateral padding to align perfectly with grid and margins */
.about-dark-section .container {
    padding-left: 0;
    padding-right: 0;
}

/* Section Title and Markers override */
.about-dark-section .section-title-editorial {
    color: #FFFFFF;
}

.about-dark-section .label-text {
    color: rgba(255, 255, 255, 0.4);
}

.about-dark-section .skills-category-title {
    color: #FFFFFF;
}

/* Skills list grid borders override */
.about-dark-section .skills-category-editorial {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.about-dark-section .skills-extra-panel .skills-category-editorial:last-child {
    border-bottom: none;
    /* Remove bottom border on mobile for the last category of the expanded panel */
}

/* Ensure the last item of the first grid maintains its padding on mobile so it doesn't overlap the border */
@media (max-width: 768px) {
    .about-dark-section .skills-grid-editorial:not(.skills-extra-panel .skills-grid-editorial) .skills-category-editorial:last-child {
        padding-bottom: 2.5rem;
    }

    /* Ensure the first item of the expanded panel has top padding on mobile */
    .skills-extra-panel .skills-category-editorial:first-child {
        padding-top: 2.5rem;
    }
}

@media (min-width: 768px) {
    .about-dark-section .skills-category-editorial {
        border-bottom: none;
        /* Reset global border-bottom on desktop first */
    }

    .about-dark-section .skills-category-editorial:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }

    .about-dark-section .skills-category-editorial:nth-last-child(n+3) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .about-dark-section .skills-extra-panel .skills-category-editorial:nth-child(1),
    .about-dark-section .skills-extra-panel .skills-category-editorial:nth-child(2) {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Skills Tags in Dark Section */
.about-dark-section .skill-tag {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
}

.about-dark-section .skill-tag:hover {
    background: #FFFFFF;
    color: #1A1A18;
    border-color: #FFFFFF;
}

/* Toggle Accordion Button in Dark Section */
.about-dark-section .skills-toggle-btn {
    border-color: #FFFFFF !important;
    color: #FFFFFF !important;
}

.about-dark-section .skills-toggle-btn::after {
    background-color: #FFFFFF !important;
}

.about-dark-section .skills-toggle-btn:hover {
    color: #1A1A18 !important;
    background-color: #FFFFFF !important;
    border-color: #FFFFFF !important;
}

/* Split Column border in Dark Section */
.about-dark-section .languages-column {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 1023px) {
    .about-dark-section .languages-column {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-right: 0;
        padding-bottom: 3rem;
        margin-bottom: 3rem;
    }
}

/* Language Items in Dark Section */
.about-dark-section .lang-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.about-dark-section .lang-name {
    color: #FFFFFF;
}

.about-dark-section .lang-level {
    color: rgba(255, 255, 255, 0.5);
}

.about-dark-section .lang-item-interactive:hover {
    border-bottom-color: #FFFFFF;
}

.about-dark-section .lang-item-interactive:hover .lang-level {
    color: #FFFFFF;
}

.about-dark-section .cert-arrow-btn {
    color: #FFFFFF;
}

/* Subtle line separator inside dark block */
.about-dark-section .section-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================================
   SHAPE DIVIDERS CONFIGURATION (LANDING PAGE PARITY)
========================================= */
.about-dark-section .section-divider-top,
.about-dark-section .section-divider-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    pointer-events: none;
}

.about-dark-section .section-divider-top {
    top: -99px;
    z-index: 1;
    transform: rotate(180deg);
    /* scaleX(-1) removed to invert left/right wave orientation */
    color: #1A1A18;
}

.about-dark-section .section-divider-bottom {
    bottom: -99px;
    z-index: 1;
    color: #1A1A18;
    transform: none;
    /* scaleX(-1) removed to invert left/right wave orientation */
}

.about-dark-section .section-divider-top svg,
.about-dark-section .section-divider-bottom svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

/* =========================================
   SECTION 09: CIVIC AND VOLUNTEERING TABS SYSTEM
========================================= */
.civic-tabs-nav {
    display: flex;
    gap: 2rem;
    margin-top: 3.5rem;
    border-bottom: 1px solid var(--color-border);
}

.civic-tab-btn {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-muted);
    background: none;
    border: none;
    padding: 1.5rem 0.5rem;
    cursor: pointer;
    position: relative;
    font-family: inherit;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.civic-tab-btn .tab-num {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    color: var(--color-primary);
    font-weight: 500;
}

.civic-tab-btn:hover {
    color: var(--color-text-main);
}

.civic-tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-text-main);
    transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.civic-tab-btn.active {
    color: var(--color-text-main);
}

.civic-tab-btn.active::after {
    width: 100%;
}

.civic-cover-wrapper {
    width: 100%;
    height: 680px;
    border-radius: 2.5rem;
    overflow: hidden;
    margin-top: 3rem;
    position: relative;
    border: 1px solid var(--color-border);
    background-color: #f7f7f7;
}

.civic-cover-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1s cubic-bezier(0.25, 1, 0.3, 1), transform 1.4s cubic-bezier(0.25, 1, 0.3, 1);
    z-index: 1;
}

.civic-cover-media img,
.civic-cover-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}

.civic-cover-media.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.civic-cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.35));
    pointer-events: none;
}

/* Setas de Navegação Transparentes */
.civic-carousel-arrow {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.civic-carousel-arrow.prev {
    left: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0));
}

.civic-carousel-arrow.next {
    right: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0));
}

.civic-carousel-arrow svg {
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.3s ease;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.35));
}

.civic-carousel-arrow:hover {
    color: #ffffff;
}

.civic-carousel-arrow.prev:hover svg {
    transform: translateX(-5px);
}

.civic-carousel-arrow.next:hover svg {
    transform: translateX(5px);
}

/* Indicadores de Progresso (Dots) */
.civic-carousel-dots {
    position: absolute;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.25);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.civic-carousel-dot {
    width: 20px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.35);
    border: none;
    padding: 0;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.civic-carousel-dot:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

.civic-carousel-dot.active {
    background-color: #ffffff;
    width: 32px;
}

.civic-split-panel {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 4rem;
    margin-top: 4rem;
    align-items: stretch;
}

.civic-menu-col {
    border-right: 1px solid var(--color-border);
    padding-right: 3rem;
}

.civic-menu-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    font-weight: 600;
}

.civic-menu-list {
    display: none;
    flex-direction: column;
    gap: 1rem;
}

.civic-menu-list.active {
    display: flex;
    animation: fadeIn 0.4s ease forwards;
}

.civic-menu-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: none;
    border: 1px solid var(--color-border);
    padding: 1.5rem 2rem;
    border-radius: 1.5rem;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.civic-menu-item:hover {
    color: var(--color-text-main);
    border-color: rgba(0, 0, 0, 0.25);
    background-color: rgba(0, 0, 0, 0.01);
}

.civic-menu-item.active {
    color: var(--color-text-main);
    border-color: #000;
    background-color: rgba(0, 0, 0, 0.03);
    font-weight: 600;
}

.civic-menu-item .item-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-border);
    transition: all 0.3s ease;
}

.civic-menu-item.active .item-dot {
    background-color: var(--color-primary);
}

.civic-details-col {
    min-height: 430px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.civic-detail-content {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.civic-detail-content.active {
    display: block;
    animation: slideUpFade 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.detail-header {
    margin-bottom: 2rem;
}

.detail-year {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
    display: block;
    margin-bottom: 0.5rem;
}

.detail-title {
    font-size: 1.85rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

.detail-org {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-primary);
}

.detail-desc {
    font-size: 1.12rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.detail-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.detail-skills .skill-tag {
    background-color: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    padding: 0.45rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-main);
    transition: all 0.3s ease;
}

.civic-detail-content:hover .skill-tag {
    border-color: rgba(0, 0, 0, 0.2);
    background-color: transparent;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade */
@media (max-width: 992px) {
    .civic-split-panel {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .civic-menu-col {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
        padding-right: 0;
        padding-bottom: 2rem;
    }

    .civic-menu-list {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .civic-menu-item {
        flex: 1 1 calc(50% - 0.5rem);
        padding: 1.25rem 1.5rem;
        font-size: 0.95rem;
    }

    .civic-cover-wrapper {
        height: 500px;
    }

    .civic-carousel-arrow {
        width: 50px;
    }

    .civic-details-col {
        min-height: 360px;
        /* Tablet stable height */
    }
}

@media (max-width: 600px) {
    .civic-details-col {
        min-height: 330px;
        /* Mobile stable height */
    }

    .civic-tabs-nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    .civic-tab-btn {
        padding: 1rem 0;
        font-size: 1.1rem;
    }

    .civic-menu-item {
        flex: 1 1 100%;
    }

    .civic-cover-wrapper {
        height: 360px;
        border-radius: 1.5rem;
    }

    .civic-carousel-arrow {
        width: 40px;
    }

    .civic-carousel-dots {
        bottom: 1rem;
        padding: 0.4rem 0.8rem;
    }

    .civic-carousel-dot {
        width: 12px;
    }

    .civic-carousel-dot.active {
        width: 20px;
    }

    .detail-title {
        font-size: 1.5rem;
    }

    .detail-desc {
        font-size: 1.02rem;
        margin-bottom: 1rem;
    }
}

/* Premium Brutalist-Lux Certificate/Diploma Button in Civic/Volunteering Details */
.civic-cert-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    background: transparent;
    border: 1.5px solid var(--color-text-main);
    border-radius: var(--radius-full);
    /* Rounded corners */
    padding: 0.85rem 2.2rem;
    color: var(--color-text-main);
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    outline: none;
    position: relative;
}

.civic-cert-btn svg {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.civic-cert-btn:hover {
    background-color: var(--color-text-main);
    color: var(--color-bg-main);
    border-color: var(--color-text-main);
    transform: translateY(-2px);
}

.civic-cert-btn:hover svg {
    transform: translate(3px, -3px) scale(1.15);
}

/* --- Light and Horizontal (Landscape) Modal Customization --- */
.modal-light .modal-container {
    background: #FFFFFF;
    border: 3px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.modal-light .modal-close {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1A1A18;
}

.modal-light .modal-close:hover {
    background: #1A1A18;
    color: #FFFFFF;
    border-color: #1A1A18;
}

.modal-light .cert-header-modal h3 {
    color: #1A1A18;
}

.modal-light .cert-header-modal p {
    color: rgba(0, 0, 0, 0.55);
}

/* Horizontal / Landscape Layout configuration */
.modal-horizontal .modal-container {
    max-width: 820px;
    /* Wider for landscape certificates */
    padding: 3.5rem 2.5rem 2.5rem 2.5rem;
    border-radius: 1.5rem;
    /* Clean, slightly sharper corners */
}

.modal-horizontal .cert-image-container {
    aspect-ratio: 1.414;
    /* A4 Landscape ratio (1 / 0.707) */
    background: rgba(0, 0, 0, 0.02);
}

/* ==========================================================================
   SECTION 10: ABOUT PAGE FINAL CTA
   ========================================================================== */
.container-large {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-cta-section {
    padding: 100px 0 !important;
    background-color: var(--color-bg-main);
    border-bottom: none !important;
}

.about-cta-container {
    position: relative;
    width: 100%;
    min-height: 45rem;
    /* Tall, premium cinematic look matching projects footer height (720px) */
    overflow: hidden;
    border-radius: var(--radius-lg);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #000;
    padding: 4rem 2rem;
}

.about-cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.about-cta-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 75%);
    pointer-events: none;
    z-index: 1;
}

.about-cta-bg .bg-video-full,
.about-cta-bg .bg-img-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.about-cta-content {
    position: relative;
    z-index: 2;
    color: #FFFFFF;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-cta-content .cta-subtitle {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-weight: 700;
    color: #FFFFFF;
    opacity: 0.8;
}

.about-cta-content .cta-title {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    line-height: 1.1;
    letter-spacing: -0.05em;
    margin: 1.5rem 0 3rem;
    font-weight: 700;
    color: #FFFFFF;
}

.about-cta-actions {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

/* Primary Main CTA Button (Ver Projetos) */
.about-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1.25rem 3.5rem;
    border-radius: var(--radius-full);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.about-cta-btn svg {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-wrapper {
    display: inline-block;
}

/* White to Black Button (Ver Projetos) */
.btn-white-to-black {
    background-color: #FFFFFF;
    color: #000000;
    border-radius: var(--radius-full);
    padding: 0.85rem 2.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    will-change: transform, background-color, color;
    text-decoration: none;
}

.btn-white-to-black.btn-xl {
    padding: 1.25rem 3.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.btn-white-to-black::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background-color: #000000;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    will-change: transform;
}

.btn-wrapper:hover .btn-white-to-black {
    color: #FFFFFF;
    background-color: #000000;
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn-wrapper:hover .btn-white-to-black::before {
    transform: scaleX(1);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn-white-to-black .icon-draw {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-wrapper:hover .btn-white-to-black .icon-draw {
    transform: translateX(8px) rotate(15deg);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Secondary Button (Entrar em Contacto) */
.about-cta-btn.secondary {
    background-color: rgba(255, 255, 255, 0.03);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.about-cta-btn.secondary svg {
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.about-cta-btn.secondary:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: #FFFFFF;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.about-cta-btn.secondary:hover svg {
    transform: translateX(6px);
}

@media (max-width: 768px) {
    .about-cta-section {
        padding: 60px 0 !important;
    }

    .about-cta-container {
        min-height: 35rem;
        /* Scaled down height on mobile */
        padding: 5rem 1.5rem;
    }

    .about-cta-actions {
        flex-direction: column;
        width: 100%;
        gap: 1.2rem;
    }

    .about-cta-actions .btn-wrapper {
        width: 100%;
    }

    .about-cta-actions .btn,
    .about-cta-actions .btn-white-to-black {
        width: 100%;
        justify-content: center;
    }

    .about-cta-btn {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================
   EDUCATION TIMELINE
========================================= */
.education-timeline-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
    padding-bottom: 3rem;
}

@media (min-width: 768px) {
    .education-timeline-item {
        grid-template-columns: 200px 1fr;
        gap: 4rem;
    }
}

.timeline-logo {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.education-logo-img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    /* Sem fundo, border ou hover */
}

.timeline-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.education-desc {
    margin-top: 0.5rem;
}

.education-desc p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Button style from Landing Page */
.education-cert-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-main);
    transition: gap 0.4s ease;
    width: max-content;
    position: relative;
    padding-bottom: 8px;
    text-decoration: none;
}

.education-cert-btn::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-text-main);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.education-cert-btn:hover::after {
    width: 100%;
}

.education-cert-btn .btn-text {
    position: relative;
    display: inline-block;
}

.education-cert-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.4s ease;
    display: block;
}

.education-cert-btn:hover {
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .education-logo-img {
        width: 150px;
        height: 150px;
    }
}

/* =========================================
   WORK TIMELINE (REVERSED)
========================================= */
.work-timeline-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
    padding-bottom: 3rem;
}

@media (min-width: 768px) {
    .work-timeline-item {
        /* Inverted: content left, logo right */
        grid-template-columns: 1fr 200px;
        gap: 4rem;
    }
}

.work-logo-img {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .work-logo-img {
        width: 150px;
        height: 150px;
    }

    .work-timeline-item {
        /* On mobile, usually logo is on top or bottom. We'll use CSS order if we want logo top */
        display: flex;
        flex-direction: column-reverse;
    }

    .work-timeline-item .timeline-logo {
        margin-bottom: 1rem;
    }
}

/* ==========================================================================
   GLOBAL RESPONSIVENESS FOR SOBRE PAGE
   ========================================================================== */

@media (max-width: 1024px) {

    /* 1. Hero Section */
    .servicos-hero {
        padding: 8rem 2.5rem 4rem;
        /* Top padding increased to avoid overlap with menu */
        min-height: auto;
    }

    .asymmetric-hero {
        flex-direction: column !important;
        gap: 3rem;
    }

    .hero-text-side {
        padding-right: 0 !important;
        width: 100%;
    }

    .hero-image-side {
        width: 100%;
        margin-top: 2rem;
    }

    .hero-visual-wrapper {
        height: 50vh !important;
        width: 100%;
    }

    .servicos-title {
        font-size: clamp(3rem, 7vw, 4rem) !important;
        line-height: 1.1 !important;
    }

    /* 2. Intro Section */
    .about-intro-section>div {
        flex-direction: column !important;
        gap: 3rem !important;
    }

    .about-typography {
        padding-left: 0 !important;
        flex: 1 1 auto !important;
    }

    .about-intro-section img {
        width: 100% !important;
        max-width: 100% !important;
        aspect-ratio: auto !important;
        flex: 1 1 auto !important;
    }

    /* 3. Core Values Bento */
    .core-values-grid {
        grid-template-columns: 1fr;
    }

    /* 4. Stats grid */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {

    /* Mobile Specifics */
    .servicos-hero {
        padding: 9.125rem 1.5rem 3rem;
        /* Just enough to clear the logo (6rem top + 3.125rem height) */
    }

    /* Exact 2rem gap between the logo bottom and the first text element */
    .servicos-hero .editorial-marker {
        margin-top: 2rem;
    }

    .servicos-title {
        font-size: clamp(2.5rem, 10vw, 3rem) !important;
    }

    .container-large {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

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

    .timeline-header {
        margin-bottom: 0 !important;
    }

    .section-title-editorial {
        margin-top: 0 !important;
        font-size: clamp(2.2rem, 8vw, 3rem);
    }

    /* Prevent modal title from overlapping the close button */
    .cert-header-modal {
        padding-right: 3rem;
    }

    /* Global 24px lateral padding for ALL sections (except hero) */
    main>section:not(.servicos-hero):not(.about-dark-section):not(.civic-participation-section),
    main>section:not(.servicos-hero) .container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    /* Override inline paddings for mobile */
    .about-intro-section {
        padding-top: 100px !important;
        padding-bottom: 50px !important;
    }

    .timeline-section,
    .certifications-section,
    .certifications-gallery-section,
    .languages-soft-skills-section {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }

    .civic-participation-section {
        padding-top: 150px !important;
        padding-bottom: 150px !important;
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }

    .about-cta-section {
        padding-top: 50px !important;
        padding-bottom: 150px !important;
        border: none !important;
        box-shadow: none !important;
        outline: none !important;
        position: relative !important;
        z-index: 10 !important;
    }

    .about-cta-container {
        border: none !important;
        box-shadow: none !important;
        outline: none !important;
        margin-bottom: 0 !important;
    }

    /* Fix inline children that use hard-coded left/right padding — reset on mobile */
    .about-intro-section>div,
    .about-intro-section .about-typography {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Force remove any phantom lines between CTA and Footer */
main {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.site-footer {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}