/* ============================================
   SECTIONS.CSS - About Section Styling
   F1Key Website - Enterprise Software Engineering
   ============================================ */

/* ==================== */
/* SECTION BASE STYLES */
/* ==================== */

section {
    padding: 120px 0;  /* Espaciado generoso estilo Red Hat */
    position: relative;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 64px;  /* Más espacio antes del contenido */
}

.section-header p {
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
}

/* ==================== */
/* ABOUT SECTION */
/* ==================== */

.about {
    background: var(--color-surface-base);  /* Negro mate uniforme */
    padding: 120px 0;
}

.about-grid {
    gap: 48px;  /* Gap más generoso */
    align-items: center;
}

/* About Text Content */
.about-text {
    padding-right: var(--spacing-md);
}

.about-text h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-light-gray);
    margin-bottom: var(--spacing-md);
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Stats Grid */
.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.stat-card {
    background: var(--color-dark-gray);
    border: 2px solid var(--color-medium-gray);
    border-radius: 8px;
    padding: var(--spacing-md);
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

/* Hover Effect - Lift and Glow */
.stat-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-ferrari-red);
    box-shadow: 0 8px 24px rgba(220, 20, 60, 0.3);
}

/* Stat Number */
.stat-number {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-ferrari-red);
    line-height: 1;
    margin-bottom: var(--spacing-sm);
    transition: all var(--transition-normal);
}

.stat-card:hover .stat-number {
    transform: scale(1.1);
}

/* Stat Label */
.stat-label {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-light-gray);
}

/* Stat Card Background Effect */
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(220, 20, 60, 0.05) 100%
    );
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.stat-card:hover::before {
    opacity: 1;
}

/* ==================== */
/* RESPONSIVE DESIGN */
/* ==================== */

/* Tablets and Below */
@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .about-text {
        padding-right: 0;
        margin-bottom: var(--spacing-md);
    }
    
    .about-text h3 {
        font-size: 1.75rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
}

/* Mobile */
@media (max-width: 640px) {
    section {
        padding: var(--spacing-lg) 0;
    }
    
    .section-header {
        margin-bottom: var(--spacing-md);
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .stat-card {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* ==================== */
/* ANIMATION STATES */
/* ==================== */

/* Fade In Animation for About Section */
.about-text,
.about-stats {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.about-text.visible,
.about-stats.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Animation for Stat Cards */
.stat-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.stat-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Add delay for staggered effect */
.stat-card:nth-child(1) { transition-delay: 0.1s; }
.stat-card:nth-child(2) { transition-delay: 0.2s; }
.stat-card:nth-child(3) { transition-delay: 0.3s; }
.stat-card:nth-child(4) { transition-delay: 0.4s; }
