:root {
    --font-main: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;

    --color-bg: #ffffff;
    --color-text-main: #111111;
    --color-text-secondary: #4B5563;
    --color-primary: #111111;
    --color-border: #E5E7EB;
    --color-badge-bg: #F3F4F6;
    --color-badge-text: #374151;

    --spacing-container: 1200px;
}

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

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

.container {
    width: 100%;
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar Styles */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 16px 0;
    transition: all 0.3s ease;
}

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

.logo img {
    height: 32px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 40px;
}



.nav-links a:hover {
    color: var(--color-text-main);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-btn,
.lang-selector {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    padding: 8px;
    border-radius: 50%;
}

.icon-btn:hover,
.lang-selector:hover {
    color: var(--color-text-main);
    background-color: rgba(0, 0, 0, 0.03);
}

.lang-selector {
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    padding: 8px 12px;
    border: 1px solid transparent;
}

.lang-selector:hover {
    border-color: rgba(0, 0, 0, 0.1);
}

.btn-orcamento {
    background-color: #111111;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-orcamento:hover {
    background-color: #000000;
    transform: translateY(-1px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-main);
    cursor: pointer;
}


/* Animation Keyframes */
@keyframes slideDownBlur {
    0% {
        opacity: 0;
        transform: translateY(-20px);
        filter: blur(5px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.logo {
    opacity: 0;
    animation: slideDownBlur 0.6s ease forwards;
    animation-delay: 0.1s;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;

    /* Animation */
    opacity: 0;
    animation: slideDownBlur 0.5s ease forwards;
}

/* Staggered delays for nav links */
.nav-links a:nth-child(1) {
    animation-delay: 0.2s;
}

.nav-links a:nth-child(2) {
    animation-delay: 0.3s;
}

.nav-links a:nth-child(3) {
    animation-delay: 0.4s;
}

.nav-links a:nth-child(4) {
    animation-delay: 0.5s;
}

.nav-links a:nth-child(5) {
    animation-delay: 0.6s;
}

.nav-actions>* {
    opacity: 0;
    animation: slideDownBlur 0.5s ease forwards;
}

.nav-actions>*:nth-child(1) {
    animation-delay: 0.7s;
}

/* Theme btn */
.nav-actions>*:nth-child(2) {
    animation-delay: 0.8s;
}

/* Lang selector */
.nav-actions>*:nth-child(3) {
    animation-delay: 0.9s;
}

/* Orcamento btn */

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

    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        opacity: 0;
        animation: slideDownBlur 0.5s ease forwards;
        animation-delay: 0.3s;
    }

    .navbar-container {
        padding: 0 20px;
    }

    /* Mobile Menu Functionality */
    .navbar.nav-active .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        padding: 40px 20px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        align-items: center;
        text-align: center;
        gap: 24px;
        height: calc(100vh - 70px);
        /* Full screen minus header */
        overflow-y: auto;
    }

    .navbar.nav-active .nav-links a {
        font-size: 1.25rem;
        opacity: 0;
        animation: slideDownBlur 0.4s ease forwards;
    }

    /* Stagger delays for menu items again when opening */
    .navbar.nav-active .nav-links a:nth-child(1) {
        animation-delay: 0.1s;
    }

    .navbar.nav-active .nav-links a:nth-child(2) {
        animation-delay: 0.2s;
    }

    .navbar.nav-active .nav-links a:nth-child(3) {
        animation-delay: 0.3s;
    }

    .navbar.nav-active .nav-links a:nth-child(4) {
        animation-delay: 0.4s;
    }

    .navbar.nav-active .nav-links a:nth-child(5) {
        animation-delay: 0.5s;
    }

    /* Também mostrar actions no menu mobile (opcional) */
    .navbar.nav-active .nav-actions {
        display: flex;
        position: absolute;
        top: calc(100% + 300px);
        /* Ajustar conforme a quantidade de links */
        left: 0;
        width: 100%;
        justify-content: center;
        margin-top: 40px;
        opacity: 0;
        animation: slideDownBlur 0.5s ease forwards 0.6s;
        pointer-events: none;
        /* Simplificação: manter oculto por enquanto se overlap for ruim, ou ajustar top */
        /* Melhor não tentar forçar .nav-actions sem container pai comum no layout atual. 
           Vou deixar apenas nav-links visível e funcional. */
        display: none;
    }

    /* Burger animation to X */
    .mobile-menu-btn.active svg line:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .mobile-menu-btn.active svg line:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active svg line:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .mobile-menu-btn svg line {
        transition: transform 0.3s ease, opacity 0.3s ease;
        transform-origin: 12px 12px;
    }
}

@keyframes slideUpBlur {
    0% {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(5px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Hero Animations */
.hero .badge {
    opacity: 0;
    animation: slideUpBlur 0.6s ease forwards;
    animation-delay: 0.2s;
}

.hero h1 {
    opacity: 0;
    animation: slideUpBlur 0.6s ease forwards;
    animation-delay: 0.4s;
}

.hero p {
    opacity: 0;
    animation: slideUpBlur 0.6s ease forwards;
    animation-delay: 0.6s;
}

.hero .cta-group {
    opacity: 0;
    animation: slideUpBlur 0.6s ease forwards;
    animation-delay: 0.8s;
}

/* Scroll Animation Utilities */
.scroll-hidden {
    opacity: 0;
    /* Element triggers layout but is invisible */
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-up {
    animation: slideUpBlur 0.8s ease forwards;
}

.animate-slide-right {
    animation: slideInLeft 0.6s ease-in forwards;
}

/* Stagger delays for cards */
.sobre-cards .feature-card:nth-child(1) {
    transition-delay: 0.1s;
}

.sobre-cards .feature-card:nth-child(2) {
    transition-delay: 0.2s;
}

.sobre-cards .feature-card:nth-child(3) {
    transition-delay: 0.3s;
}

.sobre-cards .feature-card:nth-child(4) {
    transition-delay: 0.4s;
}

/* Hero Section */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
    background: radial-gradient(circle at 50% 0%, rgba(240, 240, 240, 0.4) 0%, rgba(255, 255, 255, 1) 100%);
}

.hero-content {
    max-width: 800px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--color-badge-bg);
    color: var(--color-badge-text);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.badge .icon {
    font-size: 1rem;
}

h1 {
    font-size: 4rem;
    /* 64px */
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    color: var(--color-text-main);
}

.titulo-hero {
    display: flex;
    flex-direction: column;
}

.titulo-hero-linha {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 16px;
}

.titulo-hero-em {
    font-weight: 700;
    color: var(--color-text-main);
}

h1 .highlight {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 600;
    color: #6B7280;
}

/* Override highlight color */
h1 .highlight {
    color: #52525B;
}

.hero p {
    font-size: 1.125rem;
    /* 18px */
    color: var(--color-text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 600px;
}

.cta-group {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    gap: 8px;
}

.btn-primary:hover {
    background-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
}

.btn-outline:hover {
    background-color: #F9FAFB;
    border-color: #D1D5DB;
}


/* Sobre Mim Section */
.section-sobre {
    padding: 100px 0;
    background-color: #fff;
}

.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.section-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9CA3AF;
    /* Grey-400 */
    margin-bottom: 16px;
}

.section-sobre h2 {
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--color-text-main);
}

.titulo-sobre {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.titulo-linha {
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.highlight-serif {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 600;
    color: #9CA3AF;
}

.ampersand {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 400;
    color: #111111;
    line-height: 1;
}



.section-sobre p {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.section-sobre strong {
    color: var(--color-text-main);
    font-weight: 600;
}

/* Feature Cards Grid */
.sobre-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.feature-card {
    background: #F9FAFB;
    /* Very light grey */
    padding: 32px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background: #F3F4F6;
}

.icon-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #E5E7EB;
    color: var(--color-text-main);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text-main);
}

.feature-card p {
    font-size: 0.95rem;
    /* Slightly smaller than body text */
    color: #6B7280;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Portfolio Section */
.section-portfolio {
    padding: 100px 0;
    background-color: #fff;
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 32px;
}

.portfolio-title h2 {
    font-size: 3.5rem;
    /* 56px */
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text-main);
}

.portfolio-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid #E5E7EB;
    padding: 12px 24px;
    border-radius: 100px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: #D1D5DB;
    background-color: #F9FAFB;
}

.filter-btn.active {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* Portfolio Grid - Grid Layout with JS Masonry Support */
.portfolio-grid {
    display: grid;
    /* Fixed 330px columns, filling as many as fit, centered */
    grid-template-columns: repeat(auto-fill, 330px);
    justify-content: center;
    gap: 32px;
    align-items: start;
    grid-auto-rows: 10px;
    /* Base row height for spanning */
    /* Prevents stretching height, allows custom/natural height */
}

.portfolio-item {
    background-color: #fff;
    border: 1px solid #E5E7EB;
    /* Subtle grey border */
    border-radius: 32px;
    padding: 0;
    /* Remove padding to let image touch edges */
    padding-bottom: 24px;
    /* Space for content at bottom */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    /* Light shadow for separation */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    /* Ensure image respects border radius */
}

.portfolio-item:hover {
    transform: translateY(-8px);
    border-color: #D1D5DB;
    /* Slightly darker border on hover */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Portfolio Card Entrance Animation */
@keyframes portfolioFadeUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
        filter: blur(8px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.portfolio-item.portfolio-animate {
    animation: portfolioFadeUp 0.6s ease both;
}

.item-image {
    width: 100%;
    border-radius: 0;
    /* Let card handle rounding */
    overflow: hidden;
    background-color: #F3F4F6;
    margin-bottom: 24px;
    position: relative;
    /* Context for overlay */
}

/* Remove forced aspect ratios to let image dictate height */
.item-image.portrait,
.item-image.landscape {
    aspect-ratio: auto;
}

.item-image img {
    width: 100%;
    height: auto;
    /* Maintain natural aspect ratio */
    display: block;
    transition: transform 0.5s ease;
}

/* Hover Overlay Styles */
.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: white;
    pointer-events: none;
    /* Let clicks pass through if needed, though button is outside */
}

.portfolio-item:hover .hover-overlay {
    opacity: 1;
}

.portfolio-item:hover .item-image img {
    transform: scale(1.05);
    /* Slight zoom on hover */
}

.overlay-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-bottom: 8px;
    opacity: 0.8;
}

.hover-overlay h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.hover-overlay p {
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0.9;

    /* Clamp text to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* Hide standard content info since it's now in overlay? 
   User request image showed overlay. 
   But the user code structure still has .item-content below. 
   Let's keep .item-content visible as per design reference which usually has both? 
   Actually, reference image 2 shows ONLY the image with overlay text. 
   BUT the first reference showed a white card bottom. 
   If I hide .item-content, I lose the expand button location unless I move it.
   Let's keep .item-content for now as "footer" info, but overlay adds extra detail.
*/

.item-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 24px;
    /* Added padding since parent has 0 */
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.item-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: #9CA3AF;
}

.item-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.btn-expand {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #F3F4F6;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-main);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-expand:hover {
    background-color: var(--color-primary);
    color: #fff;
    transform: rotate(45deg);
}

/* Modal Styles */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 90%;
    /* Enforce 90% width max */
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    /* Prevent vertical overflow */
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 1001;
    /* Above image */
    transition: all 0.2s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* ============================================
   SERVICOS SECTION
   ============================================ */
.section-servicos {
    padding: 100px 0;
    background-color: #FAFAFA;
}

.servicos-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.servicos-header h2 {
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-text-main);
}

.servicos-description {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

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

.servico-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #E5E7EB;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.servico-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

/* Serviços Entrance Animation */
.servicos-header.servicos-hidden,
.servico-card.servicos-hidden {
    opacity: 0;
}

.servicos-header.servicos-animate {
    animation: portfolioFadeUp 0.6s ease both;
}

.servico-card.servicos-animate {
    animation: portfolioFadeUp 0.6s ease both;
}

.servico-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #E5E7EB;
}

.servico-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.servico-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

.check-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    flex-shrink: 0;
    stroke: #6B7280;
    margin-top: 2px;
}

.servico-list li span {
    flex: 1;
}


/* Pacotes Mensais Section */
.section-pacotes {
    padding: 100px 0;
    background-color: #fff;
}

.pacotes-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.pacotes-header h2 {
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-text-main);
}

.pacotes-description {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.pacot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.pacote-card {
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    border: 1px solid #E5E7EB;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pacote-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

/* Pacotes Entrance Animation */
.pacotes-header.pacotes-hidden,
.pacote-card.pacotes-hidden {
    opacity: 0;
}

.pacotes-header.pacotes-animate {
    animation: portfolioFadeUp 0.6s ease both;
}

.pacote-card.pacotes-animate {
    animation: portfolioFadeUp 0.6s ease both;
}

/* Featured Card (Recomendado) */
.pacote-card.featured {
    background: #1F1F1F;
    border-color: #1F1F1F;
    color: #fff;
}

.pacote-card.featured .pacote-tagline {
    color: rgba(255, 255, 255, 0.7);
}

.pacote-card.featured .check-icon {
    stroke: rgba(255, 255, 255, 0.7);
}

.pacote-card.featured .pacote-features li span {
    color: rgba(255, 255, 255, 0.9);
}

.pacote-card.featured .btn-pacote {
    background: #fff;
    color: #1F1F1F;
    border-color: #fff;
}

.pacote-card.featured .btn-pacote:hover {
    background: #F3F4F6;
}

.pacote-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #1F1F1F;
    color: #fff;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pacote-card.featured .pacote-badge {
    background: #fff;
    color: #1F1F1F;
}

.pacote-header {
    margin-bottom: 24px;
}

.pacote-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.pacote-tagline {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.pacote-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
    flex-grow: 1;
}

.pacote-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

.pacote-features li span {
    flex: 1;
}

.btn-pacote {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    background: #1F1F1F;
    color: #fff;
    border: 1px solid #1F1F1F;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-pacote:hover {
    background: #000;
    transform: translateY(-2px);
}

/* CTA Banner */
.cta-banner {
    background: #1F1F1F;
    border-radius: 24px;
    padding: 48px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.cta-banner-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.cta-banner-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.btn-cta-banner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-cta-banner:hover {
    background: #fff;
    color: #1F1F1F;
    border-color: #fff;
}

.btn-cta-banner svg {
    transition: transform 0.2s ease;
}

.btn-cta-banner:hover svg {
    transform: translateX(4px);
}

/* CTA Banner Entrance Animation */
.cta-banner.cta-hidden {
    opacity: 0;
}

.cta-banner.cta-animate {
    animation: portfolioFadeUp 0.7s ease both;
}

/* Feedbacks Section */
.section-feedbacks {
    padding: 100px 0;
    background-color: #F9FAFB;
}

.feedbacks-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.feedbacks-header h2 {
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 700;
    color: var(--color-text-main);
}

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

.feedback-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    border: 1px solid #E5E7EB;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feedback-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

/* Feedbacks Entrance Animation */
.feedbacks-header.fb-hidden,
.feedback-card.fb-hidden {
    opacity: 0;
}

.feedbacks-header.fb-animate {
    animation: portfolioFadeUp 0.6s ease both;
}

.feedback-card.fb-animate {
    animation: portfolioFadeUp 0.6s ease both;
}

.feedback-quote-icon {
    position: absolute;
    top: 24px;
    right: 24px;
    opacity: 0.3;
}

.feedback-quote-icon svg {
    width: 40px;
    height: 40px;
    fill: #9CA3AF;
}

.feedback-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 20px;
}

.feedback-stars span {
    color: #1F1F1F;
    font-size: 1rem;
}

.feedback-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
    flex-grow: 1;
}

.feedback-author {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 20px;
    border-top: 1px solid #E5E7EB;
}

.author-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 4px;
}

.author-role {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.feedback-date {
    font-size: 0.75rem;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    text-align: right;
}


/* Habilidades Section */
.section-habilidades {
    padding: 100px 0;
    background-color: #fff;
}

.habilidades-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 80px;
    align-items: start;
}

.habilidades-content h2 {
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--color-text-main);
}

.habilidades-description {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 500px;
}

.skills-category {
    margin-bottom: 32px;
}

.skills-category-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9CA3AF;
    margin-bottom: 16px;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 100px;
    font-size: 0.9rem;
    color: var(--color-text-main);
    transition: all 0.2s ease;
}

.skill-tag:hover {
    background: #F9FAFB;
    border-color: #D1D5DB;
}

.skill-check {
    width: 16px;
    height: 16px;
    stroke: #6B7280;
}

/* Stats Cards */
.habilidades-stats {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stat-card {
    padding: 48px 56px;
    border-radius: 24px;
    text-align: center;
    min-width: 200px;
}

.stat-card.stat-dark {
    background: #1F1F1F;
    color: #fff;
}

.stat-card.stat-light {
    background: #F3F4F6;
    color: var(--color-text-main);
}

.stat-number {
    display: block;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    opacity: 0.7;
}

/* Habilidades Entrance Animation */
.habilidades-content.hab-hidden,
.habilidades-stats.hab-hidden {
    opacity: 0;
}

.habilidades-content.hab-animate {
    animation: portfolioFadeUp 0.6s ease both;
}

.habilidades-stats.hab-animate {
    animation: portfolioFadeUp 0.6s ease both;
}

/* Contato Section */
.section-contato {
    padding: 120px 0;
    background: #0F0F0F;
}

.contato-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.section-label-light {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
}

.section-contato h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
}

.highlight-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
}

.contato-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 48px;
}

.contato-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.contato-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contato-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.contato-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-bottom: 20px;
}

.contato-icon svg {
    stroke: rgba(255, 255, 255, 0.7);
}

.contato-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.contato-card span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: #fff;
    color: #0F0F0F;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-whatsapp:hover {
    background: #F3F4F6;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
}

.btn-whatsapp svg {
    stroke: #0F0F0F;
}


/* Footer */
.footer {
    background: #F9FAFB;
    padding: 60px 0 40px;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 32px;
}

.logo-square {
    width: 40px;
    height: 40px;
    background: #9CA3AF;
    border-radius: 4px;
}

.footer-nav {
    display: flex;
    gap: 40px;
}

.footer-nav a {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--color-text-main);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E5E7EB;
    border-radius: 50%;
    color: var(--color-text-secondary);
    transition: all 0.2s ease;
}

.footer-social a:hover {
    background: var(--color-primary);
    color: #fff;
}

.footer-social a svg {
    stroke: currentColor;
}

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

.copyright {
    font-size: 0.85rem;
    color: #9CA3AF;
}

.credits {
    font-size: 0.85rem;
    color: #9CA3AF;
}

.credits a {
    color: var(--color-text-main);
    text-decoration: none;
}

.credits a:hover {
    text-decoration: underline;
}


/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0.9;
    transition: all 0.2s ease;
    z-index: 99;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top:hover {
    opacity: 1;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}


/* Responsiveness - Mobile */
@media (max-width: 768px) {

    /* General Typography & Layout */
    h1 {
        font-size: 2.75rem;
        line-height: 1.15;
        letter-spacing: -0.02em;
    }

    /* Natural flow for Title in Mobile */
    .titulo-hero {
        display: block;
    }

    .titulo-hero-linha {
        display: inline;
        /* Make lines flow together or as blocks without flex gap issues */
    }

    /* Add space between the original 'lines' if needed, or let them flow */
    .titulo-hero-linha:first-child::after {
        content: " ";
        /* Ensure spacing between 'ideias' and 'em' if they flow */
    }



    .desk-only {
        display: none;
    }

    .cta-group {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    /* Sobre Mim Section */
    .section-sobre {
        padding: 60px 0;
        /* Reduced padding */
    }

    .sobre-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-sobre h2 {
        font-size: 2.25rem;
    }

    .sobre-cards {
        grid-template-columns: 1fr;
    }

    /* Portfolio Section */
    .portfolio-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        margin-bottom: 40px;
    }

    .portfolio-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* Strict 2 columns */
        gap: 12px;
    }

    .portfolio-item {
        /* Reset flex/width overrides */
        width: 100%;
        max-width: 100%;
        margin-bottom: 0;
        padding-bottom: 12px;
        /* Tighter bottom padding */
    }

    .item-image {
        margin-bottom: 12px;
        /* Tighter spacing */
    }

    .item-content {
        padding: 0 8px;
        /* Much smaller side padding for mobile */
    }

    .item-content h3 {
        font-size: 1rem;
        /* Smaller title font */
        line-height: 1.2;
    }

    .item-category {
        font-size: 0.65rem;
    }

    .btn-expand {
        width: 32px;
        height: 32px;
        /* Make icon smaller */
    }

    .btn-expand svg {
        width: 16px;
        height: 16px;
    }

    .portfolio-title h2 {
        font-size: 2.5rem;
    }

    /* Filters scrollable */
    .portfolio-filters {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 8px;
        flex-wrap: nowrap;
        /* Force single line scroll */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
    }

    .portfolio-filters::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        flex-shrink: 0;
        /* Prevent shrinking */
        white-space: nowrap;
    }

    /* Servicos Section */
    .section-servicos {
        padding: 60px 0;
    }

    .servicos-header h2 {
        font-size: 2.25rem;
    }

    .servic-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .servico-card {
        padding: 24px;
    }

    .servico-card h3 {
        font-size: 1.1rem;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .servico-list {
        gap: 12px;
    }

    .servico-list li {
        font-size: 0.875rem;
    }

    /* Pacotes Section */
    .section-pacotes {
        padding: 60px 0;
    }

    .pacotes-header h2 {
        font-size: 2.25rem;
    }

    .pacot-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .pacote-card {
        padding: 24px;
    }

    .pacote-card h3 {
        font-size: 1.1rem;
    }

    .pacote-features {
        gap: 10px;
    }

    .pacote-features li {
        font-size: 0.85rem;
    }

    .btn-pacote {
        padding: 12px 20px;
        font-size: 0.85rem;
    }

    /* CTA Banner Mobile */
    .cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }

    .cta-banner-content h3 {
        font-size: 1.4rem;
    }

    .cta-banner-content p {
        font-size: 0.9rem;
    }

    /* Feedbacks Section */
    .section-feedbacks {
        padding: 60px 0;
    }

    .feedbacks-header h2 {
        font-size: 2.25rem;
    }

    .feedbacks-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .feedback-card {
        padding: 24px;
    }

    .feedback-text {
        font-size: 0.9rem;
    }

    .author-info h4 {
        font-size: 0.9rem;
    }

    .feedback-date {
        font-size: 0.7rem;
    }

    /* Habilidades Section */
    .section-habilidades {
        padding: 60px 0;
    }

    .habilidades-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .habilidades-content h2 {
        font-size: 2.25rem;
    }

    .habilidades-description {
        max-width: 100%;
    }

    .skills-category {
        margin-bottom: 24px;
    }

    .skills-tags {
        gap: 8px;
    }

    .skill-tag {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .habilidades-stats {
        flex-direction: row;
        justify-content: center;
    }

    .stat-card {
        padding: 32px 40px;
        flex: 1;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    /* Contato Section */
    .section-contato {
        padding: 80px 0;
    }

    .section-contato h2 {
        font-size: 2.25rem;
    }

    .contato-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contato-card {
        padding: 24px;
        flex-direction: row;
        gap: 16px;
        text-align: left;
    }

    .contato-icon {
        margin-bottom: 0;
        width: 48px;
        height: 48px;
    }

    .contato-card h4 {
        margin-bottom: 2px;
    }

    .btn-whatsapp {
        padding: 14px 32px;
        font-size: 0.9rem;
    }

    /* Footer */
    .footer-main {
        flex-direction: column;
        gap: 32px;
    }

    .footer-nav {
        gap: 24px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .servic-grid {
        grid-template-columns: 1fr;
    }

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

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

    .habilidades-stats {
        flex-direction: column;
    }

    .contato-card {
        flex-direction: column;
        text-align: center;
    }

    .contato-icon {
        margin-bottom: 12px;
    }
}