/*
     about-modern.css — Estilos modernos para a seção "Quem Somos" / About.
     Referência: app/Views/layouts/header.php (incluído no header quando necessário)
*/
/* ==========================================
    SEÇÃO QUEM SOMOS - DESIGN MODERNO
    ========================================== */

/* ===== SECTION ===== */
.about-section-modern {
    padding: 100px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.about-section-modern .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Elemento decorativo de fundo */
.about-section-modern::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.about-section-modern::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

/* ===== GRID ===== */
.about-grid-modern {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (max-width: 1024px) {
    .about-grid-modern {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

/* ===== IMAGE SECTION ===== */
.about-image-wrapper {
    position: relative;
}

.image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
}

.image-frame {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
    background: #ffffff;
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.about-image-wrapper:hover .image-frame img {
    transform: scale(1.05);
}

/* Badge de Experiência */
.experience-badge-modern {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    z-index: 2;
    animation: slideUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

.badge-content {
    text-align: center;
}

.badge-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.badge-text {
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
    margin: 0;
}

/* Elemento Decorativo */
.image-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(56, 189, 248, 0.05) 100%);
    border-radius: 50%;
    z-index: -1;
}

/* ===== CONTENT SECTION ===== */
.about-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Label */
.content-label {
    display: flex;
    align-items: center;
    gap: 16px;
}

.label-badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1) 0%, rgba(56, 189, 248, 0.1) 100%);
    border: 1px solid rgba(30, 64, 175, 0.2);
    color: #1e40af;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.label-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, #1e40af 0%, rgba(56, 189, 248, 0) 100%);
    border-radius: 1px;
}

/* Título */
.content-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0;
}

.content-title span {
    display: block;
    background: linear-gradient(135deg, #1e40af 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Descrição */
.content-description {
    font-size: 18px;
    color: #475569;
    line-height: 1.8;
    margin: 0;
    text-align: justify;
}

.content-description strong {
    color: #1e40af;
    font-weight: 800;
}

/* ===== STATS GRID ===== */
.stats-grid-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 32px;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.6) 100%);
    border-radius: 16px;
    border: 1px solid rgba(30, 64, 175, 0.1);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.stat-card {
    text-align: center;
    padding: 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    border: 1px solid transparent;
}

.stat-card:hover {
    background: rgba(30, 64, 175, 0.05);
    border-color: rgba(30, 64, 175, 0.2);
    transform: translateY(-4px);
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 15px;
    color: #64748b;
    font-weight: 600;
    margin: 0;
}

@media (max-width: 640px) {
    .stats-grid-modern {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 24px;
    }
}

/* ===== CTA BUTTON ===== */
.btn-cta-modern {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #2a911d 0%, #187e29 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.3);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    border: none;
    cursor: pointer;
    width: fit-content;
}

.btn-cta-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(30, 64, 175, 0.4);
}

.btn-cta-modern:active {
    transform: translateY(-1px);
}

.btn-cta-modern svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

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

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

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

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

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

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

.about-image-wrapper {
    animation: fadeInLeft 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.about-content-wrapper {
    animation: fadeInRight 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

/* ===== REVEAL CLASSES (compatibilidade) ===== */
.reveal {
    opacity: 1;
}

.fade-left {
    animation: fadeInLeft 0.8s ease 0.1s both;
}

.fade-right {
    animation: fadeInRight 0.8s ease 0.2s both;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .about-section-modern {
        padding: 60px 16px;
    }

    .about-grid-modern {
        gap: 40px;
    }

    .image-container {
        aspect-ratio: 1;
    }

    .experience-badge-modern {
        bottom: 20px;
        left: 20px;
        padding: 20px 24px;
    }

    .badge-number {
        font-size: 28px;
    }

    .badge-text {
        font-size: 13px;
    }

    .content-title {
        font-size: 32px;
    }

    .content-description {
        font-size: 16px;
    }

    .btn-cta-modern {
        padding: 14px 28px;
        font-size: 15px;
    }

    .label-line {
        display: none;
    }

    .content-label {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .about-section-modern {
        padding: 50px 12px;
    }

    .content-title {
        font-size: 24px;
    }

    .content-description {
        font-size: 15px;
    }

    .stats-grid-modern {
        padding: 20px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-label {
        font-size: 14px;
    }

    .experience-badge-modern {
        bottom: 16px;
        left: 16px;
        padding: 16px 20px;
    }

    .badge-number {
        font-size: 24px;
    }

    .badge-text {
        font-size: 12px;
    }

    .btn-cta-modern {
        padding: 12px 24px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }

    .content-label {
        margin-top: 0;
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    .about-section-modern {
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    }

    .image-frame {
        background: #1e293b;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    }

    .experience-badge-modern {
        background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .badge-text {
        color: #cbd5e1;
    }

    .content-title {
        color: #f1f5f9;
    }

    .content-description {
        color: #cbd5e1;
    }

    .label-badge {
        background: linear-gradient(135deg, rgba(30, 64, 175, 0.2) 0%, rgba(56, 189, 248, 0.1) 100%);
        border-color: rgba(30, 64, 175, 0.3);
    }

    .stats-grid-modern {
        background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.4) 100%);
        border-color: rgba(30, 64, 175, 0.2);
    }

    .stat-card {
        background: rgba(30, 64, 175, 0.1);
    }

    .stat-card:hover {
        background: rgba(30, 64, 175, 0.2);
        border-color: rgba(30, 64, 175, 0.3);
    }
}