@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600&display=swap");

:root {
  --blue: #37a6e1;
  --black: #000;
  --white: #fff;
  --light-bg: #eee;
  --border-bold: 0.5rem solid var(--black);
  --border-light: 0.2rem solid var(--black);
}

* {
  font-family: "Rubik", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
  text-transform: none;
  color: var(--black);
}

*::selection {
  background-color: var(--black);
  color: var(--blue);
}

*::-webkit-scrollbar {
  height: 0.5rem;
  width: 1rem;
}

*::-webkit-scrollbar-track {
  background-color: transparent;
}

*::-webkit-scrollbar-thumb {
  background-color: var(--blue);
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  overflow: hidden;
  transition: 0.1s linear !important;
}

body.active {
  padding-left: 35rem;
}

section {
  padding: 3rem 2rem;
  margin: 0 auto;
  max-width: 1200px;
  text-align: center;
}

.heading {
  margin-bottom: 3rem;
  text-align: center;
}

.heading span {
  text-transform: uppercase;
  font-size: 6.5rem;
  border-bottom: var(--border-bold);
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  cursor: pointer;
  padding: 1rem 3rem;
  border: var(--border-light);
  font-size: 2rem;
  background: none;
}

.btn:hover {
  background-color: var(--black);
  color: var(--white);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header .logo {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--black);
}

.header .navbar {
  display: flex;
  align-items: center;
}

.header .navbar a {
  margin: 0 1rem;
  font-size: 1.6rem;
  color: var(--black);
  text-transform: uppercase;
  transition: color 0.1s;
}

.header .navbar a:hover,
.header .navbar a.active {
  color: var(--blue);
}

.header .follow {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header .follow a {
  margin: 0 0.5rem;
  font-size: 2rem;
  color: var(--black);
  transition: color 0.1s;
}

.header .follow a:hover {
  color: var(--blue);
}

#menu-btn {
  display: none;
  font-size: 2.5rem;
  cursor: pointer;
  color: var(--black);
  z-index: 1100; /* Ensure the menu button is on top */
}

@media (max-width: 991px) {
  .header .navbar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: left 0.1s;
    z-index: 1000; /* Ensure the navbar is below the menu button */
  }

  .header .navbar.active {
    left: 0;
  }

  .header .navbar a {
    margin: 1rem 0;
    font-size: 2rem;
  }

  .header .follow {
    display: none; /* Hide the follow icons in the header */
  }

  .header .navbar .follow-mobile {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    padding: 2rem; /* Add some padding at the bottom */
  }

  .header .navbar .follow-mobile a {
    margin: 0 1rem;
    font-size: 2rem;
    color: var(--black);
    transition: color 0.1s;
  }

  .header .navbar .follow-mobile a:hover {
    color: var(--blue);
  }

  #menu-btn {
    display: block;
  }

  .header .follow {
    margin-top: 1rem;
    justify-content: center;
  }
}

.home {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  min-height: 100vh;
}

.home .image {
  flex: 1 1 40rem;
}

.home .image img {
  height: 65rem;
  padding: 2rem;
  border: var(--border-bold);
}

.home .content {
  flex: 1 1 40rem;
}

.home .content h3 {
  text-transform: uppercase;
  font-size: 5rem;
  margin-bottom: 0.5rem;
}

.home .content span {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--blue);
  font-size: 2.5rem;
  margin: 1rem 0;
}

.home .content p {
  font-size: 1.7rem;
  line-height: 2;
  padding: 1rem 0;
}

.about .biography p {
  margin: 2rem auto;
  max-width: 70rem;
  line-height: 2;
  font-size: 1.8rem;
}

.about .biography .bio {
  margin: 1rem 0;
}

.about .biography .bio h3 {
  padding: 1rem 2rem;
  display: inline-block;
  margin: 1rem;
  background-color: var(--light-bg);
  border: var(--border-light);
  word-break: break-all;
  font-size: 2.5rem;
  font-weight: normal;
  text-transform: none;
}

.about .biography .bio h3 span {
  font-weight: lighter;
}

.edu-exp .row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.edu-exp p {
  font-size: 1.7rem;
  padding-bottom: 5px;
  margin-top: 1rem;
}

.edu-exp ul {
  padding-left: 10px;
}

.edu-exp .row .box-container {
  flex: 1 1 40rem;
}

.edu-exp .row .box-container .title {
  padding: 1.5rem;
  font-size: 3rem;
  background-color: #37a6e1ff;
}

.edu-exp .row .box-container .box {
  text-align: left;
  background-color: var(--light-bg);
  padding: 2rem;
}

.edu-exp .row .box-container .box h3 {
  font-size: 2.25rem; /* Large size for the h3 header */
  font-weight: normal;
  margin-top: 1.25rem;
  margin-bottom: 1rem;
}

.edu-exp .row .box-container .box h1 {
  font-size: 2.25rem;
  margin-top: 1.5rem;
}

.edu-exp .row .box-container .box .heading-container {
  display: flex; /* Enables Flexbox */
  align-items: baseline; /* Vertically centers the items in the container */
  justify-content: space-between; /* Aligns items to each end */
}

.edu-exp .row .box-container .box .heading-container span {
  font-size: 1.25rem; /* Smaller font size for the date */
  white-space: nowrap; /* Prevents the date from wrapping */
}

.edu-exp .row .box-container .box ul {
  line-height: 4;
  font-size: 1.7rem;
  line-height: 2;
}

.certificates .box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 1.5rem;
  align-items: flex-start;
}

.certificates .box-container .box {
  padding: 3rem 2rem;
  border: var(--border-light);
  background-color: var(--white);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add subtle shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Add transition for hover effects */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%; /* Ensure boxes have equal height */
}

.certificates .box-container .box:hover {
  transform: translateY(-10px); /* Lift the box on hover */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Enhance shadow on hover */
}

.certificates .box-container .box h3 {
  margin: 1rem 0;
  font-size: 2.5rem; /* Increase font size */
  font-weight: bold;
  color: var(--black);
  background-color: transparent; /* Remove background color */
  padding: 0; /* Remove padding */
  text-align: center; /* Center align the text */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1); /* Add subtle text shadow */
  letter-spacing: 0.5px; /* Add letter spacing */
}

.certificates .box-container .box h4 {
  margin: 0.5rem 0;
  font-size: 2rem; /* Increase font size */
  font-weight: normal;
  color: var(--blue);
  background-color: transparent; /* Remove background color */
  padding: 0; /* Remove padding */
  text-align: center; /* Center align the text */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1); /* Add subtle text shadow */
  letter-spacing: 0.5px; /* Add letter spacing */
}

.certificates .box-container .box img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin-bottom: 1rem; /* Add margin below the image */
}

.services .box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 1.5rem;
  align-items: flex-start;
}

.services .box-container .box {
  padding: 3rem 2rem;
  border: var(--border-light);
  background-color: var(--white);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add subtle shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Add transition for hover effects */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%; /* Ensure boxes have equal height */
}

.services .box-container .box:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Enhance shadow on hover */
}

.services .box-container .box i {
  font-size: 4rem;
  margin-bottom: 2rem;
}

.services .box-container .box h3 {
  margin: 1rem 0;
  font-size: 2.5rem; /* Increase font size */
  font-weight: bold;
  color: var(--black);
  background-color: transparent; /* Remove background color */
  padding: 0; /* Remove padding */
  text-align: center; /* Center align the text */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1); /* Add subtle text shadow */
  letter-spacing: 0.5px; /* Add letter spacing */
}

.services .box-container .box h4 {
  margin: 0.5rem 0;
  font-size: 2rem; /* Increase font size */
  font-weight: normal;
  color: var (--blue);
  background-color: transparent; /* Remove background color */
  padding: 0; /* Remove padding */
  text-align: center; /* Center align the text */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1); /* Add subtle text shadow */
  letter-spacing: 0.5px; /* Add letter spacing */
}

.services .box-container .box p {
  line-height: 2;
  font-size: 1.7rem;
}

.services .box-container .box img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin-bottom: 1rem; /* Add margin below the image */
}

.portfolio .box-container {
  display: grid;
  /* Desktop: three columns for clearer, larger images */
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: flex-start;
}

.portfolio .box-container .box {
  padding: 3rem 2rem;
  border: var(--border-light);
  background-color: var(--white);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add subtle shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Add transition for hover effects */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%; /* Ensure boxes have equal height */
}

.portfolio .box-container .box:hover {
  transform: translateY(-10px); /* Lift the box on hover */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Enhance shadow on hover */
}

.portfolio .box-container .box img {
  width: 100%; /* allow image to scale to the card width */
  max-width: 100%;
  height: 200px; /* fixed visual height so cards align nicely */
  object-fit: cover; /* crop center while filling the area */
  border: 1.5px solid black; /* keep a border for visual separation */
  margin: 1rem 0; /* vertical spacing */
  display: block;
}

/* On very small screens let images size by width to avoid tall fixed heights */
@media (max-width: 450px) {
  .portfolio .box-container .box img {
    height: auto;
  }
}

.portfolio .box-container .box h3 {
  margin: 1rem 0;
  font-size: 2rem;
  font-weight: normal;
}

.portfolio .box-container .box span {
  font-size: 1.7rem;
}

.contact .box-container .box h3 {
  margin: 1.5rem 0;
  font-size: 2.5rem;
}

.contact .box-container .box p {
  font-size: 2rem;
  text-transform: none;
}

.contact .box-container .box:hover {
  background-color: #37a6e1;
}

.contact form {
  max-width: 70rem;
  margin: 0 auto;
}

.contact form .box {
  width: 100%;
  padding: 1.4rem;
  font-size: 2rem;
  text-transform: none;
  border: var(--border-light);
  margin: 1rem 0;
}

.contact form textarea {
  height: 20rem;
  resize: none;
}

.contact form .flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.contact form .flex .box {
  width: 49%;
}

.contact .box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 1.5rem;
  align-items: flex-start;
  margin-top: 3rem;
}

.contact .box-container .box {
  padding: 3rem 2rem;
  border: var(--border-light);
}

.contact .box-container .box i {
  font-size: 3rem;
  height: 7rem;
  width: 7rem;
  line-height: 7rem;
  color: var(--white);
  background-color: var(--black);
  margin-bottom: 0.5rem;
}

.credit {
  text-align: center;
  background-color: var(--black);
  padding: 3rem;
  font-size: 2rem;
  color: var(--white);
}

.credit span {
  color: var(--blue);
}

.resume-bottom-list {
  list-style-type: none;
  padding: 10px;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Ensure 4 columns */
  gap: 20px; /* Adjust the gap between items */
  width: 100%; /* Make the list take the full width */
}

.resume-bottom-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 20px; /* Adjust padding as needed */
  position: relative;
  font-size: large; /* Increase font size for labels */
}

.resume-bottom-item img {
  width: 100px; /* Increase the size of the icons */
  height: 100px; /* Increase the size of the icons */
  object-fit: contain;
  margin-bottom: 15px; /* Space between icon and text */
  transition: transform 0.1s ease; /* Add transition for animation */
}

.resume-bottom-item img:hover {
  transform: scale(1.05);
}

.resume-bottom-item .skill-label {
  text-align: center;
}

/* Media queries for responsiveness */
@media (max-width: 1200px) {
  .resume-bottom-list {
    grid-template-columns: repeat(3, 1fr); /* 3 columns for medium screens */
  }
}

@media (max-width: 768px) {
  .resume-bottom-list {
    grid-template-columns: repeat(4, 1fr); /* 3 columns for small screens */
  }
  .resume-bottom-item img {
    width: 80px; /* Smaller icons for small screens */
    height: 80px;
  }
}

@media (max-width: 480px) {
  .resume-bottom-list {
    grid-template-columns: repeat(2, 1fr); /* 2 column for very small screens */
  }
  .resume-bottom-item img {
    width: 50px; /* Even smaller icons for very small screens */
    height: 50px;
  }
}

.certificates {
  display: grid;
}

/* media queries  */

@media (max-width: 991px) {
  html {
    font-size: 55%;
  }

  .home {
    padding-top: 7rem;
  }

  body.active {
    padding-left: 0;
  }

  .certificates .box-container {
    grid-template-columns: 2fr; /* Single column layout for smaller screens */
  }

  .certificates .box-container .box {
    padding: 1rem 0rem; /* Adjust padding for smaller screens */
  }

  .certificates .box-container .box h3 {
    font-size: 2rem; /* Adjust font size for smaller screens */
  }

  .certificates .box-container .box h4 {
    font-size: 1.5rem; /* Adjust font size for smaller screens */
  }
}

@media (max-width: 450px) {
  html {
    font-size: 50%;
  }

  .home {
    padding-top: 7rem;
  }

  .header.active {
    padding-top: 7rem;
  }

  #menu-btn.fa-times {
    right: 0;
  }

  .home .image img {
    height: auto;
    width: 100%;
  }

  .heading span {
    font-size: 4rem;
  }

  .about .biography .bio h3 {
    font-size: 2rem;
  }

  .contact form .flex .box {
    width: 100%;
  }

  .form-feedback-message {
    display: none; /* Default to hide, JavaScript will change this */
    color: #000; /* Default color, though inline styles override this */
    font-size: medium; /* Increase the font size */
    margin-top: 20px; /* Add some space above the message */
    text-align: center; /* Center the message */
  }
}

.form-feedback-message {
  display: none; /* Default to hide, JavaScript will change this */
  font-size: 1.6rem; /* Increase the font size */
  margin-top: 20px; /* Add some space above the message */
  text-align: center; /* Center the message */
  padding: 1rem 2rem; /* Add padding for better spacing */
  border-radius: 5px; /* Rounded corners */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
}

#form-success-message {
  background-color: #d4edda; /* Light green background */
  color: #155724; /* Dark green text */
  border: 1px solid #c3e6cb; /* Green border */
}

#form-error-message {
  background-color: #f8d7da; /* Light red background */
  color: #721c24; /* Dark red text */
  border: 1px solid #f5c6cb; /* Red border */
}

/* Media queries for responsiveness */
@media (max-width: 991px) {
  .certificates .box-container,
  .services .box-container,
  .portfolio .box-container {
    grid-template-columns: repeat(
      2,
      1fr
    ); /* Double column layout for smaller screens */
  }

  .certificates .box-container .box,
  .services .box-container .box,
  .portfolio .box-container .box {
    padding: 2rem 1rem; /* Adjust padding for smaller screens */
  }

  .certificates .box-container .box h3,
  .services .box-container .box h3,
  .portfolio .box-container .box h3 {
    font-size: 2rem; /* Adjust font size for smaller screens */
  }

  .certificates .box-container .box h4,
  .services .box-container .box h4,
  .portfolio .box-container .box span {
    font-size: 1.5rem; /* Adjust font size for smaller screens */
  }
}

/* Larger image height on wide desktops for clearer visuals */
@media (min-width: 1200px) {
  .portfolio .box-container .box img {
    height: 240px;
  }
}

@media (max-width: 450px) {
  .certificates .box-container,
  .services .box-container,
  .portfolio .box-container {
    grid-template-columns: 1fr; /* Single column layout for very small screens */
  }

  .certificates .box-container .box,
  .services .box-container .box,
  .portfolio .box-container .box {
    padding: 1rem 0.5rem; /* Adjust padding for very small screens */
  }

  .certificates .box-container .box h3,
  .services .box-container .box h3,
  .portfolio .box-container .box h3 {
    font-size: 1.8rem; /* Adjust font size for very small screens */
  }

  .certificates .box-container .box h4,
  .services .box-container .box h4,
  .portfolio .box-container .box span {
    font-size: 1.3rem; /* Adjust font size for very small screens */
  }
}
