.about-page {
    padding: 50px 0;
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-section {
    display: flex;
    align-items: flex-start; /* Align items at the top */
    justify-content: space-between;
    margin-bottom: 60px;
    position: relative;
    opacity: 0; /* Start invisible until animation */
}

.content-wrapper {
    width: 50%;
    padding: 20px;
}

.image-wrapper {
    width: 45%;
    padding: 20px;
}

.image-wrapper img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    position: relative; /* Position the number relative to the heading */
}

.section-number {
    position: absolute;
    left: -40px; /* Adjust to the left to align with the header */
    top: 0; /* Aligns with the top of the header */
    font-size: 2.5rem;
    color: #007bff;
    font-weight: bold;
}

p {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.8;
}

/* Alternating the layout */
.about-section.left .content-wrapper {
    order: 1;
}

.about-section.left .image-wrapper {
    order: 2;
}

.about-section.right .content-wrapper {
    order: 2;
}

.about-section.right .image-wrapper {
    order: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-section {
        flex-direction: column;
    }

    .content-wrapper, .image-wrapper {
        width: 100%;
    }

    h2 {
        font-size: 2rem;
    }

    .section-number {
        left: 0; /* Center align the numbers for mobile */
        top: 0;
        font-size: 2rem;
    }
}

/* Skills Section */
.skills-section {
    padding: 4rem 0;
}

.skill-category {
    margin-bottom: 2rem;
}

.skill-category h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.skill-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.skill-name {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.skill-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    width: 0;
    transition: width 1s ease-in-out;
}

.skill-level.beginner { background: #17a2b8; }
.skill-level.intermediate { background: #28a745; }
.skill-level.advanced { background: #ffc107; }
.skill-level.expert { background: #dc3545; }

/* Timeline Section */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: #dee2e6;
}

.timeline-item {
    width: 50%;
    padding: 1rem;
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item.left {
    left: 0;
    padding-right: 3rem;
}

.timeline-item.right {
    left: 50%;
    padding-left: 3rem;
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.timeline-date {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #e9ecef;
    border-radius: 20px;
    font-size: 0.8rem;
    margin: 0.5rem 0;
}

.timeline-description {
    color: #495057;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 0;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 2rem;
    }
    
    .timeline-item.left,
    .timeline-item.right {
        left: 0;
        padding-right: 1rem;
    }
}
