/* General Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #121212;
  color: #f0f0f0;
  font-size: 18px; /* Increased font size */
}

header {
  background: rgba(0, 0, 0, 0.8) url('assets/images/header-bg.jpg') no-repeat center center;
  background-size: cover;
  position: sticky;
  top: 0;
  z-index: 1000;
  color: white;
  padding: 30px 0; /* Increased padding */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 30px; /* Increased gap */
}

nav ul li {
  display: inline;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 18px; /* Increased font size */
  text-transform: uppercase;
  padding: 15px 25px; /* Increased padding */
  border-radius: 4px;
  transition: background-color 0.3s;
}

nav ul li a:hover {
  background-color: #333;
  color: #f0f0f0;
}

#home {
  position: relative;
  text-align: center;
  padding: 120px 0; /* Increased padding */
  background-image: url('assets/images/header-bg.jpg');
  background-size: cover;
  background-position: center;
  color: #f0f0f0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

#home .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
  display: flex;
  justify-content: center;
  align-items: center;
}

#home .intro {
  max-width: 800px;
  margin: auto;
  z-index: 1;
  padding: 0 20px; /* Added padding for responsiveness */
}

#home h1 {
  font-size: 48px; /* Increased font size */
}

#home p {
  font-size: 24px; /* Increased font size */
}

#home .profile-image {
  margin-top: 30px; /* Increased margin */
}

#home .profile-image img {
  width: 180px; /* Increased size */
  height: 180px; /* Increased size */
  border-radius: 50%;
  border: 3px solid #f0f0f0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

section {
  padding: 80px 30px; /* Increased padding */
  margin: 30px 0; /* Increased margin */
  background-color: #1e1e1e;
  color: #f0f0f0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

#skills ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* Increased gap */
}

#skills li {
  padding: 15px 20px; /* Increased padding */
  background-color: #333;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.projects-container {
  display: flex;
  gap: 30px; /* Increased gap */
  flex-wrap: wrap;
}

.project {
  background-color: #333;
  padding: 30px; /* Increased padding */
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 45%;
}

.certifications-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); /* Increased min width */
  gap: 30px; /* Increased gap */
  padding: 30px; /* Increased padding */
}

.certification-item {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #333;
  padding: 20px; /* Increased padding */
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.certification-item img {
  max-width: 100%;
  height: auto;
  transition: transform 0.3s;
  cursor: pointer; /* Add cursor pointer */
}

.certification-item img:hover {
  transform: scale(1.1);
}

/* Modal styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

footer {
  text-align: center;
  background-color: #333;
  color: white;
  padding: 30px; /* Increased padding */
}

footer a {
  color: #f4f4f4;
  text-decoration: none;
}

footer a:hover {
  color: #ff8c00;
}

#about {
  padding: 80px 30px; /* Increased padding */
  margin: 30px 0; /* Increased margin */
  background-color: #1e1e1e;
  color: #f0f0f0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

#about h2 {
  font-size: 36px; /* Increased font size */
  margin-bottom: 20px; /* Added margin */
}

#about p {
  font-size: 20px; /* Increased font size */
  line-height: 1.6; /* Improved line height */
  margin-bottom: 20px; /* Added margin */
}

/* Responsive styles */
@media (max-width: 768px) {
  header nav ul {
    flex-direction: column;
    gap: 10px;
  }

  nav ul li a {
    padding: 10px 15px; /* Adjusted padding */
    font-size: 16px; /* Adjusted font size */
  }

  #home {
    padding: 60px 0; /* Adjusted padding */
  }

  #home h1 {
    font-size: 36px; /* Adjusted font size */
  }

  #home p {
    font-size: 18px; /* Adjusted font size */
  }

  #home .profile-image img {
    width: 120px; /* Adjusted size */
    height: 120px; /* Adjusted size */
  }

  section {
    padding: 40px 20px; /* Adjusted padding */
  }

  #skills ul {
    flex-direction: column;
    gap: 10px; /* Adjusted gap */
  }

  #skills li {
    padding: 10px 15px; /* Adjusted padding */
    font-size: 16px; /* Adjusted font size */
  }

  .projects-container {
    flex-direction: column;
    gap: 20px; /* Adjusted gap */
  }

  .project {
    width: 100%; /* Full width */
  }

  .certifications-gallery {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); /* Adjusted min width */
    gap: 20px; /* Adjusted gap */
    padding: 20px; /* Adjusted padding */
  }

  footer {
    padding: 20px; /* Adjusted padding */
  }
}
