/* faouzi.css - Core Styles */

.back-to-home {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
}

.back-to-home:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    border-color: #667eea;
}

.back-to-home i {
    font-size: 16px;
}

.back-to-home span {
    display: inline-block;
}

/* For RTL layout adjustment */
html[dir="rtl"] .back-to-home {
    left: auto;
    right: 20px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .back-to-home {
        top: 15px;
        left: 15px;
        padding: 10px 16px;
        font-size: 13px;
    }
    
    html[dir="rtl"] .back-to-home {
        left: auto;
        right: 15px;
    }
    
    .back-to-home span {
        display: none;
    }
    
    .back-to-home i {
        font-size: 18px;
    }
}

/* Print - hide the button */
@media print {
    .back-to-home {
        display: none;
    }
}

/* CSS Variables */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #e74c3c;
    --text-light: #ecf0f1;
    --text-dark: #2c3e50;
    --background-light: #f8f9fa;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --border-radius: 20px;
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.7;
    color: var(--text-dark);
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 50%, #1e3a8a 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header Section */
.header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 2rem;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow: var(--shadow);
    transition: transform var(--transition);
}

.profile-image:hover {
    transform: scale(1.05);
}




.name {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: bold;

       /* font-family: 'Readex Pro','Markazi Text', 'Noto Sans Arabic', Arial, sans-serif;*/
    /*font-family: 'El Messiri','Readex Pro','Markazi Text', 'Noto Sans Arabic', Arial, sans-serif;*/
    font-family: 'Cairo Play','Markazi Text', 'Noto Sans Arabic', Arial, sans-serif;
}

.arabic-name {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    direction: rtl;

       /* font-family: 'Readex Pro','Markazi Text', 'Noto Sans Arabic', Arial, sans-serif;*/
    /*font-family: 'El Messiri','Readex Pro','Markazi Text', 'Noto Sans Arabic', Arial, sans-serif;*/
    font-family: 'Cairo Play','Markazi Text', 'Noto Sans Arabic', Arial, sans-serif;
}

.tagline {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-style: italic;
    margin-bottom: 2rem;

    font-family: 'Readex Pro','Markazi Text', 'Noto Sans Arabic', Arial, sans-serif;
    /*font-family: 'El Messiri','Readex Pro','Markazi Text', 'Noto Sans Arabic', Arial, sans-serif;*/
    /*font-family: 'Cairo Play','Markazi Text', 'Noto Sans Arabic', Arial, sans-serif;*/
}

/* Navigation */
.nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;

    font-size: 1.2rem;
    /*font-family: 'Readex Pro','Markazi Text', 'Noto Sans Arabic', Arial, sans-serif;*/
    font-family: 'El Messiri','Readex Pro','Markazi Text', 'Noto Sans Arabic', Arial, sans-serif;
    /*font-family: 'Cairo Play','Markazi Text', 'Noto Sans Arabic', Arial, sans-serif;*/
}

.nav-btn {
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    font-family: inherit;
}

.nav-btn:hover, 
.nav-btn.active {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* Content Sections */
.content {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.section {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.section.active {
    display: block;
}

/******* the sections */
#biography h2, 
#works h2, 
#philosophy h2, 
#timeline h2, 
#contact h2{   
    font-size: 2.5rem;
    /*font-family: 'Readex Pro','Markazi Text', 'Noto Sans Arabic', Arial, sans-serif;*/
    font-family: 'El Messiri','Readex Pro','Markazi Text', 'Noto Sans Arabic', Arial, sans-serif;
    /*font-family: 'Cairo Play','Markazi Text', 'Noto Sans Arabic', Arial, sans-serif;*/
}

#biography h3, 
#works h3, 
#philosophy h3, 
#timeline h3, 
#contact h3{   
    font-size: 1.4rem;
    /*font-family: 'Readex Pro','Markazi Text', 'Noto Sans Arabic', Arial, sans-serif;*/
    font-family: 'El Messiri','Readex Pro','Markazi Text', 'Noto Sans Arabic', Arial, sans-serif;
    /*font-family: 'Cairo Play','Markazi Text', 'Noto Sans Arabic', Arial, sans-serif;*/
}

#biography p, 
#works p, 
#philosophy p, 
#philosophy li,
#timeline p, 
#contact p {   
    font-size: 1rem;
    font-family: 'Readex Pro','Markazi Text', 'Noto Sans Arabic', Arial, sans-serif;
}

/* Alternative: More comprehensive approach */
#philosophy * {
    font-family: 'Readex Pro','Markazi Text', 'Noto Sans Arabic', Arial, sans-serif;
    font-size: 1rem;
}

#philosophy h2 {
    margin-top: 2rem;
}


@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.section h3 {
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
}

.section p {
    margin-bottom: 1rem;
    text-align: justify;
}

/* Book Grid */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.book-card {
    background: var(--background-light);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform var(--transition);
}

.book-card:hover {
    transform: translateY(-5px);
}

.book-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Quote Box */
.quote-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    border-radius: 15px;
    font-style: italic;
    font-size: 1.1rem;
    position: relative;
    margin: 2rem 0;
    text-align: center;
}

.quote-box::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: -10px;
    left: 20px;
    opacity: 0.3;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-item {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    transition: transform var(--transition);
}

.contact-item:hover {
    transform: translateY(-3px);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Timeline */
.timeline {
    position: relative;
    margin: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0.8rem;
    top: 0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 0 4px white;
}

.year {
    font-weight: bold;
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.timeline-item h3 {
    margin: 0.5rem 0;
    color: var(--primary-color);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-justify {
    text-align: justify;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

.bold {
    font-weight: bold;
}

.italic {
    font-style: italic;
}


/**** identity photo **/

.profile-image {
    overflow: hidden; 
    background: none; 
    border: 4px solid white;
    box-shadow: 0 0 0 2px var(--accent-color), var(--shadow);
    line-height: 1.6; 
    font-size: 1.5em;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center; 
}

a {
    color: #007bff; 
    text-decoration: none; 
    font-size: 1rem;
    font-family: 'Readex Pro','Markazi Text', 'Noto Sans Arabic', Arial, sans-serif;
}

a:hover {
    text-decoration: underline; 
    font-size: 1rem;
    font-family: 'Readex Pro','Markazi Text', 'Noto Sans Arabic', Arial, sans-serif;
}
