/* Inherited from base, variables, components, animations, responsive */

.about-hero-section {
    padding: 10rem 1.5rem 4rem; /* Increased top padding to add space from header */
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-light) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 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="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23334155" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.1;
}

.about-hero-section .hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.company-story-section {
    padding: 5rem 1.5rem;
    background: var(--background-light);
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.story-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.company-story-image {
    width: 100%;
    height: auto;
    max-height: 300px; /* Limit height for aesthetic reasons */
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.story-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

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

.stat-item {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.5), rgba(10, 10, 10, 0.5)); /* Adjusted for darker theme */
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.stat-label {
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-weight: 500;
}

.ceo-section {
    padding: 5rem 1.5rem;
    background: var(--background-dark);
}

.ceo-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    padding: 0 1rem;
}

.ceo-image-container {
    text-align: center;
    position: relative;
    margin: 0 auto;
}

.ceo-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
    transition: transform 0.3s ease;
    object-fit: cover;
    max-width: 100%;
}

.ceo-photo:hover {
    transform: scale(1.05) rotate(2deg);
}

.ceo-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

.ceo-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ceo-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.ceo-bio {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

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

.achievement-card {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.3), rgba(10, 10, 10, 0.3)); /* Adjusted for darker theme */
    border: 1px solid var(--border-color);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.achievement-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    display: block;
}

.achievement-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.values-section {
    padding: 5rem 1.5rem;
    background: var(--background-light);
}

.values-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.value-card {
    background: rgba(26, 26, 26, 0.3); /* Adjusted for darker theme, using new background-light with opacity */
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color); /* Used variable for consistency */
    text-align: center;
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.timeline-section {
    padding: 5rem 1.5rem;
    background: var(--background-dark);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    background: var(--background-dark);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    margin: 0 2rem;
}

.timeline-content {
    flex: 1;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.5), rgba(10, 10, 10, 0.5)); /* Adjusted for darker theme */
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    margin: 0 1rem;
}

.timeline-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* CTA Section - duplicated from product-detail.css for consistency */
.cta-section {
    padding: 4rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    text-align: center;
}

.cta-section h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    flex-direction: row; /* Default to row for desktop */
    gap: 1.5rem;
    justify-content: center;
}

.cta-buttons .whatsapp-cta,
.cta-buttons .secondary-cta {
    width: auto; /* Default to auto width for desktop */
    max-width: none;
    margin: 0;
}

/* Re-applying general responsive from styles.css specific to about page, now that it's separate */
@media (min-width: 768px) {
    .story-grid {
        grid-template-columns: 2fr 1fr;
    }
    
    .stats-section {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .ceo-wrapper {
        grid-template-columns: 1fr 2fr;
    }
    
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .timeline-item {
        flex-direction: row !important;
    }
    
    .timeline-item:nth-child(even) {
        flex-direction: row-reverse !important;
    }
}

@media (max-width: 767px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 60px;
    }
    
    .timeline-year {
        position: absolute;
        left: 0;
        margin: 0;
    }
    
    .ceo-section {
        padding: 3rem 1rem;
    }
    
    .ceo-wrapper {
        gap: 1.5rem;
    }
    
    .ceo-photo {
        width: 180px;
        height: 180px;
        border-width: 3px;
    }
    
    .ceo-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.75rem;
    }
    
    .ceo-content h3 {
        font-size: 2rem;
        text-align: center;
    }
    
    .ceo-achievements {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .value-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .ceo-photo {
        width: 150px;
        height: 150px;
    }
    
    .ceo-content h3 {
        font-size: 1.75rem;
    }
    
    .ceo-title {
        font-size: 1.1rem;
    }
    
    .ceo-bio {
        font-size: 1rem;
    }
}

/* Mobile-first responsive improvements for about page */
@media (max-width: 768px) {
    .about-hero-section {
        padding: 7rem 1rem 3rem; /* Increased top padding for mobile */
    }

    .about-hero-section .hero-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .location-badge {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }

    .company-story-section,
    .ceo-section,
    .values-section,
    .timeline-section {
        padding: 3rem 1rem;
    }

    .story-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .story-content h2 {
        font-size: 2rem;
    }

    .story-text {
        font-size: 1rem;
    }

    .stats-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-item {
        padding: 1.5rem;
    }

    .ceo-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
    }

    .timeline {
        padding: 0 1rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 40px;
    }

    .timeline-year {
        position: absolute;
        left: 0;
        width: 60px;
        height: 60px;
        font-size: 1.25rem;
    }

    .timeline-content {
        margin: 1rem 0 0 0;
    }

    .cta-section {
        padding: 3rem 1rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    /* Apply specific mobile button sizing to both types of buttons within cta-buttons */
    .cta-buttons .whatsapp-cta,
    .cta-buttons .secondary-cta {
        width: 100%;
        max-width: 300px; /* Max width for consistency */
        margin: 0 auto; /* Center individual buttons */
    }
}

/* Ultra-small screens */
@media (max-width: 480px) {
    .about-hero-section {
        padding: 6rem 0.75rem 2rem; /* Increased top padding for ultra-small */
    }

    .ceo-photo {
        width: 120px;
        height: 120px;
    }

    .timeline-year {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }

    .cta-section {
        padding: 2rem 1rem; /* Adjust padding for ultra-small */
    }

    .cta-section h2 {
        font-size: 1.75rem; /* Adjust font size for ultra-small */
    }

    .cta-section p {
        font-size: 0.875rem; /* Adjust font size for ultra-small */
    }
}

/* Touch-friendly improvements */
@media (hover: none) {
    .stat-item:hover,
    .value-card:hover,
    .achievement-card:hover {
        transform: none;
    }

    .ceo-photo:hover {
        transform: none;
    }
}

/* Better mobile spacing */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .ceo-section,
    .company-story-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Improved mobile typography */
@media (max-width: 768px) {
    .story-content h2,
    .values-section h2,
    .timeline-section h2 {
        font-size: 1.75rem;
    }
}