* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: #1a1a2e;
    background: #ffffff;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #4361ee, #7209b7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    text-decoration: none;
    color: #1a1a2e;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-menu li a:hover {
    color: #4361ee;
}

.lang-nav {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: 15px;
}

.lang-nav a {
    text-decoration: none;
    color: #666;
    font-weight: 600;
}

.lang-nav a.active-lang {
    color: #4361ee;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #1a1a2e;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?w=1600');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.hero-title {
    font-size: 1.3rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.hero-contacts {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.hero-contacts span {
    background: rgba(255,255,255,0.15);
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.9rem;
}

.hero-contacts i {
    margin-right: 8px;
    color: #4361ee;
}

.btn-hero {
    display: inline-block;
    padding: 12px 35px;
    background: #4361ee;
    color: white;
    text-decoration: none;
    border-radius: 40px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-hero:hover {
    background: #3a0ca3;
    transform: translateY(-3px);
    color: white;
}

/* ===== SECTIONS ===== */
.section {
    padding: 80px 0;
}

.bg-light {
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.section-header h2 i {
    color: #4361ee;
    margin-right: 10px;
}

.divider {
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, #4361ee, #7209b7);
    margin: 0 auto;
    border-radius: 2px;
}

/* ===== ABOUT ===== */
.about-text {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    color: #4a4a6a;
    line-height: 1.8;
}

/* ===== EDUCATION ===== */
.edu-box {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
    height: 100%;
}

.edu-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.edu-box i {
    font-size: 2.5rem;
    color: #4361ee;
    margin-bottom: 15px;
}

.edu-box h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.edu-box p {
    color: #666;
    margin-bottom: 12px;
}

.edu-box .badge {
    background: #4361ee;
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-weight: 500;
}

/* ===== COURSES ===== */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.course-item {
    background: #f8f9fa;
    padding: 25px 15px;
    text-align: center;
    border-radius: 16px;
    transition: 0.3s;
}

.course-item:hover {
    background: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

.course-item i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #4361ee, #7209b7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.course-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.course-item span {
    font-size: 0.75rem;
    color: #888;
}

/* ===== EXPERIENCE - TIMELINE ===== */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: #ddd;
}

.timeline-item {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 50%;
    padding-right: 40px;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 50%;
    padding-left: 40px;
    text-align: left;
}

.timeline-badge {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: #4361ee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.timeline-badge i {
    color: white;
    font-size: 1.3rem;
}

.timeline-content {
    width: 45%;
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.timeline-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.timeline-content h3 {
    font-size: 1.2rem;
    color: #1a1a2e;
    margin-bottom: 5px;
}

.timeline-content .company {
    color: #4361ee;
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.timeline-content ul {
    padding-left: 20px;
}

.timeline-content li {
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #555;
}

/* RTL Timeline */
body[dir="rtl"] .timeline-content ul {
    padding-right: 20px;
    padding-left: 0;
}

body[dir="rtl"] .timeline-item:nth-child(odd) .timeline-content {
    margin-right: 0;
    margin-left: 50%;
    padding-right: 0;
    padding-left: 40px;
    text-align: left;
}

body[dir="rtl"] .timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: 50%;
    padding-left: 0;
    padding-right: 40px;
    text-align: right;
}

/* ===== SKILLS - 7 أقسام ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.skill-card {
    background: #f8f9fa;
    padding: 25px 20px;
    border-radius: 20px;
    text-align: center;
    transition: 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    background: white;
}

.skill-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #4361ee, #7209b7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 15px;
}

.skill-card h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #1a1a2e;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.skill-tags span {
    background: #e9ecef;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #1a1a2e;
    transition: 0.3s;
    cursor: default;
}

.skill-tags span:hover {
    background: #4361ee;
    color: white;
    transform: translateY(-2px);
}

/* ===== CONTACT ===== */
.contact-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
}

.contact-section .section-header h2 {
    color: white;
}

.contact-section .divider {
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.contact-card {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    text-align: center;
    border-radius: 20px;
    transition: 0.3s;
}

.contact-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-5px);
}

.contact-card i {
    font-size: 2rem;
    color: #4361ee;
    margin-bottom: 15px;
}

.contact-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.social-box {
    text-align: center;
    margin-top: 20px;
}

.social-box a {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    line-height: 50px;
    text-align: center;
    color: white;
    font-size: 1.3rem;
    margin: 0 8px;
    transition: 0.3s;
}

.social-box a:hover {
    background: #4361ee;
    transform: translateY(-3px);
}

/* ===== FOOTER ===== */
footer {
    background: #0f0f1a;
    color: #888;
    text-align: center;
    padding: 25px 0;
    font-size: 0.85rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-badge {
        left: 30px;
        transform: none;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 70px);
        margin-left: 70px !important;
        margin-right: 0 !important;
        text-align: left !important;
        padding-left: 20px !important;
        padding-right: 0 !important;
    }
    
    body[dir="rtl"] .timeline::before {
        left: auto;
        right: 30px;
    }
    
    body[dir="rtl"] .timeline-badge {
        left: auto;
        right: 30px;
    }
    
    body[dir="rtl"] .timeline-item:nth-child(odd) .timeline-content,
    body[dir="rtl"] .timeline-item:nth-child(even) .timeline-content {
        margin-right: 70px !important;
        margin-left: 0 !important;
        text-align: right !important;
        padding-right: 20px !important;
        padding-left: 0 !important;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-title {
        font-size: 1rem;
    }
    
    .hero-contacts {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 20px 0;
        gap: 15px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .lang-nav {
        justify-content: center;
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
}


/* Master Degree - In Progress */
.master-box {
    background: linear-gradient(135deg, #fff 0%, #e8f0fe 100%);
    border: 2px solid #4361ee;
    position: relative;
}

.master-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #4361ee, #7209b7, #f72585);
    border-radius: 20px 20px 0 0;
}

.badge.in-progress {
    background: linear-gradient(135deg, #f72585, #7209b7);
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.8; transform: scale(1); }
}

/* Responsive for 3 columns */
@media (max-width: 768px) {
    .row.g-4 {
        display: flex;
        flex-direction: column;
    }
    .col-md-4 {
        margin-bottom: 20px;
    }
}


/* About Section with Image */
.about-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    justify-content: center;
}

.about-image {
    flex-shrink: 0;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 35px rgba(0,0,0,0.15);
    border: 4px solid white;
    background: linear-gradient(135deg, #4361ee, #7209b7);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4361ee, #7209b7);
    color: white;
}

.image-fallback i {
    font-size: 6rem;
}

.about-content {
    flex: 1;
    min-width: 280px;
}

@media (max-width: 768px) {
    .about-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .about-image {
        width: 160px;
        height: 160px;
    }
}



/*/
/* ===== SKILLS SECTION - موسع ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.skill-card {
    background: #ffffff;
    padding: 30px 25px;
    border-radius: 24px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(67, 97, 238, 0.12);
    border-color: transparent;
}

.skill-icon {
    font-size: 2.8rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #4361ee, #7209b7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.skill-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a2e;
    position: relative;
    display: inline-block;
}

.skill-card h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #4361ee, #7209b7);
    border-radius: 2px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 15px;
}

.skill-tags span {
    background: #f0f2f8;
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #1a1a2e;
    transition: all 0.3s ease;
    cursor: default;
    letter-spacing: 0.3px;
}

.skill-tags span:hover {
    background: linear-gradient(135deg, #4361ee, #7209b7);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(67, 97, 238, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .skill-card {
        padding: 25px 20px;
    }
    
    .skill-tags span {
        padding: 4px 12px;
        font-size: 0.75rem;
    }
}
/* ===== SKILLS SECTION - موسع مع مهارات أكثر ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.skill-card {
    background: #ffffff;
    padding: 30px 25px;
    border-radius: 24px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(67, 97, 238, 0.12);
    border-color: transparent;
}

.skill-icon {
    font-size: 2.8rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #4361ee, #7209b7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.skill-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a2e;
    position: relative;
    display: inline-block;
}

.skill-card h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #4361ee, #7209b7);
    border-radius: 2px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.skill-tags span {
    background: #f0f2f8;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #1a1a2e;
    transition: all 0.3s ease;
    cursor: default;
    letter-spacing: 0.3px;
}

.skill-tags span:hover {
    background: linear-gradient(135deg, #4361ee, #7209b7);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(67, 97, 238, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .skill-card {
        padding: 25px 20px;
    }
    
    .skill-tags span {
        padding: 4px 10px;
        font-size: 0.7rem;
    }
}



/* ===== ABOUT SECTION ===== */
.about {
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
}

.about-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
}

/* Profile Image */
.about-image {
    flex-shrink: 0;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 25px 40px rgba(67, 97, 238, 0.25);
    border: 5px solid white;
    background: linear-gradient(135deg, #4361ee, #7209b7);
    transition: transform 0.3s ease;
}

.about-image:hover {
    transform: scale(1.02);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4361ee, #7209b7);
    color: white;
}

.image-fallback i {
    font-size: 6rem;
}

/* About Content */
.about-content {
    flex: 1;
    min-width: 280px;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: justify;
}

.about-text strong {
    color: #4361ee;
    font-weight: 700;
}

/* Info Items */
.about-info {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #eef2f7;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0f4ff;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #1a1a2e;
    transition: all 0.3s;
}

.info-item i {
    color: #4361ee;
    font-size: 1rem;
}

.info-item:hover {
    background: linear-gradient(135deg, #4361ee, #7209b7);
    color: white;
    transform: translateY(-3px);
}

.info-item:hover i {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .about-wrapper {
        gap: 30px;
    }
    
    .about-image {
        width: 180px;
        height: 180px;
    }
    
    .image-fallback i {
        font-size: 4rem;
    }
    
    .about-text {
        font-size: 0.95rem;
        text-align: center;
    }
    
    .about-info {
        justify-content: center;
    }
    
    .info-item {
        padding: 5px 14px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .about-info {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}
/*logo/
/* CSS للشعار الاحترافي */
/* CSS للشعار الدائري */
.logo-circle {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #4361ee, #7209b7);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(67,97,238,0.3);
}

.logo-circle span {
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    letter-spacing: -1px;
}

.logo-circle:hover {
    transform: scale(1.05);
    border-radius: 50%;
}


/*/

/* ========================================
   HERO SECTION WITH BG IMAGE + MATRIX RAIN
   ======================================== */

   .hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* Background Image */
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?w=1600');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
}

/* Canvas for Matrix Effect */
#matrixCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.35;
}

/* Hero Overlay - طبقة شفافة فوق الصورة */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 42, 0.6) 0%, rgba(26, 26, 62, 0.7) 100%);
    z-index: 2;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 3;
    color: white;
    padding: 20px;
}

/* شعار متحرك */
.hero-logo {
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease;
}

.hero-logo-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    padding: 12px 28px;
    border-radius: 60px;
    border: 1px solid rgba(67, 97, 238, 0.5);
    transition: all 0.3s;
}

.hero-logo-wrapper:hover {
    transform: scale(1.05);
    border-color: #4361ee;
    box-shadow: 0 0 30px rgba(67, 97, 238, 0.3);
}

.hero-logo-bracket {
    font-size: 1.6rem;
    font-weight: 800;
    color: #4361ee;
    font-family: monospace;
}

.hero-logo-initials {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #4361ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* عنوان رئيسي */
.animate-title {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff, #a0c0ff, #4361ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fadeInUp 0.8s ease 0.1s both;
}

/* عنوان فرعي مع تأثير كتابة */
.hero-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 30px;
}

.animate-text {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    display: inline-block;
}

.cursor-blink {
    display: inline-block;
    width: 3px;
    height: 28px;
    background-color: #4361ee;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Code Badges متحركة */
.code-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.code-badge {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    padding: 6px 16px;
    border-radius: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4cc9f0;
    border: 1px solid rgba(76, 201, 240, 0.3);
    transition: all 0.3s;
    cursor: default;
}

.code-badge:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: #4cc9f0;
    box-shadow: 0 0 15px rgba(76, 201, 240, 0.4);
    background: rgba(76, 201, 240, 0.1);
}

/* أزرار */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 35px;
    background: linear-gradient(135deg, #4361ee, #7209b7);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-hero:hover::before {
    left: 100%;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(67, 97, 238, 0.4);
}

.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 35px;
    background: transparent;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s;
}

.btn-hero-outline:hover {
    border-color: #4361ee;
    background: rgba(67, 97, 238, 0.1);
    transform: translateY(-3px);
}

/* مؤشر التمرير */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: bounce 2s infinite;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    animation: scrollWheel 1.5s infinite;
}

.scroll-text {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.6);
    letter-spacing: 2px;
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    80% { opacity: 0; transform: translateX(-50%) translateY(10px); }
    100% { opacity: 0; transform: translateX(-50%) translateY(0); }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* تأثيرات الدخول */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* استجابة للجوال */
@media (max-width: 768px) {
    .animate-title {
        font-size: 2rem;
    }
    
    .animate-text {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-hero, .btn-hero-outline {
        padding: 10px 25px;
    }
    
    .code-badges {
        gap: 8px;
    }
    
    .code-badge {
        font-size: 0.65rem;
        padding: 4px 10px;
    }
    
    .scroll-indicator {
        display: none;
    }
}




/* ===== EXPERIENCE SECTION - WITH COMPANY LOGOS ===== */

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, #4361ee, #7209b7, #4361ee);
}

/* Company Logo Circle */
.timeline-badge {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    z-index: 10;
}

.company-logo-circle {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border: 3px solid #4361ee;
    transition: all 0.3s;
    overflow: hidden;
}

.company-logo-circle:hover {
    transform: scale(1.1);
    border-color: #ffd700;
    box-shadow: 0 10px 25px rgba(67,97,238,0.3);
}

.company-logo-img {
    width: 60%;
    height: auto;
    object-fit: contain;
}

/* Featured Logo (OIU) */
.featured-logo {
    border: 3px solid #ffd700;
    background: linear-gradient(135deg, #fff, #fff8e0);
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,215,0,0.4), transparent);
    animation: logoGlow 2s infinite;
}

@keyframes logoGlow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

/* Timeline Content */
.timeline-item {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 50%;
    padding-right: 50px;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 50%;
    padding-left: 50px;
    text-align: left;
}

.timeline-content {
    width: 45%;
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s;
    position: relative;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(67,97,238,0.15);
}

.timeline-content h3 {
    font-size: 1.2rem;
    color: #4361ee;
    margin-bottom: 5px;
}

.timeline-content .company {
    color: #7209b7;
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.timeline-content .company span {
    color: #888;
}

.timeline-content ul {
    padding-left: 20px;
}

.timeline-content li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #555;
}

/* Featured Content */
.featured-content {
    background: linear-gradient(135deg, #fff, #fff8e0);
    border: 1px solid rgba(255,215,0,0.3);
}

/* RTL Support */
[dir="rtl"] .timeline-content ul {
    padding-right: 20px;
    padding-left: 0;
}

[dir="rtl"] .timeline-item:nth-child(odd) .timeline-content {
    margin-right: 0;
    margin-left: 50%;
    padding-right: 0;
    padding-left: 50px;
    text-align: left;
}

[dir="rtl"] .timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: 50%;
    padding-left: 0;
    padding-right: 50px;
    text-align: right;
}

/* Responsive */
@media (max-width: 992px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-badge {
        left: 30px;
        transform: none;
        width: 55px;
        height: 55px;
    }
    
    .company-logo-circle {
        border-width: 2px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 100px);
        margin-left: 85px !important;
        margin-right: 0 !important;
        text-align: left !important;
        padding-left: 20px !important;
        padding-right: 0 !important;
    }
    
    [dir="rtl"] .timeline-item:nth-child(odd) .timeline-content,
    [dir="rtl"] .timeline-item:nth-child(even) .timeline-content {
        margin-right: 85px !important;
        margin-left: 0 !important;
        text-align: right !important;
        padding-right: 20px !important;
        padding-left: 0 !important;
    }
    
    [dir="rtl"] .timeline::before {
        left: auto;
        right: 30px;
    }
    
    [dir="rtl"] .timeline-badge {
        left: auto;
        right: 30px;
    }
}

@media (max-width: 576px) {
    .timeline-badge {
        width: 45px;
        height: 45px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 70px);
        margin-left: 65px !important;
        padding: 15px;
    }
    
    .timeline-content h3 {
        font-size: 1rem;
    }
}


/* ===== COMPANY LINKS STYLES ===== */

/* Logo Link */
.company-logo-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    cursor: pointer;
}

/* Company Name Link */
.company-link {
    color: #4361ee;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.company-link i {
    font-size: 0.7rem;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s;
}

.company-link:hover {
    color: #7209b7;
}

.company-link:hover i {
    opacity: 1;
    transform: translateX(0);
}

/* Hover effect on logo circle */
.company-logo-circle {
    transition: all 0.3s;
    cursor: pointer;
}

.company-logo-link:hover .company-logo-circle {
    transform: scale(1.1);
    border-color: #ffd700;
    box-shadow: 0 10px 25px rgba(67,97,238,0.4);
}

/* RTL Support */
[dir="rtl"] .company-link i {
    transform: translateX(5px);
}

[dir="rtl"] .company-link:hover i {
    transform: translateX(0);
}


/* ===== NAVBAR LOGO IMAGE STYLES ===== */

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 55px;
    width: auto;
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px rgba(67, 97, 238, 0.5));
}

/* Fallback Logo (if image fails to load) */
.logo-circle {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #4361ee, #7209b7);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.logo-circle span {
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
    letter-spacing: -1px;
}

.logo-circle:hover {
    transform: scale(1.05);
    border-radius: 50%;
}

/* Responsive */
@media (max-width: 768px) {
    .logo-img {
        height: 55px;
    }
    
    .logo-circle {
        width: 55px;
        height: 55px;
    }
    
    .logo-circle span {
        font-size: 1rem;
    }
}