/* Custom properties/variables  */
:root {
    --main-white: #f0f0f0;
    --main-red: #be3144;
    --main-blue: #45567d;
    --main-gray: #303841;
  }
  
  /* Base reset */
  * {
    margin: 0;
    padding: 0;
  }
  
  /* box-sizing and font sizing */
  *,
  *::before,
  *::after {
    box-sizing: inherit;
  }
  
  html {
    box-sizing: border-box;
  
    /* Set font size for easy rem calculations
     * default document font size = 16px, 1rem = 16px, 100% = 16px
     * (100% / 16px) * 10 = 62.5%, 1rem = 10px, 62.5% = 10px
    */
    font-size: 62.5%;
    scroll-behavior: smooth;
  }
  
  /* A few media query to set some font sizes at different screen sizes.
   * This helps automate a bit of responsiveness.
   * The trick is to use the rem unit for size values, margin and padding.
   * Because rem is relative to the document font size
   * when we scale up or down the font size on the document
   * it will affect all properties using rem units for the values.
  */
  
  /* I am using the em unit for breakpoints
   * The calculation is the following
   * screen size divided by browser base font size
   * As an example: a breakpoint at 980px
   * 980px / 16px = 61.25em
  */
  
  /* 1200px / 16px = 75em */
  @media (max-width: 75em) {
    html {
      font-size: 60%;
    }
  }
  
  /* 980px / 16px = 61.25em */
  @media (max-width: 61.25em) {
    html {
      font-size: 58%;
    }
  }
  
  /* 460px / 16px = 28.75em */
  @media (max-width: 28.75em) {
    html {
      font-size: 55%;
    }
  }
  
  /* Base styles */
  
  body {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem; /* 18px */
    font-weight: 400;
    line-height: 1.4;
    color: var(--main-white);
  }
  
  h1,
  h2 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    text-align: center;
  }
  
  h1 {
    font-size: 6rem;
  }
  
  h2 {
    font-size: 4.2rem;
  }
  
  ul {
    list-style: none;
  }
  
  a {
    text-decoration: none;
    color: var(--main-white);
  }
  
  img {
    display: block;
    width: 100%;
  }
  
  /* nav */
  
  .nav {
    display: flex;
    justify-content: flex-end;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--main-red);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
    z-index: 10;
  }
  
  .nav-list {
    display: flex;
    margin-right: 2rem;
  }
  
  @media (max-width: 28.75em) {
    .nav {
      justify-content: center;
    }
  
    .nav-list {
      margin: 0 1rem;
    }
  }
  
  .nav-list a {
    display: block;
    font-size: 2.2rem;
    padding: 2rem;
  }
  
  .nav-list a:hover {
    background: var(--main-blue);
  }
  
  /* Welcome section */
  
  #welcome-section {
    display: flex;
    align-items: top;
    justify-content: center;
    padding: 200px;
    text-align: top;
  }

  .profile-image {
    width: 300px; /* Adjust the size of the image */
    height: 500px;  /* Make the image circular if you prefer */
    margin-right: 200px; 
    object-fit: cover;/* Add space between the image and text */
  }

  .welcome-text h1 {
    font-size: 5.0rem;
    color: #45567d;
  }

  .welcome-text h2{
    font-size: 25px;
    font-weight: bold;
    color:black;
    text-align: left;
  }
  
  .welcome-text p {
        font-size: 1.2em;
        color: black;
        text-align: center;
      }
  
  /* Projects section */
  
  .projects-section {
    text-align: center;
    padding: 10rem 2rem;
    background: var(--main-blue);
  }
  
  .projects-section-header {
    max-width: 650px;
    margin: 0 auto 6rem auto;
    border-bottom: 0.2rem solid var(--main-white);
  }
  
  @media (max-width: 28.75em) {
    .projects-section-header {
      font-size: 4rem;
    }
  }
  
  /* "Automagic" image grid using no media queries */
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    grid-gap: 4rem;
    width: 80%;
    max-width: 5000px;
    margin: 0 auto;
    margin-bottom: 2rem;
  }
  
  @media (max-width: 30.625em) {
    .projects-section {
      padding: 6rem 1rem;
    }
  
    .projects-grid {
      grid-template-columns: 1fr;
    }
  }
  
  .project {
    background: var(--main-gray);
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    border-radius: 2px;
  }
  
  .code {
    color: var(--main-gray);
    transition: color 0.3s ease-out;
  }
  
  .project:hover .code {
    color: #ff7f50;
  }
  
  .project-image {
    height: calc(100% - 6.8rem);
    width: 100%;
    object-fit: cover;
  }
  
  .project-title {
    font-size: 2rem;
    padding: 2rem 0.5rem;
  }
  
  .btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 2px;
  }
  
  .btn-show-all {
    font-size: 2rem;
    background: var(--main-gray);
    transition: background 0.3s ease-out;
  }
  
  .btn-show-all:hover {
    background: var(--main-red);
  }
  
  .btn-show-all:hover > i {
    transform: translateX(2px);
  }
  
  .btn-show-all > i {
    margin-left: 10px;
    transform: translateX(0);
    transition: transform 0.3s ease-out;
  }
  
  /* Contact section */
  
  .contact-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 60vh;
    padding: 0 0rem;
    background: var(--main-gray);
  }
  
  .contact-section-header > h2 {
    font-size: 6rem;
  }
  
  @media (max-width: 28.75em) {
    .contact-section-header > h2 {
      font-size: 4rem;
    }
  }
  
  .contact-section-header > p {
    font-style: italic;
  }
  
  .contact-links {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 980px;
    margin-top: 4rem;
    flex-wrap: wrap;
  }
  
  .contact-details {
    font-size: 2.4rem;
    text-shadow: 2px 2px 1px #1f1f1f;
    transition: transform 0.3s ease-out;
  }
  
  .contact-details:hover {
    transform: translateY(8px);
  }

  .certificates-section {
    background: var(--main-blue);
    text-align: center; /* Center the section text */
    padding: 4rem 2rem;
}

.certificates-header {
    font-size: 3rem; /* Header font size */
    color: var(--main-blue); /* Change to your desired color */
    margin-bottom: 2rem; 
}

.certificate-box {
  display: inline-block; /* Make the link behave like a block element */
  padding: 2rem 3rem; /* Padding around the text */
  background-color: var(--main-red); /* Background color */
  color: white; /* Text color */
  text-decoration: none; /* Remove underline from the link */
  border-radius: 10px; /* Rounded corners */
  box-shadow: white; /* Shadow for depth */
  transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth transition for hover effect */
}

.certificate-box:hover {
  background-color: var(--main-blue); /* Change color on hover */
  transform: translateY(-2px); /* Slight upward movement on hover */
}

.certificates-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.certificate {
    background: var(--main-gray);
    border-radius: 5px;
    padding: 2rem;
    margin: 1rem 0;
    width: 80%;
    max-width: 600px;
}

.certificate h3 {
    margin-bottom: 1rem;
    color: #ff7f50;
}

/* New Skills section */
.skills-section {
    padding: 6rem 2rem;
    background: var(--main-gray);
    text-align: center;
}

.skills-header {
    margin-bottom: 3rem;
}

.skills-list {
    justify-content: center;
    padding: 10px;
     
}

.skill {
    background: var(--main-red);
    border-radius: 5px;
    padding: 1rem 2rem;
    margin: 1rem;
    color: var(--main-white);
    width: 80%; /* Width for the skill item */
    max-width: 600px;
}


  
  /* Footer */
  
  footer {
  background-color: white;
  color: #000;
  text-align: center;
  padding: 40px 20px 30px;
  margin: 0;
  border-top: none;
  box-shadow: none;
  position: relative;
  z-index: 1;
}

footer::before {
  content: "";
  display: block;
  height: 1px;
  background-color: transparent;
  margin-bottom: 0;
}

.contact-info-block {
  max-width: 800px;
  margin: 0 auto;
}

.footer-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: bold;
}

.contact-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
}

.icon {
  width: 24px;
  height: 24px;
}

  
  @media (max-width: 28.75em) {
    footer {
      flex-direction: column;
      text-align: center;
    }
  }

 .resume-section {
  text-align: center;
  padding: 50px 20px;
  background-color: #2F3741;
  color: white;
  z-index: 10;
  position: relative;
}




.resume-section-header {
  font-size: 4rem;
  margin-bottom: 10px;
}

.resume-btn {
  background-color: #007bff;
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.resume-btn:hover {
  background-color: #0056b3;
}

.highlights {
  background: var(--main-blue);
  width: 100vw;
  text-align: center;
  padding: 140px 30px 60px; /* ✅ top padding increased */
  margin: 0;
  color: white;
  box-sizing: border-box;
}

.highlights h3 {
  font-size: 3rem;          /* Big and bold heading */
  margin-top: 120px;
  margin-bottom: 40px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}



.highlights ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  width: 100%;
}
.highlights li {
  font-size: 1.6rem;         /* 🔽 Medium font size */
  margin: 20px 0;
  font-weight: 500;
  line-height: 1.6;
}

.menu-toggle {
  display: none;
  font-size: 3rem;
  position: fixed;
  top: 2rem;
  left: 2rem;
  color: white;
  background-color: var(--main-red);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  z-index: 100;
  cursor: pointer;
}

/* Hide nav list initially for small screens */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    background: var(--main-blue);
    padding: 2rem;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .nav-list.show {
    display: flex;
  }

  .nav-list li {
    margin: 1rem 0;
  }
}

