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

:root {
  --green: #2cd626;
  --black: #000000;
  --light-color: #777;
  --border: 0.1rem solid rgba(0, 0, 0, 0.2);
  --box-shadow: 0.4rem 0.4rem 1rem #ccc, -0.4rem -0.4rem 1rem #fff;
  --box-shadow-inset: 0.4rem 0.4rem 1rem #ccc inset,
    -0.4rem -0.4rem 1rem #fff inset;
}

* {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  text-transform: capitalize;
  transition: 0.2s linear;
}

.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.loader.fadeOut {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

body {
  background: var(--bg-color);
  padding-left: 30rem;
}
.blurred-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../image/BG.png") no-repeat center center/cover;
  filter: blur(12px);
  z-index: -1;
}

body.active {
  --black: #fff;
  --light-color: #ddd;
  --bg-color: #0e0e0e;
  --border: 0.1rem solid rgba(0, 0, 0, 0.4);
  --box-shadow: 0.4rem 0.4rem 1rem #111, -0.4rem -0.4rem 1rem #333;
  --box-shadow-inset: 0.4rem 0.4rem 1rem #111 inset,
    -0.4rem -0.4rem 1rem #333 inset;
}

section {
  min-height: 100vh;
  padding: 2rem;
}

section.education {
  min-height: auto;
}
.main {
  background-attachment: fixed;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../image/BG.png") no-repeat center center/cover;
  filter: blur(50px);
  z-index: -1;
}

.thm-badge-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50vh;
  background: transparent;
}

.thm-badge {
  background: transparent !important;
  border: none !important;
  outline: none;
  display: block;
  width: 350px;
}

.blog-section h2,
.blog-section p,
.blog-section .btn {
  color: var(--black);
}

body.active .blog-section h2,
body.active .blog-section p,
body.active .blog-section .btn {
  color: var(--light-color);
}

.btn {
  margin-top: 1rem;
  display: inline-block;
  padding: 1rem 3.5rem;
  border-radius: 0.5rem;
  font-size: 1.7rem;
  cursor: pointer;
  background: none;
  color: var(--black);
  box-shadow: var(--box-shadow);
}

.btn:hover {
  box-shadow: var(--box-shadow-inset);
  color: var(--green);
}

.heading {
  text-align: center;
  font-size: 5rem;
  color: var(--black);
  text-transform: uppercase;
  padding-bottom: 2rem;
}

.heading span {
  color: var(--green);
  text-transform: uppercase;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: 30rem;
  border-right: var(--border);
  height: 100%;
  padding: 2rem;
  text-align: center;
  overflow: hidden;
}

.header .user img {
  margin: 1rem 0;
  border: 1rem solid transparent;
  border-radius: 50%;
  height: 18rem;
  width: 18rem;
  box-shadow: 0.4rem 0.4rem 1rem #000000;
}

.header .user h3 {
  color: white;
  font-size: 2.5rem;
}

.header .user p {
  color: white;
  font-size: 1.5rem;
}

.header .navbar {
  padding-top: 1rem;
}

.header .navbar a {
  display: block;
  margin: 1.5rem 0;
  padding: 0.7rem;
  border-radius: 5rem;
  font-size: 2rem;
  border: #111;
  border-width: 1px 0;
  color: white;
}

.header .navbar a:hover {
  color: var(--green);
}

#menu-btn {
  position: fixed;
  top: 1.5rem;
  left: 2rem;
  z-index: 1000;
  height: 5rem;
  width: 5rem;
  line-height: 5rem;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: var(--box-shadow);
  text-align: center;
  color: var(--black);
  background: var(--bg-color);
  display: none;
}

#menu-btn:hover {
  color: var(--green);
  box-shadow: var(--box-shadow-inset);
}

#theme-toggler {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  z-index: 1000;
  height: 5rem;
  width: 5rem;
  line-height: 5rem;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: var(--box-shadow);
  text-align: center;
  color: var(--black);
  background: var(--bg-color);
}

#theme-toggler:hover {
  color: var(--green);
  box-shadow: var(--box-shadow-inset);
}

.blog-section .box-container {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(22rem, 1fr)
  ); /* Smaller width */
  gap: 1.5rem;
  margin-top: 2rem;
  justify-content: center;
}

.blog-section .box {
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--box-shadow);
  text-align: center;
  background: var(--bg-color);
  transition: transform 0.3s ease-in-out;
  min-height: 250px; /* Reduce card height */
  max-width: 22rem; /* Reduce card width */
  margin: auto;
}

.blog-section .box:hover {
  transform: scale(1.05);
}

.blog-section .box i {
  font-size: 3rem; /* Adjust icon size */
  color: var(--green);
  margin-bottom: 1rem;
}

.blog-section .box h3 {
  font-size: 1.6rem; /* Adjust title size */
  color: var(--black);
  margin-bottom: 0.8rem;
}

.blog-section .box p {
  font-size: 1.2rem; /* Adjust text size */
  color: var(--light-color);
  line-height: 1.5;
}

.blog-section .box a {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: var(--green);
  color: var(--black);
  border-radius: 0.5rem;
  font-size: 1.4rem;
  text-decoration: none;
}

.blog-section .box a:hover {
  background: var(--black);
  color: var(--green);
}

/* Add these styles to your existing CSS */
.services .box-container .box {
  min-height: 350px; /* Fixed card height */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Even spacing */
}

.services .box-container .box i {
  font-size: 5rem; /* Increase icon size */
  margin-bottom: 2rem; /* Add spacing below icons */
}

.services .box-container .box h3 {
  font-size: 2.2rem; /* Standardize heading size */
  margin-bottom: 1.5rem;
}

.services .box-container .box p {
  font-size: 1.5rem; /* Standardize text size */
  line-height: 1.6;
  flex-grow: 1; /* Ensure text fills available space */
}

.home {
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.home .content h3 {
  font-size: 5rem;
  color: var(--black);
  line-height: 1.1;
  text-transform: uppercase;
}

.home .content p {
  font-size: 2rem;
  color: var(--green);
  padding-bottom: 0.5rem;
}

.home .share {
  position: relative;
  top: 10rem;
  border-radius: 0.5rem;
  box-shadow: var(--box-shadow);
  padding: 1rem;
}

.home .share a {
  height: 5rem;
  width: 5rem;
  line-height: 5rem;
  box-shadow: var(--box-shadow);
  margin: 0.5rem;
  font-size: 2rem;
  color: var(--black);
  border-radius: 0.5rem;
}

.home .share a:hover {
  box-shadow: var(--box-shadow-inset);
  color: var(--green);
}

.head {
  flex-flow: column;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--black);
  line-height: 1.1;
}

.about .content p {
  font-size: 1.7rem;
  color: var(--light-color);
  padding: 0.5rem 0;
}
.about .row {
  display: flex;
  align-items: center;
  flex-wrap: wrap-reverse;
  gap: 2rem;
}

.about .row .box-container {
  flex: 1 1 40rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 5rem;
}

.about .row .box-container .box {
  flex: 1 1 18rem;
  text-align: center;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: var(--box-shadow);
}

.about .row .box-container .box h3 {
  font-size: 5rem;
  color: var(--black);
  line-height: 1.1;
}

.about .row .box-container .box p {
  font-size: 1.7rem;
  color: var(--light-color);
  padding: 0.5rem 0;
}

.about .row .content {
  flex: 1 1 40rem;
}

.about .row .content h3 {
  font-size: 3.3rem;
  color: var(--black);
  line-height: 1.8;
}

.about .row .content h3 span {
  color: var(--green);
}

.about .row .content p {
  font-size: 1.7rem;
  color: var(--light-color);
  line-height: 1.5;
  padding: 1rem 0;
}

.about .row:nth-child(3) {
  padding-top: 10rem;
}

.about .row .progress {
  flex: 1 1 40rem;
}

.about .row .progress h3 {
  color: var(--black);
  font-weight: normal;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.about .row .progress .bar {
  box-shadow: var(--box-shadow);
  border-radius: 5rem;
  height: 2rem;
  padding: 0.5rem;
  margin: 1rem 0;
}

.about .row .progress .bar span {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: 5rem;
}

.about .row .progress .bar-1-1 span {
  width: 90%;
}

.about .row .progress .bar-1-2 span {
  width: 80%;
}

.about .row .progress .bar-1-3 span {
  width: 75%;
}

.about .row .progress .bar-2-1 span {
  width: 95%;
}

.about .row .progress .bar-2-2 span {
  width: 80%;
}

.about .row .progress .bar-2-3 span {
  width: 70%;
}

.about .box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(27rem, 1fr));
  gap: 2rem;
}

.about .box-container .boxes {
  height: 25rem;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  position: relative;
  border: 1rem solid transparent;
  padding-top: 56;
}

.about .box-container .boxes img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.about .box-container .boxes .content {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: black;
  opacity: 0.7;
  display: grid;
  text-decoration-color: #ddd;
  place-items: center;
  transform: scale(0);
}

.about .box-container .boxes:hover .content {
  transform: scale(1);
}

.about .box-container .boxes .content h3 {
  font-size: 2.5rem;
  color: var(--black);
  text-transform: uppercase;
  transform: translateY(-5rem);
  opacity: 0;
  transition-delay: 0.3s;
}

.about .box-container .boxes:hover .content h3 {
  transform: translateY(0rem);
  opacity: 1;
}

.services .box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(27rem, 1fr));
  gap: 2rem;
}

.services .box-container .box {
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: var(--box-shadow);
  position: relative;
  z-index: 0;
  overflow: hidden;
}

.services .box-container .box i {
  font-size: 4rem;
  padding-bottom: 5rem;
  color: #fff;
}

.services .box-container .box h3 {
  font-size: 2rem;
  padding-bottom: 1rem;
  color: var(--black);
}

.services .box-container .box p {
  font-size: 1.4rem;
  line-height: 1.8;
  color: var(--light-color);
}

.services .box-container .box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: var(--green);
  z-index: -1;
  clip-path: circle(9rem at 5% 0%);
  transition: 0.3s linear;
}

.services .box-container .box:hover::before {
  clip-path: circle(100%);
}

.services .box-container .box:hover > * {
  color: #ffffff;
}

.portfolio .box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(27rem, 1fr));
  gap: 2rem;
}

.portfolio .box-container .box {
  height: 25rem;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  position: relative;
  border: 1rem solid transparent;
}

.portfolio .box-container .box img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.portfolio .box-container .box .content {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: var(--bg-color);
  display: grid;
  place-items: center;
  transform: scale(0);
}

.portfolio .box-container .box .content h3 {
  font-size: 2.5rem;
  color: var(--black);
  text-transform: uppercase;
  transform: translateY(-5rem);
  opacity: 0;
  transition-delay: 0.3s;
}

.contact form {
  margin: 1rem auto;
  max-width: 70rem;
  border-radius: 0.5rem;
  box-shadow: var(--box-shadow);
  padding: 2rem;
}

.contact form .box {
  padding: 1rem 1.5rem;
  width: 100%;
  background: none;
  color: var(--black);
  font-size: 1.6rem;
  text-transform: none;
  margin: 0.7rem 0;
  box-shadow: var(--box-shadow);
  border-radius: 0.5rem;
}

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

.contact form .box:focus {
  box-shadow: var(--box-shadow-inset);
}

.credits {
  font-size: 2rem;
  text-align: center;
  padding: 2.5rem 1rem;
  margin-top: 1rem;
  border-top: var(--border);
  color: var(--black);
}

.credits span {
  color: var(--green);
}

/* media queries  */

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

  body {
    padding-left: 0;
  }

  .header {
    left: -110%;
  }

  .header.active {
    left: 0%;
    transition: 0.4s linear;
  }

  #menu-btn {
    display: initial;
  }
}

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

  .header {
    width: 100%;
    border-right: 0;
  }
}

.experience {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.experience__item {
  width: 100%;
  margin-bottom: 20px;
  padding: 20px;
  align-items: center;
  gap: 20px;
  border-right: #fff;
}

/* Optional: Add some padding and styling for better appearance */

.experience__item::before {
  color: white;
  font-size: 2rem;
  z-index: -2;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  position: left;
  height: 100%;
  border-left: 1px solid #fff;
}

h3.experience__company {
  margin-top: 0;
}
.experience__title {
  font-size: 5rem;
  color: var(--green); /* Change experience title color to green */
  text-transform: uppercase; /* Make experience title uppercase */
  margin-bottom: 2rem; /* Add space after the experience heading */
  text-align: center; /* Center align the experience title */
}

.experience__company {
  font-size: 3rem;
  color: var(--black);
}

.experience__dates {
  font-size: 1.6rem;
  color: var(--light-color);
}

.experience__dates span {
  margin-right: 2rem;
}

.experience__item p {
  font-size: 1.8rem;
  color: var(--light-color);
  margin-bottom: 1rem;
}

.experience__links {
  margin-bottom: 1rem;
}

.experience__link a {
  color: var(--green);
  font-size: 2rem; /* Increase font size of links */
}

.experience__link a:hover {
  color: var(--black);
}

.experience__link {
  margin-bottom: 1rem;
}

.education {
  margin-top: 3rem; /* Add space after the experience section */
}

.education__title {
  font-size: 5rem;
  color: var(--green); /* Change education title color to green */
  text-transform: uppercase; /* Make education title uppercase */
  margin-bottom: 4rem; /* Add space after the education heading */
  text-align: center; /* Center align the education title */
  line-height: 1.2;
}

.education__institution {
  font-size: 3rem;
  color: var(--black);
}

.education__dates {
  font-size: 1.6rem;
  color: var(--light-color);
  margin-bottom: 2rem; /* Add space after the education dates */
}

.education__dates span {
  margin-right: 2rem;
}

.education__item p {
  font-size: 1.8rem;
  color: var(--light-color);
}
