/* 
 * MAHA PORTFOLIO - THEME1 (Foundation) 
 * Created: 2026-04-12
 * Style: Premium Light Executive
 */

:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: rgba(14, 165, 233, 0.1);
    
    --bg-main: #f8fafc;
    --bg-section: #f1f5f9;
    --card-bg: #ffffff;
    
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-light: #94a3b8;
    
    --border: rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

/* Base Fonts & Reset */
html { scroll-behavior: smooth; }
html[dir="ltr"] body { font-family: 'Poppins', sans-serif; }
html[dir="rtl"] body { font-family: 'Cairo', sans-serif; }

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Components --- */

.glass-panel {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.keyword-highlight {
    color: var(--primary);
    font-weight: 700;
}

/* Animations Scroll */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Infinite Marquee */
.marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
    display: flex;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
html[dir="rtl"] @keyframes marquee {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}
.marquee-content {
    display: flex;
    animation: marquee 25s linear infinite;
    width: fit-content;
}
.marquee-item {
    flex: 0 0 auto;
    padding: 0 3rem;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.marquee-item:hover { color: var(--primary); }

/* Slideshow */
#about-slideshow {
    transition: opacity 800ms ease, transform 800ms ease;
}
#about-slideshow.fade-out { opacity: 0; transform: scale(1.05); }
#about-slideshow.fade-in { opacity: 1; transform: scale(1); }

/* Timeline (Parcours Pro) */
.timeline-item {
    border-left: 2px solid var(--border);
    padding-bottom: 2rem;
    position: relative;
    padding-left: 2rem;
}
html[dir="rtl"] .timeline-item {
    border-left: 0;
    border-right: 2px solid var(--border);
    padding-left: 0;
    padding-right: 2rem;
}
.timeline-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
    top: 6px;
    box-shadow: 0 0 8px var(--primary);
}
.timeline-dot-l { left: -8px; }
.timeline-dot-r { right: -8px; }

/* Buttons Overhaul */
.btn-primary {
    background-color: var(--primary);
    color: var(--text-main);
    font-weight: 800;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.3);
}

.btn-secondary {
    background-color: #ffffff;
    border: 1px solid var(--border);
    color: var(--text-main);
    font-weight: 800;
    transition: all 0.3s ease;
}
.btn-secondary:hover {
    background-color: #f8fafc;
    border-color: var(--primary);
    color: var(--primary);
}
