/* Global styles for all pages */

* {
  padding: 0;
  margin: 0;
}

body {
  font-family: "Roboto", sans-serif;
  background-color: #c1ff72;
  font-size: 18px;
  line-height: 1.5;
  transition: 0.5s;
}

#blur.active {
  filter: blur(10px);
  pointer-events: none;
  user-select: none;
  transition: 0.2s;
}

h1 {
  font-size: 5rem;
}

h2 {
  font-size: 4rem;
  color: #000000;
}

p {
  font-family: sans-serif;
}

.nav-current {
  font-weight: bold;
}

header a {
  text-decoration: none;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  position: sticky;
  top: 20px;

  z-index: 999;

  height: 100px;
  padding: 0 20px;
  margin: 20px 80px;

  background-color: #fff;
  border: 5px solid #000;
  border-radius: 25px;
}

#name {
  font-weight: bold;
  font-size: 24px;
  display: flex;
  align-items: center;
}

#name a {
  color: #000000;
}

header ul {
  list-style: none;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

header ul a {
  color: #000000;
}

header ul li {
  padding: 20px;
  margin-left: 10px;
}

header ul li:hover {
  transform: scale(1.1);
  transition: 0.3s;
}

.hero,
.intro,
.profile {
  height: 100vh;
  padding: 30px 90px;
  display: flex;
  align-items: center; /* This better work now */
}

.hero h1 {
  text-align: left;
}

.hero p {
  font-size: 36px;
}

.intro h2 {
  text-align: right;
}

#grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100vh;
  padding: 0px 90px;
}

#grid img {
  height: auto;
}

.profile {
  justify-content: center;
}

.profile-content {
  text-align: center;
}

.profile h2 {
  text-align: center;
}

.profile a {
  background-color: #000000;
  color: #ffffff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 25px;
  display: inline-block;
  font-size: 36px;
}

.profile-image {
  width: 300px; /* Set the width of the image */
  height: auto; /* Maintain the aspect ratio */
  border-radius: 50%; /* Optional: if you want a circular image; might actual image of myself at later point */
}

.blogs {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
  padding: 0px 90px;
  padding-top: 100px;
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 20px 0;
  width: 100%;
}

.blogs .h-entry {
  background-color: #ffffff;
  display: flex;
  border-radius: 25px;
  border-color: #000000;
  border-style: solid;
  border-width: 5px;
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
  padding: 20px;
  margin: 20px 0px;
}

.h-entry h3 {
  font-size: 30px;
  color: #000000;
  margin-bottom: 10px;
}

.h-entry a {
  color: #000000;
  text-decoration: none;
  font-weight: bold;

  transition: 0.5s;
}

.h-entry a:hover {
  color: #000000;
  text-decoration: none;
  font-weight: bold;
  font-size: 20px;
}

article.h-entry > p {
  font-size: 16px;
  color: #666666;
  margin-bottom: 30px;
  font-style: italic;
}

article.h-entry > p a {
  color: #000000;
  text-decoration: none;
  font-weight: bold;
}

article.h-entry > p a:hover {
  text-decoration: underline;
}

.footer-h {
  background-color: #000000;
  color: #ffffff;
  padding: 20px 90px; /* Keep original padding but ensure full width */
  display: flex;

  justify-content: space-between;
  align-items: center;
  width: 100%; /* Ensures full width */
  margin: 0; /* Remove any margin that might end up preventing the use full width */
  box-sizing: border-box; /* Include padding in width calculation */
}

.footer-images {
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-h small {
  font-size: 12px;
}

.footer-h img {
  border-radius: 50%;
  width: 20px;
  height: 20px;
  margin-left: 10px;
  transition: 0.5s;
}

.footer-h img:hover {
  transform: scale(1.2);
}

/* Back to Top Button Styling */
.back-to-top-btn {
  position: fixed;
  bottom: 60px;
  right: 30px;
  background-color: #000000;
  color: #ffffff;
  border: solid;
  border-width: 3px;
  border-color: #ffffff;
  border-radius: 8px;
  width: 50px;
  height: 50px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

/* Show button when active */
.back-to-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Hover effects */
.back-to-top-btn:hover {
  background-color: #333333;
  transform: scale(1.1);
}

/* Active state */
.back-to-top-btn:active {
  transform: scale(0.95);
}

#hamburger-icon {
  margin: auto 0;
  display: none;
  cursor: pointer;
}

#hamburger-icon div {
  width: 35px;
  height: 3px;
  background-color: #000000;
  margin: 6px 0;
  transition: 0.4s;
}

.open .bar1 {
  -webkit-transform: rotate(-45deg) translate(-6px, 6px);
  transform: rotate(-45deg) translate(-6px, 6px);
}

.open .bar2 {
  opacity: 0;
}

.open .bar3 {
  -webkit-transform: rotate(45deg) translate(-6px, -8px);
  transform: rotate(45deg) translate(-6px, -8px);
}

.open .mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.mobile-menu {
  display: none;
  position: absolute;
  background-color: #ffffff;
  border-style: solid;
  border-color: #000000;
  border-radius: 25px;
  border-width: 3px;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  height: auto;
  width: 90%;
}

.mobile-menu li {
  margin-bottom: 10px;
}

/* Tablet Media Query (768px - 1023px) */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 3rem;
  }

  /* Tablet Header Adjustments */
  header {
    height: 80px;
    padding: 0 15px;
    margin: 15px 40px;
    border-width: 4px;
    border-radius: 20px;
  }

  #name {
    font-size: 20px;
  }

  ul li {
    padding: 15px;
    margin-left: 8px;
  }

  header nav {
    display: none;
  }

  #hamburger-icon {
    display: block;
  }

  #hamburger-icon div {
    width: 30px;
    height: 3px;
  }

  .hero,
  .intro,
  .profile {
    padding: 20px 50px;
    height: auto;
    min-height: 80vh;
  }

  .hero p {
    font-size: 24px;
  }

  .intro h2 {
    text-align: left;
  }

  #grid {
    padding: 0 50px;
    height: auto;
    min-height: 80vh;
  }

  #grid img {
    max-width: 45%;
  }

  .profile h2 {
    font-size: 3.5rem;
  }

  .profile a {
    font-size: 24px;
  }

  .blogs {
    padding: 0px 50px;
  }

  .blog-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .h-entry h3 {
    font-size: 24px;
  }

  .footer-h {
    padding: 15px 50px;
  }

  .footer-images {
    gap: 8px;
  }

  .back-to-top-btn {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
}

/* Mobile Media Query (for screens up to 767px) */
@media screen and (max-width: 767px) {
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  /* Mobile Header Adjustments */
  header {
    height: 60px;
    padding: 0 10px;
    margin: 10px 15px;
    border-width: 3px;
    border-radius: 15px;
  }

  #name {
    font-size: 18px;
  }

  ul li {
    padding: 10px;
    margin-left: 5px;
  }

  header nav {
    display: none;
  }

  #hamburger-icon {
    display: block;
  }

  #hamburger-icon div {
    width: 25px;
    height: 2px;
    margin: 5px 0;
  }

  .hero,
  .intro,
  .profile {
    padding: 15px 20px;
    height: auto;
    min-height: 70vh;
  }

  .hero p {
    font-size: 18px;
  }

  .intro h2 {
    font-size: 2.5rem;
  }

  #grid {
    flex-direction: column;
    padding: 15px 20px;
    height: auto;
    gap: 20px;
  }

  #grid img {
    max-width: 100%;
    margin-bottom: 20px;
  }

  .profile h2 {
    font-size: 2.5rem;
  }

  .profile a {
    font-size: 18px;
    padding: 8px 16px;
  }

  .blogs {
    padding: 15px 20px;
  }

  .blog-list {
    grid-template-columns: 1fr;
  }

  .h-entry {
    padding: 15px;
    margin: 10px 0;
    min-height: 150px; /* Adjusted for mobile */
  }

  .h-entry h3 {
    font-size: 20px;
  }

  .footer-h {
    padding: 15px 20px;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .footer-images {
    justify-content: center;
  }

  .back-to-top-btn {
    bottom: 25px;
    right: 25px;
    width: 48px;
    height: 48px;
    font-size: 22px;
  }
}
