:root {
    --primary-color: #1a365d;
    --primary-light: #2c5282;
    --accent-color: #c49102;
    --accent-light: #d69e2e;
    --text-dark: #1a202c;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.lang-toggle {
    background: var(--accent-color);
    color: var(--bg-white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 1rem;
    font-family: 'Tajawal', 'Poppins', sans-serif;
}

.lang-toggle:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: 100px 20px 50px;
    position: relative;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.hero-text {
    flex: 1;
    color: var(--bg-white);
}

.hero-greeting {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.hero-name {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.hero-title {
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--accent-light);
    margin-bottom: 1rem;
}

.hero-location {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-location i {
    margin-right: 0.5rem;
    color: var(--accent-light);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--bg-white);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--bg-white);
    border: 2px solid var(--bg-white);
}

.btn-secondary:hover {
    background: var(--bg-white);
    color: var(--primary-color);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.hero-visual {
    flex: 0 0 auto;
}

.hero-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.initials {
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    font-weight: 700;
    color: var(--bg-white);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    color: var(--bg-white);
    font-size: 2rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.scroll-indicator a:hover {
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-15px);
    }
    60% {
        transform: translateX(-50%) translateY(-7px);
    }
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.about {
    padding: 100px 0;
    background: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.05rem;
}

.about-text .lead {
    font-size: 1.25rem;
    color: var(--text-dark);
    font-weight: 500;
}

.qualifications h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.qualifications ul {
    list-style: none;
}

.qualifications li {
    padding: 0.75rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-light);
}

.qualifications li i {
    color: var(--accent-color);
    margin-top: 4px;
}

.skills {
    padding: 100px 0;
    background: var(--bg-light);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.skill-category {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.skill-category h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.5rem 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--bg-light);
    font-size: 0.95rem;
}

.skill-category li:last-child {
    border-bottom: none;
}

.experience {
    padding: 100px 0;
    background: var(--bg-white);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

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

.timeline-item {
    position: relative;
    padding-left: 70px;
    margin-bottom: 3rem;
}

.timeline-marker {
    display: none;
}

.timeline-badge {
    position: absolute;
    left: 0;
    top: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    box-shadow: var(--shadow);
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-badge i {
    font-size: 1rem;
}

.badge-spl {
    background: linear-gradient(135deg, #0066cc, #004999);
}

.badge-xpl {
    background: linear-gradient(135deg, #00a86b, #007a4d);
}

.badge-emerson {
    background: linear-gradient(135deg, #6b5b95, #4a3f6b);
}

.badge-oracle {
    background: linear-gradient(135deg, #f80000, #c10000);
}

.badge-almarai {
    background: linear-gradient(135deg, #2e8b57, #1f5f3d);
}

.badge-pepsi {
    background: linear-gradient(135deg, #004b93, #002d5c);
}

.badge-nadec {
    background: linear-gradient(135deg, #228b22, #165a16);
}

.timeline-content {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(5px);
}

.timeline-header h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.timeline-header .company {
    display: block;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.timeline-header .date {
    display: block;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.timeline-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.timeline-content ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-content li {
    background: var(--bg-white);
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.education {
    padding: 100px 0;
    background: var(--bg-light);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.education-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.education-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.education-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.education-icon i {
    font-size: 1.75rem;
    color: var(--bg-white);
}

.education-card h3 {
    color: var(--accent-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.education-card h4 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.education-card .institution {
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.education-card .location {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.education-card .year {
    color: var(--accent-color);
    font-weight: 600;
}

.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--bg-white);
}

.contact .section-title {
    color: var(--bg-white);
}

.contact .section-title::after {
    background: var(--accent-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-light);
    margin-top: 5px;
}

.contact-item h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
    opacity: 0.9;
}

.contact-item p {
    font-size: 1.1rem;
}

.contact-item a {
    color: var(--bg-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent-light);
}

.contact-cta {
    text-align: center;
}

.contact-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.footer {
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    opacity: 0.7;
}

@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .education-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        box-shadow: var(--shadow);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--bg-light);
    }
    
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-name {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 1.25rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-circle {
        width: 180px;
        height: 180px;
    }
    
    .initials {
        font-size: 4rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .lang-toggle {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
}

html[dir="rtl"] {
    font-family: 'Tajawal', 'Poppins', sans-serif;
}

html[dir="rtl"] body {
    font-family: 'Tajawal', 'Poppins', sans-serif;
}

html[dir="rtl"] .hero-name,
html[dir="rtl"] .section-title,
html[dir="rtl"] .logo {
    font-family: 'Tajawal', serif;
}

html[dir="rtl"] .timeline::before {
    left: auto;
    right: 21px;
}

html[dir="rtl"] .timeline-item {
    padding-left: 0;
    padding-right: 70px;
}

html[dir="rtl"] .timeline-badge {
    left: auto;
    right: 0;
}

html[dir="rtl"] .timeline-content:hover {
    transform: translateX(-5px);
}

html[dir="rtl"] .qualifications li {
    flex-direction: row-reverse;
    text-align: right;
}

html[dir="rtl"] .qualifications li i {
    margin-left: 0.75rem;
    margin-right: 0;
}

html[dir="rtl"] .contact-item {
    flex-direction: row-reverse;
    text-align: right;
}

html[dir="rtl"] .contact-item i {
    margin-left: 1.5rem;
    margin-right: 0;
}

html[dir="rtl"] .hero-location i {
    margin-left: 0.5rem;
    margin-right: 0;
}

html[dir="rtl"] .skill-category h3 {
    flex-direction: row-reverse;
}

html[dir="rtl"] .skill-category h3 i {
    margin-left: 0.75rem;
    margin-right: 0;
}

html[dir="rtl"] .lang-toggle {
    margin-left: 0;
    margin-right: 1rem;
}

html[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

html[dir="rtl"] .nav-links a::after {
    left: auto;
    right: 0;
}
