/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  scroll-behavior: smooth;
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
  margin: 0;
  padding-top: 15px;
  background: linear-gradient(to bottom, #121111 10%, hsl(228, 72%, 10%) 90%);
}

/**
 * Correct the font family and font size on iOS.
 */

/* Grouping content
   ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
  background-color: transparent;
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

:root {
  --gray-1: #ccc;
  --gray-900: #111827;
  --gray-800: #1f2937;
}

.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: hsla(230, 90%, 8%, 0.712);
  padding: 0.95em, 1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Open Sans", sans-serif;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999;
}

.nav-logo {
  margin-right: 20px;
  padding-left: 20px;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-right: 60px;
  gap: 30px;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  margin-left: 20px;
  transition: color 0.5s ease;
  flex: 1;
  text-align: center;
  position: relative;
}

.nav-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #ccc;
  transition: width 0.5s ease;
}

.nav-link:hover::before {
  width: 100%;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: transparent;
  transition: background-color 0.5s ease;
}

.nav-link:hover::after {
  background-color: #ccc;
}

.nav-links li {
  text-align: center;
}

.hero-section {
  /* margin-top: 15px; */
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 100px 0;
  text-align: left;
  background: linear-gradient(to top, #121111 0%, hsl(228, 72%, 10%) 100%);
}

.container-hero {
  display: flex;
  flex-direction: row;
  gap: 10px;
}
.hero-content {
  width: 50%;
  margin-left: 20px;
  order: 1;
}

.hero-heading {
  font-family: "Open Sans", sans-serif;
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 20px;
  color: #c8c8c8;
}

.name {
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px #fff;
}

.hero-subheading {
  font-family: "Open Sans", sans-serif;
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 40px;
  color: #e1e1e1;
  line-height: 1.5;
}

.hero-image {
  width: 50%;
  margin-right: 20px;
  order: 2;
}

.hero-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.hero-cta-btn {
  font-family: "Open Sans", sans-serif;
  font-size: 18px;
  font-weight: 600;
  padding: 15px 30px;
  background-color: hsla(230, 100%, 55%, 0.783);
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease-in;
}

.hero-cta-btn a {
  color: #f7f7f7;
  text-decoration: none;
}

.hero-cta-btn:hover {
  background-color: hsl(230, 100%, 55%);
}

.about-section {
  font-family: "Open Sans", sans-serif;
}

.container-about {
  margin: 0;
}

#about-heading {
  text-align: center;
  margin-bottom: 20px;
  font-size: 36px;
  font-weight: bold;
  color: #333;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.about-item {
  flex-basis: 30%;
  margin: 15px;
  text-align: left;
  background-color: #757171c4;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
}

.about-item a {
  font-size: 1rem;
    text-decoration: none;
    color: hsla(230, 84%, 29%, 0.58);
}

.about-item:hover {
  background-color: #eee;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  border: 1.5px solid hsla(230, 100%, 55%, 0.783);
  transform: scale(1.1);
}

.about-item i {
  font-size: 30px;
  margin-bottom: 10px;
  color: hsla(230, 94%, 25%, 0.644);
}

.about-item h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

/* Projects Section */
.projects-section {
  padding: 40px 0;
  font-family: "Open Sans", sans-serif;
}

.container-projects {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  color: #a3a1a1;
}

.projects-subheading {
  text-wrap: wrap;
  text-align: center;
}

.projects-heading {
  text-align: center;
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #b9b6b6eb;
}

.project-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.project-item {
  flex-basis: 30%;
  margin: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  padding: 30px;
  border-radius: 10px;
  background-color: #757171c4;
  transition: all 0.5s ease-in-out;
}

.project-item:hover {
  background-color: #ccc;
  color: #121111;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  transform: scale(1.1);
  border: 2px solid hsla(230, 100%, 55%, 0.783);
}

.project-heading {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
  border-bottom: 2px dashed #e8e8e8;
}

.project-description {
  font-size: 18px;
  margin-bottom: 20px;
}

.project-btn {
  background-color: hsla(230, 100%, 55%, 0.756);
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 18px;
  border-radius: 5px;
  cursor: pointer;
  margin: 0 auto;
  display: block;
}

.project-btn:hover {
  background-color: hsl(230, 100%, 55%);
}

/* Contact Form Styles */

.contact-section {
  padding: 40px 0;
  font-family: "Open Sans", sans-serif;
}

.container-contact {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.contact-heading {
  text-align: center;
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 20px;
  color: #7c7777;
}

.contact-subheading {
  text-align: center;
  font-size: 18px;
  margin-bottom: 40px;
  color: #eaeaea;
}

.contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
  border: 1px solid #dad9d9;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

label {
  font-size: 18px;
  margin-bottom: 10px;
  color: #e2e2e2;
}

input,
textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #6b6a6a;
  border-radius: 5px;
  background-color: #c8c8c8;
}

input[type="text"],
input[type="email"] {
  height: 40px;
}

textarea {
  height: 100px;
  resize: vertical;
}

.submit-btn {
  background-color: hsla(230, 100%, 55%, 0.756);
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 18px;
  border-radius: 5px;
  cursor: pointer;
  margin: 0 auto;
  display: block;
  transition: all 0.5s ease-in-out;
}

.submit-btn:hover {
  background-color: hsl(230, 100%, 55%);
}

.social-icons {
  margin-top: 20px;
  text-align: center;
}

.social-icons a {
  margin: 0 10px;
  color: #f0f0f0;
  transition: color 0.5s ease;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.social-icons a:hover {
  color: hsla(230, 55%, 43%, 0.756);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  transform: scale(1.2);
}

/* Desktop view (above 768px) */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
    justify-content: space-between;
    margin-right: 60px;
    gap: 30px;
  }
  .nav-link {
    margin-left: 20px;
  }
  .nav-toggle {
    display: none;
  }
}

/* Tablet view (between 480px and 768px) */
@media (min-width: 480px) and (max-width: 767px) {
  .nav-links {
    flex-direction: column;
    align-items: center;
    line-height: 100px;
    font-size: 1.5rem;
  }
  .nav-link {
    margin-left: 0;
    margin-bottom: 10px;
  }
  .nav-toggle {
    display: block;
    cursor: pointer;
    margin-right: 20px;
    transition: all 1s ease-in-out;
  }

  /* Add side nav styles */
  .nav-bar.open {
    .nav-links {
      display: block !important;
      position: fixed;
      top: 0;
      right: 0;
      width: 90vw;
      height: 100vh;
       background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(1, 2, 19, 0.5));
      backdrop-filter: blur(70px);
      -webkit-backdrop-filter: blur(70px);
      z-index: 1000;
      transform: translateX(0);
      transition: all 1s ease-in-out;
    }
  }

  .nav-bar:not(.open) {
    .nav-links {
      transform: translateX(100%);
    }
  }

  .nav-toggle i {
    font-size: 24px;
    color: #fff;
    transition: all 1s ease-in-out;
  }

  #close-nav {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .nav-bar.open {
    .nav-links {
      display: block !important;
      transition: all 1s ease-in-out;
    }
    #open-nav {
      display: none;
    }
    #close-nav {
      display: block;
    }
  }

  .hero-section {
    flex-direction: column;
  }

  .container-hero {
    flex-direction: column;
    gap: 20px;
  }

  .hero-content {
    width: 90%;
    margin-left: 20px;
    order: 1;
  }

  .hero-image {
    width: 90%;
    margin-right: 20px;
    order: 2;
  }

  .project-item {
    flex-basis: 30%;
    margin: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    padding: 60px;
    border-radius: 10px;
    background-color: #757171c4;
    transition: all 0.5s ease-in-out;
  }
  
   .about-container {
    font-family: "Open Sans", sans-serif;
    flex-direction: column;
  }
  
  .about-item {
    flex-basis: 80%; 
    margin: 15px 40px; 
  }
  
  .about-item i {
    font-size: 20px; 
  }
  
  .about-item h3 {
    font-size: 16px; 
  }
}

/* Mobile view (below 480px) */
@media (max-width: 479px) {
  .nav-links {
    flex-direction: column;
    align-items: center;
    line-height: 100px;
    font-size: 1.3rem;
  }
  .nav-toggle {
    display: block;
    color: #c8c8c8;
    cursor: pointer;
    margin-right: 20px;
    transition: all 1s ease-in-out;
  }

  .nav-toggle i {
    font-size: 24px;
    color: #fff;
  }

  #close-nav {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .nav-bar.open {
    .nav-links {
      display: block !important;
      transition: all 1s ease-in-out;
    }
    #open-nav {
      display: none;
    }
    #close-nav {
      display: block;
    }
  }

  /* Add side nav styles */
  .nav-bar.open {
    .nav-links {
      display: block !important;
      position: fixed;
      top: 0;
      right: 0;
      width: 90%;
      height: 100vh;
      background-color: hsla(230, 90%, 8%, 0.938);
      backdrop-filter: blur(70px);
      -webkit-backdrop-filter: blur(70px);
      z-index: 1000;
      transform: translateX(0);
      transition: all 1s ease-in-out;
    }
  }

  .nav-bar:not(.open) {
    .nav-links {
      transform: translateX(100%);
    }
  }

  .hero-section {
    flex-direction: column;
  }

  .container-hero {
    flex-direction: column;
    gap: 20px;
  }

  .hero-content {
    width: 90%;
    order: 1;
    margin-left: 20px;
  }

  .hero-image {
    width: 85%;
    order: 2;
    margin-right: 20px;
  }

  .project-item {
    flex-basis: 30%;
    margin: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
    background-color: #757171c4;
    transition: all 0.5s ease-in-out;
  }

   .about-container {
    font-family: "Open Sans", sans-serif;
    flex-direction: column;
  }
  
  .about-item {
    flex-basis: 80%; 
    margin: 15px 30px; 
  }
  
  .about-item i {
    font-size: 20px; 
  }
  
  .about-item h3 {
    font-size: 16px; 
  }
}
