/* ==========================================================================
   About Me Custom CSS
   Mahmoud Abdel-Samed Portfolio
   ========================================================================== */

/* Typography & Base overrides for the about page */
.about-page {
    font-family: 'Inter', sans-serif;
    color: #C7C7C7;
    line-height: 1.7;
}

.about-page h1, 
.about-page h2, 
.about-page h3, 
.about-page h4, 
.about-page h5 {
    font-family: 'Montserrat', sans-serif;
    color: #FFFFFF;
    font-weight: 800;
    letter-spacing: .5px;
}

/* Section Common Headers */
.section-header {
    margin-bottom: 50px;
    text-align: left;
}

.section-header h2 {
    font-size: 48px;
    text-transform: uppercase;
    color: #FFFFFF;
    margin-bottom: 12px;
    letter-spacing: 1.5px;
}

.section-header p {
    font-size: 20px;
    color: #eaeaea;
    max-width: 600px;
}

/* ==========================================================================
   About Hero / Bio Section
   ========================================================================== */

.about-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
    padding: 60px 0;
}

.about-intro {
    flex: 1.2;
}

.about-image-wrapper {
    flex: 0.8;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Badge Pill */
.badge {
    background: rgba(211, 233, 122, 0.1);
    color: #D3E97A;
    border: 1px solid rgba(211, 233, 122, 0.25);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
    margin-bottom: 25px;
}

.about-intro h1 {
    font-size: 56px;
    line-height: 1.2;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.about-intro .lead {
    font-size: 22px;
    color: #FFFFFF;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.5;
}

.about-intro .bio-text {
    font-size: 17px;
    color: #C7C7C7;
    margin-bottom: 40px;
}

.about-intro .bio-text strong {
    color: #D3E97A;
}

/* Profile Image with Glow */
.profile-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 2;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.5s ease;
}

.about-image-wrapper:hover .profile-img {
    transform: translateY(-8px) scale(1.02);
    border-color: #D3E97A;
}

.glow-ring {
    position: absolute;
    width: 100%;
    max-width: 420px;
    height: 100%;
    border-radius: 30px;
    background: radial-gradient(circle, rgba(211, 233, 122, 0.2) 0%, rgba(0,0,0,0) 70%);
    z-index: 1;
    filter: blur(25px);
    pointer-events: none;
    transition: transform 0.5s ease;
}

.about-image-wrapper:hover .glow-ring {
    transform: scale(1.15);
}

/* Call to Actions */
.cta-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: #D3E97A;
    color: #000000;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 1px;
    padding: 16px 28px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    background-color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(211, 233, 122, 0.15);
}

.btn-primary .dot {
    width: 8px;
    height: 8px;
    background-color: #000;
    border-radius: 50%;
    display: inline-block;
}

.btn-secondary {
    border: 2px solid #333333;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 1px;
    padding: 14px 28px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    transition: border-color 0.3s, background-color 0.3s, transform 0.3s;
}

.btn-secondary:hover {
    border-color: #D3E97A;
    background-color: rgba(211, 233, 122, 0.05);
    transform: translateY(-3px);
}

.btn-secondary .arrow {
    font-size: 16px;
    transition: transform 0.3s;
}

.btn-secondary:hover .arrow {
    transform: translateY(2px);
}

/* ==========================================================================
   Technical Stack Section
   ========================================================================== */

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.skills-card {
    background: rgba(26, 26, 26, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 35px;
    backdrop-filter: blur(12px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15), border-color 0.4s ease, box-shadow 0.4s ease;
}

.skills-card:hover {
    transform: translateY(-8px);
    border-color: rgba(211, 233, 122, 0.3);
    box-shadow: 0 15px 35px rgba(211, 233, 122, 0.05);
}

.skills-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 15px;
}

.skills-card-header .card-icon {
    font-size: 28px;
}

.skills-card-header h3 {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0;
}

.skills-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    color: #eaeaea;
}

.skills-list li .level {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #C7C7C7;
    transition: background-color 0.3s, color 0.3s;
}

.skills-card:hover .skills-list li .level {
    background-color: rgba(211, 233, 122, 0.1);
    color: #D3E97A;
}

/* ==========================================================================
   Timeline / Education & Milestones Section
   ========================================================================== */

.timeline {
    position: relative;
    max-width: 800px;
    margin: 60px auto;
    padding-left: 40px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: linear-gradient(to bottom, #D3E97A 0%, rgba(211, 233, 122, 0.2) 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-badge {
    position: absolute;
    left: -40px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #000000;
    border: 4px solid #D3E97A;
    box-shadow: 0 0 10px rgba(211, 233, 122, 0.5);
    z-index: 2;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s;
}

.timeline-item:hover .timeline-badge {
    transform: scale(1.3);
    background-color: #D3E97A;
}

.timeline-content {
    background: rgba(26, 26, 26, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: border-color 0.4s, background 0.4s, box-shadow 0.4s;
}

.timeline-item:hover .timeline-content {
    background: rgba(26, 26, 26, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.timeline-content .time-period {
    font-size: 13px;
    font-weight: 700;
    color: #D3E97A;
    background-color: rgba(211, 233, 122, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.timeline-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
}

.timeline-content .timeline-subtitle {
    font-size: 15px;
    color: #FFFFFF;
    font-weight: 500;
    margin-bottom: 15px;
}

.timeline-content p {
    font-size: 15px;
    color: #C7C7C7;
    margin: 0;
}

/* ==========================================================================
   Footer Section
   ========================================================================== */

.about-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.about-footer .footer-left {
    flex: 1.2;
}

.about-footer .footer-left h3 {
    font-size: 40px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.about-footer .footer-left p {
    font-size: 18px;
    color: #C7C7C7;
    margin-bottom: 25px;
    max-width: 500px;
}

.about-footer .footer-left .email-link {
    font-size: 24px;
    font-weight: 700;
    color: #D3E97A;
    border-bottom: 2px solid #D3E97A;
    transition: color 0.3s, border-color 0.3s;
}

.about-footer .footer-left .email-link:hover {
    color: #FFFFFF;
    border-color: #FFFFFF;
}

.about-footer .footer-right {
    flex: 0.8;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.about-footer .footer-right .Social {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.about-footer .footer-right .Social a {
    background-color: #1A1A1A;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.3s;
}

.about-footer .footer-right .Social a:hover {
    background-color: #D3E97A;
    transform: translateY(-3px);
}

.about-footer .footer-right .Social a img {
    width: 20px;
    height: auto;
    filter: invert(0);
}

.about-footer .footer-right .Social a:hover img {
    filter: brightness(0);
}

.about-footer .footer-right h6 {
    font-size: 13px;
    font-weight: 400;
    color: #C7C7C7;
    margin: 0;
}

/* ==========================================================================
   Responsiveness
   ========================================================================== */

@media (max-width: 992px) {
    .about-hero {
        flex-direction: column-reverse;
        gap: 50px;
        text-align: center;
    }

    .about-intro h1 {
        font-size: 44px;
    }

    .about-intro .lead {
        font-size: 20px;
    }

    .cta-actions {
        justify-content: center;
    }

    .about-image-wrapper {
        width: 100%;
        max-width: 320px;
    }

    .about-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 50px;
    }

    .about-footer .footer-right {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 36px;
    }

    .section-header p {
        font-size: 16px;
    }

    .about-intro h1 {
        font-size: 36px;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline::before {
        left: 4px;
    }

    .timeline-badge {
        left: -35px;
        width: 16px;
        height: 16px;
        border-width: 3px;
    }
    
    .timeline-content {
        padding: 20px;
    }
    
    .timeline-content h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 28px;
    }

    .about-intro h1 {
        font-size: 28px;
    }

    .cta-actions a {
        width: 100%;
        justify-content: center;
    }

    .about-footer .footer-left h3 {
        font-size: 28px;
    }

    .about-footer .footer-left .email-link {
        font-size: 18px;
    }
}
