/* ===== Reset & Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  background-color: #0e0e0e;
  color: #fff;
  scroll-behavior: smooth;
}

/* ===== Hero Section ===== */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(-192deg, #141414, #1c1c1c);
  padding: 0 20px;
  padding-top: 80px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero-content h1 span {
  color: #123458;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 20px;
  color: #ccc;
}

body.light .hero-content p {
  color: #444;
}

.btn {
  padding: 12px 24px;
  background-color: #123458;
  color: #e1dede;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn:hover {
  background-color: #0ea5e9;
}

/* ===== Avatar Image ===== */
/*.avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
  animation: float 3s ease-in-out infinite;
}*/
.avatar-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
}

.avatar {
  position: absolute;
  top: 0;
  left: 0;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
  animation: float 3s ease-in-out infinite;
  transition: opacity 0.4s ease;
}

.avatar-hover {
  opacity: 0;
  z-index: 1;
}

.avatar-wrapper:hover .avatar-hover {
  opacity: 1;
}

.avatar-wrapper:hover .avatar-default {
  opacity: 0;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

/* ===== About Section ===== */
.about {
  padding: 80px 20px;
  background-color: #121212;
  color: #eee;
  text-align: center;
  width: 100%;
}

.about-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #123458;
}

.about p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #ccc;
  text-align: center;
}

/* ===== Skills Section ===== */
.skills {
  margin-top: 40px;
  width: 100%;
  cursor: default;
  user-select: none;
  padding: 80px 20px;
  background-color: #0e0e0e;
  text-align: center;
}

.skills h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #123458;
}

.skills h3,
.personalInfoh3 {
  color: #123458;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.skills ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 0;
}

.skills ul li {
  background-color: #1e1e1e;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #ccc;
  transition: background 0.3s ease;
  user-select: none;
}

.skills ul li:hover {
  background-color: #123458;
  color: #0e0e0e;
}

/* ===== Projects Section ===== */
.projects {
  padding: 80px 20px;
  background-color: #0e0e0e;
  text-align: center;
}

.projects-container {
  max-width: 900px;
  margin: 0 auto;
}

.projects h2 {
  color: #123458;
  font-size: 2.5rem;
  margin-bottom: 40px;
}

.project-card {
  background-color: #1e1e1e67;
  padding: 20px 30px;
  border-radius: 10px;
  margin-bottom: 30px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.project-card h3 {
  color: #123458;
  margin-bottom: 10px;
}

.project-card p {
  color: #ccc;
  margin-bottom: 8px;
  line-height: 1.6;
}

.project-card span {
  font-size: 0.9rem;
  color: #999;
}

.project-links {
  margin-top: 15px;
}

.btn-link {
  display: inline-block;
  margin-right: 10px;
  padding: 8px 16px;
  background-color: #739ecb;
  color: #0e0e0e;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: background 0.3s ease;
}

.btn-link:hover {
  background-color: #0ea5e9;
  color: #fff;
}

.btn-link i {
  margin-right: 6px;
}

/* ===== Contact Section ===== */
.contact {
  padding: 80px 20px;
  background-color: #121212;
  text-align: center;
}

.contact h2 {
  color: #123458;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.contact p {
  color: #ccc;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

/*.contact-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}*/
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  align-items: center;
}

.contact-links .btn-link {
  font-size: 1rem;
  background-color: #1e1e1e;
  color: #eee;
  padding: 10px 20px;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.contact-links .btn-link i {
  margin-right: 8px;
}

.contact-links .btn-link:hover {
  background-color: #123458;
  color: #0e0e0e;
}

/* ===== Theme Toggle Button ===== */
.theme-toggle {
  position: fixed;
  top: 6px;

  color: #0e0e0e;
  background-color: #123458;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  z-index: 1000;
  transition: background 0.3s;
}

.theme-toggle:hover {
  background: #0ea5e9;
}

/* ===== Light Theme Overrides ===== */
body.light {
  background-color: #f5f5f5;
  color: #222;
}

body.light .hero {
  background: linear-gradient(145deg, #e4e4e4, #ffffff);
}

body.light .about,
body.light .projects,
body.light .contact,
body.light .skills {
  background-color: #ffffff;
  color: #222;
}

body.light .about p,
body.light .projects p,
body.light .project-card p,
body.light .contact p,
body.light .skills p {
  color: #444;
}

body.light .project-card p {
  color: #444;
  transition: color 0.3s ease;
}

/* Change paragraph color to white when hovering on the whole card */
body.light .project-card:hover p {
  color: #fff;
}

body.light .hero-content p {
  color: #444;
}

body.light .skills ul li {
  color: #f9f9f9;
}

body.light .project-card,
body.light .btn-link,
body.light .contact-links .btn-link {
  background-color: #eee;
  color: #111;
}

body.light .project-card:hover,
body.light .btn-link:hover {
  background-color: #123458;
  color: #0e0e0e;
}
.project-card:hover h3 {
  color: #fff;
}

/*Smooth transition between moods*/
body,
.hero,
.about,
.projects,
.contact,
.skills,
.project-card,
.btn-link,
.contact-links .btn-link,
h3,
p,
li {
  transition: background-color 2.8s ease, color 2.8s ease;
}

/*Mobile Responsiveness*/
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .about p,
  .project-card p,
  .contact p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .projects-container,
  .about-container,
  .contact-container {
    padding: 0 15px;
  }

  .project-card {
    padding: 16px 20px;
  }

  .skills ul {
    flex-direction: column;
    align-items: center;
  }

  .btn,
  .btn-link {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }

  .theme-toggle {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}
/*Navbar*/
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #123458;
  padding: 15px 30px;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.logo {
  font-size: 1.3rem;
  font-weight: bold;
  color: #e1dede;
  font-style: italic;
  font-family: "Times New Roman", Times, serif;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links a {
  color: #e1dede;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: wheat;
}
html {
  scroll-behavior: smooth;
}
#logoNavBar {
  width: 100px;
  height: 50px;
}

.info-section {
  display: flex;
  justify-content: start;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  flex-wrap: wrap;
}

.info-item1,
.info-item2 {
  display: flex;
  flex-direction: column;
  flex: 1 1 45%; /* allow both items to shrink/grow nicely */
  min-width: 280px; /* helps control stacking on small screens */
}

.info-item1 p,
.info-item2 p {
  display: flex;
  justify-content: start;
  align-items: center;
  margin: 8px 0;
  font-size: 15px;
  color: #cccccc;
}

.info-item1 span,
.info-item2 span {
  font-weight: bold;
  color: #123458;
  min-width: 120px;
}

.available {
  color: green;
}

.fa-money-bill-transfer {
  color: aliceblue;
  margin-left: 5px;
}
@media (max-width: 768px) {
  .info-item1,
  .info-item2 {
    flex: 1 1 100%; /* stack on top of each other */
  }
}
/* Foodtek Page */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: 40px auto;
}

.mySlides {
  display: none;
}

.mySlides img {
  width: 30%;
  border-radius: 8px;
}

.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

.dot {
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active {
  background-color: #717171;
}

.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}
/*Computergy*/
.project-section {
  background-color: #1f1f1f;
  color: #f1f1f1;
  padding: 50px 20px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.project-container {
  max-width: 900px;
  margin: 0 auto;
  background-color: #292929;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
}

.project-container h2 {
  font-size: 2em;
  margin-bottom: 10px;
  color: #00ffff;
}

.project-container h3 {
  margin-top: 30px;
  color: #ffcc00;
}

.description {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.6;
}

.features,
.tech-stack {
  list-style: none;
  padding-left: 0;
  line-height: 1.8;
}

.features li::before,
.tech-stack li::before {
  content: "✔️ ";
  margin-right: 5px;
  color: #00ffaa;
}
.row-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
}

.row-list li {
  background-color: #acc9eb;
  color: #000;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 1em;
  white-space: nowrap;
  flex: 0 0 auto;
  box-shadow: 0 0 6px rgba(0, 255, 255, 0.15);
}

/*Image2*/
.personal-photo {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 40px;
  flex-shrink: 0;
}

.personal-photo img {
  position: absolute;
  top: 0; /* 👈 Add this */
  left: 0; /* 👈 Add this */
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
  border-radius: 50%;
}

/* Show real image by default */
.real-img {
  opacity: 1;
  z-index: 1;
}

/* Hide avatar2 by default */
.hover-img {
  opacity: 0;
  z-index: 2;
}

/* On hover, hide real and show avatar */
.personal-photo:hover .real-img {
  opacity: 0;
}

.personal-photo:hover .hover-img {
  opacity: 1;
}

.footer {
  background-color: #333;
  color: #f5f5f5;
  text-align: center;
  padding: 20px 10px;
  font-size: 14px;
  border-top: 1px solid #ddd;
}
body.light .footer{
  background-color: #f5f5f5;
  color: #333;
  text-align: center;
  padding: 20px 10px;
  font-size: 14px;
  border-top: 1px solid #333;

}
.footer .container {
  max-width: 960px;
  margin: auto;
}

body:not(.light) h1 span,                /* Qais Nimer in hero */
body:not(.light) .about-container h2,    /* About Me */
body:not(.light) .personalInfoh3,        /* Personal Info */
body:not(.light) .info-item1 span,
body:not(.light) .info-item2 span,        /* Birthday, Phone, etc. */
body:not(.light) .skills h3,             /* Technologies I Use */
body:not(.light) .skills ul li:hover,    /* Hover color on tech list */
body:not(.light) .projects-container h2, /* My Projects */
body:not(.light) .contact-container h2,
body:not(.light) .project-card h3   /* Contact Me */ {
  color: #739ecb !important;
}
