/**
 * Estilos de Seções
 * Sistema de seções para o site Alt tab Corp - Design moderno e elegante
 */

/* Seção Base */
section {
    position: relative;
    padding: 5rem 0;
}

/* Header de Seção */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    position: relative;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--gradient-secondary);
    color: var(--light);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    border-radius: var(--border-radius-full);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.section-header h2 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary);
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.section-header p {
    font-size: var(--font-size-lg);
    color: var(--gray-600);
    line-height: var(--line-height-relaxed);
}

/* Botão "Ver todos os serviços" */
.services-cta {
    text-align: center;
    margin-top: 8rem;
    padding-top: 3rem;
    margin-bottom: 2rem;
}

/* Variantes de Seção */
.section-light {
    background-color: var(--light);
}

.section-dark {
    background-color: var(--primary-dark);
    color: var(--light);
}

.section-dark .section-header h2 {
    color: var(--light);
}

.section-dark .section-header p {
    color:var(--text-color);
}

.section-gray {
    background-color: var(--gray-100);
}

.section-gradient {
    background: var(--gradient-primary);
    color: var(--light);
}

.section-gradient .section-header h2 {
    color: var(--light);
}

.section-gradient .section-header p {
    color:var(--text-color);
}

/* Seção com Padrão de Fundo */
.section-pattern {
    background-color: var(--gray-100);
    background-image: url('');  /*../images/pattern.svg */
    background-size: 100px 100px;
    background-repeat: repeat;
    position: relative;
    padding: var(--spacing-4xl) 0;
    overflow: hidden;
}

[data-theme="dark"] .section-pattern {
    background-color: var(--gray-800);
}

.section-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('');  /*../images/pattern.svg */
    background-size: cover;
    background-position: center;
    opacity: 0.03;
    z-index: 0;
}

.section-pattern .container {
    position: relative;
    z-index: 1;
}

/* Seção com Formas Geométricas */
.section-shapes {
    position: relative;
    overflow: hidden;
}

.section-shapes::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: rgba(59, 130, 246, 0.05);
    z-index: 0;
}

.section-shapes::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background-color: rgba(30, 41, 59, 0.05);
    z-index: 0;
}

.section-shapes .container {
    position: relative;
    z-index: 1;
}

/* Seção com Divisor */
.section-divider {
    position: relative;
}

.section-divider::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
}

/* Seção com Onda */
.section-wave {
    position: relative;
    padding: var(--spacing-4xl) 0;
    overflow: hidden;
}

.section-wave::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background-image: url('../../images/wave.svg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center bottom;
    z-index: 1;
}

.section-wave .container {
    position: relative;
    z-index: 2;
}

/* Seção com Ângulo */
.section-angle {
    position: relative;
    padding-bottom: 7rem;
}

.section-angle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: inherit;
    transform-origin: bottom right;
    transform: skewY(-3deg);
    z-index: 0;
}

.section-angle .container {
    position: relative;
    z-index: 1;
}

/* Layouts de Grade */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Responsividade */
@media (max-width: 1200px) {
    section {
        padding: 4rem 0;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .section-header h2 {
        font-size: var(--font-size-2xl);
    }
}

@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    section {
        padding: 3.5rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header h2 {
        font-size: var(--font-size-xl);
    }
    
    .section-header p {
        font-size: var(--font-size-base);
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    section {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 1.5rem;
    }
    
    .section-header h2 {
        font-size: var(--font-size-lg);
        margin-bottom: 1rem;
    }
    
    .grid-3, .grid-4 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Timeline Component */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: var(--spacing-3xl) auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--primary-light);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: var(--border-radius-full);
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -12px;
    background-color: var(--light);
    border: 4px solid var(--secondary);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: var(--shadow-md);
}

.timeline-left {
    left: 0;
}

.timeline-right {
    left: 50%;
}

.timeline-right::after {
    left: -12px;
}

.timeline-content {
    padding: var(--spacing-lg);
    background-color: var(--light);
    position: relative;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.timeline-left .timeline-content {
    border-left: 5px solid var(--secondary);
}

.timeline-right .timeline-content {
    border-right: 5px solid var(--secondary);
}

.timeline-year {
    display: inline-block;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    color: var(--light);
    background-color: var(--secondary);
    padding: 5px 15px;
    border-radius: var(--border-radius-full);
    margin-bottom: var(--spacing-md);
}

.timeline-title {
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--primary);
}

.timeline-description {
    color: var(--gray-700);
    line-height: var(--line-height-relaxed);
}

@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item::after {
        left: 18px;
    }
    
    .timeline-right {
        left: 0;
    }
    
    .timeline-left .timeline-content,
    .timeline-right .timeline-content {
        border-left: 5px solid var(--secondary);
        border-right: none;
    }
}

/* Estatísticas Section */
.stats-section {
    position: relative;
    padding: 6rem 0;
    color: var(--light);
    overflow: hidden;
    z-index: 1;
}

.stats-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('');  /*../images/pattern.svg */
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: -1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.stat-card {
    position: relative;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-xl);
    padding: 2.5rem 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    z-index: 1;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.3);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light);
    font-size: 1.75rem;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.stat-card:hover .stat-icon {
    background-color: var(--secondary);
    transform: scale(1.1) rotate(10deg);
}

.stat-number {
    font-size: 3rem;
    font-weight: var(--font-weight-bold);
    color: var(--light);
    margin-bottom: 0.5rem;
    line-height: 1;
    position: relative;
    display: inline-block;
}

.stat-label {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-medium);
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.02em;
}

.stats-cta {
    text-align: center;
    margin-top: 2rem;
}

.stats-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 2;
}

.stats-wave .wave {
    width: 100%;
    height: auto;
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .stats-section {
        padding: 5rem 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* Seção com formas geométricas */
.section-shapes {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.section-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.5;
}

.section-pattern .pattern {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Seção com onda */
.section-wave {
    position: relative;
    overflow: hidden;
}

.section-wave::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background-image: url('../../images/wave.svg');
    background-size: cover;
    background-position: top;
    z-index: 1;
}

/* Seção com gradiente */
.section-gradient {
    background: var(--gradient-primary);
    color: var(--light);
    position: relative;
    overflow: hidden;
}

.section-gradient .section-badge {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light);
}

.section-gradient .section-header h2 {
    color: var(--light);
}

.section-gradient .section-header p {
    color: rgba(255, 255, 255, 0.9);
}

/* Seção com fundo escuro */
.section-dark {
    background-color: var(--primary);
    color: var(--light);
}

.section-dark .section-header h2 {
    color: var(--light);
}

.section-dark .section-header p {
    color:var(--text-color);
}

/* Seção com fundo claro */
.section-light {
    background-color: var(--light);
}

/* Seção com fundo cinza */
.section-gray {
    background-color: var(--gray-100);
}

/* Seção com padding reduzido */
.section-sm {
    padding: 3rem 0;
}

/* Seção com padding aumentado */
.section-lg {
    padding: 7rem 0;
}

/* Seção com divider */
.section-divider {
    position: relative;
    padding: 6rem 0;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: var(--border-radius-full);
}

/* Seção com fundo de imagem */
.section-bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: var(--light);
    z-index: 1;
}

.section-bg-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.7));
    z-index: -1;
}

.section-bg-image .section-header h2 {
    color: var(--light);
}

.section-bg-image .section-header p {
    color:var(--text-color);
}

/* Badges para seções */
.section-badge.light {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light);
}

/* Utilitários para seções */
.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Responsividade para seções */
@media (max-width: 992px) {
    section {
        padding: 4rem 0;
    }
    
    .section-lg {
        padding: 5rem 0;
    }
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
    
    .section-lg {
        padding: 4rem 0;
    }
    
    .section-sm {
        padding: 2rem 0;
    }
} 