/* General Styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5; /* Light gray background */
    color: #333;
    direction: rtl; /* Right-to-left for Arabic */
    text-align: right;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3 {
    color: #2c3e50; /* Darker heading color */
}

h2 {
    font-size: 2.2em;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

h2 i {
    color: #007bff;
    margin-left: 10px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%; /* Center the underline */
    transform: translateX(50%);
    width: 60px;
    height: 3px;
    background-color: #007bff;
    border-radius: 5px;
}

.highlight {
    color: #007bff;
    font-weight: bold;
}

/* Buttons */
.btn {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 12px 25px;
    margin: 10px 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.secondary-btn {
    background: #6c757d;
}

.secondary-btn:hover {
    background: #5a6268;
}

/* Navbar */
.navbar {
    background: #2c3e50; /* Darker header */
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    margin: 0;
    font-size: 1.8em;
    font-weight: bold;
    color: #007bff;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links li {
    margin-right: 25px; /* Adjust spacing */
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #007bff;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('hero-bg.jpg') no-repeat center center/cover; /* Replace hero-bg.jpg with a nice background image */
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    margin-bottom: 40px;
}

.hero-section .profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    margin-bottom: 25px;
    object-fit: cover;
}

.hero-section h2 {
    font-size: 3em;
    margin-bottom: 15px;
    color: #fff;
}

.hero-section p.tagline {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #e0e0e0;
}

/* Section Cards */
.section-card {
    background: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* About Section */
#about p {
    font-size: 1.1em;
    line-height: 1.8;
}

/* Experience Section */
.experience-item {
    margin-bottom: 25px;
    border-right: 3px solid #007bff; /* Timeline-like effect */
    padding-right: 15px;
    position: relative;
}

.experience-item::before { /* Small dot on the timeline */
    content: '';
    position: absolute;
    right: -8px;
    top: 5px;
    width: 15px;
    height: 15px;
    background-color: #007bff;
    border-radius: 50%;
    z-index: 1;
    border: 3px solid #fff;
}


.experience-item h3 {
    margin-bottom: 5px;
    color: #007bff;
    font-size: 1.3em;
}

.experience-item .company {
    color: #555;
    font-weight: normal