.poppins-regular {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.poppins-semibold {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: normal;
}

:root {
  --text-color: #252424;
  --link-color: rgb(80, 80, 226);
  --background-color: white;
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--background-color);
}

a {
  color: var(--link-color);
  text-decoration: none;
}

/*NAVBAR*/
nav {
  display: flex;
  justify-content: space-between;
  padding: 0 50px;
  height: 80px;
  align-items: center;
}

ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav .left a {
  color: var(--text-color);
  font-size: 22px;
  font-weight: 600;
}

nav .right a {
  color: var(--text-color);
  font-size: 15px;
}

nav .right li:last-child a {
  color: var(--background-color);
  background-color: var(--text-color);
  padding: 5px 15px;
  border-radius: 5px;
}

/*SECTION 1 HERO*/

.hero-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
  margin: 50px 0 100px 0;
  gap: 40px;
}

.hero-section .headshot {
  flex: 2;
  display: flex;
  justify-content: right;
}

.hero-section .headshot img {
  border-radius: 50%;
  width: 300px;
}

/*section 2 about me*/

#about {
  padding: 60px 50px;
}

.about-tech-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

#about .left {
  flex: 1;
  min-width: 280px;
}

#about h2 {
  font-size: 28px;
  margin-bottom: 15px;
}

#about p {
  max-width: 600px;
}

/* Tech Stack */
.tech-stack {
  flex: 1;
  min-width: 280px;
}

.tech-stack h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 20px;
}

.tech-item {
  text-align: center;
  font-size: 14px;
}

.tech-item i {
  font-size: 30px;
  margin-bottom: 5px;
}

/* Section 3 Projects*/
#projects,
#certifications {
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
}

#projects h2,
#certifications h2 {
  font-size: 28px;
  width: 100%;
  margin-bottom: 30px;
}

.column { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px; 
  padding: 20px 10px; 
}

.column-certifications {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  width: 100%;
  padding: 20px 10px;
}

.box {
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  border: 2px solid var(--link-color);
  border-radius: 10px;
  padding: 40px 30px; 
  background-color: var(--background-color);
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
  color: var(--text-color);
  transition: transform 0.2s ease;
  overflow: hidden;
  gap: 10px;
}

.box:hover {
  transform: scale(1.02);
}

.box img {
  width: 100%;
  height: auto;
  padding: 0 15px;
}


.box h3 {
  margin-bottom: 10px;
  font-size: 20px;
  color: var(--text-color);
}

.box p {
  font-size: 15px;
  margin: 5px 15px;
  color: var(--text-color);
}

/* Contact Section */
#contact {
  padding: 60px 50px;
  background-color: var(--text-color);
}

#contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  color: var(--background-color);
  font-size: 16px;
}

#contact h2 {
  color: var(--background-color);
  padding: 10px 0;
  margin: 40px 0;
}

#contact a i {
  font-size: 18px;
}

/* Horizontal Rule */
hr {
  height: 2px;
  background-color: var(--text-color);
  border: none;
  margin: 40px 0;
}

/* Responsive Styles */
@media(max-width: 800px) {
  ul {
    display: none;
  }

  nav {
    padding: 0 20px;
  }

  .hero-section {
    padding: 0 20px;
    flex-direction: column-reverse;
  }

  #about {
    padding: 0 20px;
  }

  #projects,
  #certifications {
    padding: 0 10px;
  }

  .box {
    width: 100%;
    min-height: 300px;
  }

  #contact {
    padding: 0 20px;
  }
}

@media(max-width: 500px) {
  .column,
  .column-certifications {
    grid-template-columns: 1fr;
  }

  .box {
    min-height: 300px;
  }
}

@media(max-width: 650px) {
  .herosection .text {
    font-size: 35px;
  }

  .hero-section .headshot {
    width: 200px;
  }

  .hero-section .headshot img {
    width: 250px;
  }
}

