
@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");
/* Base */
* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

*,
::before,
::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 3rem 0 0 0;
  font-family: "Poppins", sans-serif;
  font-size: 0.938rem;
  font-weight: 500;
  color: #a2acbd;
  background-color: #f9f9f9;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
ul,
p {
  margin: 0;
}

h2,
h3 {
  font-weight: 600;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Class CSS */
.section {
  padding: 3rem 0 2rem;
}

.section-title,
.section-subtitle {
  text-align: center;
}

.section-title {
  position: relative;
  font-size: 1.5rem;
  padding: 2rem 0 0 0;
  text-align: center;
  letter-spacing: 0.1rem;
  color: #2a3749;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 56px;
  height: 0.15rem;
  bottom: -0.25rem;
  left: 0;
  right: 0;
  margin: auto;
  background-color: #e4a109;
}

.section-subtitle {
  display: block;
  font-size: 0.75rem;
  color: #2a3749;
  margin: 1.8rem 3rem;
}

/* Layout */
.bd-container {
  max-width: 1024px;
  width: calc(100% - 2rem);
  margin-left: 1rem;
  margin-right: 1rem;
}

.bd-grid {
  display: grid;
  gap: 1.5rem;
}

.l-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  background-color: #2a3749;
}

.nav {
  height: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    padding-top: 1.5rem;
    text-align: center;
    background-color: #2a3749;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(165, 146, 146, 0.1);
    border-radius: 0 0 1rem 1rem;
  }
}

.nav__item {
  margin-bottom: 1.5rem;
}

.nav__link {
  color: #f9f9f9;
  transition: 0.3s;
}

.nav__link:hover {
  color: #e4a109;
  text-decoration-line: underline;
}

.nav__logo,
.nav__toggle {
  color: #f9f9f9;
  font-size: 1.2rem;
  cursor: pointer;
  font-weight: 900;
}

.nav__logo:hover,
.nav__toggle:hover {
  color: #e4a109;
  transition: 0.3s ease;
}

.show-menu {
  top: 3rem;
}

.active-link {
  position: relative;
}

.active-link:after {
  content: "";
  position: absolute;
  bottom: -0.4rem;
  left: 0;
  width: 70%;
  height: 3px;
  background-color: #e4a109;
}

/* Change background header */
.scroll-header {
  background-color: #f9f9f9;
  box-shadow: 0 2px 5px rgba(24, 22, 22, 0.301);
}

.scroll-header .nav__logo,
.scroll-header .nav__toggle,
.scroll-header .nav__link {
  color: #2a3749;
}

.scroll-header .nav__link:hover {
  color: #a2acbd;
}

.scroll-header .nav__menu {
  background-color: #f9f9f9;
}


.home {
  background-color: #2a3749;
  margin-bottom: 2rem; /* Reduced margin */
}

.home__container {
  position: relative;
  height: calc(100vh - 64px);
  grid-template-rows: repeat(2, max-content);
  align-content: space-around;
}

.home__data {
  color: #f9f9f9;
  padding: 1rem 0.35rem;
  z-index: 10;
  padding-top: 2rem;
}

.home__greeting {
  display: block;
  font-weight: 700;
  color: #a2acbd;
  margin-bottom: 1.5rem;
}

.home__title {
  display: block;
  font-size: 1.2rem; /* Reduced font size */
  font-weight: 900;
  color: #e4a109;
  line-height: 2rem;
  padding-bottom: 1rem;
  padding-top: 0.5rem;
}

.home__career {
  display: block;
  color: #e4a109;
  line-height: 0.1rem;
  margin-bottom: 1rem; /* Reduced margin */

}

.home__description {
  padding-top: 5px;
  color: #a2acbd;
}

.home button {
  margin-top: 1rem; /* Reduced margin */
}

.home-btn {
  color: #f9f9f9;
  background-color: black;
  border: 0;
  margin: 0.1rem;
}

.home__hire {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  background-color: #e4a109;
  color: #2a3749;
  padding: 0.5rem 1.5rem; /* Reduced padding */
  border: 1px #e4a109 solid;
  border-radius: 10px;
  cursor: pointer;
}

.home__hire:hover {
  background-color: #2a3749;
  color: #e4a109;
  border: 1px #e4a109 solid;
  transition: 0.3s ease-in;
}

.home__hire:focus {
  outline: 0;
}

.home__download {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  background-color: #2a3749;
  color: #e4a109;
  padding: 0.6rem 1.4rem; /* Reduced padding */
  border: 2px #e4a109 solid;
  border-radius: 10px;
  cursor: pointer;
}

.home__download:hover {
  background-color: #e4a109;
  color: #2a3749;
  transition: 0.3s;
}

.home__download:focus {
  outline: 0;
}


.home__social {
  position: absolute;
  right: 70px;
  padding-top:  80px;
  padding-bottom: 20px;
}

.home__icon {
  font-size: 2rem;
  cursor: pointer;
  margin: 0.5rem;
  color: #f9f9f9;
}

.home__icon:hover {
  color: #e4a109;
  transition: 0.3s;
}

.home__icon:focus {
  outline: 0;
}



.home__img {
  position: absolute;  /* Keeps the image aligned relative to its parent */
  right: 30px;
}

.home__img img {
  width: 330px !important;
  height: 330px !important;
  filter: drop-shadow(1rem 0.8rem 2rem rgba(7, 7, 7, 0.76));
}


.projects {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 20px; /* Add this line to add space */
}

.project {
  background-color: rgba(255, 255, 255, 0.1);
  padding-top: 40px;
  padding: 10px;
  text-align: center;
  border-radius: 10px;
  width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  margin: 0 5px; /* Reduced margin */
}

.project img {
  width: 40px; /* Reduced image size */
  height: auto;
  margin-bottom: 5px;
}

.project p {
  color: #ADB8C0;
  margin: 2px 0;
  font-size: 14px;
}

.project .project-number {
  font-size: 18px;
  font-weight: bold;
  margin: 5px 0;
  color: #e4a109;
}

/* Add this media query for mobile phones */
@media only screen and (max-width: 600px) {
  .home {
    margin-bottom: 1rem; /* Reduce margin */
  }

  .home__container {
    height: auto; /* Remove fixed height */
    grid-template-rows: repeat(2, auto); /* Adjust grid rows */
  }

  .home__data {
    padding: 0.5rem 0.25rem; /* Reduce padding */
  }

  .home__greeting {
    font-size: 1rem; /* Reduce font size */
  }

  .home__title {
    font-size: 1rem; /* Reduce font size */
  }

  .home__career {
    margin-bottom: 0.5rem; /* Reduce margin */
  }

  .home button {
    margin-top: 0.5rem; /* Reduce margin */
  }

  .home-btn {
    font-size: 0.75rem; /* Reduce font size */
  }

  .home__hire {
    padding: 0.25rem 0.75rem; /* Reduce padding */
  }

  .home__download {
    padding: 0.25rem 0.75rem; /* Reduce padding */
  }

  .home__social {
    position: relative; /* Change to relative positioning */
    right: 0;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .home__icon {
    font-size: 1.5rem; /* Reduce font size */
  }

  .home__img {
    display: none; /* Hide image on mobile */
  }

  .home__img img {
    width: 300px !important;
    height: 280px !important;
    filter: drop-shadow(1rem 0.8rem 2rem rgba(7, 7, 7, 0.76));
  }

  .home__description {
    font-size: 0.7rem;  /* Reduce the font size for description */
  }

  .projects {
    flex-direction: column; /* Stack projects vertically */
    margin-top: 10px; /* Reduce margin */
  }

  .project {
    width: 100%; /* Take full width */
    margin: 0; /* Remove margin */
  }
}

@media screen and (max-width: 768px) {
  .project-container {
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
  }

  .project {
    margin: 5px 0;
    width: calc(100% - 40px); /* Calculate width based on parent width minus some margin */
    max-width: 350px; /* Limit the max width to avoid excessive stretching */
    box-sizing: border-box; /* Include padding and borders in the element's width */
  }

  .project img {
    width: 30px;
  }

  .home__img {
    position: static;
    margin-top: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .home__img img {
    width: 150px;
  }

  .home__container {
    height: auto;
  }
}




.contact__inputs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 1rem;
}

.contact__input,
.contact__button {
  outline: none;
  font-family: #a2acbd;
  font-size: 0.938rem;
}

.contact__input {
  width: 100%;
  padding: 1rem;
  border: 2px solid #2a3749;
  color: #2a3749;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  resize: none;
}

.contact::placeholder {
  color: #a2acbd;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}

.contact__button {
  cursor: pointer;
  border: none;
}

.modal__container.show {
  pointer-events: auto;
  opacity: 1;
}

.services {
  background-color: #f9f9f9;
  padding-bottom: 4rem;
}

.services__section {
  display: flex;
  justify-content: center;
  text-align: center;
  color: #2a3749;
  letter-spacing: 0.25rem;
}

.services__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.services__data {
  background-color: #2a3749;
  padding: 2rem 1rem;
  border-radius: 0.5rem;
  text-align: center;
  transition: 0.4s;
  box-shadow: 0 2px 5px rgba(199, 195, 195, 0.3);
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 2rem; /* Added margin bottom to create space between services */
}

.services__img {
  width: 230px;
  margin: 0 auto 1rem;
}

.services__title {
  color: #e4a109;
  margin-bottom: 0.5rem;
  margin-top: 1rem; /* Added margin top to create space between title and description for services 1 and 3 */
}

.services__description {
  color: #f9f9f9;
  margin-bottom: 1.5rem; /* Increased margin bottom to match the space between services 2 and 4 */
}

.tools {
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 5px 10px;
  display: inline-block;
  margin-top: 1rem;
}





@media (min-width: 506px) {
  .home__img img {
    width: 300px;
    height: 400px;
  }
  .home__container,
  .services__container {
    grid-template-columns: repeat(1, 1fr);
  }
  .services__container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
  }
}

@media (min-width: 768px) {
  body {
    margin: 0;
  }
  .section {
    padding-top: 2rem;
  }
  .section-title {
    margin-bottom: 1.5rem;
    font-size: 2rem;
  }
  .section-subtitle {
    font-size: 1rem;
  }
  .nav {
    height: calc(50px + 1.5rem); /* Replace 50px with your desired header height */
  }
  .nav__list {
    display: flex;
  }
  .nav__item {
    margin-right: 1.5rem;
    margin-bottom: 0;
  }
  .nav__toggle {
    display: none;
  }
  .home__container {
    height: 100vh;
    grid-template-rows: max-content 0.5fr;
    grid-template-columns: repeat(2, 1fr);
    align-content: flex-end;
  }
  .home__greeting {
    font-size: 1.25rem;
    margin-bottom: 0.3rem;
  }
  .home__title {
    font-size: 2.1rem;
  }
  .home__career {
    font-size: 1.2rem;
    margin-top: 0.5rem;
  }
  .home__description {
    font-size: 1rem;
  }
  .home__social {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 1.8rem;
  }
  .home__social a {
    margin-right: 1.5rem;
  }
  .home__img {
    width: max-content;
    top: 100px;
  }
  .home__img img {
    width: 380px;
    height: 700px;
  }
  .services__container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .bd-container {
    margin-left: auto;
    margin-right: auto;
  }
  .home__data {
    padding-top: 2rem;
  }
  .home__img {
    height: 670px;
  }
}

.technical-skills {
  background-color: #2a3749;
  border-radius: 10px;
  padding: 20px;
}

.technical-skills .skills__title {
  color: #e4a109;
  text-align: center;
  margin-bottom: 20px;
  font-size: 24px; /* Increased font size */
}

.technical-skills .skills__list {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.technical-skills .column {
  display: flex;
  justify-content: center;
  width: 33.33%;
  padding-right: 15px;
  margin-bottom: 20px;
}

.technical-skills .skills__list li {
  margin-bottom: 10px;
  color: #f9f9f9;
  display: flex;
  align-items: center;
  font-size: 18px; /* Increased font size */
}

.technical-skills .skills__list li img {
  width: 20px; /* Set the width to 20px */
  height: 20px; /* Set the height to 20px */
  object-fit: cover; /* Ensure the icon is scaled proportionally */
  margin-right: 10px; /* Add some space between icon and text */
}


.soft-skills {
  background-color: #2a3749;
  border-radius: 10px;
  padding: 20px;
  margin-top: 40px;
}

.soft-skills .skills__title {
  color: #e4a109;
  text-align: center;
  margin-bottom: 20px;
  font-size: 24px; /* Increased font size */
}

.soft-skills .skills__list {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.soft-skills .column {
  width: 50%;
  margin-bottom: 20px;
  padding-left: 15px;
  display: flex;
  justify-content: center; /* Added this line to center the soft skills */
}

.soft-skills .skills__list li {
  margin-bottom: 10px;
  color: #f9f9f9;
  display: flex;
  align-items: center;
  font-size: 18px; /* Increased font size */
}

.soft-skills .skills__list li img {
  width: 20px; /* Set the width to 20px */
  height: 20px; /* Set the height to 20px */
  object-fit: cover; /* Ensure the icon is scaled proportionally */
  margin-right: 10px; /* Add some space between icon and text */
}

#skills {
  padding-top: 50px; /* Add some padding to the top of the skills section */
  background-color: #f9f9f9; /* Match the background color of the services section */
  border-radius: 0.5rem; /* Add some border radius to match the services section */
  box-shadow: 0 2px 5px rgba(199, 195, 195, 0.3); /* Add some box shadow to match the services section */
}


@media only screen and (max-width: 600px) {
  .technical-skills .skills__list,
  .soft-skills .skills__list {
    flex-direction: column;
    align-items: center;
  }

  .technical-skills .skills__list li,
  .soft-skills .skills__list li {
    font-size: 14px;
    display: flex;
    flex-direction: row; /* Change this to row */
    align-items: center;
  }

  .technical-skills .skills__list li img,
  .soft-skills .skills__list li img {
    width: 20px;
    height: 20px;
    margin-right: 10px; /* Add this line to add space between icon and text */
  }

  .technical-skills .skills__list li span,
  .soft-skills .skills__list li span {
    text-align: center;
  }
}




.footer {
  background-color: #2a3749; /* Dark background color */
  color: #ffffff; /* White text color */
  padding: 40px 20px;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-title {
  font-size: 2rem;
  margin-bottom: 20px;
  font-family: 'Georgia', serif;
}

.footer-text {
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 30px auto;
  line-height: 1.6;
}

.footer-social-icons {
  margin-bottom: 30px;
}

.social-icon {
  margin: 0 10px;
  font-size: 1.5rem;
  color: #ffffff; /* White color */
  transition: color 0.3s ease;
}

.social-icon:hover {
  color: #f8b24f; /* Highlight color on hover */
}

.footer-contact {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-card {
  display: flex;
  align-items: center;
  background-color: #2a3749;
  padding: 10px 20px;
  border-radius: 10px;
  transition: background-color 0.3s ease;
  text-decoration: none;
  color: #ffffff; /* White color */
}

.footer-card:hover {
  background-color: #f7f9f979; /* Slightly lighter on hover */
}

.card-icon {
  margin-right: 10px;
  font-size: 1.5rem;
}

.footer-card span {
  font-size: 1rem;
}

@media (max-width: 768px) {
  .footer-contact {
    flex-direction: column;
    gap: 15px;
  }
}


/* Portfolio section*/

.portfolio__container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 20px;
}

.project__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background-color: #2a3749;
  border: 1px solid #ddd;
  border-radius: 10px; /* added curved edges */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.project__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0px;
}

.project__title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #e4a109;
}

.project__description {
  font-size: 16px;
  margin-bottom: 10px;
  color:#a2acbd;
}

.project__skills {
  font-size: 14px;
  color: #e4a109;
  margin-bottom: 20px;
}

.project__skills span {
  border: 1px solid #b2acac;
  padding: 2px 5px;
  margin: 0 5px;
  display: inline-block;
}

.project__link {
  font-size: 14px;
  color: #fff;
  text-decoration: none;
  border: 1px solid #fff;
  border-radius: 0px;
  padding: 8px 15px;
  transition: all 0.3s ease;
}

.project__link:hover {
  color: #e4a109;
  border-color: #e4a109;
}

.load-more {
  text-align: center;
  margin-top: 20px;
}

.load-more__btn {
  color: #fff;
  background-color: #2a3749;
  border: 1px solid #fff;
  border-radius: 10px;
  padding: 12px 25px;
  transition: all 0.3s ease;
}

.load-more__btn:hover {
  color: #e4a109;
  border-color: #e4a109;
}

@media (max-width: 768px) {
  .portfolio__container {
    grid-template-columns: repeat(1, 1fr);
  }
  .project__item {
    flex-direction: column;
  }
  .project__img {
    width: 100%;
    height: 150px;
  }
}

@media (max-width: 768px) {
  .project__description, .project__skills {
    text-align: center;
  }
}

/* Experience Section */
#experience {
  padding: 40px 0;
  background-color: #f9f9f9;
}

.container {
  width: 90%;
  max-width: 1024px;
  margin: 0 auto;
}

.section-title {
  font-size: 2em;
  text-align: center;
  margin-bottom: 30px;
  color: #2c3e50;
}

.experience-card {
  background-color: #2a3749;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
}

.job-title {
  font-size: 1.4em;
  color: #e4a109;
  margin-bottom: 5px;
}

.job-duration {
  font-style: italic;
  color: #adaaaa;
  margin-bottom: 20px;
}

.experience-list {
  list-style: disc inside;
  line-height: 1.8;
  color: #f9f9f9;
}
