/*-----------------------------------*\
  #main.css
\*-----------------------------------*/

/**
 * copyright 2023 DuoDevs
 */





/*-----------------------------------*\
  #CUSTOM PROPERTY
\*-----------------------------------*/

:root {

  /**
   * COLORS
   */

  /* Background color */
  --white: hsl(0, 0%, 100%);
  --white-alpha-10: hsla(0, 0%, 100%, 0.051);
  --white-alpha-20: hsla(0, 0%, 100%, 0.2);
  --white-alpha-70: hsla(0, 0%, 100%, 0.102);
  --pink: hsla(350, 100%, 88%, 1);
  --royal-purple-alpha: hsla(260, 42%, 48%, 0.226);
  --eerie-black: hsla(0, 0%, 13%, 1);
  --oxford-blue: hsla(242, 49%, 10%, 1);
  --russian-violet: hsl(251, 76%, 10%);
  --rich-black: hsla(245, 70%, 6%, 1);
  --space-cadet: hsl(243, 32%, 15%);
  --rich-black-alpha-20: hsla(245, 70%, 6%, 0.6);
  --black: hsla(0, 0%, 0%, 1);

  /* text color */
  --french-gray: hsla(210, 12%, 73%, 1);
  --persian-pink: hsla(318, 90%, 75%, 1);
  --cadet-gray: hsla(210, 14%, 66%, 1);
  --dim-gray: hsla(0, 0%, 40%, 1);
  --royal-purple: hsla(260, 42%, 48%, 1);
  --paynes-gray: hsl(228, 9%, 42%, 1);
  --english-gray: hsl(243, 14%, 28%);

  /* gradient color */
  --linear-gradient-1: linear-gradient(to right, #f987d6, #6a47af 50%, #ffffff 50%);
  --linear-gradient-2: linear-gradient(to right, #f987d6, #6a47af 50%);
  --linear-gradient-3: linear-gradient(to right, #977ec7 0%, #f987d6 100%);
  --linear-gradient-4: linear-gradient(to bottom, #977ec7 0%, #f987d6 100%);

  /**
   * TYPOGRAPHY
   */

  /* font size */
  --fs-56: 5.6rem;
  --fs-50: 5rem;
  --fs-40: 4rem;
  --fs-36: 3.6rem;
  --fs-30: 3rem;
  --fs-26: 2.6rem;
  --fs-24: 2.4rem;
  --fs-20: 2rem;
  --fs-16: 1.6rem;
  --fs-14: 1.4rem;
  --fs-13: 1.3rem;

  /* font family */
  --fontFamily_Poppins__sans_serif: 'Poppins', sans-serif;

  /* font weight */
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semiBold: 600;
  --weight-bold: 700;


  /**
   * BOX SHADOW
   */

  --shadow-1: 0px 5px 20px hsl(251, 68%, 19%);
  --shadow-2: 0px 0px 10px hsl(243, 50%, 9%);


  /**
   * BORDER RADIUS
   */

  --radius-circle: 50%;
  --radius-30: 30px;
  --radius-15: 15px;
  --radius-10: 10px;
  --radius-5: 5px;
  --radius-3: 3px;


  /**
   * TRANSITION
   */

  --transition-1: 0.5s ease;
  --transition-2: 0.2s ease;


}





/*-----------------------------------*\
  #RESET
\*-----------------------------------*/

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

li { list-style: none; }

a,
img,
span,
input,
button,
textarea,
ion-icon { display: block; }

a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

img { height: auto; }

input,
button,
textarea {
  background: none;
  border: none;
  font: inherit;
  color: inherit;
}

input,
textarea { outline: none; }

button { cursor: pointer; }

ion-icon { pointer-events: none; }

html {
  font-size: 10px;
  scroll-behavior: smooth;
  font-family: var(--fontFamily_Poppins__sans_serif);
}

body {
  background-color: var(--rich-black);
  color: var(--french-gray);
  font-size: 1.6rem;
  position: relative;
  transform: translateX(0);
  transition: var(--transition-1);
  overflow-x: hidden;
}

body.active { transform: translateX(-100%); }

body::-webkit-scrollbar { width: 2px; }

body::-webkit-scrollbar-track { background-color: transparent; }

body::-webkit-scrollbar-thumb { background-color: var(--linear-gradient-2); }

::selection {
  background-color: var(--royal-purple-alpha);
  color: var(--white);
}





/*-----------------------------------*\
  #PRELOADER
\*-----------------------------------*/

.preloader,
.preloader.loaded {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  height: 100vh;
  background-color: var(--rich-black);
  z-index: 20; 
  display: grid;
  place-items: center;
}

.loading-box {
  background-image: var(--linear-gradient-2);
  border-radius: var(--radius-circle);
  padding: 15px;
  height: 70px;
  width: 70px;
  display: flex;
  place-items: center;
  animation: glowingLoader 1s linear infinite;
}

@keyframes glowingLoader {
  0% { box-shadow: 0 0 0 0 #f987d75e; }
  100% { box-shadow: 0 0 0px 25px transparent; }
}

.preloader > * { transition: var(--transition-1); }

.preloader.loaded > * { opacity: 0; }

.preloader.loaded {
  transition-delay: 250ms;
  display: none;
}





/*-----------------------------------*\
  #REUSED STYLE
\*-----------------------------------*/

.section { 
  display: none;
  overflow-y: auto; 
  height: 100vh;
}

.section::-webkit-scrollbar { display: none; }

.section.active { display: block; }

.banner-2 { display: none; }

.page-banner {
  position: relative;
  height: 629px;
  width: 100%;
}

.page-banner .img {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  object-fit: cover;
}

.text-gradient {
	transition: var(--transition-1);
	max-width: max-content;
	background-clip: text;
	background-size: 200% 100%;
	background-position: -100%;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-image: var(--linear-gradient-1);
}

.text-gradient:is(:hover, :focus-visible, .active) { background-position: 0%; }

.hover-underline {
	position: relative;
	max-width: max-content;
}

.hover-underline::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 0%;
  z-index: 2;
  background-image: var(--linear-gradient-2);
  background-size: 100% 1px, 0 1px;
  background-position: 100% 100%, 0 100%;
  transition: var(--transition-1);
}

@keyframes underline {
  0% { width: 0%; }
  100% { width: 100%; }
}

.hover-underline:is(:hover).hover-underline::before { animation: underline 0.2s linear forwards; }

.page-banner { overflow: hidden; }

.page-content {
  padding-inline: 10%;
  padding-block: 100px 60px;
}

.hero-page-banner { margin-block-end: 35px; }

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

.h1 {
  font-size: var(--fs-50);
  color: var(--white);
}

.h2 {
  font-size: var(--fs-30);
  margin-block: 30px 27px;
  line-height: 1.2;
}

.h4 {
  font-size: var(--fs-20);
  font-weight: var(--weight-bold);
  color: var(--white);
}

.section-title {
  color: var(--white);
  line-height: 1.2;
}

.section-subtitle {
  position: relative;
  color: var(--persian-pink);
  font-weight: var(--weight-semiBold);
  padding-inline-start: 80px;
  margin-block: 10px 30px;
}

.has-before { position: relative; }

.has-before::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  height: 2px;
  background-image: var(--linear-gradient-3);
}

.section-subtitle.has-before::before { width: 60px; }

.section-text {
  font-weight: var(--weight-light);
  position: relative;
  margin-block-end: 55px;
}

.w-100 { width: 100%; }

.section-text .span { 
  cursor: pointer; 
  display: inline-block;
  transition: var(--transition-1);
}

.section-text .span:is(:hover, :focus-visible) { color: var(--white); }

.section-text .span::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 100%;
  background-color: var(--paynes-gray);
  z-index: 1;
}

.img-holder {
  aspect-ratio: var(--width) / var(--height);
  overflow: hidden;
  background-color: var(--eerie-black-4);
}

.card-subtitle.has-before::before { width: 40px; }

:is(.about, .portfolio, .contact) { background-color: var(--oxford-blue); }

:is(.about, .portfolio, .contact) .page-content { padding-block-start: 158px; }

::placeholder { 
  color: hsl(215, 11%, 57%); 
  font-size: var(--fs-14);
}







/*-----------------------------------*\
  #HEADER
\*-----------------------------------*/

.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  transform: translateX(100%);
  background-color: var(--rich-black);
  transition: var(--transition-1);
  width: 100%;
  height: 100vh;
  overflow-y: auto;
}

.header::-webkit-scrollbar { display: none; }

.header.active { 
  /* display: block;
  transform: translateX(0);  */
}

.topbar,
.social-list {
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.topbar.active {
  background-color: var(--royal-purple-alpha);
  padding-block: 15px;
  backdrop-filter: blur(8px);
}

.social-list { display: none; }

.navbar-notify {
	background-color: var(--white);
	color: var(--rich-black);
}

.notify-box,
.nav-close-btn {
  padding: 13px;
  color: var(--black);
  background-color: var(--white);
  border-radius: var(--radius-circle);
}

:is(.notify-box, .nav-close-btn) { border: 2px solid var(--white); }

.nav-close-btn {
  background-color: unset;
  color: var(--white);
}

.nav-container {
  padding-inline: 10%;
  padding-block-start: 90px;
}

.navbar { padding-block: 60px; }

.navbar-list:not(:last-child) { margin-block-end: 20px; }

.navbar-link {
	font-size: var(--fs-36);
	font-weight: var(--weight-semiBold);
}

.navbar-link:is(:hover, :focus-visible, .active) { background-position: 0%; }

.nav-contact-list { padding-block-start: 30px; }

.nav-contact-link { margin-block-end: 15px; }

/* .nav-contact-link:is(:hover, :focus-visible, :active) { color: var(--white); } */

.nav-contact-link .span:is(:hover, :focus-visible) { color: var(--white); }

.nav-contact-link {
	color: var(--cadet-gray);
	font-size: var(--fs-14);
  transition: var(--transition-1);
}

.copyright {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	margin-block-end: 30px;
	font-size: var(--fs-13);
	font-weight: var(--weight-semiBold);
	color: var(--french-gray);
}

.copyright-link { margin-inline-start: 5px; }






/*-----------------------------------*\
  #TOPBAR
\*-----------------------------------*/

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 100%;
  z-index: 8;
}

.topbar .wrapper {
	display: flex;
  justify-content: center;
	align-items: center;
	gap: 10px;
}

.topbar .social-wrapper { display: none; }


.nav-open-btn {
	padding: 12px;
	border-radius: var(--radius-circle);
	background-color: var(--white);
  cursor: pointer;
}

.nav-open-btn .span {
	height: 2px;
	width: 20px;
	background-color: var(--rich-black);
	margin-block: 5px;
}

.topbar .notify-box {
  padding: 12px;
  background-color: inherit;
  color: var(--white);
  cursor: pointer;
}

.mobile-social-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  min-width: 100%;
  padding-block: 0;
  margin-block-end: 35px;
}

.mobile-social-link:hover ion-icon { color: var(--white); }

.mobile-social-link { color: var(--cadet-gray); }

.mobile-social-link ion-icon { font-size: 1.8rem; }





/*-----------------------------------*\
  #HOME
\*-----------------------------------*/

.home { background-color: var(--rich-black); }

.title-wrapper { padding-block: 60px; }

.btn-wrapper {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  margin-block: 30px;
}

.play-btn {
  padding: 20px;
  color: var(--eerie-black);
  background-color: var(--white);
  border: 1px solid var(--rich-black);
  border-radius: var(--radius-circle);
  box-shadow: var(--shadow-1);
  transition: var(--transition-1);
}

.play-btn:is(:hover, :focus-visible) { 
  background-image: var(--linear-gradient-3); 
  color: var(--white);
}

.btn-link {
  color: var(--white);
  font-size: var(--fs-14);
  font-weight: var(--weight-semiBold);
}

.btn-wrapper:is(:hover, focus-visible) .btn-link { color: var(--cadet-gray); }





/*-----------------------------------*\
  #ABOUT
\*-----------------------------------*/

.about-list {
  display: grid;
  gap: 30px;
}

.about-card {
  padding: 20px;
  height: 100%;
  background-color: var(--space-cadet);
  overflow: hidden;
  border-radius: var(--radius-10);
  box-shadow: var(--shadow-2);
}

.about-card .card-banner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.about-bg {
  border-radius: inherit;
  position: relative;
}

.card-content { padding-block-start: 25px; }

.card-subtitle {
  padding-inline-start: 60px;
  font-size: var(--fs-14);
  font-weight: var(--weight-bold);
  color: var(--persian-pink);
}

.card-title {
  margin-block: 10px;
  color: var(--white);
  font-size: var(--fs-24);
}

.card-text {
  font-size: var(--fs-14);
  line-height: 1.6;
  color: var(--cadet-gray);
}

.skill {
  padding-inline: unset;
}

.skill-list {
  display: grid;
  gap: 25px;
  padding-block: 55px;
}

.skill-item {
  display: grid;
  gap: 8px;
}

.skill-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
}

.progress-value {
  font-size: var(--fs-20);
  font-weight: var(--weight-bold);
  color: var(--white);
}

.progress,
.progressbar {
  width: 100%;
  max-width: 100%;
  height: 6px;
  background-color: var(--space-cadet);
  border-radius: var(--radius-5);
}

.progressbar {
  width: 96%;
  background-image: var(--linear-gradient-3);
}

.about-video-card {
  position: relative;
  height: 258px;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-15);
  margin-block-end: 60px;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 19px;
  border: 2px solid;
  border-radius: var(--radius-circle);
}

.about .page-banner .img { width: 100%; }




/*-----------------------------------*\
  #PORTFOLIO
\*-----------------------------------*/

.project-list {
  display: grid;
  gap: 30px;
}

.project-card {
	position: relative;
  overflow: hidden;
  border-radius: var(--radius-15);
}

.project-card-content {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	padding: 25px 36px 60px;
	transition: var(--transition-1);
	transform: translateY(5px);
	opacity: 0;
}

.project-card:is(:hover, :focus-visible) .project-card-content { 
  opacity: 1; 
  transform: translateY(0);
}

.project-card-content .card-title {	margin-block-end: 0; }

.project-card-content .span {
	color: var(--white);
	font-size: var(--fs-14);
	font-weight: var(--weight-light);
}







/*-----------------------------------*\
  #CONTACT
\*-----------------------------------*/

.contact-list {
  display: grid;
  gap: 30px;
  margin-block-end: 60px;
}

.contact-card {
  background-repeat: no-repeat;
  background-position: bottom right;
  background-position-x: 60px;
  background-color: var(--space-cadet);
  padding: 35px;
  height: 100%;
  box-shadow: var(--shadow-2);
  border-radius: var(--radius-15);
}

.contact-card .card-content { padding-block-start: 0; }

.contact-card .card-title { font-size: var(--fs-20); }

.contact-card-list {
  display: grid;
  gap: 10px;
}

.contact-card-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.contact-card-link { 
  font-size: var(--fs-13); 
  transition: var(--transition-1);
}

.contact-card-link:is(:hover, :focus-visible) { color: var(--white); }

.contact-card-item ion-icon {
  margin-block-start: 4px;
  color: var(--persian-pink);
}

.contact-form-title {
  font-size: var(--fs-26);
  color: var(--white);
  margin-block-end: 15px;
}

.input-wrapper {
  display: grid;
  gap: 25px;
}

.input-wrapper:not(:last-child) {
  margin-block-end: 25px;
}

.input-field,
.textarea {
  height: 50px;
  padding: 10px 15px;
  border: 1px solid var(--english-gray);
  border-radius: var(--radius-5);
}

.input-field:is(:focus),
.textarea:is(:focus) {
  outline: 2px solid var(--royal-purple);
  background-color: var(--space-cadet);
}

.textarea {
  width: 100%;
  max-width: 100%;
  height: 150px;
}

.input-field,
.textarea::is(:focus-visible) { border: 2px solid var(--royal-purple); }

.require-text {
  font-size: var(--fs-13);
  text-align: right;
  margin-block: 3px 5px;
  font-weight: var(--weight-light);
}

.submit {
  padding: 15px 35px;
  background-color: var(--white);
  border-radius: var(--radius-30);
  font-weight: var(--weight-semiBold);
  color: var(--black);
}





/*-----------------------------------*\
  #MEDIA SCREEN
\*-----------------------------------*/

/**
 * responsive for large than 765px screen
 */

@media (min-width: 765px) {

  
  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
     * TYPOGRAPHY
     */

    /* font size */

    --fs-50: 6.0rem;
    --fs-30: 4.0rem;
    --fs-16: 1.8rem;
    --fs-13: 1.4rem;

  }




  /**
   * REUSED STYLE
   */

  .section-subtitle { font-size: var(--fs-16); }

  .page-content { padding-block: 140px 40px; }

  .mobile-social-wrapper { padding-block: 20px; }

  :is(.about-list, .project-list, .contact-list) { grid-template-columns: 1fr 1fr; }

  .page-banner {
    height: 969px;
    width: 100%;
  }




  /**
   * topbar
   */

  .topbar { 
    padding-inline: 10%; 
    padding-block: 50px;
  }

  .logo .img { width: 130px; }

  /**
   * navbar
   */

  .nav-container .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav-contact-list { padding-block-start: 0; }

  .copyright { margin-block: 50px; }
  
  

  /**
   * contact
   */

  .contact-form { grid-template-columns: 0.6fr 0.6fr 1fr; }

}





/**
 * responsive for large than 1000px screen
 */

@media (min-width: 1000px) {

  /**
    * REUSED STYLE
    */

  :is(.about-list, .project-list, .contact-list) { grid-template-columns: repeat(3, 1fr); }




  /**
   * contact
   */

  .input-wrapper { grid-template-columns: 1fr 1fr; }

  .textarea { height: 245px; }



}





/**
 * responsive for large than 1200px screen
 */

@media (min-width: 1200px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /* font size */

    --fs-36: 5rem;

  }



  /**
   * REUSED STYLE
   */

  body {
    max-width: 70%;
    width: 100%;
    transition: 0.7s ease;
  }

  .section::-webkit-scrollbar { 
    display: block;
    width: 5px;
  }

  .section::-webkit-scrollbar-track { background-color: transparent; }

  .section::-webkit-scrollbar-thumb { 
    background-image: var(--linear-gradient-4); 
    border-radius: var(--radius-30);
  }

  :is(.about, .portfolio, .contact) .page-content { padding: 200px 80px 20px; }

  .section-title { max-width: 86%; }



  /**
   * preloader
   */

   .preloader {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: -45%;
    background-color: var(--rich-black);
    z-index: 20; 
    display: grid;
    place-items: center;
  }



  /**
   * header
   */

  .header { transform: translateX(145%); }

  .header .page-banner {
    left: -45%;
    display: none;
  }

  .navbar { padding-block-end: 120px; }

  .nav-container { padding-block-start: 195px; }

  .nav-container .nav-contact-link .span { text-align: right; }

  .navbar-link { line-height: 1.4; }




  /**
   * page banner
   */

   .page-banner {
    position: fixed;
    top: 0;
    left: 100%;
    bottom: 0;
    right: 0;
    width: 100%;
    max-width: 45%;
    height: 100vh;
  }

  .banner-2 {
    display: block;
    z-index: 10;
    transform: translateX(100%);
    transition: 0.7s ease;
    transition-delay: 0.8s;
  }

  body.active .banner-2 {
    transform: translateX(0);
    transition: 0.7s ease;
    transition-delay: 0.8s;
  }




  
  /**
   * topbar
   */

  .logo .img { width: 175px; }

  .topbar { padding-block: 30px; }

  .topbar .social-wrapper { display: block; }

  .topbar .social-wrapper,
  .topbar .social-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    min-width: 100%;
  }

  .topbar .social-list {
    padding-inline-start: 0;
    min-width: unset;
    color: var(--white);
    font-size: var(--fs-16);
  }

  .social-wrapper ion-icon {
    font-size: var(--fs-16);
    color: var(--white);
    transition: var(--transition-1);
  }

  .social-link:hover ion-icon { color: var(--persian-pink); }

  .btn-primary {
    padding: 10px 25px;
    border: 2px solid var(--white);
    border-radius: var(--radius-30);
    box-shadow: var(--shadow-1);
    color: var(--white);
    font-weight: 600;
    font-size: var(--fs-14);
    transition: var(--transition-1);
  }

  .btn-primary:is(:hover, :focus-visible) { 
    background-color: var(--white); 
    color: var(--rich-black);
  }

  .topbar .notify-box { display: none; }

  .nav-open-btn {
    position: fixed;
    right: -35%;
    top: 50px;
    transition: var(--transition-1);
    transition-delay: 1.2s;
  }

  body.active .nav-open-btn { opacity: 0; }



  /**
   * home
   */

  .home { overflow-y: hidden; }

  .mobile-social-wrapper { display: none; }

  .btn-wrapper {
    position: absolute;
    bottom: 30px;
  }

  .title-wrapper { padding-block: 140px; }

  .play-btn {
    font-size: var(--fs-16);
    color: var(--rich-black);
  }




  /**
   * about
   */

  .feature-img {
    height: auto;
    width: 175px;
    padding-block-start: 18px;
  }


  /**
   * portfolio
   */

  .project-list {
    padding-block: 60px;
    grid-template-columns: 1fr 1fr;
  }

  /**
   * contact
   */

  .contact .page-content { padding-block-end: 60px; }


}





/**
 * responsive for large than 1350px screen
 */

 @media (min-width: 1350px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {
    
  --fs-50: 76px;
  --fs-36: 60px;

  }


  /**
   * topbar
   */

  .topbar .social-wrapper {
    min-width: 120%;
    padding-block: 35px;
  }

  .logo .img { width: 180px; }

  /* .header { padding-block: 60px; } */
  
 }