@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

img {
  max-width: 100%;
}

body {
  font-size: 16px;
  line-height: 1.5;
  scroll-behavior: smooth;
}

.container {
  max-width: 1500px;
  margin: 0 auto;
}

/* utilities classes */

.p1 {
  padding: 20px 20px;
}
.p2 {
  padding: 20px 60px;
}

a {
  color: #333;
}
/* HEADER */

#header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 40px;
  background-color: #f5f5f5;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

#header img {
  width: 60px;
  height: 60px;
}

#nav {
  list-style: none;
}

#nav a {
  text-decoration: none;
  color: #333;
}

#nav a:hover {
  color: #1f2937;
}
#mobile {
  display: none;
  align-items: center;
}

/* #close {
  display: none;
} */
#nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  gap: 20px;
  font-weight: bold;
  top: 0;
  right: -300px;
  height: 20vh;
  width: 150px;
  background-color: #e3e6f3;
  box-shadow: 0 40px 60px rgba(0, 0, 0, 0.1);
  padding: 80px 0 0 10px;
  transition: 0.3s;
}

#nav.active {
  right: 0px;
}

#mobile {
  display: flex;
  align-items: center;
}

#mobile i {
  color: #1a1a1a;
  font-size: 24px;
  padding-left: 20px;
}

#close {
  display: initial;
  position: absolute;
  top: 30px;
  left: 10px;
  color: #222;
  font-size: 24px;
}
/* HERO */

#hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  height: 50vh;
  text-align: left;
  background-image: url(../images/1.png);
  background-size: cover;
  background-position: center;
  color: #f5f5f5;
}

#hero h1 {
  font-size: 2rem;
  margin-bottom: 1.25em;
}

#hero p {
  font-size: 1rem;
  margin-bottom: 2.5em;
}

/* Blogs */
.blog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1em;
}
.blog h3 {
  font-weight: 300;
}

.blogs {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  padding: 1.3em 0;
}

.hide {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease;
}
.show {
  opacity: 1;
  max-height: none;
}

.view-more {
  text-align: center;
  color: #333;
  font-weight: bold;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}
.view-more a {
  color: #1f2937;
}
#footer {
  background-color: #202020;
  color: #fff;
  text-align: center;
  padding: 3em;
}

/*Hero Section*/

.hero-img {
  width: 100%;
}
.hero-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.hero-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-details h3 {
  padding: 1.5rem 0;
}

.hero-details p {
  font-weight: 300;
}

.recent-posts {
  text-align: center;
  font-weight: bold;
  margin-top: 1.5em;
}

/* About Me */

.aboutme {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2em;
  margin: 2em 0;
}
.aboutme img {
  width: 50%;
  border-radius: 50%;
  display: block;
  margin: 0 auto;
}

.aboutme h1 {
  margin-bottom: 2rem;
}

.moreaboutme h3 {
  padding-bottom: 1rem;
}

@media (min-width: 700px) {
  #mobile {
    display: none;
  }
  #nav {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    position: static;
    gap: 20px;
    font-weight: bold;
    right: 0px;
    height: auto;
    width: 150px;
    background-color: transparent;
    box-shadow: 0 40px 60px rgba(0, 0, 0, 0);
    padding: 0px 0 0 0px;
    transition: 0.3s;
  }
  #close {
    display: none;
  }
  .aboutme {
    grid-template-columns: 300px 1fr;
    justify-content: center;
    align-items: center;
    gap: 1rem;
  }
  .aboutme img {
    width: 50%;
    border-radius: 50%;
  }
}
