/* Reset styles and general styles */
body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #23202c;
  color: #fff;
}

/* Header styles */
header {
  background-color: #1f1835;
  color: #fff;
  padding: 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

nav li {
  margin-right: 30px;
}

nav a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 24px;
  font-weight: 700;
  padding: 10px;
  border-radius: 5px;
}

nav a:hover {
  color: #00b3ff;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Hero section styles */
.hero {
  background-image: url('images/background.jpg');
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

/* Welcome Section */
.hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}

.hero p {
  font-size: 24px;
  font-weight: 400;
  max-width: 800px;
  position: relative;
  z-index: 1;
}

/* Project grid styles */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 40px;
  margin: 40px;
}

.project-card {
  background-color: #cccccc;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 8px rgb(0, 179, 255, 0.1);
  transition: box-shadow 0.3s ease;
  color: #292929;
  border-radius: 10px;
  margin-bottom: 30px;
}

.project-card a {
  text-decoration: none !important;
  color: #292929;
}


.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 10px 20px 32px rgb(0, 179, 255, 0.2);
}

.project-card img {
  max-width: 100%;
  height: auto;
  border-radius: 5%;
  object-fit: cover;
  aspect-ratio: auto;

}

.project-card img[src$="project1.jpg"] {
  aspect-ratio: 4/3;
}

.project-card img[src$="project2.jpg"] {
  aspect-ratio: 4/3;
}

.project-card h3 {
  font-size: 24px;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 10px;
}

.project-card p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}


#about,
#projects {
  padding: 60px;
}

#about h2,
#projects h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 20px;
  opacity: 1;
}

.about-content {
  display: flex;
  align-items: stretch; /* Ensure children stretch to the same height */
}

#about p {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.15;
  margin-right: 7%;
  padding-left: 20px;
  color: #fff;
  font-weight: bold;
  font-family: Helvetica;
  flex: 1;
}

#about img {
  height: 100%; /* Make the image take up 100% of the container's height */
  width: auto;
  max-width: 15%;
  padding-right: 1%;
}

@media (max-aspect-ratio: 4/3) {
  .about-content {
    flex-direction: column;
    align-items: center;
  }

  #about img {
    max-width: 100%;
    max-height: 300px;
    height:auto;
  }

  #about p {
    margin-right: 0;
    padding-left: 0;
  }
}


#about.hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease, visibility .5s linear .7s;
}

#projects.hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear 3s;
}

#contact.hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear 3s;
}


/* Contact section styles */
#contact {
  background-color: #333333bd;
  padding: 60px;
  text-align: center;
}

#contact h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 40px;
}

#contact form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#contact input,
#contact textarea {
  width: 100%;
  max-width: 600px;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
  border: none;
  font-size: 16px;
  font-family: 'Montserrat', sans-serif;
}

#contact button {
  background-color: #f1c40f;
  color: #333;
  border: none;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#contact button:hover {
  background-color: #e0b308;
}

/* Footer styles */
footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 20px;
}

/* Subpage */
.project-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  /* Ensure the page fills the viewport height */
}

.description-box {
  text-align: center;
  font-size: 30px;
  font-weight: bold;
  /* Use "bold" instead of "bolder" for consistency */
  background-color: #cccccc;
  color: #333;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 30px;
}

.description-box p {
  font-size: 24px;
  font-family: Georgia;
}

.image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.content-container {
  flex: 1;
  /* Allow the content container to grow to fill available space */
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.tech-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 20px;
  /* Add some gap between grid items */
  margin: 0;
  padding-bottom: 20px;
}

.tech-box {
  background-color: #cccccc;
  color: #333;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

.tech-box h3 {
  font-size: 30px;
}

.tech-box p {
  font-size: 20px;
  font-weight: bold;
  font-family: Georgia;
}

.tech-box:last-child {
  margin-right: 0;
}

.tech-box img {
  max-width: 100%;
  height: auto;
  border-radius: 5%;
  object-fit: cover;
  aspect-ratio: 4/3;
}


/* Contact Form Styles */
.contact-form-section {
  max-width: 600px;
  margin: 50px auto;
  padding: 20px;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.contact-form-section h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.contact-form-section form {
  display: flex;
  flex-direction: column;
}

.contact-form-section label {
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

.contact-form-section input,
.contact-form-section textarea {
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

.contact-form-section input:focus,
.contact-form-section textarea:focus {
  outline: none;
  border-color: #333;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.contact-form-section button {
  padding: 10px 20px;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form-section button:hover {
  background-color: #555;
}


/* Responsive styles */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav li {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 18px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    margin: 20px;
  }
}

@media (max-width: 768px) {
  .project-page {
    flex-direction: column;
    height: auto;
  }

  .image-container {
    height: 300px;
  }

  .content-container {
    padding: 20px;
  }

  .tech-boxes {
    flex-direction: column;
  }

  .tech-box {
    margin-right: 0;
    margin-bottom: 20px;
  }
}

/* Add a media query to set a maximum number of columns */
@media (min-width: 1200px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    /* max 2 columns */
  }
}

@media (max-width: 1199px) {
  .project-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}