/* ===================================================================
   About Page Stylesheet
   Author: Mujtaba Alam
   Version: 2.0.0
   Description: A fully functional and stylish design for the about page,
                including an interactive timeline, animated skills, and a photo lightbox.
   =================================================================== */

/* Import the main stylesheet to inherit base styles and variables */
@import url('style.css');

/* --- General Page Structure --- */
body {
    padding-top: 80px; /* Offset for fixed header */
}

/* --- About Hero Section --- */
#about-hero {
    padding: 60px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) 1.5fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    padding: 15px;
    border-radius: 30px;
}

.about-image img {
    border-radius: 20px;
    width: 100%;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 20px;
    font-size: clamp(2rem, 5vw, 2.8rem); /* Responsive font size */
}

.about-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* --- Journey Timeline --- */
#my-journey {
    background-color: var(--bg-color-darker);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 30px auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: rgba(0, 123, 255, 0.2);
    top: 0;
    bottom: 0;
    left: 22px; /* Centered with the 44px icon */
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 0 40px 70px;
    position: relative;
}
.timeline-item:last-child {
    padding-bottom: 10px;
}

.timeline-icon {
    position: absolute;
    left: 0;
    top: 5px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-color);
    border-radius: 50%;
    box-shadow: var(--light-shadow), var(--dark-shadow);
    z-index: 1;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: all var(--transition-speed) ease;
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.3);
}

.timeline-content {
    padding: 25px;
    border-radius: var(--border-radius);
    transition: transform var(--transition-speed) ease;
}
.timeline-item:hover .timeline-content {
    transform: translateX(10px);
}
.timeline-content h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}
.timeline-content p {
    margin-bottom: 0;
}

/* --- Skills Section --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-item {
    margin-bottom: 20px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 600;
}
.skill-info span:first-child {
    display: flex;
    align-items: center;
}
.skill-info i {
    margin-right: 10px;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.skill-bar {
    height: 12px;
    border-radius: 10px;
    overflow: hidden;
    padding: 2px; /* Inner padding for neumorphic effect */
}

.skill-level {
    height: 100%;
    background: var(--primary-color);
    border-radius: 8px;
    width: 0; /* Initial state for animation */
    transition: width 2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- Philosophy Section --- */
#philosophy {
    background-color: var(--bg-color-darker);
}
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.philosophy-card {
    padding: 40px 30px;
    text-align: center;
}
.philosophy-card:hover {
    transform: translateY(-10px);
}
.philosophy-card i {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* --- Life Beyond Code Photo Album --- */
.photo-album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.photo-card {
    padding: 12px;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.photo-card:hover {
    transform: translateY(-5px);
}

.photo-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.4s ease;
}

.photo-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    border-radius: 12px;
    background-color: rgba(0, 123, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.photo-card:hover img {
    transform: scale(1.1);
}

.photo-card:hover .photo-overlay {
    opacity: 1;
}

/* --- Lightbox Styles --- */
.lightbox-container {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 35, 45, 0.85);
    backdrop-filter: blur(8px);
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.lightbox-container.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    animation: zoomIn 0.4s ease;
    transform: scale(1);
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}
.lightbox-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-text .section-title {
        text-align: center;
    }
    .about-buttons {
        justify-content: center;
    }
}