
/* about.css - Modern Tech Portfolio About Page Styles */

:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --secondary: #3f37c9;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --white: #ffffff;
    --success: #4cc9f0;
    --warning: #f8961e;
    --danger: #ef233c;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Base Styles */
.about-page {
    padding: 5rem 0;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Section */
.about-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

/* Bio Section */
.about-bio {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about-bio:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.bio-image {
    flex: 1;
    max-width: 350px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.bio-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.bio-image:hover img {
    transform: scale(1.03);
}

.bio-text {
    flex: 1;
}

.bio-text h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.bio-text p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.bio-highlights {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(67, 97, 238, 0.1);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    transition: var(--transition);
}

.highlight-item:hover {
    background: rgba(67, 97, 238, 0.2);
    transform: translateY(-3px);
}

.highlight-item i {
    color: var(--primary);
    font-size: 1.2rem;
}

.highlight-item span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Skills Section */
.about-skills {
    margin-bottom: 4rem;
}

.about-skills h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--dark);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.skill-category {
    margin-bottom: 1.5rem;
}

.skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark);
    position: relative;
    padding-bottom: 0.5rem;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.skill-category ul {
    list-style: none;
    padding-left: 0;
}

.skill-category ul li {
    margin-bottom: 0.8rem;
    color: var(--gray);
    position: relative;
    padding-left: 1.8rem;
    transition: var(--transition);
}

.skill-category ul li:hover {
    color: var(--dark);
    transform: translateX(5px);
}

.skill-category ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 1.1rem;
}

/* Timeline Section */
.about-timeline {
    margin-bottom: 4rem;
}

.about-timeline h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--dark);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-item:nth-child(odd) {
    padding-right: calc(50% + 2rem);
    text-align: right;
    transform: translateX(-50px);
}

.timeline-item:nth-child(even) {
    padding-left: calc(50% + 2rem);
    text-align: left;
    transform: translateX(50px);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 4px var(--primary);
    top: 10px;
    z-index: 1;
}

.timeline-item:nth-child(odd)::before {
    right: -8px;
}

.timeline-item:nth-child(even)::before {
    left: -8px;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: inline-block;
    background: rgba(67, 97, 238, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.timeline-content {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow-md);
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--dark);
}

.timeline-content p {
    color: var(--gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Contact Section */
.about-contact {
    display: flex;
    gap: 3rem;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.contact-info p {
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-methods {
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.contact-method i {
    width: 40px;
    height: 40px;
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-method:hover i {
    background: var(--primary);
    color: var(--white);
}

.contact-method a, .contact-method span {
    color: var(--dark);
    transition: var(--transition);
}

.contact-method:hover a {
    color: var(--primary);
}

.contact-social {
    display: flex;
    gap: 1rem;
}

.contact-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(67, 97, 238, 0.1);
    color: var(--dark);
    border-radius: 50%;
    transition: var(--transition);
    font-size: 1.2rem;
}

.contact-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
}

.btn.primary {
    background: var(--primary);
    color: var(--white);
}

.btn.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-bio {
        flex-direction: column;
    }
    
    .bio-image {
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding: 0;
        text-align: left;
        transform: translateX(0);
    }
    
    .timeline-item::before {
        left: -8px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .about-contact {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .about-bio, .skills-container, .about-contact {
        padding: 1.5rem;
    }
    
    .bio-text h2 {
        font-size: 1.5rem;
    }
    
    .about-skills h2,
    .about-timeline h2,
    .contact-info h2 {
        font-size: 1.5rem;
    }
    
    .highlight-item {
        flex: 1 1 100%;
    }
    
    .timeline::before {
        left: 10px;
    }
    
    .timeline-item {
        padding-left: 2rem !important;
    }
    
    .timeline-item::before {
        left: -4px;
    }
}

/* Animation Classes */
.show {
    opacity: 1 !important;
    transform: translateX(0) !important;
}
