/* Experience Timeline */
.timeline .item {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 2px solid var(--primary-color);
}

.timeline .item strong {
    display: block;
    font-size: 1.1rem;
}

.timeline .item span {
    font-size: 0.9rem;
    color: var(--text-muted, #666);
}

/* Contact Button */
.contact-section {
    text-align: center;
}

.contact-section .back-btn {
    text-decoration: none;
    display: inline-block;
}

/* Container for sections */
section {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color, #eee);
}

/* Skills Grid */
.skills-grid, .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.skill-card, .project-card {
    background: var(--card-bg, #fff);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.skill-card .icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Timeline */
.timeline {
    position: relative;
    margin-top: 2rem;
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 2rem;
    border-left: 2px solid var(--primary-color, #007bff);
}

.timeline-dot {
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    background: var(--primary-color, #007bff);
    border-radius: 50%;
}

.date {
    font-size: 0.85rem;
    color: var(--text-muted, #666);
    font-weight: bold;
}

/* Tags */
.tag {
    display: inline-block;
    background:var(--primary-color, #007bff);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-right: 0.5rem;
    margin-top: 0.5rem;
}

/* Buttons */
.contact-btn {
    display: inline-block;
    background: var(--primary-color, #007bff);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 1rem;
    font-weight: bold;
}

/* Fade-in Animation */
.fade-in {
    animation: fadeIn 0.6s ease-in forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Flexbox Container */
.about-container {
    display: flex;
    align-items: center; /* Aligns image vertically with the center of the text */
    gap: 3rem;           /* Gap between text and image */
    margin-top: 1rem;
}

.about-content {
    flex: 2; /* Takes up 2/3 of the space */
}

.about-image {
    flex: 1; /* Takes up 1/3 of the space */
    display: flex;
    justify-content: center;
}

/* Image Styling */
.profile-photo {
    width: 280px;
    height: 280px;
    object-fit: cover;   /* Ensures the photo isn't squashed */
    border-radius: 20px; /* Modern rounded corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 4px solid var(--primary-color, #007bff);
}

/* Responsive: Stack on top of each other on small screens */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column; 
        text-align: center;
    }
    
    .profile-photo {
        width: 200px;
        height: 200px;
        margin-bottom: 2rem;
    }
}