/* Global Styles */
html,
body {
  margin-top: 30px;
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: rgb(194, 194, 194);
}

/* Header (Navigation Bar) */
#headerul {
  list-style-type: none;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #333;
  height: 50px;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-top: 0;
}

#headerul li {
  margin: 0;
}

#headerul li a {
  display: inline-block;
  color: white;
  padding: 10px 12px;
  text-decoration: none;
}

#headerul li a:hover {
  background-color: #111;
}

#headerul #Selected-li a {
  color: SkyBlue;
}

.center-section h1 {
  font-size: 20px;
}

/* Main Content Area */
main {
  flex: 1;
  margin-top: 50px;
  margin-bottom: 50px;
  overflow-y: auto;
  padding: 20px;
  background-color: #f4f4f4;
}

/* Footer */
footer {
  background-color: rgba(51, 51, 51, 0.9);
  color: white;
  text-align: center;
  height: 50px;
  width: 100%;
  position: fixed;
  bottom: 0;
  line-height: 50px;
  z-index: 1000;
}

/* Additional Reset */
body {
  font-family: Arial, sans-serif;
  line-height: 1.3;
}

/* ACADEMIC */
.aligned-text,
.aligned-text-project {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin: 15px 15.5%;
}

.left-text {
  font-size: 16px;
  font-weight: bold;
}

.left-text-academic,
.right-text-academic {
  font-size: 16px;
  font-weight: bold;
}

.left-text-project {
  font-size: 14px;
  text-align: left;
}

.right-text-project {
  font-size: 14px;
}

.ACADEMIC ul li {
  margin: 0 15%;
}

/* Media Queries */
@media (max-width: 768px) {
  #headerul {
    height: 60px;
  }

  footer {
    height: 60px;
  }
}

/*==============================================================*/
/*==============================================================*/
/*==============================================================*/

.container-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 0px 100px;
  margin-bottom: -40px;
  margin-top: -30px;
}

.left-section,
.right-section {
  width: 20%;
  text-align: center;
  margin: 10px 0;
}

.center-section {
  width: 50%;
  text-align: center;
  margin: 10px 0;
}

.profile-image,
.qr-image {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 5px;
  margin: 0 auto;
}

.container {
  width: 50%;
  margin: auto;
  background: #fff;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

/* ========================================================= */
/* ======   CEO TITLE — Professional Responsive Sizing  ===== */
/* ========================================================= */

.center-section .title-ceo {
  font-size: 1.8em;       /* desktop */
  font-weight: 500;
  line-height: 1;
  display: block;
  margin-bottom: 4px;
}

/* Tablets */
@media (max-width: 768px) {
  .center-section .title-ceo {
    font-size: 3em;
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  .center-section .title-ceo {
    font-size: 2.4em;
  }
}

/* ========================================================= */

#personal-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 0px 14%;
}

#personal-info p {
  font-size: 16px;
}

h1,
h2,
h3 {
  color: #000;
  margin: 0 30px;
}

h1 {
  text-align: center;
  margin-bottom: 10px;
}

h2 {
  border-bottom: 2px solid #000;
  padding-bottom: 5px;
  margin-top: 10px;
}

ul {
  list-style: disc inside;
  margin: 10px 0;
  padding-left: 20px;
}

p {
  margin: 10px 0;
}

section {
  margin-bottom: -10px;
}

#objective p {
  margin: 5px 5%;
  font-size: 15px;
}

.certifications {
  margin-top: 20px;
  width: 100%;
}

.certifications-continar {
  margin: 10px 14%;
}

.cert-item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 15px;
}

.cert-item img {
  width: 60px;
  height: 20px;
  margin-left: 15px;
}

.cert-item span {
  font-size: 14px;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 5px 7%;
}

.skills-list {
  list-style-type: disc;
  margin: 0;
  padding: 0;
  width: 48%;
}

.skills-list li {
  margin-bottom: 10px;
  font-size: 14px;
  color: #555;
}

#skills-p {
  margin: 8px 7%;
  font-weight: bold;
}

.job-container {
  margin: 20px 7%;
}

.job-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.job-date {
  grid-column: 1 / -1;
  font-size: 14px;
  margin-bottom: 5px;
}

.company-logo {
  width: 50px;
  height: auto;
}

.job-details {
  display: flex;
  align-items: center;
  gap: 10px;
}

.job-details p {
  font-size: 14px;
  margin: 0;
}

.job-location {
  font-size: 14px;
  color: #494949;
  text-align: right;
}

.job-container h3 {
  font-size: 16px;
  font-weight: bold;
  margin: 10px 0;
  color: #000;
}

.job-container h4 {
  font-size: 14px;
  font-weight: bold;
  margin: 10px 0;
  color: #000;
}

.responsibilities-list {
  list-style-type: disc;
  margin: 10px 0 0 20px;
  padding: 0;
}

.responsibilities-list li {
  margin-bottom: 8px;
  font-size: 14px;
  color: black;
}

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

  .NameTitle h1 {
    font-size: 24px;
    margin-bottom: 60px;
  }

  .qr-image {
    width: 40%;
    max-width: 200px;
    height: auto;
    margin: 0 auto 5px;
  }

  .profile-image {
    width: 40%;
    max-width: 200px;
    margin: 0 auto 30px;
  }

  .left-section,
  .right-section,
  .center-section {
    width: 100%;
    margin: 0 0 10px 0;
  }

  .container {
    width: 100%;
    padding: 10px;
  }

  .skills-container,
  .job-container {
    margin-left: 0;
  }

  .skills-list {
    width: 100%;
  }

  .aligned-text,
  .aligned-text-project {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .container-header {
    font-size: 14px;
  }

  h1,
  h2,
  h3 {
    font-size: 1.2em;
  }

  .skills-list li,
  .job-details p,
  .responsibilities-list li {
    font-size: 12px;
  }
}






/* تأثير Zoom-In عند تمرير الماوس */
.gallery-item {
  overflow: hidden;
  border-radius: 8px;
}

.gallery-item img {
  transition: transform 0.5s ease, filter 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: brightness(1.05);
  cursor: zoom-in;
}
