/* ===== PAGE HERO ===== */
.page-hero {
    padding: 200px 0 80px;
    background: linear-gradient(135deg, #0a1628 0%, #152238 25%, var(--primary) 50%, var(--primary-light) 75%, #1d3461 100%);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent), transparent 70%);
    border-radius: 50%;
    opacity: 0.08;
    animation: float 8s ease-in-out infinite;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -80px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--secondary), transparent 70%);
    border-radius: 50%;
    opacity: 0.08;
    animation: float 10s ease-in-out infinite 2s;
}

.page-hero-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.page-hero-title {
    font-family: 'Cairo', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-white);
    margin-bottom: 10px;
    line-height: 1.2;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
}

.page-hero-subtitle {
    font-size: 1.2rem;
    background: linear-gradient(135deg, #F5A862, #FFD700, #E8853B);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
    font-weight: 600;
    margin-bottom: 15px;
}

.page-hero-description {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 25px;
    max-width: 600px;
}

.page-hero-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: var(--text-white);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-chip i {
    color: var(--accent);
}

/* Fix LTR content in RTL layout */
.contact-chip[dir="ltr"],
.btn[dir="ltr"] {
    flex-direction: row-reverse;
}

.footer-links li[dir="ltr"] {
    text-align: right;
    direction: ltr;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    flex-direction: row-reverse;
}

.page-hero-image img {
    width: 450px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-lg);
    animation: floatSlow 5s ease-in-out infinite;
}

/* ===== ABOUT SECTIONS ===== */
.about-section {
    padding: 80px 0;
    background: var(--bg-white);
    position: relative;
}

.about-section:nth-child(even):not(.about-section-alt) {
    background: linear-gradient(180deg, var(--bg-white) 0%, #faf8f5 50%, var(--bg-white) 100%);
}

.about-section-alt {
    background: linear-gradient(180deg, var(--bg-cream) 0%, #fff5eb 50%, var(--bg-cream) 100%);
    position: relative;
    overflow: hidden;
}

.about-section-alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e8853b' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.about-section-alt::after {
    display: none;
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-right: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--accent), var(--secondary));
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-right: 30px;
}

.timeline-dot {
    position: absolute;
    right: -48px;
    top: 5px;
    width: 16px;
    height: 16px;
    background: var(--accent-gradient);
    border-radius: 50%;
    border: 3px solid var(--bg-white);
    box-shadow: 0 0 0 3px var(--accent), 0 0 15px rgba(232, 133, 59, 0.3);
}

.timeline-content {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 25px 30px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.timeline-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.timeline-header h3 {
    font-family: 'Cairo', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.timeline-location,
.timeline-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.timeline-location i,
.timeline-date i {
    color: var(--accent);
    font-size: 0.8rem;
}

.timeline-role {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 10px;
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0;
}

.timeline-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-list li {
    position: relative;
    padding-right: 20px;
    padding-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.7;
}

.timeline-list li::before {
    content: '✦';
    position: absolute;
    right: 0;
    color: var(--accent);
    font-size: 0.7rem;
    top: 4px;
}

.timeline-list li a {
    color: var(--accent);
    text-decoration: underline;
}

/* ===== ACHIEVEMENTS ===== */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.achievement-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.achievement-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.achievement-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(145deg, rgba(232, 133, 59, 0.12), rgba(232, 133, 59, 0.04));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(232, 133, 59, 0.1);
}

.achievement-card h3 {
    font-family: 'Cairo', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.achievement-org {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 5px;
}

.achievement-date {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(27, 42, 74, 0.05);
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.achievement-card p {
    font-size: 0.93rem;
    color: var(--text-body);
    line-height: 1.7;
}

.achievement-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.achievement-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--accent);
    padding: 6px 14px;
    border: 1px solid rgba(232, 133, 59, 0.25);
    border-radius: 20px;
    text-decoration: none;
}

/* ===== EDUCATION ===== */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.education-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9ff 50%, #fff9f2 100%);
    border-radius: var(--radius-lg);
    padding: 40px 30px 35px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(27, 42, 74, 0.06);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(232, 133, 59, 0.08);
}

.education-degree {
    display: inline-block;
    background: var(--accent-gradient);
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 24px;
    border-radius: 30px;
    margin-bottom: 18px;
    box-shadow: 0 4px 15px rgba(232, 133, 59, 0.25);
    letter-spacing: 0.5px;
}

.education-card h3 {
    font-family: 'Cairo', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.education-uni {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.education-uni i {
    color: var(--accent);
    font-size: 1rem;
}

.education-card p:last-child {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.8;
}

.education-card p:last-child strong {
    color: var(--accent);
    font-weight: 700;
}

/* ===== COURSES ===== */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    position: relative;
    z-index: 1;
}

.course-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 25px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 1;
}

/* Featured course cards with images */
.course-card-featured {
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    gap: 0;
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(27, 42, 74, 0.08);
}

.course-card-featured .course-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    border-radius: 10px 10px 0 0;
}

.course-card-featured .course-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    z-index: 1;
    pointer-events: none;
}

.course-card-featured .course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-card-featured .course-body {
    padding: 28px 25px 30px;
    position: relative;
    background: #ffffff;
    flex: 1;
}

.course-icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
    background: linear-gradient(145deg, rgba(232, 133, 59, 0.12), rgba(232, 133, 59, 0.04));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent);
}

.course-body h4,
.course-card h4 {
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.course-body span,
.course-card span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== SKILLS & LANGUAGES ===== */
.skills-languages-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(145deg, rgba(27, 42, 74, 0.04), rgba(27, 42, 74, 0.01));
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tag i {
    color: var(--accent);
}

.languages-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.language-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.language-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.language-name {
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
}

.language-level {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.language-bar {
    width: 100%;
    height: 8px;
    background: rgba(27, 42, 74, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.language-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 10px;
    position: relative;
    box-shadow: 0 0 10px rgba(232, 133, 59, 0.3);
}

/* ===== CTA CONTACT INFO ===== */
.cta-contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .page-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .page-hero-image {
        display: flex;
        justify-content: center;
        order: -1;
    }

    .page-hero-image img {
        width: 350px;
        max-width: 100%;
    }

    .page-hero-contact {
        justify-content: center;
    }

    .page-hero-description {
        margin: 0 auto 25px;
    }

    .skills-languages-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline {
        padding-right: 30px;
    }

    .timeline-dot {
        right: -38px;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 130px 0 60px;
    }

    .page-hero-title {
        font-size: 2.2rem;
    }

    .page-hero-subtitle {
        font-size: 1rem;
    }

    .page-hero-image img {
        width: 300px;
        max-width: 100%;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .education-grid {
        grid-template-columns: 1fr;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .about-section {
        padding: 60px 0;
    }

    .cta-contact-info {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .page-hero-title {
        font-size: 1.8rem;
    }

    .page-hero-image img {
        width: 280px;
        max-width: 100%;
    }

    .contact-chip {
        font-size: 0.8rem;
        padding: 8px 14px;
    }

    .timeline {
        padding-right: 20px;
    }

    .timeline::before {
        right: 0;
    }

    .timeline-dot {
        right: -28px;
        width: 12px;
        height: 12px;
    }

    .timeline-content {
        padding: 18px 20px;
    }
}