@font-face {
    font-family: 'Montserrat';
    src: url('Montserrat/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
}

@font-face {
    font-family: 'Montserrat';
    src: url('Montserrat/Montserrat-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
}

:root {
    /* Color Palette */
    --bg-color: #ffffff;
    --bg-light: #f6f8fb;
    --text-primary: #858b96;
    --text-dark: #222222;
    --accent: #1952a2;
    --border-light: #e0e5ed;
    --border-blue: #b3cdef;

    /* Typography */
    --font-body: 'Montserrat', sans-serif;
    --font-heading: 'Montserrat', sans-serif;

    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background utilities */
.bg-light {
    background-color: var(--bg-light);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
}

.section-padding {
    padding: 80px 0;
}

.center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
}

.category-header {
    border-bottom: 2px solid var(--accent);
    /* little accent */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.nav-link:hover {
    color: var(--accent);
}

/* HERO SECTION */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    width: 100%;
    align-items: center;
}

.greeting {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.name {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 800;
    color: var(--accent);
    /* Azul, conforme solicitado */
    margin-bottom: 20px;
}

.description {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    max-width: 500px;
}

.description strong {
    color: var(--text-dark);
    font-weight: 700;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 30px;
    font-size: 0.9rem;
}

.contact-link,
.location {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-link:hover {
    text-decoration: underline;
}

.social-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.hero-image-container {
    display: flex;
    justify-content: center;
    position: relative;
}

.image-wrapper-no-border {
    position: relative;
    width: 100%;
    max-width: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-floating {
    width: 95%;
    z-index: 2;
    position: relative;
}

.circular-text {
    position: absolute;
    width: 120%;
    height: auto;
    z-index: 1;
    animation: rotateText 20s linear infinite;
    opacity: 0.4;
}

@keyframes rotateText {
    100% {
        transform: rotate(360deg);
    }
}

/* TARGETED UNIFIED ALIGNMENT */
.section-layout-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    align-items: flex-start;
}

/* Headings with underline on the first part */
.section-heading {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.1;
    letter-spacing: -1px;
}

.section-heading span {
    position: relative;
    display: inline-block;
}

.section-heading span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent);
}

/* Resume Items */
.resume-item {
    position: relative;
}

.resume-item .item-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.resume-item .item-company {
    color: var(--accent);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.company-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    position: relative;
    top: -1px;
}

.resume-item .item-period {
    font-size: 0.85rem;
    color: var(--text-primary);
    display: block;
    margin-bottom: 15px;
}

.resume-item .item-subtitle {
    color: var(--accent);
    font-weight: 600;
    display: block;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.resume-item .item-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-primary);
    max-width: 700px;
}

.resume-item .item-text strong {
    color: var(--text-dark);
}

/* Formacao & Experiencia Borders */
.formacao-item {
    padding-left: 20px;
    border-left: 2px solid var(--border-light);
}

.timeline-wrapper {
    position: relative;
    padding-left: 20px;
    border-left: 1px solid var(--border-blue);
}

.timeline-item {
    margin-bottom: 45px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -24px;
    top: 5px;
    width: 9px;
    height: 9px;
    background-color: var(--accent);
    border-radius: 50%;
}

/* SKILLS SECTION */
.skills-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.skills-col {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.boxes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.skill-box {
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.skill-icon {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.skill-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
}

.soft-skills-clean {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.soft-skills-clean li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.circle-bullet {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    background-color: transparent;
}


/* PROJECTS CAROUSEL (HOME) */
.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.projects-subtitle {
    margin-top: 15px;
    color: var(--text-primary);
}

.carousel-controls {
    display: flex;
    gap: 10px;
}

.carousel-btn {
    background-color: #fff;
    border: 1px solid var(--border-light);
    color: var(--accent);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.carousel-btn:hover {
    background-color: var(--accent);
    color: white;
}

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

.categories-carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 20px 0;
    scrollbar-width: none;
}

.categories-carousel::-webkit-scrollbar {
    display: none;
}

.category-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--bg-color);
    /* Matches clean light theme design */
    height: 380px;
    display: flex;
    align-items: flex-end;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 20%, rgba(25, 82, 162, 0.95) 100%);
    z-index: 1;
    transition: var(--transition);
}

.category-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.category-card:hover .category-image {
    transform: scale(1.05);
    opacity: 0.8;
}

.category-info {
    position: relative;
    z-index: 2;
    padding: 30px 20px;
    width: 100%;
}

.category-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: white;
}

.project-count {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}


/* ==================================
   NEW - CATEGORY PAGE STYLES 
   ================================== */

/* Fixed Huge Lucas Overlay for Categories */
.large-lucas-fixed {
    position: fixed;
    bottom: -15vh;
    /* Drop him further down to anchor solidly */
    right: -5%;
    /* Let him bleed off the right screen slightly for an editorial scale */
    width: auto;
    height: 125vh;
    /* Massive absolute height, eclipses the viewport */
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    z-index: 0;
    pointer-events: none;
    /* Let clicks pass through to background */
}

.lucas-img-cutout {
    height: 100%;
    /* Spans all 125vh! */
    width: auto;
    object-fit: contain;
    filter: sepia(50%) hue-rotate(185deg) brightness(0.9) contrast(1.1);
    opacity: 0.85;
    /* Blend well without stealing text focus */
    position: relative;
    z-index: 2;
    transform-origin: bottom right;
}

.category-circular {
    position: absolute;
    top: 10%;
    right: 15%;
    width: 130vh;
    /* Scaled circular text matching the huge head profile */
    z-index: 1;
    opacity: 0.15;
}

/* Category grid restricting to the left */
.category-main-content {
    padding-top: 150px;
    /* Below the header */
    padding-bottom: 100px;
    position: relative;
    z-index: 10;
}

.category-grid-layout {
    display: grid;
    /* Main width content area / Empty right area for Lucas */
    grid-template-columns: minmax(auto, 800px) 1fr;
    gap: 40px;
}

.lucas-spacer {
    /* Reserved space */
    width: 100%;
}

/* Large Project Display List */
.large-projects-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
    width: 100%;
}

.large-project-card {
    background-color: var(--bg-color);
    border: 1px solid var(--border-light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

.large-project-card:hover {
    border-color: var(--border-blue);
    box-shadow: 0 15px 50px rgba(25, 82, 162, 0.08);
}

.lpc-image-placeholder {
    width: 100%;
    height: 350px;
    /* Huge image space */
    background-color: #ededed;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.lpc-image-placeholder img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lpc-empty-text {
    font-weight: 600;
    color: var(--text-secondary);
}

.lpc-details {
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.lpc-domain {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.lpc-link-url {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 25px;
    word-break: break-all;
}

.lpc-btn {
    align-self: flex-start;
    display: inline-block;
    padding: 10px 30px;
    background-color: var(--accent);
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition);
}

.lpc-btn:hover {
    background-color: var(--text-dark);
    transform: translateY(-2px);
}


/* FOOTER */
.footer {
    padding: 80px 0 50px;
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-light);
    position: relative;
    z-index: 10;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.footer-cta {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--accent);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 50px;
}

.social-links a {
    color: var(--text-dark);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.footer-icon {
    width: 35px;
    /* Larger icons for the footer */
    height: 35px;
}

.copyright {
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* ANIMATIONS */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 900px) {

    .section-layout-grid,
    .hero-grid,
    .skills-split-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        flex-direction: column-reverse;
        padding-top: 120px;
    }

    .hero-text {
        padding-right: 0;
    }

    .boxes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-title {
        font-size: 2rem;
    }

    .footer-cta {
        font-size: 1.4rem;
        word-break: break-all;
    }

    .social-links {
        flex-direction: column;
        gap: 15px;
    }

    /* Category page responsive */
    .category-grid-layout {
        grid-template-columns: 1fr;
    }

    .large-lucas-fixed {
        opacity: 0.1;
        /* Almost invisible on mobile to not ruin the reading */
        width: 100%;
        bottom: 0px;
        right: -30%;
        height: 100vh;
    }

    .lpc-image-placeholder {
        height: 200px;
    }
}