@import url("https://fonts.googleapis.com/css2?family=Inter:wght@700&family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --background-color: #1f242d;
  --background-color2: #1e293b;
  --primary-color: #0ef;
  --white-color: #fff;
  --black-color: #111;
  --text-color: rgb(203, 213, 225);
  --secondary-color: rgb(160, 174, 192);
  --third-color: #cbd5e1;
  --fourth-color: #334155;
  
  
  scroll-behavior: smooth;
  --header-font-size: 1.1rem;
  --header-text-decoration: undeline;
}

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



#loader {
  background: var(--background-color2);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  animation: spin 1s linear infinite;
  display: none;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

body {
  background: var(--background-color);
  color: var(--white-color);
 
  font-family: "Open Sans", sans-serif;
  /* font-family: 'Inter', sans-serif; */

  /* /* font-family: 'Poppins', sans-serif; */
  /* font-family: 'Roboto', sans-serif; */
  /* font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif  */
}

/* header  */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 100;
}

.nav-container {
  height: 2.7rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__toggle,
.nav__close {
  display: flex;
  font-size: 1.8rem;
  color: hsl(228, 8%, 90%);
  cursor: pointer;
}

.nav__logo {
  margin-left: -1.5rem;
}
/* Navigation for mobile devices */

@media screen and (max-width: 900px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    background-color: hsl(0, 0%, 10%, 0.3);
    width: 55%;
    height: 100%;
    padding: 4rem 0 0 4rem;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: right 0.4s;
  }
}

.nav__list {
  display: flex;
  flex-direction: column;
  row-gap: 3rem;
  list-style-type: none;
}

.nav__link {
  color: hsl(228, 8%, 95%);
  font-weight: 700;
  transition: color 0.4s;
}

.nav__link:hover {
  color: #0ef;
}

.nav__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

.nav__toggle {
  margin-right: 0.4rem;
}

/* Show menu */
.show-menu {
  right: 0;
}

/* Add blur to header */
.blur-header {
  background-color: transparent;
}

.blur-header::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: hsl(0, 0%, 10%, 0.3);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  top: 0;
  left: 0;
  z-index: -1;
}

/* Active link */
.active-link {
  color: #0ef;
}

.nav-resume {
  color: #0ef;
  padding: .3rem .6rem;
  margin-right: 1rem;
  font-weight: 700;
  background-color: var(--background-color2);
  border: 1px solid #0ef;
  font-size: 0.9rem;
  border-radius: 2px;
  text-align: left;
}
/* For medium devices */
@media screen and (max-width: 768px) {
  .nav__menu {
    width: 55% !important;
  } 
}

/* For large devices */
@media screen and (min-width: 900px) {
  .header {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }

  .nav__close,
  .nav__toggle {
    display: none;
  }

 

  .nav__list {
    flex-direction: row;
    column-gap: 3rem;
  }

  /* .nav__menu {
    width: initial
  } */
}

/* For medium devices */
@media screen and (max-width: 900px) {
  .resume2 {
    display: none;
  }
}

.nav-resume:hover {
  transform: scale(1.01);
}

.nav-resume2 {
  color: #0ef;
  padding: .3rem .6rem;
  margin-right: 1rem;
  font-weight: 700;
  background-color: var(--background-color2);
  border: 1px solid #0ef;
  border-radius: 2px;
  font-size: 0.9rem;
  text-align: left;
}

.nav-resume2:hover {
  filter: grayscale(.3);
  transition: ease-in-out;
}

@media screen and (min-width: 900px) {
  .resume {
    display: none;
  }
}

/* links */
a:link {
  text-decoration: none;
  /* color: var(--white-color); */
}

a:hover {
  text-decoration: underline;
}

section {
  /* height: 100vh; */
  padding: 3rem;
  max-width: 100%;
  margin: 0 auto;
}

/* Home Section  */
#home {
  display: flex;
  align-items: center;
  height: 100vh;
}

.home-content {
  color: var(--white-color);
}

.greeting {
  font-size: 1.3rem;
}

.namess {
  margin-top: -0.2rem;
  font-size: 1.2rem;
}

.title {
  margin-top: 0.7rem;
  font-size: 1.7rem;
}

.typed {
  color: var(--primary-color);
}

.intro {
  margin: 1rem 0;
  font-size: 1rem;
  max-width: 80%;
}



.social-media a{
  display: inline-flex;
  justify-self: center;
  align-self: center;
  margin: 2px;
  padding: 2px;
  width: 2rem;
  height: 2rem;
  font-size: 1.3rem;
  border: #0ef solid 1px;
  border-radius: 50%;
  text-decoration: none;
  color: var(--primary-color);
}

.social-media a i {
  display: inline-flex;
  margin: auto;
  align-items: center;
  justify-self: center;
}

.social-media a:hover {
  color: var(--background-color);
  background: var(--primary-color);
  text-decoration: none;
}

.button {
  margin: 1.3rem 0 0 0.3rem;
}

.herobtn {
  display: inline-block;
  padding: 10px 20px;
  background: #0ef;
  color: #1f242d;
  letter-spacing: 2px;
  box-shadow: 0 0 4px #0ef;
  border-radius: 0px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
}

.herobtn:hover {
  color: #0ef;
  background: #1f242d;
  transform: scale(1.05);
  text-decoration: none;
  box-shadow: 0 0 4px #0ef;
  border-radius: 6px;
}

.profile {
  display: flex;
  justify-content: center;
  margin-left: 2rem;
}

.p-image {
  width: 100%;
}

.p-image:hover {
  transform: scale(1.04);
}

/* About section  */

.about-header {
  margin: 3rem 0;
  text-decoration: underline;
  text-transform: capitalize;
  text-underline-position: under;
  text-decoration-color: rgb(160, 174, 192, 0.9v);
  text-align: center;
  color: var(--secondary-color);
  font-size: var(--header-font-size);
  /* outline: rgb(255, 0, 0) solid 1px; */
}

.about-header:hover {
  text-decoration: none;
}

.about .container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
}

.about-image {
  display: flex;
}

.a-pic {
  width: 50%;
  height: 50%;
  object-fit: cover;
  align-self: center;
  justify-self: center;
}

.timeline {
  font-size: 1rem;
  align-self: center;
  justify-self: center;
  margin: 1rem 0 0 -15rem;
}

.timeline ul {
  list-style: circle;
}

.timeline li {
  font-size: 1rem;
  margin-left: 8rem;
  font-weight: 600;
  opacity: 80%;
}

.timeline p {
  margin-top: 1rem;
  font-weight: 500;
}

/* Skills section  */
.skills {
  background-color: var(--background-color);
  max-width: 100%;
}

.skill-header {
  margin: 2rem;
  letter-spacing: 0.5px;

  text-decoration: underline;
  text-underline-position: under;
  text-decoration-color: rgb(160, 174, 192, 0.8);
  text-align: center;
  color: var(--secondary-color);
  font-size: var(--header-font-size);
}

.skill-header:hover {
  text-decoration: none;
}

.s-container {
  max-width: 99%;
  display: flex;
  flex-direction: column;
  margin: 1rem auto;
}

.p-languages {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.p-languages li {
  text-align: center;
  display: flex;
  justify-content: space-around;

  /* align-items: center; */
}

.skills h4 {
  margin: 1rem 0;
  border-bottom: 1px #343b49 solid;
}

.language {
  background: #343b49;
  border-radius: 4%;
  height: 40px;
  /* justify-content: center; */
  align-items: center;
}

.s-pic {
  width: 30px;
  height: 30px;
}

.tools h4,
.offices h4 {
  margin-top: 2rem;
}

/* Project */
.project-header {
  margin: 2rem;
  text-decoration: underline;
  text-underline-position: under;
  text-decoration-color: rgb(160, 174, 192, 0.8v);
  text-align: center;
  color: var(--secondary-color);
  font-size: var(--header-font-size);
}

.project-header:hover {
  text-decoration: none;
}

.p-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 100%;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.project-card {
  background: #343b49;
  border-radius: 4px;
}

.project-card:hover {
  transform: scale(1.01);
}

.project-image {
  width: 100%;
  border-radius: 6px 6px 0 0;
}



.project-card h4 {
  margin: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
}

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

.p-links i,
.p-links .material-symbols-outlined {
  background: transparent;
  padding-top: 2px;
  font-size: 1.3rem;
  color: #0ef;
}

.p-links i:hover,
.p-links .material-symbols-outlined:hover {
  color: #111;
  transform: scale(1.15);
}

.project-links {
  margin: 0 0.5rem;
}

.project-card p {
  font-size: 0.93rem;
  margin: 0 0.5rem 2rem 0.5rem;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: capitalize;
}

.used-tools mark {
  color: #fff;
  padding: 4px;
  font-size: 0.8rem;
  background-color: #1f242d;
}

/* Blog section  */
.blog {
  color: #fff;
}

.blog-header {
  margin: 2rem;
  text-decoration: underline;
  text-underline-position: under;
  text-decoration-color: rgb(160, 174, 192, 0.8v);
  text-align: center;
  color: var(--secondary-color);
  font-size: var(--header-font-size);
}

.blog-header:hover {
  text-decoration: none;
}

.blog-container {
  display: flex;
  /* display: grid; */
  /* grid-template-columns: repeat(3, 1fr); */
  overflow: hidden;
  object-fit: cover; 
}

.blog-container a {
  color: #fff;
}

.blog-container a:hover {
  text-decoration: none;
}

.b-card {
  background: #343b49;
  justify-content: space-between;
  align-items: center;
  margin: 1rem;
  border-radius: 6px;
  overflow: hidden;

}

.b-card:hover,
.b-pic:hover {
  color: var(--secondary-color);
  opacity: 95%;
  transform: scale(1.01);
}

.blog-text {
  margin: 1rem;
  align-self: stretch;
}

.blog-text h4 {
  margin: 1rem 0;
  font-size: 1.2rem;
}

.blog-text p {
  margin: 1rem 0;
  font-size: 0.9rem;
}

.blog-footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.date {
  font-style: italic;
  text-transform: uppercase;
  font-size: 0.6rem !important;
}

.external-link i{
  color: #0ef;
  font-size: 1rem;
}

.external-link i:hover{
  color: #0ef;
  transform: scale(1.1);
  font-size: 1rem;
}

.b-pic {
  width: 100%;
  border-radius: 0px 0px 0px 4px;
  
}

.b-button {
  text-align: center;
}

.more-blog {
  display: flex;
  font-size: .8rem;
  font-weight: 700;
  border-radius: 6px;
  margin: 2rem auto;
  color: #1f242d;
  background: transparent;
  border: 1px solid #0ef;
  /* text-decoration: none solid rgb(129, 230, 217); */
}

.more-blog:hover {
  cursor: pointer;
  color: #242930;
  box-shadow: 0 0 4px #0ef;
  background-color: var(--primary-color);
}

.blog-btn-link {
  color: #0ef;
  padding: 14px 25px;
}

.blog-btn-link:hover {
  color: #1f242d;
  text-decoration: none;
}

/* Testimonial Section  */
/* .testimonial-header {
  margin: 2rem;

  text-decoration: underline;
  text-underline-position: under;
  text-decoration-color: rgb(160, 174, 192, 0.8v);
  text-align: center;
  color: var(--secondary-color);
  font-size: var(--header-font-size);
}

.testimonial-header:hover {
  text-decoration: none;
  background-color: #1e293b;
  border-radius: 5px;

  text-align: center;
}

#testimonials .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin: 0 auto;
}

.testimonial {
  position: relative;
  max-width: 100%;
  color: #fff;
  width: 100%;
  background: #2a313f;
  padding: 50px 0;
  row-gap: 60px;
  align-items: center;
  text-align: center;
}

.testimonial .slide {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
}

img[class="t-pic"] {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin: 30px;
  object-fit: cover;
}

.slide p {
  color: #fff;

  padding: 0 10rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  margin: 50px 0;
}

.quote-icon1 {
  font-size: 30px;
  color: #0ef;
  margin-bottom: 10px;
}

.slide .quote-icon {
  font-size: 30px;
  color: #0ef;
  margin-bottom: 50px;
}

.slide .detail {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.detail .name {
  font-size: 14px;
  font-weight: 600;
}

.detail .job {
  font-size: 12px;
  font-weight: 400;
}

.navv-btn {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  transform: translateY(-10px);
  background-color: rgba(0, 0, 0, 0.1);
  transition: 0.2s;
}

.navv-btn:hover {
  background-color: rgba(0, 0, 0, 0.2);
}
.navv-btn::after,
.navv-btn::before {
  font-size: 20px;
  color: #fff;
}

.swipper-pagination-bullet {
  background-color: rgba(0, 0, 0, 0.8);
}

.swipper-pagination-bullet:active {
  background-color: #4070f4;
} */

/* Contact Section  */
.contacts {
  color: #fff;
}

.contact-header {
  margin: 2rem;
  font-family: "Poppins", sans-serif;
  text-decoration: underline;
  text-underline-position: under;
  text-decoration-color: rgb(160, 174, 192, 0.8v);
  text-align: center;
  color: var(--secondary-color);
  font-size: var(--header-font-size);
}

.contact-header:hover {
  text-decoration: none;
}

.contact-text {
  text-align: center;
}

.social-media2 {
  margin: 1rem 0;
}

.social-media2 i {
  font-size: 30px;
  display: flex;
  margin: auto;
  text-align: center;
  align-items: center;
  justify-content: center;
  /* margin: 1px; */
  padding: 1px;
}



.social-media2 a {
  display: inline-flex;
  justify-self: center;
  align-self: center;
  margin: 6px;
  padding: 2px;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.3rem;
  border: #0ef solid 1px;
  border-radius: 50%;
  text-decoration: none;
  color: var(--primary-color);
}

.social-media2 a:hover {
  color: var(--background-color);
  background: var(--primary-color);
  text-decoration: none;
}

.form-part {
  display: flex;
  justify-content: space-around;
  margin: 4rem auto;
  max-width: 100%;
}

.form {
  display: flex;
  align-items: center;
}

fieldset {
  border: none;
}

legend {
  font-size: 1.1rem;
  padding-top: 1.3rem;
  text-align: center;
}

label {
  display: none;
}

.inputs {
  margin: 1.3rem 0;
}
.form-group {
  display: flex;
  flex-direction: column;
  margin: 1rem;
}

input::invalid {
  color: red;
}

input {
  background: transparent;
  border-radius: 4px;
  border: 1px solid #a0aec0;
  padding: 0.9rem;
  color: #fff;
  width: 30rem;
  font-size: 1rem;
}

textarea {
  height: 10rem;
  font-size: 1rem;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  resize: none;
  border: 1px solid rgb(160, 174, 192);
  padding: 5px;
}

.submit-btn {
  display: flex;
  justify-content: center;
  align-items: center;
}

.submit {
  text-align: center;
  
  border: 0.5px solid var(--fourth-color);
  background: var(--primary-color);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  padding: 8px 1.3rem;
  border-radius: 4px;
}

.submit:hover {
  color: var(--primary-color);
  background: transparent;
  transform: scale(1.02);
  border-color: #0ef;
}

/* .subscribe {
  justify-content: center;
  align-items: center;
  margin: 0 2rem;
}

.subscribe p {
  margin: 1.5rem 0 1rem 0;
  font-size: 1rem;
  text-align: left;
} */

/* footer section  */
footer {
  background-color: #0404083b;
  margin-top: 20px;
  height: 30px;
}
hr {
  opacity: 20% !important;
}

footer p {
  text-align: center;
  font-size: 13px;
  margin-top: 4px;
}

.contact__message {
  text-align: center;
  color: #0ef;
}

.error__message {
  text-align: center;
  color: red;
}

/* Text Gradient  */
/* h4 {
    background: #121FCF;
    background: -webkit-linear-gradient(to right, #121FCF 0%, #CF1512 100%);
    background: -moz-linear-gradient(to right, #121FCF 0%, #CF1512 100%);
    background: linear-gradient(to right, #121FCF 0%, #CF1512 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
} */

@media screen and (max-width: 768px) {
  :root {
    --header-font-size: 1em;
  }

  #home {
    display: flex;
    flex-direction: column-reverse;
    height: fit-content;
  }

  .home-content {
    margin-top: 2em;
    justify-self: center;
    align-self: center;
  }

  .intro {
    max-width: 100%;
    margin: 1rem 0;
    font-size: 1rem;
  }

  .title {
    margin-top: 0.7rem;
    font-size: 1.3rem;
  }

  .profile {
    margin: 2em;
    align-self: center;
  }

  .p-image {
    width: 40%;
  }

  section {
    padding: 2em;
  }

  
  /* about */
  .about {
    height: max-content;
    display: block;
  }

  .about-header {
    margin: 1em;
  }

  .about .container {
    margin: -1em;
  }

  .timeline {
    margin: 1em;
    font-size: 1rem;
  }

  .timeline p:last-child {
    display: none;
  }

  .about-image {
    display: none;
  }

  /* skills */
  .skills {
    height: fit-content;
  }

  .skill-header {
    margin: 1em;
    text-transform: uppercase;
  }

  .skills h4 {
    font-size: 1em;
  }

  .p-languages {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  /* Project */

  .p-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
  }

  .subscribe {
    display: none;
  }

  .project-footer {
    font-size: 0.3rem;
  }

  .project-footer mark {
    font-size: 0.5rem;
  }

  .time {
    font-size: 0.7rem !important;
  }

  /* Blog */
  .blog-container {
    margin: -2rem;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    flex-direction: column-reverse;
  }

  .contact {
    height: fit-content;
  }

  .b-pic {
    width: 100%;
    height: fit-content;
    border-radius: 4px 4px 0 0;
  }

  .blog-text h4 {
    font-size: 1em;
  }

  .blog-text p {
    font-size: 0.9em;
  }

  /* testimonial  */
/* 
  .testimonial {
    border: none;
    border-radius: 5px;
    justify-self: center;
    align-self: center;
  }

  .slide p {
    margin: 0;
    padding: 1em 2em 2em 1em;
  }

  .detail {
    margin-top: -1em;
  }

  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  } */

  /* contact  */
  /* .form {
    justify-content: center;
  }

  .form-part {
    margin-top: 2rem;
  } */

  .contact-text p {
    text-align: center;
    font-size: 0.9em;
  }


  input {
    background: transparent;
    border-radius: 4px;
    border: 1px solid rgb(160, 174, 192);
    padding: 0.9rem;
    color: #fff;
    width: 20rem;
    font-size: 1rem;
  }
  
  textarea {
    height: 7rem;
    font-size: 1rem;
    border-radius: 4px;
    background: transparent;
    color: #fff;
    resize: none;
    border: 1px solid rgb(160, 174, 192);
    padding: 5px;
  }



  .social-media2 i,
  .social-media2 svg {
    display: inline-flex;
    align-self: center;
    justify-self: center;
    font-size: 23px;
  }

  .social-media2 a {
    display: inline-flex;
    justify-self: center;
    align-self: center;
    margin: 3px;
    padding: 2px;
    width: 1.5em;
    height: 1.5em;
    font-size: 1.3rem;
    border: #0ef solid 1px;
    border-radius: 50%;
    text-decoration: none;
    color: var(--primary-color);
  }

  .social-media2 a:hover {
    color: var(--background-color);
    background: var(--primary-color);
    text-decoration: none;
  }
}
