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


:root {
  --header-height: 3.5rem ;
  --first-color: hsl(268, 77%, 58%);
  --first-color-dark: hsl(268, 78%, 51%) ;
  --first-color-light:  hsl(268, 100%, 83%);
  --title-color: hsl(0, 0%, 87%) ;
  --text-color: hsl(0, 0%, 69%);
  --body-color:hsl(200, 12%, 5%) ;
  --container-color: hsl(200, 10%, 8%);
  --border-color: hsl(0, 0%, 20%);
  --white: #fff;


  --body-font:"Jost", sans-serif ;
  --big-font-size: 3rem;
  --h1-font-size: 2.5rem;
  --h2-font-size: 2.25rem;
  --h3-font-size: 1.5rem;
  --larger-font-size: 1.2rem;
  --large-font-size: 1.125rem;

  --weight-300:300 ;
  --weight-400: 400;
  --weight-600: 600;
}

/*=============== DARK THEME ===============*/

/*=============== BASE ===============*/
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
input,
textarea,
button,
body{
  font-family: var(--body-font);
  font-size: var(--large-font-size);
}
body{
  background-color: var(--body-color);
  color: var(--text-color);
}
input,
textarea,
button{
  outline: none;
  border: none;
  background-color: transparent;
}
h1,
h2,
h3{
  color: var(--title-color);
  font-weight: var(--weight-600);
}
ul{
  list-style: none;
}
a{
  text-decoration: none;
}
img, .about__img, .home__img, .work__img, .testimonials__img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 0.5rem;
}
.about__img-wrapper, .home__img-wrapper {
  width: 100%;
  max-width: 400px;
  height: 320px;
  position: relative;
  margin: 0 auto;
}
@media screen and (max-width: 992px) {
  .about__img-wrapper, .home__img-wrapper {
    max-width: 300px;
    height: 180px;
  }
}
@media screen and (max-width: 768px) {
  .about__img-wrapper, .home__img-wrapper {
    max-width: 200px;
    height: 120px;
  }
}
@media screen and (max-width: 576px) {
  .about__img-wrapper, .home__img-wrapper {
    max-width: 120px;
    height: 80px;
  }
  .about__img, .home__img, .work__img, .testimonials__img {
    border-radius: 0.3rem;
  }
}
@media screen and (max-width: 450px) {
  .about__img-wrapper, .home__img-wrapper {
    max-width: 120px;
    height: 50px;
  }
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1200px;
  margin-inline: auto ;
  padding-inline: 1rem;
}
.section{
  padding-block: 6rem ;
}
.section__title{
  font-size: var(--h1-font-size);
  font-weight: var(--weight-400);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.section__title::before{
  content: attr(data-title);
  display: block;
  color: var(--first-color);
  font-size: var(--large-font-size);
  font-weight: var(--weight-600);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom:0.5rem ;
}
.title-center{
  text-align: center;
  margin-bottom: 3rem;
}

/*=============== STYLE SWITCHER ===============*/

/*=============== HEADER & NAV ===============*/
header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--body-color);
  box-shadow: 0 3px 9px hsla(0, 0, 0,0.05);
  z-index: 999;
}
nav,
.nav__list{
  display: flex;
}
nav {
  height: calc(var(--header-height) + 2.25rem);
  justify-content: space-between;
  align-items: center;
}
.nav__logo{
  color: var(--first-color);
  font-size: var(--h2-font-size);
}
.nav__list{
  column-gap: 1.5rem;
}
.nav__link{
  color: var(--text-color);
  transition: all .3s ease;
}
/* Active link */
.active-link,
.nav__link:hover{
  color: var(--first-color);
}

/* Hamburger menu styles */
.nav__toggle {
  display: none;
  font-size: 2rem;
  color: var(--first-color);
  cursor: pointer;
  margin-left: auto;
  z-index: 1001;
}
@media screen and (max-width: 768px) {
  .nav__toggle {
    display: block;
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
  }
  .nav__logo {
    margin-left: 3.2rem;
  }
  .nav__list {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 80vw;
    max-width: 300px;
    min-width: 180px;
    background: var(--container-color);
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    box-shadow: 4px 0 32px 0 rgba(40,40,60,0.18);
    border-radius: 0 1rem 1rem 0;
    display: flex;
    gap: 1.2rem;
    transform: translateX(-110%);
    transition: transform 0.35s cubic-bezier(.77,0,.18,1);
    z-index: 1000;
  }
  .nav__list.active {
    transform: translateX(0);
  }
  nav {
    position: relative;
  }
}

/*=============== HOME ===============*/
.home{
  background-color: var(--container-color);
  padding-block: 9rem 3rem;
}
.home__container{
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
}
.grid{
  display: grid;
  gap: 1.5rem;
}
.home__small{
  font-size: var(--large-font-size);
  font-weight: var(--weight-600);
  letter-spacing: 1px;
}
.home__title{
  font-size: var(--big-font-size);
  line-height: 1.4;
}
.home__title span {
  font-weight: var(--weight-300);
}
.home__describtion{
  margin-block: 1.5rem 3rem;
}
.home__btns{
  display: flex;
  column-gap: 1rem;
}
.home__img-wrapper{
  margin-inline: auto 2rem;
  position: relative;
}
.home__img-wrapper::before,
.home__img-wrapper::after{
  content: '';
  position: absolute;
  inset: 0;
}
.home__img-wrapper::before{
  background-color: var(--first-color-light);
  animation: animate__before 8s ease-in-out infinite;
}
.home__img-wrapper::after{
  background-color: var(--first-color);
}
.home__img-wrapper::after,
.home__img{
  animation: animate__after 8s ease-in-out infinite;
}
.home__img{
  z-index: 10;
  position: relative;
  vertical-align: middle;
}

/* Home animation */
@keyframes animate__before {
  0% {
    border-radius: 67% 33% 27% 73% / 65% 28% 72% 35%;
  }
  50% {
    border-radius: 24% 76% 47% 53% / 25% 39% 61% 75% ; 
  }
  100% {
    border-radius: 67% 33% 27% 73% / 65% 28% 72% 35% ;
  }
}
@keyframes animate__after {
  0% {
    border-radius: 24% 76% 47% 53% / 25% 39% 61% 75%;
  }
  50% {
    border-radius:67% 33% 27% 73% / 65% 28% 72% 35%; 
  }
  100% {
    border-radius: 24% 76% 47% 53% / 25% 39% 61% 75% ;
  }
}

/*=============== BUTTON ===============*/
.btn{
  margin-top: 30px;
  display: inline-block;
  background-color: var(--first-color);
  border: 1px solid var(--first-color);
  color: var(--white);
  padding: 0.9rem 2.5rem;
  font-size: var(--large-font-size);
  border-radius: 0.5rem;
  transition: all 0.5s ease;
}
.btn-transparent{
  background-color: transparent;
  color: var(--first-color);
}

/* Button hover */
.btn:hover{
  background-color: var(--first-color-dark);
}
.btn-transparent:hover {
  background-color: var(--first-color);
  color: var(--white);
}

/*=============== ABOUT ===============*/
.about__container{
  grid-template-columns: 4fr 8fr;
  align-items: center;
}
.about__img-wrapper {
  position: relative;
  height: 400px;
}
.about__img{
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  object-fit: cover;
  transition: all .3s ease
}
.about__img:nth-child(1){
  clip-path: polygon(0 0, 0 32%, 28% 0);
  transform: translateY(-1.25rem);
}
.about__img:nth-child(2){
  clip-path: polygon(28% 0,0 32% , 0 100%, 17% 100%,90% 0);
  transform: translateY(-0.75rem);
}
.about__img:nth-child(3){
  clip-path: polygon(100% 0, 100% 65%, 74% 100%,17% 100%,90% 0 );
  transform: translateY(-0.25rem);
}
.about__img:nth-child(4){
  clip-path: polygon(100% 65%, 74% 100%, 100% 100%);
  transform: translateY(0.25rem);
}

/* About img hover */
.about__img-wrapper:hover .about__img{
  transform: translateY(0);
}
.about__description{
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}
.about__data{
  grid-template-columns: repeat(2,1fr);
  gap: 0.25rem;
  margin-bottom: 3rem;
}
.data__item{
  display: flex;
  column-gap: 0.75rem;
}
.data__title{
  font-size: var(--large-font-size);
}
.about__link {
  color: hsl(225, 73%, 57%);
}
.about__bottom,
.about__social-links{
  display: flex;
  align-items: center;
}
.about__bottom{
  column-gap: 3rem;
}
.about__social-links{
  column-gap: 1.25rem;
}
.about__social-links::before{
  content: '';
  background-color: var(--text-color);
  width: 60px;
  height: 2px;
}
.about__social-links{
  color: var(--text-color);
  transition: all 0.3s ease;
}
.about__social-links:hover{
  color: var(--first-color);
}

/*=============== QUALIFICATION ===============*/
.qualification {
  background-color: var(--container-color);
}
.resume__container{
  grid-template-columns: repeat(2, 1fr);
}
.resume__heading{
  text-align: center;
  font-size: var(--h3-font-size);
  padding-bottom: 2rem;
}
.resume__heading,
.resume__item{
  border-bottom: 2px solid var(--border-color);
}
.resume__item:not(:first-child){
  border-right: 2px solid var(--border-color);
}
.resume__item{
  position: relative;
}
.resume__header {
  padding: 2rem 1.5rem;
}
.resume__subtitle{
  font-size: var(--large-font-size);
  cursor: pointer;
}
.resume__icon{
  border: 2px solid var(--border-color);
  font-size: var(--h2-font-size);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  line-height: 1.1em;
  text-align: center;
  cursor: pointer;
  position: absolute;
  right: -1.5rem;
  bottom: -1.5rem;
  z-index: 10;
}
.resume__content{
  padding-inline: 1.5rem 3rem;
}
.resume__date-title{
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.resume__title{
  font-size: var(--h3-font-size);
}
.resume__data{
  color: var(--title-color);
  font-size: var(--large-font-size);
}
.resume__description{
  margin-block: 1.25rem 2rem;
}
/*=============== SERVICES ===============*/
.services__container{
  grid-template-columns: repeat(3, 1fr);
}
.services__item{
  background-color: var(--container-color);
  border: 1px solid var(--border-color);
  padding: 2.5rem 1.8rem;
  position: relative;
  border-radius: 0.5rem;
  transition: all 0.5s ease;
}

/* Services hover */
.services__item:hover{
  background-color: var(--body-color);
  border-color: var(--border-color);
}
.services-icon{
  color: var(--first-color);
  font-size: 1.8rem;
}
.services__title{
  font-size: var(--h3-font-size);
  margin-block: 1.5rem 1rem;
}
.services__no {
  position: absolute;
  right: 2.5rem;
  top: 1rem;
  color: var(--title-color);
  font-size: 3.75rem;
  opacity: 0.07;
}

/*=============== SKILLS ===============*/
.skills{
  background-color: var(--container-color);
}
.skills__container{
  grid-template-columns: repeat(3, 1fr);
  row-gap: 4rem;
}
.skills__titles{
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.skills__titles,
.skills__description{
  padding-inline: 1.5rem;
}
.skills__name{
  font-size: var(--larger-font-size);
}
.skills__no{
  color: var(--title-color);
  font-size: var(--large-font-size);
  font-weight: var(--weight-600);
}
.skills__description{
  margin-block: 1rem 1.8rem;
}
.skills__bar,
.skills__percentage{
  height: 2px;
}
.skills__bar{
  background-color: var(--border-color);
}
.skills__percentage{
  background-color: var(--first-color);
}
.skills__percentage span {
  background-color: var(--container-color);
  border: 2px solid var(--border-color);
  width: 25px;
  height: 25px;
  border-radius: 50%;
  position: absolute;
  right: 0;
  top: -0.75rem;
}
/*=============== PORTFOLIO ===============*/
.work__container{
  grid-template-columns: repeat(3, 1fr);
}
.work__card{
  position: relative;
  cursor: pointer;
}
.work__img{
  vertical-align: middle;
}
.work__details{
  position: absolute;
  inset: 0;
  background-color: hsla(0, 0%, 0%, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.work__img,
.work__details{
  border-radius: 0.5rem;
}
.work__title{
  font-size: var(--h3-font-size);
}
.work__title,
.work__description{
  color: var(--white);
  transform: translateY(1.5rem);
  transition: all .3s ease-in-out;
}
.work__description{
  font-size: var(--large-font-size);
}

/* Work hover */

/*=============== TESTIMONIALS ===============*/
.testimonials{
  background-color: var(--container-color);
}
.testimonials__conatiner{
  grid-template-columns: repeat(2, 1fr);
}
.testimonials__description{
  margin-bottom: 1.75rem;
}
.testimonials__description::before{
  content: '\f10d';
  font-family: fontawesome;
  display: block;
  color: var(--first-color);
  font-size: var(--h3-font-size);
  margin-bottom: 0.25rem;
}
.testimonials__data{
  display: flex;
  align-items: center;
  column-gap: 1.25rem;
}
.testimonials__img{
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonials__name{
  font-size: var(--larger-font-size);
}
.testimonials__identity{
  font-size: var(--large-font-size);
}

/*=============== CONTACT ===============*/
.contact-page-bg {
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-container {
  background: #232336;
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px 0 rgba(40,40,60,0.18);
  padding: 2.5rem 2rem;
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.contact-header {
  text-align: center;
}
.contact-mini-title {
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #a09ffb;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}
.contact-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
}
.contact-content {
  display: flex;
  gap: 2.5rem;
}
.contact-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
}
.contact-info-block {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  background: rgba(30,30,40,0.7);
  border-radius: 1rem;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 2px 12px 0 rgba(40,40,60,0.10);
}
.contact-info-block i {
  font-size: 1.5rem;
  color: #a09ffb;
  margin-top: 0.1rem;
}
.contact-info-label {
  font-size: 1.05rem;
  color: #bdbdfb;
  font-weight: 600;
  display: block;
}
.contact-info-value {
  font-size: 1rem;
  color: #f3f3f7;
  display: block;
  margin-top: 0.1rem;
}
.contact-form {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: rgba(30,30,40,0.7);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  box-shadow: 0 2px 12px 0 rgba(40,40,60,0.10);
}
.contact-form-row {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 0.5rem;
}
.contact-form-row:nth-child(2), .contact-form-row:nth-child(3) {
  flex-direction: column;
  gap: 0;
}
.contact-input, .contact-textarea {
  background: #232336;
  border: 1.5px solid #35355a;
  border-radius: 0.75rem;
  color: #f3f3f7;
  font-size: 1rem;
  padding: 1rem 1.2rem;
  outline: none;
  box-shadow: 0 2px 8px 0 rgba(40,40,60,0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: none;
}
.contact-input:focus, .contact-textarea:focus {
  border-color: #a09ffb;
  box-shadow: 0 0 0 2px #a09ffb33;
}
.contact-btn {
  background: linear-gradient(90deg, #a09ffb 0%, #7c3aed 100%);
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px 0 rgba(40,40,60,0.10);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  margin-top: 0.5rem;
}
.contact-btn:hover, .contact-btn:focus {
  background: linear-gradient(90deg, #7c3aed 0%, #a09ffb 100%);
  box-shadow: 0 8px 32px 0 rgba(40,40,60,0.15);
  transform: translateY(-2px) scale(1.03);
}
@media (max-width: 900px) {
  .contact-content {
    flex-direction: column;
    gap: 2rem;
  }
  .contact-form {
    padding: 1.5rem 0.5rem 1.2rem 0.5rem;
  }
} 

/*=============== FOOTER ===============*/

/*=============== BREAKPOINTS ===============*/
/* For large devices */
@media screen and (max-width: 1200px) {
  .container { max-width: 1000px; padding-inline: 1.5rem; }
  .section { padding-block: 4rem; }
  h1, .section__title { font-size: 2.2rem; }
}

@media screen and (max-width: 992px) {
  .container { max-width: 800px; padding-inline: 1rem; }
  nav, .footer__container { flex-direction: column; gap: 1rem; }
  .about__container, .home__container, .resume__container, .services__container, .skills__container, .work__container, .testimonials__conatiner, .contact-content { grid-template-columns: 1fr !important; flex-direction: column !important; }
  .about__img-wrapper, .home__img-wrapper { height: 180px; }
  .contact-container { padding: 1.5rem 0.5rem; }
}

/* For medium devices */
@media screen and (max-width: 768px) {
  .container { max-width: 98vw; padding-inline: 0.5rem; }
  .section { padding-block: 2.5rem; }
  h1, .section__title { font-size: 1.5rem; }
  .btn, .contact-btn { font-size: 1rem; padding: 0.7rem 1.5rem; }
  .about__img-wrapper, .home__img-wrapper { height: 120px; }
  .contact-form-row { flex-direction: column; gap: 0.5rem; }
  .footer__container { flex-direction: column; gap: 0.5rem; }
}

/* For small devices */
@media screen and (max-width: 576px) {
  .container { max-width: 100vw; padding-inline: 0.2rem; }
  .section { padding-block: 1.5rem; }
  .contact-header .contact-title, .section__title { font-size: 1.1rem; }
  .contact-container, .contact-form { padding: 0.5rem; }
  .contact-input, .contact-textarea, .btn, .contact-btn { width: 100%; font-size: 0.95rem; }
  .footer__container { padding-inline: 0.2rem; }
}

@media screen and (max-width: 450px) {
  .container { max-width: 100vw; padding-inline: 0.05rem; }
  nav {
    height: 3.2rem;
    min-height: 0;
    padding: 0.2rem 0.2rem;
  }
  .nav__toggle {
    font-size: 2.3rem;
    padding: 0.2rem 0.5rem;
  }
  .nav__list {
    width: 100vw;
    right: 0;
    left: 0;
    top: 100%;
    border-radius: 0 0 1rem 1rem;
    padding: 1.2rem 0.5rem;
    gap: 1.5rem;
  }
  .nav__link {
    font-size: 1.15rem;
    padding: 0.7rem 0.5rem;
    width: 100%;
    text-align: left;
    border-radius: 0.5rem;
  }
}

@media screen and (max-width: 390px) {
  .nav__logo {
    font-size: 1.1rem;
    text-align: center;
    width: 100%;
  }
  .nav__toggle {
    font-size: 2.2rem;
    margin-left: 0;
    margin-right: 0.5rem;
  }
  .nav__list {
    width: 150px;
    right: 0.5rem;
    padding: 1rem 0.5rem;
    gap: 1rem;
  }
  .nav__link {
    font-size: 1rem;
    padding: 0.7rem 0.5rem;
    width: 100%;
    text-align: right;
    border-radius: 0.5rem;
  }
}

@media screen and (max-width: 300px) {
  .nav__toggle {
    font-size: 1.3rem;
    padding: 0.2rem 0.4rem;
  }
  .nav__list {
    width: 100vw;
    right: 0;
    left: 0;
    min-width: 0;
    padding: 1rem 0.2rem;
    font-size: 0.85rem;
    gap: 0.7rem;
  }
  .nav__link {
    font-size: 0.9rem;
    padding: 0.5rem 0.2rem;
  }
  .nav__logo {
    font-size: 1.1rem;
  }
  nav {
    padding-inline: 0.1rem;
  }
}

/* FOOTER STYLES HERE */
.footer {
  background: #181824;
  padding: 2.5rem 0 1.5rem 0;
  color: #bdbdfb;
}
.footer__container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.footer__socials {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}
.footer__social {
  color: #a09ffb;
  font-size: 1.6rem;
  transition: color 0.2s, transform 0.2s;
}
.footer__social:hover {
  color: #fff;
  transform: translateY(-3px) scale(1.15);
}
.footer__copyright {
  font-size: 1rem;
  color: #bdbdfb;
  text-align: center;
}
