/* This is the required project styling. Will contain essential CSS styles like:
   * Flex property
   * Grid layout
   * Cards and sections
*/

@import url(https://fonts.googleapis.com/css?family=Raleway:100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic);

/* variables */
:root {
  /* Colors */
  --primary-color: #ffcd42;
  --secondary-color: #ffd35c;
  --bg-primary: #ffffff;
  --text-color: #222222;
  --text-color-two: #ffffff;
  --bg-secondary: #000000;
  --card-background: #f4f4f4;
  --bg-secondary-two: #111111;

  --shadow: 0 10px 40px rgba(0, 0, 0, 0.2);

  /* Font Weight */
  --weight-small: 400;
  --weight-semibold: 600;
  --weight-bold: 800;

  /* Max width */
  --width-small: 600px;
  --width-medium: 1100px;
  --width-large: 1300px;
}

[data-theme="dark"] {
  --primary-color: #ffcd42;
  --secondary-color: #ffd35c;
  --bg-primary: #000000;
  --text-color: #ffffff;
  --text-color-two: #222222;
  --bg-secondary: #ffffff;
  --card-background: #111111;
  --bg-secondary-two: #f4f4f4;
  --shadow: 0 2px 10px rgba(95, 95, 95, 0.2);
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

/* Skip to main content link for accessibility */
.skip-to-main {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 1em;
  background-color: var(--primary-color);
  color: var(--text-color-two);
  text-decoration: none;
  font-weight: var(--weight-semibold);
}

.skip-to-main:focus {
  left: 50%;
  transform: translateX(-50%);
  top: 1em;
}

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

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--text-color);
}

/* Main styling */
body {
  background: var(--bg-primary);
  color: var(--text-color);
  font-family: "Raleway", sans-serif;
  line-height: 1.5;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--bg-primary);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
  height: 80px;
  width: 100%;
}

.navbar .nav-menu {
  display: flex;
  align-items: center;
  background: var(--bg-primary);
}

.navbar .nav-link {
  margin: 0 1rem;
  font-size: 0.8rem;
  font-weight: var(--weight-semibold);
}

.navbar #logo img {
  display: block;
  width: 110px;
}

.navbar .btn {
  margin-right: 1.5rem;
}

.fas.fa-arrow-right {
  margin-left: 0.5rem;
  font-size: 0.9rem;
}

/* hamburger */
.hamburger {
  margin-bottom: 0.1rem;
  display: none;
}

.bar {
  display: block;
  width: 23px;
  height: 3px;
  margin: 4px auto;
  transition: all 0.3s ease-in-out;
  border-radius: 30px;
  background-color: var(--bg-secondary);
}

/* Hero section */
#hero {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.profile-image {
  width: 180px;
  border-radius: 50%;
  animation: bounce 1s infinite alternate;
}

@keyframes bounce {
  from {
    transform: translateY(0px);
  }

  to {
    transform: translateY(-10px);
  }
}

.division {
  width: 100%;
  height: 2px;
  background-color: var(--card-background);
  margin: 5.5rem 0;
}
/* Projects */
#projects {
  display: flex;
  flex-direction: column;
  margin: 2rem auto 5rem;
}

#projects .btn {
  align-self: center;
  margin: 2rem 0;
}

.project {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(250px, auto);
  grid-gap: 0.9rem;
}

.card .project-bio p {
  font-size: 0.83rem;
}

.card .project-bio h3 {
  font-size: 0.9rem;
}

.project-info {
  display: flex;
  justify-content: space-between;
  opacity: 0;
  position: relative;
  transition: 0.5s ease-in-out;
}

.project-bio {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  top: 160px;
  left: 10px;
}

/* Footer */
#footer {
  background: #111111;
}

#footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  min-height: 160px;
  text-align: center;
}

#footer a {
  font-size: 0.8rem;
  color: #fff;
}

#footer a:hover {
  opacity: 0.6;
}

#footer .social {
  margin: 0.9rem 0;
}

#footer .social img {
  width: 20px;
  height: 20px;
}

#footer .social a {
  margin: 0 0.5rem;
}

#footer p {
  font-size: 0.8rem;
}

/* Responsiveness */

@media (max-width: 1000px) {
  .project {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .image-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .main-image,
  .side-image {
    min-height: 150px;
  }
  .card {
    position: relative !important;
    overflow: hidden !important;
  }
  .project-info {
    background: rgba(0,0,0,0.75) !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    padding: 0.75rem 1rem !important;
    border-radius: 0 0 8px 8px !important;
    width: 100% !important;
    opacity: 1 !important;
    color: #fff !important;
    z-index: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    height: auto !important;
  }
  .card .project-bio h3,
  .card .project-bio p {
    color: #fff !important;
    margin: 0 !important;
  }
  .card .project-bio {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    padding: 0 !important;
  }
}

@media (max-width: 670px) {
  .navbar .nav-menu {
    position: fixed;
    right: -100vw;
    top: 4.5rem;
    flex-direction: column;
    width: calc(80% - 10px);
    transition: 0.3s;
    box-shadow: var(--shadow);
    padding: 2rem;
    border-radius: 5px;
    align-items: flex-start;
  }

  .navbar .btn {
    margin: 0;
    margin-top: 1rem;
  }

  .nav-menu.active {
    right: 20px;
  }

  .nav-menu .nav-link {
    font-size: 0.9rem;
    margin: 0 0.2rem;
  }

  .nav-menu li {
    margin-bottom: 0.5rem;
    width: 100%;
  }

  .nav-menu .btn {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
  }

  .hamburger {
    display: block;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
  }

  .hamburger.active {
    border: 1px dotted gray;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media (max-width: 600px) {
  .project {
    display: grid;
    grid-template-columns: 1fr;
  }

  .header-container .btn {
    border-radius: 5px;
    width: 80%;
  }
}

.header-container h1 {
    font-size: 3rem; /* Adjust this value as needed */
    margin-bottom: 1rem; /* Adds space below the name */
}
.slider-container {
  width: 100%;
  overflow: hidden;
  margin: 2rem 0 1rem 0;
  background: #f8f9fa;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.slider-track {
  display: flex;
  width: calc(250px * 16); /* 16 slides, adjust if you add/remove */
  animation: scrollSlider 30s linear infinite;
  align-items: center;
  gap: 2.5rem;
  padding: 1rem 0;
}

.slide img {
  height: 48px;
  width: auto;
  display: block;
  filter: grayscale(0.2);
  transition: filter 0.2s, transform 0.2s;
}
.slide img:hover {
  filter: grayscale(0) drop-shadow(0 2px 8px rgba(0,0,0,0.1));
  transform: scale(1.1);
}

@keyframes scrollSlider {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.what-can-hossam-do {
  background: #f8f9fa;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.what-can-hossam-do h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
  color: #22223b;
}
.what-can-hossam-do ul {
  margin-top: 1rem;
  padding-left: 1.5rem;
}
.what-can-hossam-do li {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}
[data-theme="dark"] .what-can-hossam-do {
  background: #181818; /* or var(--card-background) if you want */
  color: #fff;
}
[data-theme="dark"] .what-can-hossam-do ul,
[data-theme="dark"] .what-can-hossam-do li,
[data-theme="dark"] .what-can-hossam-do p,
[data-theme="dark"] .what-can-hossam-do h2 {
  color: #fff;
}

[data-theme="dark"] .contact-section {
  background: #181818;
  color: #fff;
}
[data-theme="dark"] .contact-section h2,
[data-theme="dark"] .contact-section p,
[data-theme="dark"] .contact-section ul,
[data-theme="dark"] .contact-section li {
  color: #fff;
}

.cover-photo {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
  margin-bottom: 2rem;
  border-radius: 1rem;
}
.contact-form {
  max-width: 500px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}
.form-group textarea {
  min-height: 150px;
  resize: vertical;
}
.thank-you-message {
  max-width: 500px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  text-align: center;
}
.thank-you-message h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}
.thank-you-message p {
  font-size: 1.1rem;
  color: #22223b;
}
.contact-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: left;
}
.contact-content p {
  margin: 1rem 0;
  font-size: 1.1rem;
  line-height: 1.6;
}
.location {
  text-align: center;
  margin-top: 1rem;
  font-size: 1.1rem;
  color: #ffffff;
}
.project-images {
  margin: 2rem 0;
}

.image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
  align-items: start;
}

.main-image,
.side-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background-color: #f8f9fa;
}

.main-image img,
.side-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
  max-width: 100%;
}

.main-image img:hover,
.side-image img:hover {
  transform: scale(1.02);
}

/* Responsive design for mobile */
@media (max-width: 768px) {
  .image-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .main-image,
  .side-image {
    min-height: 150px;
  }
}

[data-theme="dark"] #logo img {
  filter: invert(1);
}