
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");
:root {
  --header-height: 3rem;
  --font-semi: 600;

  --hue-color: 246;
  --first-color: hsl(var(--hue-color), 56%, 60%); 
  --second-color: hsl(var(--hue-color), 56%, 12%);
  --body-font: 'Poppins', sans-serif;
  --big-font-size: 2rem;
  --h2-font-size: 1.25rem;
  --normal-font-size: .938rem;
  --smaller-font-size: .75rem;
  --mb-2: 1rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;
  --z-back: -10;
  --z-fixed: 100;
}

@media screen and (min-width: 968px) {
  :root {
    --big-font-size: 3.5rem;
    --h2-font-size: 2rem;
    --normal-font-size: 1rem;
    --smaller-font-size: .875rem;
  }
}

*, ::before, ::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--second-color);
}

h1, h2, p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.section-title {
  position: relative;
  font-size: var(--h2-font-size);
  color: var(--first-color);
  margin-top: var(--mb-2);
  margin-bottom: var(--mb-4);
  text-align: center;
}

.section-title::after {
  position: absolute;
  content: '';
  width: 64px;
  height: 0.18rem;
  left: 0;
  right: 0;
  margin: auto;
  top: 2rem;
  background-color: var(--first-color);
}

.section {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

/*===== LAYOUT =====*/
.bd-grid {
  max-width: 1024px;
  display: grid;
  margin-left: var(--mb-2);
  margin-right: var(--mb-2);
}

.l-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(146, 161, 176, 0.15);
}

/*===== NAV =====*/
.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: var(--font-semi);
}

@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 80%;
    height: 100%;
    padding: 2rem;
    background-color: var(--second-color);
    transition: .5s;
  }
}

.nav__item {
  margin-bottom: var(--mb-4);
}

.nav__link {
  position: relative;
  color: #fff;
}

.nav__link:hover {
  position: relative;
}

.nav__link:hover::after {
  position: absolute;
  content: '';
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: var(--first-color);
}

.nav__logo {
  color: var(--second-color);
}

.nav__toggle {
  color: var(--second-color);
  font-size: 1.5rem;
  cursor: pointer;
}

/*Active menu*/
.active::after {
  position: absolute;
  content: '';
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: var(--first-color);
}

/*=== Show menu ===*/
.show {
  right: 0;
}

/* ===== CONTACT =====*/
.contact__data {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
  }
  .contact__icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
  }
  
  .contact__link:hover {
    color: #ff4b63;
  }

  /* ===== Blogs =====*/
.blogs__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
  grid-gap: 4rem; 
  max-width: 700px; 
  margin: 0 auto;
}

.blog__img-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 50%; 
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.blog__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 1s;
}

.blog__img-container:hover .blog__img {
  transform: scale(1.1); 
}

.blog__content { 
  margin-top: 1rem; 
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.blog__title {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.blog__link {
  display: inline-block;
  white-space: nowrap;
  margin-top: 10px;
  transition: transform 0.3s;

}
.blog__link:hover {
  transform: translateY(-3px);
}

.blog__link-text {
  display: inline-block;
  vertical-align: middle;
}

.bx-pencil {
  vertical-align: middle;
}

/* ===== RESEARCH =====*/
.research__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 4rem;
  max-width: 700px;
  margin: 0 auto;
}

.research__img-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 40%; /* Adjust the padding-bottom value as needed to control the size */
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.research__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 1s;
}

.research__img-container:hover .research__img {
  transform: scale(1.1);
}

.research__content {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.research__title {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.research__link {
  display: inline-block;
  white-space: nowrap;
  margin-top: 10px;
  transition: transform 0.3s;
}

.research__link:hover {
  transform: translateY(-3px);
}

.research__link-text {
  display: inline-block;
  vertical-align: middle;
}

/* ===== FOOTER =====*/
  .footer {
    background-color: var(--second-color);
    color: #fff;
    text-align: center;
    font-weight: var(--font-semi);
    padding: 2rem 0;
  }
  
  .footer__title {
    font-size: 2rem;
    margin-bottom: var(--mb-4);
  }
  
  .footer__social {
    margin-bottom: var(--mb-4);
  }
  
  .footer__icon {
    font-size: 1.5rem;
    color: #fff;
    margin: 0 var(--mb-2);
  }
  
  .footer__copy {
    font-size: var(--smaller-font-size);
  }
  
  .contact__form {
    width: 360px;
    padding-top: 2rem;
  }
  .contact__container {
    justify-items: center;
  }

  
  @media screen and (min-width: 768px) {
    body {
      margin: 0;
    }
    .section {
      padding-top: 4rem;
      padding-bottom: 3rem;
    }
    .section-title {
      margin-bottom: var(--mb-6);
    }
    .section-title::after {
      width: 80px;
      top: 3rem;
    }
    .nav {
      height: calc(var(--header-height) + 1.5rem);
    }
    .nav__list {
      display: flex;
      padding-top: 0;
    }
    .nav__item {
      margin-left: var(--mb-6);
      margin-bottom: 0;
    }
    .nav__toggle {
      display: none;
    }
    .nav__link {
      color: var(--second-color);
    }
    .home {
      padding: 8rem 0 2rem;
    }
    .home__img {
      width: 400px;
      bottom: 10%;
    }
    .about__container {
      padding-top: 2rem;
    }
    .about__img img {
      width: 300px;
    }
    .skills__container {
      grid-template-columns: repeat(2, 1fr);
      column-gap: 2rem;
      align-items: center;
      text-align: initial;
    }
    .work__container {
      grid-template-columns: repeat(3, 1fr);
      column-gap: 2rem;
    }
  }
  
  @media screen and (min-width: 992px) {
    .bd-grid {
      margin-left: auto;
      margin-right: auto;
    }
    
  
  body {
    background-color:hsla(186,100%,90%,1);
background-image:
radial-gradient(at 29% 55%, hsla(71,100%,96%,1) 0px, transparent 50%),
radial-gradient(at 11% 60%, hsla(8,100%,96%,1) 0px, transparent 50%),
radial-gradient(at 44% 12%, hsla(129,100%,96%,1) 0px, transparent 50%),
radial-gradient(at 13% 78%, hsla(53,100%,96%,1) 0px, transparent 50%),
radial-gradient(at 23% 45%, hsla(327,100%,96%,1) 0px, transparent 50%),
radial-gradient(at 30% 70%, hsla(176,100%,96%,1) 0px, transparent 50%),
radial-gradient(at 74% 62%, hsla(320,100%,96%,1) 0px, transparent 50%);
  }}

  .home__title {
    font-size: var(--big-font-size);
    margin-bottom: var(--mb-5);
  }
  .home__title-color {
    color: var(--first-color);
  }
  
/* Hide default cursor for the entire body */
body {
  cursor: none;
}

/* Set custom cursor for specific elements */
.cursor {
  position: fixed;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: #773a94a7;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-70%, -70%);
  transition: transform 0.3s ease-in-out;
  border: 3px solid #c88ee3a7;
}

.content {
  position: relative;
  z-index: 1;
  padding: 50px;
  color: #333;
}

a {
  color: #333; 
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-bottom 0.2s ease-in-out;
}

/* Hide hand pointer for specific elements */
a,
button {
  cursor: none;
}


.contact__link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #5f2d77; 
}

.contact__icon {
  margin-right: 8px; /* Adjust the spacing between icon and text */
  font-size: 20px; /* Adjust the icon size */
}

.contact__text {
  display: inline-block;
}