/* ==========================================================================
   About Me Page - Portfolio-Inspired Design
   Adapted from muhammad-murad-portfolio with website color palette
   ========================================================================== */

/* Background Paths Animation */
.about-hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-charcoal) 100%);
    padding: calc(var(--header-height) + var(--spacing-3xl)) var(--spacing-md) var(--spacing-3xl);
}

.about-background-paths {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.5;
    z-index: 0;
    overflow: hidden;
}

.about-background-paths svg {
    width: 100%;
    height: 100%;
}

/* Animated SVG Paths */
@keyframes pathAnimation {

    0%,
    100% {
        stroke-dashoffset: 0;
        opacity: 0.5;
    }

    50% {
        stroke-dashoffset: 1000;
        opacity: 1;
    }
}

.about-path {
    stroke: var(--color-gold);
    fill: none;
    stroke-dasharray: 1000;
    animation: pathAnimation 20s linear infinite;
}

.about-path:nth-child(even) {
    stroke: var(--color-beige);
    animation-duration: 25s;
    animation-delay: -5s;
}

/* Hero Content */
.about-hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-3xl);
}

.about-hero-text {
    flex: 1;
    color: var(--color-white);
}

.about-availability {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: var(--spacing-lg);
    font-size: var(--text-sm);
    color: var(--color-gold);
    border: 1px solid rgba(212, 175, 127, 0.2);
    backdrop-filter: blur(5px);
    animation: fadeInUp 0.8s ease-out;
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: #4CAF50;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(76, 175, 80, 0.4);
    animation: pulse-green 2s infinite;
}

.separator {
    color: rgba(255, 255, 255, 0.3);
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}



.about-hero-text h1 {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s ease-out;
}

.about-hero-subtitle {
    font-size: var(--text-xl);
    color: var(--color-gold);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.about-hero-description {
    font-size: var(--text-lg);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

/* Hero Image */
.about-hero-image {
    flex: 0 0 315px;
    position: relative;
}

.about-image-wrapper {
    position: relative;
    width: 315px;
    height: 490px;
    /* 9:14 aspect ratio: 315px / 490px = 0.643... ≈ 9/14 */
    border-radius: 24px;
    overflow: hidden;
    border: 4px solid var(--color-gold);
    box-shadow: 0 20px 60px rgba(212, 175, 127, 0.3);
    animation: scaleIn 0.8s ease-out 0.3s backwards;
}

.about-image-wrapper img {
    width: 130%;
    height: 130%;
    object-fit: cover;
    object-position: bottom center;
}

.about-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212, 175, 127, 0.2) 0%, rgba(29, 45, 80, 0.2) 100%);
    mix-blend-mode: overlay;
}

/* Professional Section */
.about-professional {
    padding: var(--spacing-3xl) var(--spacing-md);
    margin-top: 10px;
    background: var(--color-white);
    position: relative;
    overflow: hidden;
}

.about-section-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 0 var(--spacing-md);
}

.about-section-header {
    text-align: center;
    margin-bottom: var(--spacing-4xl);
}

.about-section-header h2 {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    color: var(--color-navy);
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
}

.about-section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-gold);
}

.about-section-header p {
    font-size: var(--text-lg);
    color: var(--color-charcoal);
    max-width: 600px;
    margin: var(--spacing-lg) auto 0;
    line-height: 1.6;
}

/* Timeline vertical line */
.about-experience-grid {
    position: relative;
    padding: var(--spacing-xl) 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3xl);
}

.about-experience-grid::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom,
            transparent,
            var(--color-gold) 10%,
            var(--color-gold) 90%,
            transparent);
    opacity: 0.3;
}

.about-experience-item {
    position: relative;
    padding-left: 60px;
    animation: fadeInUp 0.8s ease-out backwards;
}

/* Timeline Node */
.about-experience-item::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--color-white);
    border: 3px solid var(--color-gold);
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.about-experience-item:hover::before {
    background: var(--color-gold);
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(212, 175, 127, 0.5);
}

.about-experience-header {
    margin-bottom: var(--spacing-sm);
}

.about-experience-title h3 {
    font-size: var(--text-2xl);
    color: var(--color-navy);
    margin-bottom: var(--spacing-xs);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.about-experience-company {
    color: var(--color-gold);
    font-weight: 700;
    font-size: var(--text-lg);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-xs);
    display: block;
}

.about-experience-date {
    display: inline-block;
    padding: 4px 12px;
    background: var(--color-beige);
    color: var(--color-navy);
    font-size: var(--text-xs);
    font-weight: 700;
    border-radius: 100px;
    margin-bottom: var(--spacing-md);
}

.about-experience-description {
    color: var(--color-charcoal);
    font-size: var(--text-lg);
    line-height: 1.8;
    max-width: 100%;
}

/* Timeline Hover Effect */
.about-experience-header,
.about-experience-description {
    transition: transform 0.3s ease;
}

.about-experience-item:hover .about-experience-header,
.about-experience-item:hover .about-experience-description {
    transform: translateX(10px);
}

/* RTL Adjustments for Timeline */
html[dir="rtl"] .about-experience-grid::before {
    left: auto;
    right: 20px;
}

html[dir="rtl"] .about-experience-item {
    padding-left: 0;
    padding-right: 60px;
    text-align: right;
}

html[dir="rtl"] .about-experience-item::before {
    left: auto;
    right: 11px;
}

html[dir="rtl"] .about-experience-item:hover .about-experience-header,
html[dir="rtl"] .about-experience-item:hover .about-experience-description {
    transform: translateX(-10px);
}

@media (max-width: 900px) {
    .about-experience-item {
        grid-template-columns: 1fr;
        padding: var(--spacing-xl);
        text-align: center;
    }

    .item-icon-box {
        margin: 0 auto;
    }

    .item-date-side {
        text-align: center;
        border-left: none;
        border-right: none;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        padding: var(--spacing-md) 0 0;
    }

    html[dir="rtl"] .about-experience-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    html[dir="rtl"] .item-date-side {
        text-align: center;
        border-right: none;
    }
}

@media (max-width: 768px) {
    .about-experience-grid::before {
        left: 15px;
    }

    .about-experience-item {
        padding-left: 45px;
    }

    .about-experience-item::before {
        left: 6px;
    }

    html[dir="rtl"] .about-experience-grid::before {
        left: auto;
        right: 15px;
    }

    html[dir="rtl"] .about-experience-item {
        padding-left: 0;
        padding-right: 45px;
    }

    html[dir="rtl"] .about-experience-item::before {
        left: auto;
        right: 6px;
    }
}

/* Focus Pills Typography & Layout */
.hero-focus {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.focus-label {
    display: block;
    font-size: 10px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

.focus-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.focus-pill {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 14px;
    color: #ffffff;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.focus-pill:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

/* Reverting Practice Areas Section Styles */
.about-practice-areas {
    display: none;
}



/* Education Section */
.about-education {
    padding: var(--spacing-4xl) var(--spacing-md);
    background: radial-gradient(circle at center, var(--color-navy) 0%, #0a1128 100%);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(212, 175, 127, 0.1);
}

/* Force header text to white for dark theme */
.about-education .about-section-header h2 {
    color: var(--color-white);
}

.stars-background-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.8;
}

/* Golden Glow Circles */
.glow-circle {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 127, 0.25) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    filter: blur(60px);
}

.glow-circle-1 {
    top: -200px;
    right: -100px;
}

.glow-circle-2 {
    bottom: -250px;
    left: -150px;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(212, 175, 127, 0.15) 0%, transparent 70%);
}

/* Education Mosaic Layout */
.about-education-content {
    background: transparent;
    backdrop-filter: none;
    padding: 0;
    border: none;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
}

.education-block {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: var(--spacing-2xl);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.education-block:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--color-gold);
    transform: translateY(-5px);
}

/* Education section icon styling */
.education-icon {
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 127, 0.15);
    border: 1px solid rgba(212, 175, 127, 0.3);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.education-block:hover .education-icon {
    background: var(--color-gold);
    color: var(--color-navy);
    transform: scale(1.05);
}

.education-header-main h3 {
    font-size: var(--text-xl) !important;
    color: var(--color-white) !important;
    margin-bottom: 8px;
    font-weight: 700;
}

.school-name {
    color: var(--color-gold) !important;
    font-weight: 600;
    font-size: var(--text-sm) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-md) !important;
}

.education-desc {
    font-size: var(--text-base) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    line-height: 1.6;
}

/* Certifications Mosaic Grid */
.about-certifications {
    grid-column: span 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.about-cert-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: var(--spacing-xl);
    border-left: 4px solid var(--color-gold);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.about-cert-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: var(--color-gold);
}

.about-cert-item h4 {
    font-size: var(--text-base);
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.about-cert-item p {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

/* Certifications as raw text (no cards) */
.certifications-inline {
    grid-column: span 2;
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.certifications-inline h4 {
    color: var(--color-gold);
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    margin-top: var(--spacing-lg);
}

.certifications-inline h4:first-child {
    margin-top: 0;
}

.certifications-inline p {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-base);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

@media (max-width: 1024px) {
    .about-education-content {
        grid-template-columns: 1fr;
    }

    .about-certifications {
        grid-column: span 1;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .about-education-content {
        grid-template-columns: 1fr;
    }

    .certifications-inline {
        grid-column: span 1;
    }

    .education-block {
        padding: var(--spacing-lg);
    }

    .education-header-main h3 {
        font-size: var(--text-lg) !important;
        word-break: break-word;
    }

    .school-name {
        font-size: var(--text-xs) !important;
    }

    .about-education {
        padding: var(--spacing-3xl) var(--spacing-md);
    }

    .certifications-inline h4 {
        font-size: var(--text-base) !important;
    }
}

/* CTA Section */
.about-cta {
    padding: var(--spacing-3xl) var(--spacing-md);
    background: var(--color-beige);
    text-align: center;
}

.about-cta h2 {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    color: var(--color-navy);
    margin-bottom: var(--spacing-md);
}

.about-cta p {
    font-size: var(--text-lg);
    color: var(--color-charcoal);
    margin-bottom: var(--spacing-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}


/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-hero-content {
        gap: var(--spacing-2xl);
    }

    .about-hero-image {
        flex: 0 0 252px;
    }

    .about-image-wrapper {
        width: 252px;
        height: 392px;
        /* 9:14 aspect ratio maintained */
    }

    .about-hero-text h1 {
        font-size: var(--text-3xl);
    }
}

@media (max-width: 768px) {
    .about-hero {
        min-height: auto;
        padding: 140px var(--spacing-md) var(--spacing-2xl);
    }

    .about-hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .about-hero-image {
        flex: 0 0 auto;
    }

    .about-image-wrapper {
        width: 225px;
        height: 350px;
        /* 9:14 aspect ratio maintained */
        margin: 0 auto;
    }

    .about-hero-text h1 {
        font-size: var(--text-2xl);
    }

    .about-hero-subtitle {
        font-size: var(--text-lg);
    }

    .about-hero-description {
        font-size: var(--text-base);
    }

    .practice-areas-grid {
        grid-template-columns: 1fr;
    }

    .about-experience-header {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Force Hamburger to HARD LEFT in RTL Mobile */
    html[dir="rtl"] .mobile-controls {
        flex: 1;
        justify-content: flex-end;
        /* In RTL, flex-end is the visual LEFT */
    }

    html[dir="rtl"] .hamburger-btn {
        order: 3;
        /* Highest order moves it to the visual left in RTL */
    }

    html[dir="rtl"] .mobile-lang-switcher {
        order: 2;
    }

    html[dir="rtl"] .phone-icon-btn {
        order: 1;
    }

    .corner-badge {
        top: 100px;
        /* Moved up from 140px to avoid touching the image */
    }

    .focus-grid {
        justify-content: center;
    }
}

/* RTL Support */
html[dir="rtl"] .about-hero-content {
    flex-direction: row-reverse;
}

/* Removed old card borders that caused "thick lines" */
html[dir="rtl"] .about-experience-item {
    border: none;
}

html[dir="rtl"] .about-skill-card {
    border-top: 3px solid var(--color-gold);
}

html[dir="rtl"] .about-cert-item {
    border-left: none;
    border-right: 3px solid var(--color-gold);
}

@media (max-width: 768px) {
    html[dir="rtl"] .about-hero-content {
        flex-direction: column-reverse;
    }
}

html[dir="rtl"] .corner-badge {
    right: auto;
    left: 5%;
    flex-direction: row-reverse;
}

html[dir="rtl"] .focus-grid {
    justify-content: flex-start;
}