/* Reset default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cairo', sans-serif;
  background: linear-gradient(135deg, #e6f0fa 0%, #f7f7f7 100%);
  color: #2d3748;
  line-height: 1.8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* Header */
.main-header {
  background: linear-gradient(to right, #2b6cb0, #3182ce);
  color: white;
  padding: 1.5rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-header .site-title {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 1px;
}

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

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #a3bffa;
  border-bottom: 2px solid #a3bffa;
  padding-bottom: 5px;
}

/* Main content */
main {
  flex: 1;
}

/* About Section */
.about-section {
  background-color: white;
  padding: 2.5rem;
  margin: 3rem auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  max-width: 800px;
  text-align: center;
}

.about-section:hover {
  transform: translateY(-5px);
}

.section-title {
  font-size: 2.5rem;
  color: #2b6cb0;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

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

.sub-title {
  font-size: 1.8rem;
  color: #2b6cb0;
  margin: 2rem 0 1rem;
  position: relative;
  text-align: center;
}

.sub-title::before {
  content: '📖';
  margin-left: 10px;
  font-size: 1.5rem;
}

.personal-info,
.contact-info,
.qualifications,
.work-experience {
  text-align: right;
  direction: rtl;
  margin-bottom: 2rem;
}

.personal-info p,
.contact-info p {
  margin: 0.8rem auto;
  font-size: 1.2rem;
  display: flex;
  justify-content: center;
  gap: 10px;
  max-width: 500px;
}

.personal-info p strong,
.contact-info p strong {
  color: #2b6cb0;
  min-width: 120px;
}

.contact-info a {
  color: #2b6cb0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: #4a90e2;
  text-decoration: underline;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-block;
}

.social-links img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.social-links img:hover {
  transform: scale(1.1);
}

.qualifications ul,
.work-experience ul {
  list-style: none;
  padding: 0;
}

.qualifications li,
.work-experience li {
  margin: 1rem auto;
  font-size: 1.1rem;
  position: relative;
  padding: 10px 15px;
  line-height: 1.6;
  background: #f7fafc;
  border-radius: 6px;
  transition: background 0.3s ease;
  max-width: 600px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.qualifications li:hover,
.work-experience li:hover {
  background: #e3ebfa;
}

.qualifications li::before,
.work-experience li::before {
  content: '📌';
  color: #2b6cb0;
  margin-left: 10px;
}

/* Footer */
footer {
  background: linear-gradient(to right, #2b6cb0, #3182ce);
  color: white;
  text-align: center;
  padding: 1.5rem 0;
  border-top: 4px solid #a3bffa;
  width: 100%;
}

footer p {
  font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-header .container {
    flex-direction: column;
    text-align: center;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .sub-title {
    font-size: 1.5rem;
  }

  .personal-info p,
  .contact-info p {
    font-size: 1rem;
  }
}