/* About page specific styles */

/* Reusing .page-header from features.css - ensure it's loaded or copy style here if needed */
/* Assuming styles.css and features.css provide base styles */

.container {
    max-width: 800px; /* Standard container width */
    margin: 0 auto;
    padding: 3rem 2rem;
}

.about-section {
    margin-bottom: 3rem;
}

.about-section h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    text-align: left; /* Override general center align from styles.css if needed */
    font-size: 1.8rem; /* Consistent section heading size */
}

.about-section p {
    margin-bottom: 1rem;
    line-height: 1.7; /* Slightly more spacing for readability */
}

.developer-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 2rem; /* Centered with bottom margin */
    display: block;
    border: 4px solid var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Values section styling */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Adjusted minmax */
    gap: 1.5rem; /* Adjusted gap */
    margin-top: 2rem;
}

.value-card {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.value-icon {
    font-size: 2.5rem; /* Add back font-size */
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1; /* Adjust */
}

.value-icon img { /* Style ONLY images */
    max-width: 45px;
    max-height: 45px;
    height: auto;
    display: block; /* Ensure block behavior */
    margin: 0 auto; /* Center image */
     line-height: 0; /* Reset specific to image */
}

.value-card h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.value-card p {
    font-size: 0.9rem;
    flex-grow: 1;
    margin-bottom: 0;
}

/* Timeline section styling */
.timeline {
    position: relative;
    max-width: 600px;
    margin: 3rem auto; /* Added top margin */
}

.timeline::after { /* The vertical line */
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--secondary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item { /* Container for content */
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after { /* The circle on the line */
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--accent-color);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    top: 15px;
    z-index: 1;
}

.timeline-item.left { /* Align left item */
    left: 0;
}

.timeline-item.right { /* Align right item */
    left: 50%;
}

.timeline-item.left::after { /* Position left circle */
    right: -14px; /* Adjusted position */
}

.timeline-item.right::after { /* Position right circle */
    left: -14px; /* Adjusted position */
}

.timeline-content { /* Styling for the box */
    padding: 1rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative; /* Ensure content is above the line */
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.1rem;
}

.timeline-content p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Reusing .cta-section from features.css */
/* Assuming features.css is loaded before about.css or copy style here */

/* Responsive adjustments for about page */
@media (max-width: 768px) {
    .timeline::after {
        left: 31px; /* Move line to left */
    }
    
    .timeline-item { /* Make items full width */
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    /* Position circles on the left line */
    .timeline-item::after {
        left: 17px; /* Adjusted position */
    }
    
    .timeline-item.left::after, 
    .timeline-item.right::after {
        left: 17px; /* Adjusted position */
    }
    
    .timeline-item.right { /* Reset left positioning */
        left: 0;
    }
}
