/**
 * About Page Styles
 * Portfolio Website by Amr Farag
 * 
 * Matches home.css design system:
 * - Dark backgrounds with gradients
 * - Orange (#FF9500) accent color
 * - Glassmorphism effects
 * - Consistent spacing and typography
 */

/* ==================== CSS VARIABLES (Inherited from global.css) ==================== */
:root {
    /* Colors */
    --dark: #0A0E1A;
    --dark-light: #1E2637;
    --primary: #FF9500;
    --primary-hover: #FFB340;
    --text: #FFFFFF;
    --text-light: #E5E5E5;
    --text-gray: #94A3B8;
    --border: rgba(255, 255, 255, 0.1);
    --border-primary: rgba(255, 149, 0, 0.4);
    
    /* Spacing */
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Typography */
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    
    --font-normal: 400;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    
    /* Effects */
    --radius-full: 9999px;
    --transition-base: 0.3s ease;
    --shadow-glow: 0 10px 40px rgba(255, 149, 0, 0.3);
    
    /* Container */
    --container-2xl: 1400px;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-tight: 1.25;
}

/* ==================== ABOUT HERO SECTION ==================== */

.about-hero-section {
    /* EXACT match to home page about-section */
    background: linear-gradient(180deg, 
        rgba(19 24 32) 0%, 
        rgba(25, 32, 48, 0.98) 50%,
        rgba(15, 22, 36, 0.95) 100%
    );
    position: relative;
    padding: 140px 0 120px;
    overflow: hidden;
    min-height: 70vh;
}

/* Background glow effect - EXACT match */
.about-hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(255, 149, 0, 0.06) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

/* No grid pattern on hero - keeping it clean like sections */
.about-hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, transparent, rgba(20, 25, 35, 0.4));
    pointer-events: none;
    z-index: 2;
}

.about-hero-section .container {
    position: relative;
    z-index: 10;
    max-width: var(--container-2xl);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Header */
.about-header {
    text-align: center;
    margin-bottom: 80px;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-title {
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 900;
    color: var(--text);
    margin-bottom: 20px;
    letter-spacing: -2px;
    line-height: 1.1;
}

.about-title .text-primary {
    color: var(--primary);
    display: inline-block;
    position: relative;
}

.about-subtitle {
    font-size: var(--text-xl);
    color: var(--text-gray);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Content Wrapper - Two Column Layout with smaller LinkedIn badge */
.about-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    align-items: start;
    margin-bottom: 80px;
}

/* Story Content - NO CARD, direct on background */
.about-story-card {
    padding: 0 0 0 30px;
    border-left: 3px solid rgba(255, 149, 0, 0.4);
    animation: fadeIn 0.8s ease-out 0.2s backwards;
}

.about-story-card:hover {
    border-left-color: rgba(255, 149, 0, 0.8);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.story-heading {
    font-size: var(--text-4xl);
    font-weight: var(--font-extrabold);
    color: var(--text);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.story-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), transparent);
    border-radius: 2px;
}

.story-paragraph {
    font-size: var(--text-xl);
    line-height: 2;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 900px;
}

.story-paragraph:last-child {
    margin-bottom: 0;
}

.story-text {
    font-size: var(--text-xl);
    line-height: 2;
    color: var(--text-light);
    max-width: 900px;
}

.story-text h2 {
    font-size: var(--text-4xl);
    font-weight: var(--font-extrabold);
    color: var(--text);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.story-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), transparent);
    border-radius: 2px;
}

.story-text p {
    margin-bottom: 25px;
    line-height: 2;
}

.story-text ul,
.story-text ol {
    margin: 25px 0;
    padding-left: 30px;
}

.story-text li {
    margin-bottom: 15px;
    line-height: 1.9;
    position: relative;
}

.story-text li::marker {
    color: var(--primary);
}

/* LinkedIn Profile Badge Container - SMALLER SIZE */

.linkedin-badge-container {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    backdrop-filter: none;
    box-shadow: none;
    position: sticky;
    top: 100px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    animation: slideUp 0.8s ease-out 0.4s backwards;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: auto;
    max-width: 400px;
}

.linkedin-badge-container:hover {
    transform: translateY(-5px);
}

.linkedin-badge-container::before {
    display: none;
}

.badge-base {
    max-width: 100% !important;
    transform: scale(1.3);
    transform-origin: center center;
    margin-top: 60px;
}

/* Hide the name link above badge */
.badge-base__link {
    display: none !important;
}

/* Override LinkedIn badge default styles */
.badge-base.LI-profile-badge {
    background: transparent !important;
}

/* ==================== STATS GRID ==================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    perspective: 1000px;
    animation: slideUp 0.8s ease-out 0.6s backwards;
}

.stat-card {
    position: relative;
    padding: 0;
    background: transparent;
    border: none;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    height: 180px;
}

.stat-card-inner {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 35px 25px;
    
    background: linear-gradient(
        135deg,
        rgba(255, 149, 0, 0.05) 0%,
        rgba(30, 38, 55, 0.85) 50%,
        rgba(255, 149, 0, 0.05) 100%
    );
    
    border: 2px solid rgba(255, 149, 0, 0.5);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(15px);
    
    box-shadow: 
        0 10px 35px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(255, 149, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.stat-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, transparent 50%, rgba(255, 149, 0, 0.05) 50%);
}

.stat-card-inner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(-45deg, transparent 50%, rgba(255, 149, 0, 0.05) 50%);
}

.stat-card:hover {
    transform: translateY(-10px) rotateX(8deg);
}

.stat-card:hover .stat-card-inner {
    border-color: var(--primary);
    background: linear-gradient(
        135deg,
        rgba(255, 149, 0, 0.08) 0%,
        rgba(30, 38, 55, 0.95) 50%,
        rgba(255, 149, 0, 0.08) 100%
    );
    box-shadow: 
        0 20px 55px rgba(0, 0, 0, 0.5),
        0 0 45px rgba(255, 149, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.stat-number {
    font-size: 56px;
    font-weight: 900;
    color: var(--primary);
    display: block;
    margin-bottom: 12px;
    line-height: 1;
    letter-spacing: -2px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 25px rgba(255, 149, 0, 0.4);
}

.stat-card:hover .stat-number {
    transform: scale(1.15);
    text-shadow: 0 0 35px rgba(255, 149, 0, 0.6);
}

.stat-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

/* ==================== EDUCATION SECTION ==================== */

.education-section {
    /* EXACT match to home global-section */
    background: linear-gradient(180deg, 
        rgba(18, 24, 38, 0.95) 0%, 
        rgba(22, 28, 42, 0.98) 50%,
        rgba(18, 24, 38, 0.95) 100%
    );
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.education-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(255, 149, 0, 0.05) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

/* Dotted pattern like global-section */
.education-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(255, 149, 0, 0.02) 1.5px, transparent 1.5px);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    animation: dots-shift 40s linear infinite;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
}

@keyframes dots-shift {
    0% {
        background-position: 0 0, 25px 25px;
    }
    100% {
        background-position: 50px 50px, 75px 75px;
    }
}

.education-wrapper {
    position: relative;
    z-index: 10;
    max-width: var(--container-2xl);
    width: 90%;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 56px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 20px;
    letter-spacing: -2px;
    display: inline-flex;
    align-items: center;
    gap: 20px;
}

.emoji-icon {
    font-size: 56px;
    filter: drop-shadow(0 0 20px rgba(255, 149, 0, 0.5));
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--text-gray);
    font-weight: 400;
    margin-top: 10px;
}

/* Education Grid - UNIQUE STYLE (Different from Timeline) */
.education-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.education-card {
    background: linear-gradient(
        135deg,
        rgba(255, 149, 0, 0.03) 0%,
        rgba(30, 38, 55, 0.6) 50%,
        rgba(255, 149, 0, 0.03) 100%
    );
    border: 2px solid rgba(255, 149, 0, 0.3);
    border-radius: 16px;
    padding: 35px 40px;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Top-right corner decoration */
.education-card::before {
    content: '🎓';
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 48px;
    opacity: 0.15;
    filter: drop-shadow(0 0 10px rgba(255, 149, 0, 0.3));
    transition: all 0.3s ease;
}

.education-card:hover {
    border-color: rgba(255, 149, 0, 0.6);
    background: linear-gradient(
        135deg,
        rgba(255, 149, 0, 0.05) 0%,
        rgba(30, 38, 55, 0.7) 50%,
        rgba(255, 149, 0, 0.05) 100%
    );
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(255, 149, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
}

.education-card:hover::before {
    opacity: 0.25;
    transform: scale(1.1) rotate(10deg);
}

.education-card-header {
    display: block;
}

.education-icon {
    display: none; /* Hide duplicate icon since we have ::before */
}

.education-details {
    flex: 1;
}

.education-university {
    font-size: var(--text-2xl);
    font-weight: var(--font-extrabold);
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.3;
    position: relative;
    padding-bottom: 12px;
}

/* Underline effect on university name */
.education-university::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
    border-radius: 2px;
}

.education-degree {
    font-size: var(--text-lg);
    color: var(--primary);
    font-weight: var(--font-bold);
    margin-bottom: 10px;
    line-height: 1.5;
}

.education-period {
    font-size: var(--text-sm);
    color: var(--text-gray);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 149, 0, 0.08);
    border-radius: 20px;
    border: 1px solid rgba(255, 149, 0, 0.2);
}

/* ==================== CAREER TIMELINE - PROFESSIONAL MINIMAL DESIGN ==================== */

.career-timeline-section {
    background: linear-gradient(180deg, 
        rgba(15, 22, 36, 0.95) 0%, 
        rgba(20, 28, 42, 0.98) 50%,
        rgba(15, 22, 36, 0.95) 100%
    );
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.career-timeline-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(255, 149, 0, 0.04) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.timeline-wrapper {
    position: relative;
    z-index: 10;
    max-width: var(--container-2xl);
    width: 90%;
    margin: 0 auto;
}

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Simple left-side line */
.timeline-line {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255, 149, 0, 0.4) 10%,
        rgba(255, 149, 0, 0.4) 90%,
        transparent
    );
    z-index: 1;
}

.timeline-items {
    position: relative;
    z-index: 2;
}

/* Timeline Item - Simple Single Column */
.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 60px;
}

.timeline-item-left,
.timeline-item-right {
    padding-left: 50px;
}

.timeline-content {
    position: relative;
}

/* Simple Dot */
.timeline-dot {
    position: absolute;
    left: -5px;
    top: 8px;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border: 3px solid rgba(15, 22, 36, 1);
    border-radius: 50%;
    z-index: 3;
    box-shadow: 0 0 0 4px rgba(255, 149, 0, 0.15);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.4);
    box-shadow: 0 0 0 8px rgba(255, 149, 0, 0.25);
}

/* Timeline Card - Minimal, No Heavy Styling */
.timeline-card {
    background: transparent;
    border: none;
    border-left: 2px solid rgba(255, 149, 0, 0.15);
    padding: 0 0 30px 30px;
    transition: all 0.3s ease;
}

.timeline-card:hover {
    border-left-color: rgba(255, 149, 0, 0.5);
    transform: translateX(5px);
}

.timeline-job-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-extrabold);
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.timeline-company {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--text);
    margin-bottom: 10px;
}

.timeline-period {
    font-size: var(--text-sm);
    color: var(--text-gray);
    font-weight: var(--font-semibold);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}

.timeline-description {
    font-size: var(--text-base);
    line-height: 1.8;
    color: var(--text-light);
    margin-top: 15px;
}

/* ==================== RESPONSIVE DESIGN ==================== */

@media (max-width: 1024px) {
    .about-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .linkedin-badge-container {
        position: static;
        min-height: 350px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .education-grid {
        grid-template-columns: 1fr;
    }
    
    /* Timeline becomes single column */
    .timeline-line {
        left: 30px;
    }
    
    .timeline-item {
        grid-template-columns: 60px 1fr;
        gap: 0;
    }
    
    .timeline-item-left .timeline-content,
    .timeline-item-right .timeline-content {
        grid-column: 2;
        text-align: left;
        padding-left: 40px;
        padding-right: 0;
    }
    
    .timeline-item-left .timeline-dot,
    .timeline-item-right .timeline-dot {
        grid-column: 1;
        margin: 0;
        margin-left: 18px;
    }
    
    .timeline-item-left .timeline-card::before {
        right: 15px;
        left: auto;
        border-left: none;
        border-right: 2px solid rgba(255, 149, 0, 0.3);
    }
}

@media (max-width: 768px) {
    .about-hero-section {
        padding: 120px 0 80px;
    }
    
    .about-title {
        font-size: 42px;
    }
    
    .about-subtitle {
        font-size: var(--text-base);
    }
    
    .about-story-card,
    .linkedin-badge-container {
        padding: 35px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-card {
        height: 160px;
    }
    
    .stat-number {
        font-size: 48px;
    }
    
    .section-title {
        font-size: 40px;
    }
    
    .emoji-icon {
        font-size: 40px;
    }
    
    .education-card {
        padding: 30px 35px;
    }
    
    .timeline-card {
        padding: 30px;
    }
    
    .timeline-job-title {
        font-size: var(--text-xl);
    }
    
    .timeline-company {
        font-size: var(--text-lg);
    }
}

@media (max-width: 480px) {
    .about-hero-section {
        padding: 100px 0 60px;
    }
    
    .about-title {
        font-size: 36px;
    }
    
    .about-header {
        margin-bottom: 50px;
    }
    
    .about-story-card,
    .linkedin-badge-container {
        padding: 25px;
        border-radius: 20px;
    }
    
    .story-heading {
        font-size: var(--text-2xl);
    }
    
    .story-paragraph,
    .story-text {
        font-size: var(--text-base);
    }
    
    .linkedin-badge-container {
        min-height: 320px;
        padding: 25px 15px;
    }
    
    .stat-card {
        height: 140px;
    }
    
    .stat-card-inner {
        padding: 25px 20px;
    }
    
    .stat-number {
        font-size: 40px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .emoji-icon {
        font-size: 32px;
    }
    
    .education-card {
        padding: 25px;
    }
    
    .education-card-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .education-icon {
        font-size: 36px;
    }
    
    .education-university {
        font-size: var(--text-xl);
    }
    
    .timeline-card {
        padding: 25px;
    }
    
    .timeline-line {
        left: 22px;
    }
    
    .timeline-dot {
        width: 20px;
        height: 20px;
        margin-left: 10px;
    }
    
    .timeline-item-left .timeline-dot,
    .timeline-item-right .timeline-dot {
        margin-left: 10px;
    }
    
    .timeline-item-left .timeline-content,
    .timeline-item-right .timeline-content {
        padding-left: 30px;
    }
}

/* ==================== ACCESSIBILITY ==================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==================== PRINT STYLES ==================== */

@media print {
    .about-hero-section,
    .education-section,
    .career-timeline-section {
        background: white !important;
        color: black !important;
    }
    
    .about-story-card,
    .linkedin-badge-container,
    .stat-card-inner,
    .education-card,
    .timeline-card {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }
    
    .timeline-line,
    .timeline-dot {
        display: none;
    }
    
    .timeline-item {
        grid-template-columns: 1fr;
    }
    
    .timeline-item-left .timeline-content,
    .timeline-item-right .timeline-content {
        padding: 0;
        text-align: left;
    }
}

/* ==================== END OF FILE ==================== */