/*=============== PORTFÓLIO 3E ENGENHARIA - CSS ===============*/

/*=============== CSS VARIABLES ===============*/
:root {
    /*========== Colors - Nova Identidade Visual 3E Modernizada ==========*/
    --primary-color: #0F172A;      /* Slate 900 - Profissionalismo moderno */
    --primary-color-rgb: 15, 23, 42; /* Valores RGB do primary-color */
    --secondary-color: #0EA5E9;    /* Sky 500 - Inovação vibrante */
    --secondary-color-rgb: 14, 165, 233; /* Valores RGB do secondary-color */
    --accent-color: #F59E0B;       /* Amber 500 - Energia moderna */
    --accent-color-rgb: 245, 158, 11; /* Valores RGB do accent-color */
    --accent-light: #E2E8F0;       /* Slate 200 - Neutro elegante */
    --text-color: #1E293B;         /* Slate 800 - Texto principal */
    --text-light: #64748B;         /* Slate 500 - Texto secundário */
    --text-lighter: #94A3B8;       /* Slate 400 - Texto claro */
    --white-color: #FFFFFF;        /* White - Pureza e clareza */
    --silver-color: #E2E8F0;       /* Slate 200 - Neutro */
    --logo-blue: #0F172A;          /* Azul escuro moderno */
    --logo-teal: #0EA5E9;          /* Teal moderno */
    --logo-gold: #F59E0B;          /* Amarelo moderno */
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    --black-color: #000000;
    --success-color: #10B981;      /* Emerald 500 para sucesso */
    --warning-color: #F59E0B;      /* Amber 500 para avisos */
    --danger-color: #EF4444;       /* Red 500 para erros */
    --info-color: #3B82F6;         /* Blue 500 para informações */
    
    /*========== Blog usa a mesma paleta 3E (primary, secondary, accent) ==========*/
    
    /*========== Gradientes Modernos 3E ==========*/
    --gradient-primary: linear-gradient(135deg, #0F172A 0%, #0EA5E9 100%);
    --gradient-accent: linear-gradient(135deg, #0EA5E9 0%, #F59E0B 100%);
    --gradient-light: linear-gradient(135deg, #FFFFFF 0%, #F1F5F9 100%);
    --gradient-dark: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    --gradient-card: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    --gradient-sunset: linear-gradient(135deg, #0F172A 0%, #0EA5E9 50%, #F59E0B 100%);
    --gradient-ocean: linear-gradient(135deg, #0F172A 0%, #0EA5E9 100%);
    --gradient-logo: linear-gradient(135deg, #0F172A 0%, #0EA5E9 50%, #F59E0B 100%);
    --gradient-hero: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0EA5E9 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    
    /*========== Font and typography ==========*/
    --body-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --title-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --biggest-font-size: 3.5rem;
    --h1-font-size: 2.5rem;
    --h2-font-size: 2rem;
    --h3-font-size: 1.5rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.75rem;
    
    /*========== Font weight ==========*/
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semi-bold: 600;
    --font-bold: 700;
    --font-extra-bold: 800;
    
    /*========== Margenes Bottom ==========*/
    --mb-0-25: 0.25rem;
    --mb-0-5: 0.5rem;
    --mb-0-75: 0.75rem;
    --mb-1: 1rem;
    --mb-1-5: 1.5rem;
    --mb-2: 2rem;
    --mb-2-5: 2.5rem;
    --mb-3: 3rem;
    --mb-4: 4rem;
    --mb-5: 5rem;
    
    /*========== z index ==========*/
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;
    
    /*========== Spacing ==========*/
    --section-padding: 6rem 0;
    --container-padding: 0 2rem;
    
    /*========== Border radius ==========*/
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 2rem;
    
    /*========== Box shadow ==========*/
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --box-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --box-shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.15);
    
    /*========== Transitions ==========*/
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-smooth: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    /*========== Efeitos Modernos ==========*/
    --blur-sm: blur(4px);
    --blur-md: blur(8px);
    --blur-lg: blur(16px);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 20px rgba(14, 165, 233, 0.3);
    --shadow-glow-accent: 0 0 30px rgba(245, 158, 11, 0.4);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    margin: 0 0 var(--header-height) 0;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--white-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
}

h1, h2, h3, h4 {
    color: var(--primary-color);
    font-weight: var(--font-semi-bold);
    font-family: var(--title-font);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.section {
    padding: var(--section-padding);
}

@media screen and (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }
}

@media screen and (max-width: 576px) {
    .section {
        padding: 3rem 0;
    }
}

@media screen and (max-width: 360px) {
    .section {
        padding: 2.5rem 0;
    }
}

.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: var(--container-padding);
}

@media screen and (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media screen and (max-width: 360px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.flex {
    display: flex;
}

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

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

/*=============== HEADER & NAV ===============*/
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    background-color: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 2px 20px rgba(26, 54, 93, 0.1);
    transition: var(--transition);
}

.nav {
    height: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    color: var(--primary-color);
    font-weight: var(--font-bold);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
    text-decoration: none;
}

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

.nav__logo-svg {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav__logo-svg svg {
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

.nav__logo:hover .nav__logo-svg svg {
    transform: scale(1.05) rotate(5deg);
    filter: drop-shadow(0 4px 12px rgba(26, 54, 93, 0.2));
}

.nav__logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(26, 54, 93, 0.1);
    transition: all 0.3s ease;
}

.nav__logo:hover .nav__logo-img {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.15);
}

.nav__logo-text {
    font-weight: var(--font-bold);
    color: var(--primary-color);
}

.nav__logo:hover .nav__logo-text {
    color: var(--accent-color);
}

.nav__list {
    display: flex;
    column-gap: 2rem;
}

.nav__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: var(--small-font-size);
    color: var(--text-color);
    font-weight: var(--font-medium);
    transition: var(--transition);
    position: relative;
}

.nav__link:hover,
.nav__link.active-link {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.nav__link:hover .nav__icon {
    transform: scale(1.2) rotate(5deg);
    color: var(--accent-color);
}

.nav__link.active-link::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 1px;
}

.nav__icon {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.nav__close,
.nav__toggle {
    display: none;
}

/* Estilos para menu mobile */
@media screen and (max-width: 768px) {
    /* Overlay para o menu mobile */
    .nav__menu::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: -1;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
    }
    
    .show-menu::before {
        opacity: 1;
        visibility: visible;
    }
    
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100%;
        padding: 3rem 1.5rem;
        background-color: var(--white-color);
        box-shadow: -1px 0 4px rgba(0, 0, 0, 0.1);
        z-index: var(--z-fixed);
        transition: 0.4s;
        overflow-y: auto;
    }
    
    .nav__close {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1.5rem;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--primary-color);
        min-width: 2.75rem;
        min-height: 2.75rem;
        padding: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav__toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        cursor: pointer;
        color: var(--primary-color);
        z-index: var(--z-fixed);
        position: relative;
        min-width: 2.75rem;
        min-height: 2.75rem;
        padding: 0.5rem;
    }
    
    .nav__list {
        flex-direction: column;
        row-gap: 0.5rem;
        padding-top: 3rem;
    }
    
    .nav__link {
        font-size: var(--normal-font-size);
        padding: 0.75rem 1rem;
        min-height: 2.75rem;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    
    /* Mostrar menu */
    .show-menu {
        right: 0;
    }
}

/*=============== HOME ===============*/
.home {
    background: var(--gradient-hero);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: var(--white-color);
}

.home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(124, 58, 237, 0.05) 0%, transparent 50%);
    opacity: 0.8;
}

.home::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.home__container {
    position: relative;
    z-index: 1;
}

.home__content {
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    text-align: center;
}

.home__logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.home__logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.home__logo-container:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 50px rgba(26, 54, 93, 0.3);
}

.home__logo-svg {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.home__logo-svg svg {
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

.home__logo-container:hover .home__logo-svg svg {
    transform: scale(1.05) rotate(2deg);
    filter: drop-shadow(0 8px 20px rgba(255, 215, 0, 0.3));
}

.home__logo-text {
    text-align: center;
}

.home__brand {
    font-size: 4rem;
    font-weight: var(--font-extra-bold);
    color: var(--white-color);
    margin: 0;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.1em;
}

.home__slogan {
    font-size: 1rem;
    font-weight: var(--font-bold);
    color: var(--accent-color);
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.home__logo-img {
    max-width: 350px;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(26, 54, 93, 0.1);
    transition: all 0.3s ease;
}

.home__logo-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(26, 54, 93, 0.15);
}

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

.home__social-icon {
    width: 3rem;
    height: 3rem;
    background: var(--white-color);
    color: var(--text-color);
    border: 2px solid var(--gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
}

.home__social-icon:hover {
    background: var(--accent-color);
    color: var(--white-color);
    transform: translateY(-5px) rotate(8deg);
    box-shadow: 0 10px 25px rgba(44, 62, 80, 0.3);
    border-color: var(--accent-color);
}

.home__social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
    pointer-events: none;
}

.home__social-icon:hover::before {
    opacity: 0.4;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.4;
    }
    70% {
        transform: scale(1.1);
        opacity: 0;
    }
    100% {
        transform: scale(0.95);
        opacity: 0;
    }
}

.home__data {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Animação de entrada do título e subtítulo da home (fixos, sem digitação) */
@keyframes homeTitleFadeIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home__title {
    font-size: var(--biggest-font-size);
    margin-bottom: var(--mb-1);
    color: var(--white-color);
    font-weight: var(--font-bold);
    line-height: 1.2;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: homeTitleFadeIn 0.8s ease-out forwards;
}

.home__subtitle {
    font-size: var(--h3-font-size);
    color: var(--accent-color);
    font-weight: var(--font-medium);
    margin-bottom: var(--mb-1);
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    opacity: 0;
    animation: homeTitleFadeIn 0.6s ease-out 0.2s forwards;
}

.home__description {
    color: var(--white-color);
    margin-bottom: var(--mb-2);
    font-size: var(--normal-font-size);
    line-height: 1.6;
    text-align: center;
    max-width: 600px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    opacity: 0;
    animation: homeTitleFadeIn 0.6s ease-out 0.4s forwards;
}

@media screen and (max-width: 768px) {
    .home__data {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .home__description {
        max-width: 100%;
        font-size: var(--small-font-size);
    }
    
    .home__logo-container {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .home__logo-svg {
        width: 100px;
        height: 100px;
    }
    
    .home__brand {
        font-size: 3rem;
    }
    
    .home__slogan {
        font-size: 0.9rem;
    }
    
    .home__logo-img {
        max-width: 280px;
    }
}

@media screen and (max-width: 480px) {
    .nav__logo-svg {
        width: 40px;
        height: 40px;
    }
    
    .nav__logo-text {
        font-size: 1rem;
    }
    
    .home__logo-container {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .home__logo-svg {
        width: 80px;
        height: 80px;
    }
    
    .home__brand {
        font-size: 2.5rem;
    }
    
    .home__slogan {
        font-size: 0.8rem;
    }
    
    .home__logo-img {
        max-width: 250px;
    }
    
    .about {
        padding: 4rem 0;
    }
    
    .about__header {
        gap: 1.5rem;
    }
    
    .about__img {
        height: 300px;
    }
    
    .about__logo-img {
        width: 80px;
        height: 80px;
    }
    
    .about__intro-title {
        font-size: var(--h4-font-size);
    }
    
    .about__intro-text {
        font-size: var(--small-font-size);
    }
    
    .about__card {
        padding: 1.5rem 1rem;
    }
    
    .about__card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .about__card-title {
        font-size: var(--h4-font-size);
    }
    
    .about__card-text {
        font-size: var(--small-font-size);
    }
    
    .about__stats {
        padding: 2rem 1rem;
    }
    
    .about__stats-title {
        font-size: var(--h3-font-size);
    }
    
    .about__stat-item {
        padding: 1rem;
    }
    
    .about__stat-number {
        font-size: 2rem;
    }
    
    .about__stat-label {
        font-size: var(--normal-font-size);
    }
    
    .about__cta {
        padding: 2rem 1rem;
    }
    
    .about__cta-title {
        font-size: var(--h3-font-size);
    }
    
    .about__cta-text {
        font-size: var(--small-font-size);
    }
}

.home__scroll {
    display: none;
}

/*=============== BUTTONS ===============*/
.button {
    display: inline-flex;
    align-items: center;
    column-gap: 0.5rem;
    background: var(--gradient-primary);
    color: var(--white-color);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: var(--font-medium);
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    font-size: var(--normal-font-size);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    -webkit-backdrop-filter: var(--blur-sm);
    backdrop-filter: var(--blur-sm);
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
    z-index: 1;
    pointer-events: none;
}

.button:hover {
    background: var(--gradient-accent);
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-2xl), var(--shadow-glow);
}

.button:hover::before {
    left: 100%;
}

.button:hover .button__icon {
    transform: translateX(5px) rotate(5deg);
    transition: transform 0.3s ease;
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
    z-index: 1;
    pointer-events: none;
}

.button:hover::before {
    left: 100%;
}

.button--flex {
    display: inline-flex;
    align-items: center;
    column-gap: 0.5rem;
}

.button--small {
    padding: 0.75rem 1.5rem;
    font-size: var(--small-font-size);
}

.button--link {
    background: none;
    color: var(--accent-color);
    box-shadow: none;
    padding: 0;
}

.button--link:hover {
    background: none;
    color: var(--primary-color);
    transform: none;
    box-shadow: none;
}

.button--outline {
    background: transparent;
    border: 2px solid var(--white-color);
    color: var(--white-color);
    box-shadow: none;
}

.button--outline:hover {
    background: var(--white-color);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.button__icon {
    font-size: 1.2rem;
    transition: var(--transition);
}

.button:hover .button__icon {
    transform: translateX(0.25rem);
}

/* Estilo específico para ícone do WhatsApp */
.button .fa-whatsapp {
    color: var(--white-color);
}

.button:hover .fa-whatsapp {
    color: var(--white-color);
}

/*=============== ABOUT ===============*/
.about {
    background: var(--gradient-light);
    padding: 6rem 0;
}

.section__title {
    font-size: var(--h1-font-size);
    color: var(--primary-color);
    text-align: center;
    margin-bottom: var(--mb-1);
    font-weight: var(--font-bold);
    position: relative;
}

.section__title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section__subtitle {
    display: block;
    font-size: var(--small-font-size);
    margin-bottom: var(--mb-4);
    text-align: center;
    color: var(--text-light);
    font-weight: var(--font-medium);
}

.about__container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header da seção */
.about__header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about__image-container {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-xl);
}

.about__img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition);
}

.about__image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.9) 0%, rgba(52, 73, 94, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.about__image-container:hover .about__image-overlay {
    opacity: 1;
}

.about__logo-overlay {
    text-align: center;
}

.about__logo-img {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about__intro {
    padding: 2rem;
}

.about__intro-title {
    font-size: var(--h2-font-size);
    color: var(--primary-color);
    font-weight: var(--font-bold);
    margin-bottom: var(--mb-2);
    line-height: 1.2;
}

.about__intro-text {
    font-size: var(--normal-font-size);
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: var(--mb-2);
}

/* Cards de informações */
.about__cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.about__card {
    background: var(--white-color);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--gray-200);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.about__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.about__card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-xl);
}

.about__card:hover::before {
    transform: scaleX(1);
}

.about__card-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--mb-2);
    font-size: 2rem;
    color: var(--white-color);
    box-shadow: 0 10px 30px rgba(26, 54, 93, 0.3);
}

.about__card-title {
    font-size: var(--h3-font-size);
    color: var(--primary-color);
    font-weight: var(--font-bold);
    margin-bottom: var(--mb-1);
}

.about__card-text {
    color: var(--text-color);
    line-height: 1.6;
    font-size: var(--normal-font-size);
}

/* Estatísticas */
.about__stats {
    background: var(--gradient-card);
    padding: 4rem 2rem;
    border-radius: var(--border-radius-lg);
    margin-bottom: 4rem;
    text-align: center;
}

.about__stats-title {
    font-size: var(--h2-font-size);
    color: var(--primary-color);
    font-weight: var(--font-bold);
    margin-bottom: var(--mb-3);
}

.about__stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.about__stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.about__stat-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: var(--box-shadow-xl);
}

.about__stat-item:hover .about__stat-number {
    color: var(--accent-color);
    text-shadow: 0 0 5px rgba(44, 62, 80, 0.2);
}

.about__stat-number {
    font-size: 3rem;
    font-weight: var(--font-bold);
    color: var(--primary-color);
    margin-bottom: var(--mb-1);
    display: block;
    transition: color 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
    position: relative;
    font-variant-numeric: tabular-nums; /* Garante que os números tenham a mesma largura */
    will-change: transform, color; /* Otimiza a performance da animação */
}

/* Estilos para os contadores durante a animação */
.about__stat-number.animating {
    animation: pulse 1s infinite alternate;
}

.about__stat-number.animated {
    animation: finalPulse 0.5s ease-out;
}

@keyframes pulse {
    0% {
        color: var(--primary-color);
        text-shadow: none;
    }
    100% {
        color: var(--accent-color);
        text-shadow: 0 0 8px rgba(var(--accent-color-rgb), 0.3);
    }
}

@keyframes finalPulse {
    0% {
        transform: scale(1.1);
        color: var(--accent-color);
        text-shadow: 0 0 12px rgba(var(--accent-color-rgb), 0.5);
    }
    100% {
        transform: scale(1);
        color: var(--primary-color);
        text-shadow: 0 0 5px rgba(var(--accent-color-rgb), 0.2);
    }
}

.about__stat-number.animating {
    color: var(--accent-color);
    text-shadow: 0 0 8px rgba(44, 62, 80, 0.3);
    transform: scale(1.05);
}

.about__stat-number.animated {
    color: var(--primary-color);
    text-shadow: 1px 1px 3px rgba(44, 62, 80, 0.2);
}

.about__stat-label {
    font-size: var(--h4-font-size);
    color: var(--primary-color);
    font-weight: var(--font-bold);
    margin-bottom: var(--mb-0-5);
}

.about__stat-subtitle {
    font-size: var(--small-font-size);
    color: var(--text-light);
    font-weight: var(--font-medium);
}

/* Call to Action */
.about__cta {
    background: var(--gradient-primary);
    padding: 4rem 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    color: var(--white-color);
    box-shadow: 0 20px 40px rgba(26, 54, 93, 0.15);
}

.about__cta-title {
    font-size: var(--h2-font-size);
    font-weight: var(--font-bold);
    margin-bottom: var(--mb-2);
    color: var(--white-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.about__cta-text {
    font-size: var(--normal-font-size);
    margin-bottom: var(--mb-3);
    color: var(--white-color);
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.about__cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.about__cta-buttons .button {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-weight: var(--font-semi-bold);
}

.button--outline {
    background: transparent;
    border: 2px solid var(--white-color);
    color: var(--white-color);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.button--outline:hover {
    background: var(--white-color);
    color: var(--primary-color);
    text-shadow: none;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/*=============== SKILLS ===============*/
.skills {
    background: var(--white-color);
}

.skills__container {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

@media screen and (max-width: 768px) {
    .skills__container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.skills__content {
    background: var(--white-color);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--gray-200);
}

.skills__title {
    font-size: var(--h3-font-size);
    text-align: center;
    margin-bottom: var(--mb-2);
    color: var(--primary-color);
    font-weight: var(--font-bold);
}

.skills__box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media screen and (max-width: 576px) {
    .skills__box {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.skills__group {
    display: grid;
    gap: 1rem;
}

.skills__data {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.skills__data:hover {
    background: var(--white-color);
    transform: translateX(5px);
    box-shadow: var(--box-shadow);
}

.skills__data i {
    font-size: 1.5rem;
    color: var(--primary-color);
    min-width: 2rem;
}

.skills__name {
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    color: var(--primary-color);
}

.skills__level {
    font-size: var(--small-font-size);
    color: var(--text-light);
}

/*=============== SERVICES ===============*/
.services {
    background: var(--gradient-light);
    padding: 5rem 0;
}

.services__container {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 2.5rem;
}

.services__content {
    background: var(--white-color);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.services__content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.services__content:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(44, 62, 80, 0.15);
    border-color: var(--accent-color);
}

.services__content:hover::before {
    transform: scaleX(1);
}

.services__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    background: var(--gradient-primary);
    color: var(--white-color);
    font-size: 2.5rem;
    border-radius: 50%;
    margin: 0 auto 2rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.2);
}

.services__content:hover .services__icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(26, 54, 93, 0.4);
}

.services__title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: var(--font-bold);
    line-height: 1.3;
}

.services__button {
    color: var(--accent-color);
    font-size: var(--normal-font-size);
    display: inline-flex;
    align-items: center;
    column-gap: 0.5rem;
    cursor: pointer;
    font-weight: var(--font-medium);
    transition: all 0.3s ease;
    padding: 1rem 2rem;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: 30px;
    margin-top: 2rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.services__button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.1), transparent);
    transition: left 0.5s ease;
}

.services__button:hover {
    color: var(--white-color);
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(74, 144, 226, 0.4);
}

.services__button:hover::before {
    left: 100%;
}

.services__button-icon {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.services__button:hover .services__button-icon {
    transform: translateX(0.3rem);
}

.services__modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 54, 93, 0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem;
}

.services__modal.active-modal {
    opacity: 1;
    visibility: visible;
}

.services__modal.active-modal .services__modal-content {
    transform: scale(1);
}

.services__modal-content {
    background: var(--white-color);
    padding: 3rem;
    border-radius: 20px;
    position: relative;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    border: none;
    transform: scale(0.7) translateY(-50px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--gray-200);
}

.services__modal-content::-webkit-scrollbar {
    width: 8px;
}

.services__modal-content::-webkit-scrollbar-track {
    background: var(--gray-200);
    border-radius: 4px;
}

.services__modal-content::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

.services__modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Estilização da scrollbar para Webkit browsers */
.services__modal-content::-webkit-scrollbar {
    width: 8px;
}

.services__modal-content::-webkit-scrollbar-track {
    background: var(--gray-200);
    border-radius: 4px;
}

.services__modal-content::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

.services__modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.services__modal.active-modal .services__modal-content {
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.7) translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.services__modal-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.services__modal-image {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.services__modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.services__modal-image:hover .services__modal-img {
    transform: scale(1.05);
}

.services__modal-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: var(--font-bold);
    text-align: center;
    position: relative;
    padding-bottom: 0;
    margin-top: 0;
    padding-top: 0;
}

.services__modal-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 0;
}

.services__modal-body {
    margin-top: 2rem;
}

.services__modal-subtitle {
    font-size: 1.3rem;
    font-weight: var(--font-semibold);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.services__modal-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    border-radius: 2px;
}

.services__modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 45px;
    height: 45px;
    background: var(--white-color);
    border: 3px solid var(--gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.services__modal-close:hover {
    background: var(--danger-color);
    color: var(--white-color);
    border-color: var(--danger-color);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.services__modal-services {
    row-gap: 2rem;
    margin-top: 2.5rem;
    padding-bottom: 1rem;
}

.services__modal-service {
    display: flex;
    align-items: flex-start;
    column-gap: 1.5rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: 12px;
    border: 2px solid var(--gray-200);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInService 0.5s ease forwards;
}

.services__modal-service:nth-child(1) { animation-delay: 0.2s; }
.services__modal-service:nth-child(2) { animation-delay: 0.3s; }
.services__modal-service:nth-child(3) { animation-delay: 0.4s; }
.services__modal-service:nth-child(4) { animation-delay: 0.5s; }

@keyframes slideInService {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.services__modal-service::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent-color), var(--primary-color));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.services__modal-service:hover {
    transform: translateX(8px) translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
    background: var(--white-color);
}

.services__modal-service:hover::before {
    transform: scaleY(1);
}

.services__modal-service p {
    margin: 0;
    font-size: var(--normal-font-size);
    color: var(--text-color);
    line-height: 1.6;
    font-weight: var(--font-medium);
}

.services__modal-icon {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

/* Responsividade para modais */
@media screen and (max-width: 768px) {
    .services__modal {
        padding: 1rem;
    }
    
    .services__modal-content {
        padding: 2.5rem 2rem;
        max-width: 95%;
        max-height: 90vh;
        border-radius: 15px;
        transform: scale(0.8) translateY(-30px);
    }

    .services__modal-image {
        height: 180px;
        margin-bottom: 1.25rem;
    }
    
    .services__modal-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .services__modal-description {
        font-size: 1rem;
    }

    .services__modal-subtitle {
        font-size: 1.2rem;
    }
    
    .services__modal-close {
        top: -12px;
        right: -12px;
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .services__modal-service {
        padding: 1.25rem;
        column-gap: 1rem;
    }
    
    .services__modal-service p {
        font-size: var(--normal-font-size);
    }
    
    .services__modal-icon {
        font-size: 1.2rem;
        width: 22px;
    }
}
    
    .services__modal-title {
        font-size: var(--h3-font-size);
        margin-bottom: var(--mb-1);
    }
    
    .services__modal-close {
        top: 1rem;
        right: 1rem;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .services__modal-service {
        padding: 0.75rem;
        column-gap: 0.75rem;
    }
    
    .services__modal-service p {
        font-size: var(--small-font-size);
    }
    
    .services__modal-icon {
        font-size: 1.1rem;
        width: 20px;
    }


@media screen and (max-width: 480px) {
    .services__modal {
        padding: 0.5rem;
    }
    
    .services__modal-content {
        padding: 2rem 1.5rem;
        max-width: 98%;
        max-height: 95vh;
        border-radius: 12px;
        transform: scale(0.9) translateY(-20px);
    }
    
    .services__modal-image {
        height: 160px;
        margin-bottom: 1rem;
    }

    .services__modal-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0;
    }

    .services__modal-description {
        font-size: 0.95rem;
    }

    .services__modal-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .services__modal-close {
        top: -10px;
        right: -10px;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .services__modal-service {
        padding: 1rem;
        column-gap: 0.75rem;
    }
    
    .services__modal-service p {
        font-size: var(--small-font-size);
    }
    
    .services__modal-icon {
        font-size: 1rem;
        width: 18px;
    }
    
    .services__modal-services {
        row-gap: 1rem;
        margin-top: 1.5rem;
    }
}

/*=============== PORTFOLIO SECTION ===============*/
.portfolio {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--white-color) 0%, #f8f9fa 100%);
    position: relative;
}

.portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

/* Header da seção */
.portfolio__header {
    text-align: center;
    margin-bottom: 4rem;
}

.portfolio__description {
    max-width: 600px;
    margin: 1.5rem auto 0;
    color: var(--text-light);
    font-size: var(--normal-font-size);
    line-height: 1.6;
}

/* Carrossel */
.portfolio__carousel {
    position: relative;
    margin: 0 -1rem;
    padding: 2rem 0;
}

.portfolio-swiper {
    padding: 2rem 0;
    overflow: visible;
}

/* Cards dos projetos */
.portfolio__card {
    background: var(--white-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.portfolio__card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--gray-300);
}

/* Imagem do card */
.portfolio__card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.portfolio__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio__card:hover .portfolio__card-image img {
    transform: scale(1.05);
}

/* Overlay da imagem */
.portfolio__card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.4) 0%, transparent 60%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1.5rem;
}

.portfolio__card-category {
    background: rgba(255, 255, 255, 0.96);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: var(--font-semi-bold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.portfolio__card-category i {
    font-size: 1rem;
}

/* Conteúdo do card */
.portfolio__card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portfolio__card-header {
    margin-bottom: 1rem;
}

.portfolio__card-title {
    font-size: 1.25rem;
    font-weight: var(--font-semi-bold);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.portfolio__card-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    font-size: 0.875rem;
    font-weight: var(--font-medium);
}

.portfolio__card-location i {
    font-size: 1rem;
}

/* Descrição */
.portfolio__card-description {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

/* Destaque */
.portfolio__card-highlight {
    background: var(--gradient-accent);
    color: var(--white-color);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: var(--font-medium);
    box-shadow: 0 4px 20px rgba(var(--secondary-color-rgb), 0.35);
}

.portfolio__card-highlight i {
    font-size: 1.1rem;
}

/* Detalhes */
.portfolio__card-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.portfolio__card-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 0.5rem;
    background: var(--gray-100);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.portfolio__card-detail:hover {
    background: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
}

.portfolio__card-detail i {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.portfolio__card-detail:hover i {
    color: var(--white-color);
}

.portfolio__card-detail span {
    font-size: 0.8rem;
    font-weight: var(--font-medium);
    line-height: 1.2;
}

/* Ações */
.portfolio__card-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.portfolio__card-btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.portfolio__card-btn--primary {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 128, 128, 0.3);
}

.portfolio__card-btn--primary:hover {
    background: #4a90e2;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 128, 128, 0.4);
}

.portfolio__card-btn--secondary {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.portfolio__card-btn--secondary:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

/* Navegação do Swiper */
.portfolio-swiper-button-next,
.portfolio-swiper-button-prev {
    width: 50px;
    height: 50px;
    background: var(--white-color);
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: var(--accent-color);
    transition: all 0.3s ease;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 1;
    visibility: visible;
}

.portfolio-swiper-button-next:hover,
.portfolio-swiper-button-prev:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 128, 128, 0.4);
}

.portfolio-swiper-button-next {
    right: -25px;
}

.portfolio-swiper-button-prev {
    left: -25px;
}

.portfolio-swiper-button-next i,
.portfolio-swiper-button-prev i {
    font-size: 1.25rem;
}

/* Esconder setas padrão do Swiper no portfolio */
.portfolio-swiper .swiper-button-next::after,
.portfolio-swiper .swiper-button-prev::after {
    display: none;
}

/* Garantir que o container do Swiper tenha overflow correto */
.portfolio-swiper {
    overflow: hidden;
    position: relative;
}

/* Melhorar a aparência dos slides */
.portfolio-swiper .swiper-slide {
    height: auto;
    display: flex;
    align-items: stretch;
}

/* Garantir que os cards tenham altura consistente */
.portfolio__card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.portfolio__card-actions {
    margin-top: auto;
}

/* Paginação */
.portfolio-swiper-pagination {
    position: relative;
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.portfolio-swiper-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #e0e0e0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 1;
}

.portfolio-swiper-pagination .swiper-pagination-bullet-active {
    background: var(--accent-color);
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(0, 128, 128, 0.3);
}

/* Controles adicionais */
.portfolio__controls {
    margin-top: 3rem;
    text-align: center;
}

.portfolio__controls-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.portfolio__control-btn {
    width: 45px;
    height: 45px;
    background: var(--white-color);
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio__control-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transform: scale(1.1);
}

.portfolio__control-btn i {
    font-size: 1.1rem;
}

/* Responsividade */
@media screen and (max-width: 1400px) {
    .portfolio__card {
        margin: 0 0.5rem;
    }
}

@media screen and (max-width: 1200px) {
    .portfolio__card {
        margin: 0 0.25rem;
    }
    
    .portfolio-swiper-button-next {
        right: -15px;
        width: 45px;
        height: 45px;
    }
    
    .portfolio-swiper-button-prev {
        left: -15px;
        width: 45px;
        height: 45px;
    }
    
    .portfolio__controls-info {
        gap: 1.5rem;
    }
}

@media screen and (max-width: 992px) {
    .portfolio {
        padding: 5rem 0;
    }
    
    .portfolio__card-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .portfolio-swiper-button-next,
    .portfolio-swiper-button-prev {
        width: 42px;
        height: 42px;
    }
    
    .portfolio-swiper-button-next {
        right: -10px;
    }
    
    .portfolio-swiper-button-prev {
        left: -10px;
    }
    
    .portfolio-swiper-button-next i,
    .portfolio-swiper-button-prev i {
        font-size: 1.1rem;
    }
    

}

@media screen and (max-width: 768px) {
    .portfolio {
        padding: 4rem 0;
    }
    
    .portfolio__header {
        margin-bottom: 2.5rem;
    }
    
    .portfolio__description {
        font-size: 0.95rem;
    }
    
    .portfolio__card {
        margin: 0 0.5rem;
    }
    
    .portfolio__card-content {
        padding: 1.5rem;
    }
    
    .portfolio__card-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .portfolio__card-location {
        font-size: 0.85rem;
    }
    
    .portfolio__card-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .portfolio__card-details {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .portfolio__card-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .portfolio__card-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Esconder setas do Swiper em telas pequenas */
    .portfolio-swiper-button-next,
    .portfolio-swiper-button-prev {
        display: none !important;
    }
    
    .portfolio__controls-buttons {
        gap: 0.75rem;
    }
    
    .portfolio__control-btn {
        width: 40px;
        height: 40px;
    }
}

@media screen and (max-width: 576px) {
    .portfolio {
        padding: 3rem 0;
    }
    
    .portfolio__header {
        margin-bottom: 2rem;
    }
    
    .portfolio__title {
        font-size: 1.75rem;
    }
    
    .portfolio__subtitle {
        font-size: 1rem;
    }
    
    .portfolio__description {
        font-size: 0.9rem;
        max-width: 100%;
    }
    
    .portfolio__card {
        margin: 0 0.25rem;
    }
    
    .portfolio__card-image {
        height: 180px;
    }
    
    .portfolio__card-content {
        padding: 1.25rem;
    }
    
    .portfolio__card-title {
        font-size: 1rem;
    }
    
    .portfolio__card-location {
        font-size: 0.8rem;
    }
    
    .portfolio__card-description {
        font-size: 0.85rem;
    }
    
    .portfolio__card-highlight {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
    
    .portfolio__card-detail {
        font-size: 0.8rem;
    }
    
    .portfolio__card-btn {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
    

    
    .portfolio__control-btn {
        width: 35px;
        height: 35px;
    }
    
    .portfolio__control-btn i {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    .portfolio__card-image {
        height: 160px;
    }
    
    .portfolio__card-content {
        padding: 1rem;
    }
    
    .portfolio__card-title {
        font-size: 0.95rem;
    }
    
    .portfolio__card-description {
        font-size: 0.8rem;
    }
    
    .portfolio__card-highlight {
        padding: 0.625rem 0.875rem;
        font-size: 0.75rem;
    }
    
    .portfolio__card-btn {
        padding: 0.625rem 0.875rem;
        font-size: 0.75rem;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Melhorias visuais adicionais */
.portfolio__card {
    animation: fadeInUp 0.6s ease-out;
}

.portfolio__card:nth-child(odd) {
    animation-delay: 0.1s;
}

.portfolio__card:nth-child(even) {
    animation-delay: 0.2s;
}

.portfolio__card:nth-child(3n) {
    animation-delay: 0.3s;
}

/* Efeito de hover melhorado */
.portfolio__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.portfolio__card:hover .portfolio__card-image img {
    transform: scale(1.05);
}

/* Melhorar acessibilidade */
.portfolio__card:focus-within {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.portfolio__card-btn:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Loading state melhorado */
.portfolio__card-image img {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.portfolio__card-image img.loaded {
    opacity: 1;
}

.portfolio__card-image img:not(.loaded) {
    opacity: 0.7;
}

.portfolio__card {
    animation: fadeInUp 0.6s ease-out;
}

.portfolio__card:nth-child(1) { animation-delay: 0.1s; }
.portfolio__card:nth-child(2) { animation-delay: 0.2s; }
.portfolio__card:nth-child(3) { animation-delay: 0.3s; }
.portfolio__card:nth-child(4) { animation-delay: 0.4s; }
.portfolio__card:nth-child(5) { animation-delay: 0.5s; }
.portfolio__card:nth-child(6) { animation-delay: 0.6s; }

/* Estados de loading */
.portfolio__card-image img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio__card-image img.loaded {
    opacity: 1;
}

/* Melhorias de acessibilidade */
.portfolio__card:focus-within {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.portfolio__card-btn:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Efeitos de hover suaves */
.portfolio__card * {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/*=============== BLOG ===============*/
.blog {
    background: var(--gray-50);
    padding: 6rem 0;
    position: relative;
}

.blog::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(var(--primary-color-rgb), 0.04) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(var(--secondary-color-rgb), 0.06) 0%, transparent 50%);
    opacity: 1;
    pointer-events: none;
}

.blog__container {
    position: relative;
    z-index: 1;
}

.blog__header {
    text-align: center;
    margin-bottom: 4rem;
}

.blog__title {
    font-size: var(--h1-font-size);
    color: var(--primary-color);
    margin-bottom: var(--mb-1);
    font-weight: var(--font-bold);
    position: relative;
}

.blog__title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.blog__subtitle {
    font-size: var(--h3-font-size);
    color: var(--text-light);
    margin-bottom: var(--mb-2);
    font-weight: var(--font-medium);
}

.blog__description {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-color);
    font-size: var(--normal-font-size);
    line-height: 1.6;
}

.blog__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog__empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-light);
    font-size: var(--normal-font-size);
    padding: 3rem 2rem;
}

.blog__card {
    background: var(--white-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-smooth);
    position: relative;
    border: 1px solid var(--gray-200);
}

.blog__card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.blog__card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.blog__card:hover .blog__card-image img {
    transform: scale(1.05);
}

.blog__card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.96);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: var(--font-semi-bold);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.blog__card-content {
    padding: 1.5rem;
}

.blog__card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: var(--small-font-size);
    color: var(--text-light);
}

.blog__card-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog__card-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog__card-title {
    font-size: var(--h3-font-size);
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-weight: var(--font-bold);
    line-height: 1.3;
}

.blog__card-excerpt {
    color: var(--text-color);
    font-size: var(--normal-font-size);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.blog__card-read-time {
    font-size: var(--small-font-size);
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog__card-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: var(--font-medium);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.blog__card-link:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

/* Blog Pagination */
.blog__pagination {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog__pagination.visible {
    display: flex;
}

.blog__pagination-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.blog__pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: var(--white-color);
    color: var(--text-color);
    font-size: var(--small-font-size);
    font-weight: var(--font-semi-bold);
    cursor: pointer;
    transition: var(--transition);
}

.blog__pagination-btn:hover:not(:disabled) {
    background: var(--gray-50);
    border-color: var(--secondary-color);
    color: var(--primary-color);
}

.blog__pagination-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
}

.blog__pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.blog__pagination-pages {
    display: flex;
    gap: 0.25rem;
}

.blog__pagination-info {
    margin: 0;
    font-size: var(--small-font-size);
    color: var(--text-light);
}

@media screen and (max-width: 576px) {
    .blog__pagination-inner {
        gap: 0.375rem;
    }
    .blog__pagination-btn {
        min-width: 2.25rem;
        min-height: 2.25rem;
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    .blog__pagination-info {
        font-size: 0.75rem;
    }
}

.blog__cta {
    text-align: center;
    margin-top: 3rem;
}

.blog__cta-button {
    background: var(--gradient-primary);
    color: var(--white-color);
    padding: 1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: var(--font-medium);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-lg);
}

.blog__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-2xl);
}

/* Blog Categories */
.blog__categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.blog__category {
    background: rgba(255, 255, 255, 0.96);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: var(--font-semi-bold);
    font-size: 0.875rem;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.blog__category:hover {
    background: var(--white-color);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.blog__category.active {
    background: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

/* Blog Featured (oculto quando vazio – seção usa só título + grid) */
.blog__featured {
    background: var(--gradient-primary);
    color: var(--white-color);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.blog__featured:empty {
    display: none;
    margin: 0;
    padding: 0;
}

.blog__featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.12)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
    pointer-events: none;
}

.blog__featured-content {
    position: relative;
    z-index: 1;
}

.blog__featured-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: var(--font-bold);
    line-height: 1.25;
    color: #FFFFFF;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.blog__featured-excerpt {
    font-size: var(--normal-font-size);
    line-height: 1.7;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.98);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.blog__featured-link {
    background: var(--white-color);
    color: var(--primary-color);
    padding: 0.875rem 1.75rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: var(--font-semi-bold);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.blog__featured-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-color);
}

/* Responsive Blog */
@media screen and (max-width: 768px) {
    .blog {
        padding: 4rem 0;
    }
    
    .blog__header {
        margin-bottom: 2.5rem;
    }
    
    .blog__title {
        font-size: 1.75rem;
    }
    
    .blog__subtitle {
        font-size: 1.1rem;
    }
    
    .blog__description {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }
    
    .blog__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog__featured {
        padding: 2rem;
    }
    
    .blog__featured-title {
        font-size: 2rem;
    }
    
    .blog__categories {
        gap: 0.5rem;
    }
    
    .blog__category {
        padding: 0.5rem 1rem;
        font-size: var(--small-font-size);
    }
}

@media screen and (max-width: 576px) {
    .blog {
        padding: 3rem 0;
    }
    
    .blog__header {
        margin-bottom: 2rem;
    }
    
    .blog__title {
        font-size: 1.5rem;
    }
    
    .blog__subtitle {
        font-size: 1rem;
    }
    
    .blog__description {
        font-size: 0.9rem;
    }
    
    .blog__grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-bottom: 2rem;
    }
    
    .blog__card-image {
        height: 180px;
    }
    
    .blog__card-content {
        padding: 1.25rem;
    }
    
    .blog__card-title {
        font-size: 1.1rem;
    }
    
    .blog__card-excerpt {
        font-size: 0.9rem;
    }
    
    .blog__categories {
        margin-bottom: 2rem;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .blog__category {
        flex-shrink: 0;
        min-height: 2.75rem;
        padding: 0.5rem 0.875rem;
    }
    
    .blog__cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        min-height: 2.75rem;
    }
}

@media screen and (max-width: 360px) {
    .blog__categories {
        gap: 0.375rem;
        margin-bottom: 1.5rem;
    }
    .blog__category {
        padding: 0.4rem 0.75rem;
        font-size: 0.8125rem;
    }
}

/* Body fixo quando o modal do blog está aberto (evita rolagem do fundo) */
body.article-modal-open {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
}

/* Modal do artigo do blog */
.article-modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.article-modal.active {
    opacity: 1;
    visibility: visible;
}

.article-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(var(--primary-color-rgb), 0.85);
    cursor: pointer;
    touch-action: none;
    overflow: hidden;
}

.article-modal__content {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    background: var(--white-color);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 0;
}

.article-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.article-modal__close:hover {
    background: var(--primary-color);
    color: var(--white-color);
    transform: scale(1.05);
}

.article-modal__body {
    padding: 0;
}

.article-modal__image-wrap {
    position: relative;
    height: 240px;
    overflow: hidden;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    background: var(--gray-100);
}

.article-modal__image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.15) 100%);
    pointer-events: none;
}

.article-modal__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-modal__category {
    position: absolute;
    bottom: 1rem;
    left: 1.5rem;
    background: rgba(255, 255, 255, 0.96);
    color: var(--primary-color);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: var(--font-semi-bold);
    box-shadow: var(--shadow-md);
    z-index: 1;
}

.article-modal__header {
    padding: 1.75rem 2rem 0;
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: 0.5rem;
}

.article-modal__title {
    font-size: 1.6rem;
    font-weight: var(--font-bold);
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.article-modal__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

.article-modal__meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.article-modal__meta span + span {
    margin-left: 0.25rem;
    padding-left: 0.75rem;
    border-left: 1px solid var(--gray-300);
}

.article-modal__text {
    padding: 1.5rem 2rem 2.5rem;
    color: var(--text-color);
    font-size: 1.0625rem;
    line-height: 1.8;
    letter-spacing: 0.01em;
    max-width: 65ch;
}

.article-modal__text p {
    margin-bottom: 1.25rem;
}

.article-modal__text p:first-of-type {
    font-size: 1.1rem;
    color: var(--gray-700);
    line-height: 1.75;
}

.article-modal__text p:last-child {
    margin-bottom: 0;
}

/* Subtítulos / seções dentro do texto do artigo */
.article-modal__heading {
    font-size: 1.15rem;
    font-weight: var(--font-semi-bold);
    color: var(--primary-color);
    margin: 2rem 0 0.75rem;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid var(--gray-200);
    line-height: 1.4;
}

.article-modal__heading:first-child {
    margin-top: 0;
}

.article-modal__text h3.article-modal__heading + p {
    margin-top: 0.5rem;
}

@media screen and (max-width: 768px) {
    .article-modal__content {
        max-height: 95vh;
        width: 95%;
        margin: 1rem;
    }
    .article-modal__image-wrap {
        height: 200px;
    }
    .article-modal__header {
        padding: 1.5rem 1.5rem 0;
    }
    .article-modal__text {
        padding: 1.25rem 1.5rem 2rem;
        font-size: 1rem;
    }
    .article-modal__text p:first-of-type {
        font-size: 1.05rem;
    }
    .article-modal__heading {
        font-size: 1.1rem;
        margin-top: 1.75rem;
    }
    .article-modal__title {
        font-size: 1.35rem;
    }
    .article-modal__close {
        min-width: 2.75rem;
        min-height: 2.75rem;
        padding: 0.5rem;
    }
}

@media screen and (max-width: 576px) {
    .article-modal__content {
        width: 100%;
        max-height: 90vh;
        margin: 0.5rem;
        border-radius: 12px 12px 0 0;
    }
    .article-modal__image-wrap {
        height: 180px;
    }
    .article-modal__category {
        bottom: 0.75rem;
        left: 1rem;
        font-size: 0.75rem;
    }
    .article-modal__header,
    .article-modal__text {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    .article-modal__header {
        padding-top: 1.25rem;
    }
    .article-modal__title {
        font-size: 1.15rem;
        line-height: 1.35;
    }
    .article-modal__meta {
        flex-wrap: wrap;
        gap: 0.5rem;
        font-size: 0.8rem;
    }
    .article-modal__meta span + span {
        margin-left: 0;
        padding-left: 0.5rem;
    }
    .article-modal__text {
        font-size: 0.9375rem;
        line-height: 1.75;
        padding: 1rem 1.25rem 1.75rem;
        max-width: none;
    }
    .article-modal__text p:first-of-type {
        font-size: 1rem;
    }
    .article-modal__heading {
        font-size: 1rem;
        margin-top: 1.5rem;
    }
}

@media screen and (max-width: 360px) {
    .article-modal__content {
        margin: 0.25rem;
    }
    .article-modal__title {
        font-size: 1.05rem;
    }
}

/*=============== CONTACT ===============*/
.contact {
    background: var(--white-color);
}

.contact__container {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

@media screen and (max-width: 768px) {
    .contact__container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.contact__information {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: var(--mb-2);
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

@media screen and (max-width: 576px) {
    .contact__information {
        padding: 1.25rem;
        gap: 0.75rem;
    }
}

@media screen and (max-width: 360px) {
    .contact__information {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }
}

.contact__information:hover {
    background: var(--white-color);
    transform: translateX(5px);
    box-shadow: var(--box-shadow-lg);
}

.contact__icon {
    font-size: 2rem;
    color: var(--primary-color);
    min-width: 3rem;
}

/* Estilo específico para ícones de contato */
.contact__icon.fa-whatsapp,
.contact__icon.fa-envelope,
.contact__icon.fa-phone {
    color: var(--primary-color);
}

/* Estilo para mensagem de sucesso do formulário */
.contact__success-message {
    background-color: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    text-align: center;
    font-weight: 500;
    animation: fadeIn 0.5s ease-in-out;
    border-left: 4px solid var(--primary-color);
}

.contact__success-message i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =============== HORÁRIO DE FUNCIONAMENTO =============== */
.contact__schedule-wrap {
    flex: 1;
    min-width: 0;
}

.contact__schedule-wrap .contact__title {
    margin-bottom: 0.75rem;
}

.contact__schedule {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--white-color);
    border-radius: 10px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.contact__schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.2s ease;
}

.contact__schedule-item:last-child {
    border-bottom: none;
}

.contact__schedule-item:hover {
    background: var(--gray-50);
}

.contact__schedule-day {
    font-weight: var(--font-medium);
    color: var(--text-color);
    font-size: var(--normal-font-size);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact__schedule-day::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--secondary-color);
    border-radius: 50%;
    flex-shrink: 0;
}

.contact__schedule-time {
    font-weight: var(--font-semi-bold);
    color: var(--primary-color);
    font-size: var(--small-font-size);
    background: var(--gray-50);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    border: 1px solid var(--gray-200);
    white-space: nowrap;
    text-align: center;
}

/* =============== HIGHLIGHT FORM ANIMATION =============== */
.highlight-form {
    animation: highlight-pulse 2s ease-in-out;
    box-shadow: 0 0 20px rgba(var(--primary-color-rgb), 0.6);
    transition: box-shadow 0.3s ease;
}

@keyframes highlight-pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 rgba(var(--primary-color-rgb), 0); }
    25% { transform: scale(1.02); box-shadow: 0 0 15px rgba(var(--primary-color-rgb), 0.4); }
    50% { transform: scale(1.01); box-shadow: 0 0 20px rgba(var(--primary-color-rgb), 0.6); }
    75% { transform: scale(1.02); box-shadow: 0 0 15px rgba(var(--primary-color-rgb), 0.4); }
    100% { transform: scale(1); box-shadow: 0 0 0 rgba(var(--primary-color-rgb), 0); }
}

.contact__schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.375rem 0;
    position: relative;
}

.contact__schedule-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-300), transparent);
}

.contact__schedule-day {
    font-weight: var(--font-medium);
    color: var(--text-color);
    font-size: var(--small-font-size);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact__schedule-day::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--secondary-color);
    border-radius: 50%;
    flex-shrink: 0;
}

.contact__schedule-time {
    font-weight: var(--font-semi-bold);
    color: var(--primary-color);
    font-size: var(--small-font-size);
    background: var(--white-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--gray-200);
    min-width: 80px;
    text-align: center;
}

.contact__title {
    font-size: var(--h3-font-size);
    font-weight: var(--font-bold);
    color: var(--primary-color);
}

.contact__subtitle {
    font-size: var(--normal-font-size);
    color: var(--text-light);
    line-height: 1.5;
}

.contact__link {
    text-decoration: none;
    transition: var(--transition);
}

.contact__link:hover {
    color: var(--primary-color);
}

.contact__social {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--gray-200);
}

.contact__social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.contact__social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: var(--white-color);
    border: 2px solid var(--gray-200);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}

.contact__social-icon:hover {
    background: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-lg);
}

.contact__social-icon i {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact__form .button {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
}

.contact__form {
    background: var(--gray-50);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--gray-200);
}

@media screen and (max-width: 576px) {
    .contact__form {
        padding: 1.5rem;
    }
}

@media screen and (max-width: 360px) {
    .contact__form {
        padding: 1rem;
    }
}

.contact__inputs {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media screen and (max-width: 768px) {
    .nav__logo-img {
        width: 35px;
        height: 35px;
    }
    
    .nav__logo-text {
        font-size: 1.1rem;
    }
    
    .about__header {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about__image-container {
        order: 2;
    }
    
    .about__intro {
        order: 1;
        padding: 1rem;
    }
    
    .about__intro-title {
        font-size: var(--h3-font-size);
    }
    
    .about__cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about__card {
        padding: 2rem 1.5rem;
    }
    
    .about__card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .about__stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about__stat-item {
        padding: 1.5rem;
    }
    
    .about__stat-number {
        font-size: 2.5rem;
    }
    
    .about__cta {
        padding: 3rem 1.5rem;
    }
    
    .about__cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact__inputs {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact__form {
        padding: 1.5rem;
    }
    
    .contact__social-icons {
        gap: 0.75rem;
    }
    
    .contact__social-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
}

.contact__content {
    margin-bottom: var(--mb-1-5);
}

.contact__label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: var(--small-font-size);
    color: var(--text-light);
    font-weight: var(--font-medium);
}

.contact__input {
    width: 100%;
    padding: 1rem;
    background: var(--white-color);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-size: var(--normal-font-size);
    transition: var(--transition);
    box-sizing: border-box;
}

.contact__input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--white-color);
    box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.1);
    transform: translateY(-2px);
}

.contact__input[type="email"]:focus,
.contact__input[name="email"]:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--white-color);
    box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.1);
    transform: translateY(-2px);
}

textarea.contact__input {
    min-height: 120px;
    resize: vertical;
    font-family: var(--body-font);
}

.contact__input::placeholder {
    color: var(--text-lighter);
    font-family: var(--body-font);
}

/*=============== FOOTER ===============*/
.footer {
    background: var(--gradient-dark);
    color: var(--white-color);
    text-align: center;
    font-weight: var(--font-medium);
}

.footer__bg {
    background: var(--gradient-dark);
    padding: 2rem 0 3rem;
}

.footer__container {
    row-gap: 3rem;
}

.footer__title {
    font-size: var(--h1-font-size);
    margin-bottom: var(--mb-0-25);
    color: var(--white-color);
}

.footer__subtitle {
    font-size: var(--small-font-size);
    color: var(--gray-400);
}

.footer__links {
    display: flex;
    justify-content: center;
    column-gap: 2rem;
}

.footer__link:hover {
    color: var(--accent-light);
}

.footer__socials {
    display: flex;
    justify-content: center;
    column-gap: 1.5rem;
}

.footer__social {
    background-color: var(--white-color);
    color: var(--primary-color);
    font-size: 1.25rem;
    padding: 0;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    transition: var(--transition);
}

.footer__social:hover {
    background-color: var(--accent-light);
    color: var(--white-color);
    transform: translateY(-3px);
}

.footer__social i {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer__copy {
    font-size: var(--smaller-font-size);
    text-align: center;
    color: var(--gray-400);
    margin-top: 3rem;
}

/*=============== SCROLL UP ===============*/
.scrollup {
    position: fixed;
    right: 1rem;
    bottom: -30%;
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px rgba(0, 64, 128, 0.3);
    display: inline-flex;
    padding: 0.35rem;
    color: var(--white-color);
    font-size: 1.25rem;
    z-index: 9998;
    transition: var(--transition);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    /* Evita que o botão cause overflow horizontal no mobile */
    contain: layout style paint;
}

.scrollup:hover {
    transform: translateY(-0.25rem);
    background: var(--gradient-accent);
    box-shadow: 0 6px 20px rgba(0, 64, 128, 0.4);
}

.show-scroll {
    bottom: 3rem;
}

/* Scroll-up no mobile: dentro da viewport e safe-area para não causar espaço em branco */
@media screen and (max-width: 768px) {
    .scrollup {
        right: max(0.75rem, env(safe-area-inset-right, 0.75rem));
        bottom: -30%;
    }
    .scrollup.show-scroll {
        bottom: max(1rem, env(safe-area-inset-bottom, 1rem));
    }
}

/*=============== LOADING PAGE ===============*/
.loading {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    color: var(--text-color);
}

.loading__backdrop {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

.loading__backdrop::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="12" height="12" patternUnits="userSpaceOnUse"><path d="M 12 0 L 0 0 0 12" fill="none" stroke="rgba(255,255,255,0.06)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.loading__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
}

.loading__logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading__logo-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    animation: loading-pulse 2s ease-in-out infinite;
}

.loading__spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

.loading__text {
    font-size: 0.95rem;
    font-weight: var(--font-medium);
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    letter-spacing: 0.05em;
}

.loading.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes loading-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.02); }
}

/* Loading page responsiva */
@media screen and (max-width: 576px) {
    .loading__content {
        gap: 1.25rem;
        padding: 1.5rem;
    }
    
    .loading__logo-img {
        width: 80px;
        height: 80px;
    }
    
    .loading__spinner {
        width: 40px;
        height: 40px;
        border-width: 2.5px;
    }
    
    .loading__text {
        font-size: 0.875rem;
    }
}

@media screen and (max-width: 360px) {
    .loading__logo-img {
        width: 70px;
        height: 70px;
    }
}

/*=============== UTILITY CLASSES ===============*/
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--mb-1); }
.mb-2 { margin-bottom: var(--mb-2); }
.mb-3 { margin-bottom: var(--mb-3); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--mb-1); }
.mt-2 { margin-top: var(--mb-2); }
.mt-3 { margin-top: var(--mb-3); }

.hidden { display: none; }
.visible { display: block; }

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/*=============== ANIMATIONS ===============*/
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease forwards;
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
    width: 0.8rem;
    background-color: var(--gray-200);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 0.5rem;
    border: 2px solid var(--gray-200);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 0.5rem;
}

/*=============== BREAKPOINTS ===============*/
/* For large devices */
@media screen and (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .home__title {
        font-size: 3.2rem;
    }
    
    .section__title {
        font-size: 2.2rem;
    }
}

@media screen and (max-width: 992px) {
    .container {
        max-width: 720px;
        margin-left: var(--mb-1-5);
        margin-right: var(--mb-1-5);
    }

    .home__content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .home__title {
        font-size: 3rem;
        line-height: 1.1;
    }

    .home__subtitle {
        font-size: 1.8rem;
    }

    .home__description {
        font-size: 1.1rem;
        max-width: 500px;
        margin: 0 auto;
    }

    .about__container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .about__img {
        max-width: 500px;
        margin: 0 auto;
    }

    .about__info {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

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

    .skills__container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .contact__container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer__container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

/* For medium devices */
@media screen and (max-width: 768px) {
    .container {
        max-width: 540px;
    }

    .section {
        padding: 4rem 0;
    }

    .section__title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .section__subtitle {
        font-size: 1.1rem;
        margin-bottom: 3rem;
    }

    /* Navigation */
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        z-index: var(--z-fixed);
    }

    .nav__menu.show-menu {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 2.5rem;
        text-align: center;
    }

    .nav__link {
        font-size: 1.2rem;
        padding: 1rem 0;
    }

    .nav__close,
    .nav__toggle {
        display: block;
        font-size: 1.8rem;
    }
    
    .nav__toggle {
        z-index: var(--z-fixed);
        position: relative;
    }

    .nav__close {
        position: absolute;
        top: 2rem;
        right: 2rem;
    }

    /* Home Section */
    .home__title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .home__subtitle {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .home__description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .home__social {
        justify-content: center;
        margin-bottom: 2rem;
    }

    /* About Section */
    .about__cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about__info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about__info-item {
        padding: 1.5rem;
    }

    .about__info-title {
        font-size: 1.8rem;
    }

    /* Skills Section */
    .skills__content {
        padding: 2rem;
    }

    .skills__title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    /* Services Section */
    .services__container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services__content {
        padding: 2.5rem 1.5rem;
    }

    .services__icon {
        width: 75px;
        height: 75px;
        font-size: 2.2rem;
    }

    .services__title {
        font-size: 1.4rem;
    }

    .services__button {
        padding: 0.875rem 1.75rem;
        font-size: var(--small-font-size);
    }

    /* Portfolio Section */
    .portfolio__content {
        margin: 0 1rem;
    }

    .portfolio__title {
        font-size: 1.2rem;
    }

    /* Contact Section */
    .contact__inputs {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact__information {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .contact__form {
        padding: 2rem;
    }

    /* Footer */
    .footer__container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer__socials {
        justify-content: center;
    }
}

/* For small devices */
@media screen and (max-width: 576px) {
    .container {
        max-width: 100%;
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section__title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .section__subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Home Section */
    .home__title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    /* Navegação */
    .nav__menu {
        width: 100%;
    }
    
    .nav__list {
        gap: 0.8rem;
    }
    
    .nav__link {
        font-size: 0.85rem;
        padding: 0.5rem;
    }
    
    /* Seções de conteúdo */
    .grid {
        gap: 1.5rem;
    }
    
    /* Cards e elementos */
    .card {
        padding: 1.25rem;
    }
    
    /* Formulário de contato */
    .contact__form {
        padding: 1.25rem;
    }
    
    .contact__inputs {
        gap: 1rem;
    }

    .home__subtitle {
        font-size: 1.3rem;
    }

    .home__description {
        font-size: 0.95rem;
    }

    .home__social-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }

    /* About Section */
    .about__data,
    .skills__content,
    .services__content,
    .contact__form {
        padding: 1.5rem;
    }

    .about__info-item {
        padding: 1rem;
    }

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

    .about__info-name {
        font-size: 0.8rem;
    }

    /* Skills Section */
    .skills__data {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .skills__data i {
        font-size: 1.2rem;
        min-width: 1.5rem;
    }

    .skills__name {
        font-size: 0.9rem;
    }

    .skills__level {
        font-size: 0.8rem;
    }

    /* Services Section */
    .services__content {
        padding: 2rem 1.5rem;
    }

    .services__icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .services__title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .services__button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        margin-top: 1.5rem;
    }

    /* Portfolio Section */
    .portfolio__content {
        margin: 0 0.5rem;
    }

    .portfolio__img {
        height: 200px;
    }

    .portfolio__data {
        padding: 1.5rem;
    }

    .portfolio__title {
        font-size: 1.1rem;
    }

    .portfolio__description {
        font-size: 0.9rem;
    }

    /* Contact Section */
    .contact__information {
        padding: 1rem;
        gap: 0.75rem;
    }

    .contact__icon {
        font-size: 1.5rem;
        min-width: 2rem;
    }

    .contact__title {
        font-size: 1.1rem;
    }

    .contact__subtitle {
        font-size: 0.9rem;
    }

    .contact__input {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .contact__schedule-item {
        padding: 0.75rem 0.875rem;
    }

    .contact__schedule-day {
        font-size: 0.9rem;
    }

    .contact__schedule-time {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    /* Buttons */
    .button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .button--small {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    /* Navigation */
    .nav__logo {
        font-size: 1.2rem;
    }

    .nav__logo i {
        font-size: 1.5rem;
    }

    /* Scroll Up */
    .scrollup {
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }

    /* Footer */
    .footer__title {
        font-size: 1.5rem;
    }

    .footer__subtitle {
        font-size: 0.9rem;
    }

    .footer__social {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
}

/* For extra small devices */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .section {
        padding: 2.5rem 0;
    }

    .home__title {
        font-size: 1.8rem;
    }

    .home__subtitle {
        font-size: 1.2rem;
    }

    .section__title {
        font-size: 1.6rem;
    }

    .about__info {
        gap: 1rem;
    }
    
    /* Melhorias para navegação em telas muito pequenas */
    .nav__menu {
        padding: 0.75rem 0;
    }
    
    .nav__list {
        gap: 0.5rem;
    }
    
    .nav__link {
        font-size: 0.75rem;
        padding: 0.4rem;
    }
    
    /* Ajustes para botões e elementos interativos */
    .button {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .button--flex {
        gap: 0.5rem;
    }
    
    .button__icon {
        font-size: 1rem;
    }
    
    /* Melhorar espaçamento de elementos interativos */
    .services__button,
    .projects__button,
    .contact__button {
        padding: 0.6rem 1rem;
    }
    
    /* Ajustar tamanho dos ícones */
    .services__icon,
    .skills__icon,
    .contact__card-icon {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    /* Ajustes para grids */
    .grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    /* Melhorias para seções específicas */
    .about__container,
    .skills__container,
    .services__container,
    .projects__container,
    .testimonial__container,
    .contact__container {
        grid-template-columns: 1fr;
    }
    
    .about__img {
        width: 220px;
        margin: 0 auto;
    }
    
    .skills__content {
        padding: 1.25rem;
    }
    
    .services__card {
        padding: 1.25rem;
    }
    
    .projects__card {
        padding: 1rem;
    }
    
    .testimonial__card {
        padding: 1.25rem;
    }
    
    /* Ajustes para cards e elementos */
    .card {
        padding: 1rem;
    }
    
    /* Ajustes para seções específicas */
    .services__container,
    .projects__container,
    .testimonial__container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* Ajustes para formulário de contato */
    .contact__container {
        grid-template-columns: 1fr;
    }
    
    .contact__info {
        order: 2;
        margin-top: 1.5rem;
    }
    
    .contact__form {
        order: 1;
    }
    
    /* Ajustes para footer */
    .footer__container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer__socials {
        justify-content: center;
    }

    .about__info-item {
        padding: 0.75rem;
    }

    .about__info-title {
        font-size: 1.3rem;
    }

    .services__container {
        gap: 1.5rem;
    }

    .services__content {
        padding: 1.25rem;
    }

    .portfolio__content {
        margin: 0 0.25rem;
    }

    .contact__form {
        padding: 1.25rem;
    }

    .button {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        min-height: 2.75rem;
    }
}

/* Touch targets: botões e links clicáveis em mobile */
@media screen and (max-width: 768px) {
    .button {
        min-height: 2.75rem;
    }
    .contact__social-icon {
        min-width: 2.75rem;
        min-height: 2.75rem;
    }
    .blog__card-link,
    .blog__category {
        min-height: 2.5rem;
        display: inline-flex;
        align-items: center;
    }
}

/* Landscape orientation for mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .home {
        min-height: 0;
        padding: 2rem 0;
    }

    .home__content {
        gap: 1.5rem;
    }

    .home__title {
        font-size: 1.8rem;
    }

    .home__subtitle {
        font-size: 1.2rem;
    }

    .home__description {
        font-size: 0.9rem;
    }

    .nav__menu {
        padding: 1rem 0;
    }

    .nav__list {
        gap: 1.5rem;
    }
}

/*=============== SWIPER STYLES ===============*/
.swiper-container {
    padding: 2rem 0;
    position: relative;
}

.swiper-wrapper {
    align-items: stretch;
}

.swiper-slide {
    height: auto;
    display: flex;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--accent-color);
    background: var(--white-color);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
}

.swiper-button-next.swiper-button-disabled,
.swiper-button-prev.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--accent-color);
    color: var(--white-color);
    transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    display: none;
}

.swiper-portfolio-icon {
    font-size: 1.2rem;
    font-weight: var(--font-bold);
}

.swiper-pagination {
    position: relative;
    margin-top: 2rem;
}

.swiper-pagination-bullet {
    background: var(--gray-400);
    opacity: 0.5;
    width: 10px;
    height: 10px;
    transition: var(--transition);
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--accent-color);
    transform: scale(1.2);
}

/* Show navigation arrows when swiper is initialized */
.swiper-initialized .swiper-button-next,
.swiper-initialized .swiper-button-prev {
    opacity: 1;
    visibility: visible;
}
