:root {
    --primary-color: #1a365d;        /* Deep blue for professionalism */
    --secondary-color: #2c5282;      /* Medium blue */
    --accent-color: #25D366;         /* WhatsApp Green */
    --light-color: #f7fafc;          /* Very light gray */
    --dark-color: #1a202c;           /* Dark gray for text */
    --text-color: #2d3748;           /* Standard text color */
    --section-bg: #edf2f7;           /* Light section background */
    --card-bg: #ffffff;              /* White for cards */
    --border-color: #e2e8f0;         /* Light border color */
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: #fff;
    font-weight: 400;
    overflow-x: hidden;
}

/* RTL Support */
body[dir="rtl"] {
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
}

body[dir="rtl"] .nav-links {
    padding-right: 0;
}

body[dir="rtl"] .hero-content {
    flex-direction: row-reverse;
}

body[dir="rtl"] .contact-item {
    flex-direction: row-reverse;
}

body[dir="rtl"] .contact-item i {
    margin-left: 15px;
    margin-right: 0;
}

body[dir="rtl"] .timeline-item.left {
    right: 0;
    left: auto;
}

body[dir="rtl"] .timeline-item.right {
    left: 0;
    right: auto;
}

body[dir="rtl"] .timeline::after {
    right: 50%;
    left: auto;
    margin-right: -2px;
    margin-left: 0;
}

body[dir="rtl"] .timeline-item::after {
    left: auto;
    right: -10px;
}

body[dir="rtl"] .left::before {
    right: auto;
    left: 30px;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
}

body[dir="rtl"] .right::before {
    left: auto;
    right: 30px;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
}

body[dir="rtl"] .right::after {
    right: -10px;
    left: auto;
}

body[dir="rtl"] .left::after {
    right: -10px;
    left: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    color: var(--dark-color);
}

body[dir="rtl"] h1, 
body[dir="rtl"] h2, 
body[dir="rtl"] h3, 
body[dir="rtl"] h4, 
body[dir="rtl"] h5, 
body[dir="rtl"] h6 {
    font-family: 'Tajawal', sans-serif;
}

h1 {
    font-size: 2.8rem;
    font-weight: 700;
}

h2 {
    font-size: 2.2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow);
}

body[dir="rtl"] .btn {
    font-family: 'Tajawal', sans-serif;
}

.btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-whatsapp {
    background-color: var(--accent-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    width: 100%;
    margin-top: 20px;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
}

.btn-download {
    background-color: var(--primary-color);
    margin-top: 25px;
}

.btn-download:hover {
    background-color: #0f2942;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    padding-bottom: 20px;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

body[dir="rtl"] .logo {
    font-family: 'Tajawal', sans-serif;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--secondary-color);
}

.nav-links a.active::after {
    width: 100%;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 5px;
    margin-left: 20px;
}

body[dir="rtl"] .language-switcher {
    margin-left: 0;
    margin-right: 20px;
}

.lang-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-color);
}

.lang-btn:hover {
    background-color: var(--light-color);
}

.lang-btn.active {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* Hamburger Menu */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    background-color: var(--section-bg);
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    gap: 60px;
    align-items: center;
    justify-content: space-between;
}

.hero-image {
    flex: 0 0 320px;
    height: 320px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border: 5px solid white;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3.2rem;
    margin-bottom: 15px;
    line-height: 1.2;
    color: var(--primary-color);
}

.hero-text .subtitle {
    font-size: 1.6rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-weight: 600;
}

.contact-info {
    margin-bottom: 35px;
}

.contact-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    background-color: white;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: var(--shadow);
    flex: 1;
}

.contact-item i {
    color: var(--secondary-color);
    width: 20px;
    font-size: 16px;
}

/* About Section */
.about {
    background-color: white;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.9;
}

.about-content p {
    margin-bottom: 25px;
    text-align: left;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* Competencies Section */
.competencies {
    background-color: var(--section-bg);
}

.competencies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.competency-card {
    background-color: var(--card-bg);
    padding: 35px 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.competency-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-color);
}

.competency-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.competency-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.competency-card p {
    line-height: 1.6;
    color: var(--text-color);
}

/* Experience Section */
.experience {
    background-color: white;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--secondary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: white;
    border: 4px solid var(--secondary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid white;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
}

.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
}

.right::after {
    left: -10px;
}

.timeline-content {
    padding: 25px 30px;
    background-color: white;
    position: relative;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.timeline-content h3 {
    margin-top: 0;
    color: var(--secondary-color);
    font-size: 1.6rem;
}

.timeline-content .company {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.timeline-content .location {
    font-weight: 500;
    margin-bottom: 5px;
    color: #4a5568;
}

.timeline-content .date {
    color: #718096;
    font-size: 0.95rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.timeline-content .client {
    font-style: italic;
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.timeline-content ul {
    padding-left: 20px;
}

.timeline-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Education & Certifications */
.education-certifications {
    background-color: var(--section-bg);
}

.edu-cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.edu-cert-card {
    background-color: var(--card-bg);
    padding: 35px 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.edu-cert-card h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.6rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.edu-item, .cert-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.edu-item:last-child, .cert-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.edu-cert-card .institution {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.edu-cert-card .date {
    color: #718096;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Skills Section */
.skills {
    background-color: white;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.skill-category {
    margin-bottom: 30px;
}

.skill-category h3 {
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-size: 1.4rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
    display: flex;
    align-items: center;
}

.skill-list li:last-child {
    border-bottom: none;
}

.skill-list li::before {
    content: '•';
    color: var(--secondary-color);
    font-weight: bold;
    margin-right: 10px;
    font-size: 18px;
}

/* Contact Section */
.contact {
    background-color: var(--section-bg);
    text-align: center;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 30px;
    border: 1px solid var(--border-color);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    justify-content: flex-start;
    text-align: left;
}

.contact-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    width: 30px;
    text-align: center;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-content p {
    margin-bottom: 10px;
    font-size: 15px;
}

.footer-content p:last-child {
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.2);
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-image {
        margin-bottom: 40px;
    }
    
    .contact-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item::before {
        left: 60px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }
    
    .left::after, .right::after {
        left: 21px;
    }
    
    .right {
        left: 0%;
    }
}

@media screen and (max-width: 768px) {
    /* Mobile Navigation */
    .nav-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
        gap: 15px;
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .nav-links a {
        font-size: 18px;
        padding: 12px 20px;
        border-radius: 4px;
        transition: var(--transition);
        width: 90%;
        text-align: center;
    }
    
    .nav-links a:hover {
        background-color: rgba(44, 82, 130, 0.1);
    }
    
    .nav-links a::after {
        display: none;
    }
    
    /* Language Switcher Mobile */
    .language-switcher {
        margin-left: 10px;
    }
    
    body[dir="rtl"] .language-switcher {
        margin-left: 0;
        margin-right: 10px;
    }
    
    .lang-btn {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    /* Hero Section Mobile */
    .hero {
        padding: 140px 0 80px;
    }
    
    .hero-text h1 {
        font-size: 2.4rem;
    }
    
    .hero-text .subtitle {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 3rem;
    }
    
    .section {
        padding: 70px 0;
    }
    
    /* Timeline Mobile */
    .timeline::after {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 25px;
    }
    
    .timeline-item::before {
        left: 40px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }
    
    .left::after, .right::after {
        left: 10px;
    }
    
    .timeline-content {
        padding: 20px;
    }
    
    .timeline-content h3 {
        font-size: 1.4rem;
    }
}

@media screen and (min-width: 769px) {
    /* Hide hamburger menu and show regular navigation */
    .nav-toggle {
        display: none;
    }
    
    .nav-links {
        display: flex !important;
        position: static;
        width: auto;
        background-color: transparent;
        box-shadow: none;
        transform: none;
        flex-direction: row;
        padding: 0;
    }
}

@media screen and (max-width: 576px) {
    /* Header Mobile */
    header {
        padding: 12px 0;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    /* Hero Section Mobile */
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-image {
        flex: 0 0 250px;
        height: 250px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text .subtitle {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2.5rem;
    }
    
    /* Cards Mobile */
    .competency-card, .edu-cert-card {
        padding: 25px 20px;
    }
    
    .competency-card i {
        font-size: 2.5rem;
    }
    
    /* Contact Section Mobile */
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .contact-item i {
        font-size: 1.8rem;
    }
    
    /* Footer Mobile */
    footer {
        padding: 30px 0;
    }
    
    .social-links a {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
}