/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');
:root{
    --bg-color: #121714;
    --sec-color: #38E07A;
    --sec-hover-color: #28a75f;
    --text-color: #fff;
    --skills-btns-color: #29382E;
    --skills-btns-color-text: #fff;
    --test: #ff00b7;
}
.light-mode{
    --bg-color: #fff;
    --sec-color: #38E07A;
    --sec-hover-color: #28a75f;
    --text-color: #000;
    --skills-btns-color: #424242;
    --skills-btns-color-text: #fff;
}
body{
    background-color: var(--bg-color);
    font-family: 'DM Sans', sans-serif;
    color: var(--text-color);
}
*{
    scroll-behavior: smooth;
    scrollbar-width:thin;
    scrollbar-color: var(--sec-color) transparent;
}
/*---------Scrollbar styling---------*/
::-webkit-scrollbar{
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track{
    background: transparent;
}
::-webkit-scrollbar-thumb{
    background-color: var(--sec-color);
    border-radius: 10px;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--text-color);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: var(--bg-color);
    opacity: 0.9;
}
nav h1 {
    font-size: 24px;
    font-weight: 600;
    margin-left: 20px;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}
nav h1:hover {
    transform: scale(1.2);
    color: var(--sec-color);
}

.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.nav-links ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    gap: 40px;
}
.nav-links li {
    transition: 0.3s ease-in-out;
}
.nav-links li:hover {
    transform: scale(1.2);
    color: var(--sec-color);
}
.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    transition: 0.3s ease-in-out;
}
.nav-links a:hover {
    color: var(--sec-color);
}
.nav-links button {
    padding: 8px 18px;
    font-size: 16px;
    border-radius: 5px;
    background-color: var(--sec-color);
    color: var(--bg-color);
    border: none;
    margin-right: 20px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}
.nav-links button:hover {
    transform: scale(1.1);
    background-color: var(--sec-hover-color);
}
/*-----------------------------*/
.toggle-aside{
display: flex;
justify-content: end;
align-items: center;
width: 99%;
height: 100%;
margin-top: 90px;
}
.toggle-switch {
  position: relative;
  width: 70px;
  height: 50px;
  --light: var(--bg-color);
  --dark: #28292c;
}
.switch-label {
  position: absolute;
  width: 100%;
  height: 33px;
  background-color: var(--dark);
  border-radius: 25px;
  cursor: pointer;
  border: 3px solid var(--dark);
}
.checkbox {
  position: absolute;
  display: none;
}
.slider {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 25px;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}
.checkbox:checked ~ .slider {
  background-color: var(--light);
}
.slider::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  -webkit-box-shadow: inset 12px -4px 0px 0px var(--light);
  box-shadow: inset 12px -4px 0px 0px var(--light);
  background-color: var(--dark);
  -webkit-transition: 0.3s;
  transition: 0.3s;
}
.checkbox:checked ~ .slider::before {
  -webkit-transform: translateX(30px);
  -ms-transform: translateX(30px);
  transform: translateX(30px);
  background-color: var(--text-color); 
  -webkit-box-shadow: none;
  box-shadow: none;
}
/*-----------------------------*/
header{
    display: flex;
    justify-content: start;
    align-items: center;
    width: 75%;
    height: auto;
    margin: 0 auto;
    margin-top: 5px;
    gap: 40px;
}
.header-img-container{
    width: 55%;
    height: auto;
}
.header-img-container img{
    width: 100%;
    height: auto;
    border-radius: 1%;
    object-fit: cover;
}
header h2{
    font-size: 70px;
    font-weight: 600;
    margin-bottom: 0px;
}
header p{
    font-size: 22px;
}
header p span{
    font-size: 18px;
    font-weight: 600;
    color: var(--sec-color);
}
.social-icons {
    margin-left: 5px;
}
.social-icons i{
    color: var(--text-color);
    font-size: 24px;
    margin-right: 10px;
    transition: 0.3s ease-in-out;
}
.social-icons i:hover{
    transform: scale(1.2);
    color: var(--sec-color);
}
header button{
    color: var(--bg-color);
    background-color: var(--sec-color);
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    margin-top: 20px;
}
header a{
    text-decoration: none;
}
header button:hover{
    transform: scale(1.08);
    background-color: var(--sec-hover-color);
}
/*-----------------------------*/
.about{
    width: 75%;
    height: auto;
    margin: 0 auto;
    margin-top: 50px;
}
.about h2{
    font-size: 40px;
}
.about p{
    font-size: 18px;
}
/*-----------------------------*/
.projects h2{
    font-size: 40px;
}
.projects{
    width: 75%;
    height: auto;
    margin: 0 auto;
}
.projects-container{
    display: flex;
    justify-content: start;
    align-items: center;
    width: 75%;
    gap: 15px;
    flex-wrap: wrap;
}
.project-card{
    width: 300px;
    height: auto;
    transition: 0.3s ease-in-out;
}
.project-card:hover{
    transform: scale(1.02);
}
.project-card a{
    text-decoration: none;
}
.project-card img{
    width: 300px;
    height: 170px;
    border-radius: 15px;
    object-fit: cover;
}
.project-card{
  perspective: 1000px;
}
.project-card a{
    position: relative;
    display: block;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}
.project-card a > div:first-child{
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform 0.8s ease;
}
.project-card .project-card-back{
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    transform: rotateY(180deg);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform 0.8s ease;
}
.project-card:hover a > div:first-child{
   transform: rotateY(180deg); 
  }
.project-card:hover .project-card-back{ 
  transform: rotateY(0deg); 
}
.more-projects{
    width: 200px;
    height: 255px;
    border-radius: 15px;
    object-fit: cover;
}
.more-projects img{
    width: 200px;
    height: 170px;
    border-radius: 15px;
    object-fit: cover;
    opacity: 0.4;
}
.project-card h3{
    font-size: 20px;
    color: var(--text-color);
    margin: 10px 0px 5px 10px;
}
.project-card p{
    font-size: 16px;
    color: #afafaf;
    margin: 0px;
}
.project-card-back p span{
    font-size: 16px;
    font-weight: 600;
    color: var(--sec-color);
}
/*-----------------------------*/
.skills{
    width: 75%;
    height: auto;
    margin: 0 auto;
}
.skills h2{
    font-size: 40px;
}
.skills-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: 100%;
    gap: 15px;
    flex-wrap: wrap;
}
.skills-container button{
    border: none;
    padding: 8px 18px;
    font-size: 16px;
    margin: 5px;
    border-radius: 5px;
    background-color: var(--skills-btns-color);
    color: var(--skills-btns-color-text);
}
/*-----------------------------*/
.contact{
    width: 75%;
    height: auto;
    margin: 0 auto;
    margin-top: 40px;
    margin-bottom: 80px;
}
.contact h2{
    font-size: 40px;
}
.contact-container{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    margin-top: 40px;
    width: 60%;
    gap: 15px;
    border: 1px solid var(--text-color);
    border-radius: 15px;
    padding: 30px;
}
.mail-icon {
    font-size: 80px;
    margin: 0px;
    color: var(--sec-color);
}
.contact-container h3{
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 400;
}
.contact-buttons{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}
.contact-buttons button{
    padding: 8px 18px;
    font-size: 16px;
    border-radius: 5px;
    background-color: var(--sec-color);
    color: var(--bg-color);
    border: none;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}
.contact-buttons button:hover{
    transform: scale(1.08);
    background-color: var(--sec-hover-color);
}
.contact-buttons span{
    font-size: 20px;
    margin-left: 5px;
}
/*-------------------------------*/
.contact-form{
    display: none;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: 50%;
    margin-top: 40px;
    gap: 15px;
    border: 1px solid var(--text-color);
    border-radius: 15px;
    padding: 30px;
}
.contact-form.is-visible{
    display: flex;
}
.contact-form form{
    display: flex;
    justify-content: center;
    margin: 0 auto;
    flex-direction: column;
    width: 100%;
}
.contact-form form label{
    font-size: 16px;
    font-weight: 600;
    margin: 5px;
}
.contact-form form input{
    padding: 8px 18px;
    width: 100%;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    background-color: var(--skills-btns-color);
    color: var(--skills-btns-color-text);
    margin-bottom: 10px;
}
.contact-form form textarea{
  font-family: 'DM Sans', sans-serif;
    padding: 8px 18px;
    width: 100%;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    background-color: var(--skills-btns-color);
    color: var(--skills-btns-color-text);
    margin-bottom: 10px;
}
.contact-form button{
    padding: 8px 18px;
    width: 100%;
    font-size: 16px;
    border-radius: 5px;
    background-color: var(--sec-color);
    color: var(--bg-color);
    border: none;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    margin-top: 10px;
}
.contact-form button:hover{
    transform: scale(1.05);
    background-color: var(--sec-hover-color);
}
/* Inline form status messages */
.form-status{
    margin-top: 10px;
    font-size: 14px;
}
.form-status.success{ color: #38E07A; }
.form-status.error{ color: #ff6b6b; }
/*-------------------------------*/
footer aside{
  position: fixed;
  bottom: 0;
  left: 1%;
  width: 100%;
  height: 50px;
  z-index: 1000;
}
.footer-text{
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    color: var(--text-color);
}
/*-------------------------------*/
/* From Uiverse.io by mobinkakei */ 
#wifi-loader {
    --background: #62abff;
    --front-color: var(--sec-color);
    --back-color: #c3c8de;
    --text-color: #414856;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
    z-index: 9999;
  }
  
  #wifi-loader svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
  }

  #wifi-loader.hidden{
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  
  #wifi-loader svg circle {
    position: absolute;
    fill: none;
    stroke-width: 6px;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: rotate(-100deg);
    transform-origin: center;
    z-index: 1000;
  }
  
  #wifi-loader svg circle.back {
    stroke: var(--back-color);
  }
  
  #wifi-loader svg circle.front {
    stroke: var(--front-color);
  }
  
  #wifi-loader svg.circle-outer {
    height: 86px;
    width: 86px;
  }
  
  #wifi-loader svg.circle-outer circle {
    stroke-dasharray: 62.75 188.25;
  }
  
  #wifi-loader svg.circle-outer circle.back {
    animation: circle-outer135 1.8s ease infinite 0.3s;
  }
  
  #wifi-loader svg.circle-outer circle.front {
    animation: circle-outer135 1.8s ease infinite 0.15s;
  }
  
  #wifi-loader svg.circle-middle {
    height: 60px;
    width: 60px;
  }
  
  #wifi-loader svg.circle-middle circle {
    stroke-dasharray: 42.5 127.5;
  }
  
  #wifi-loader svg.circle-middle circle.back {
    animation: circle-middle6123 1.8s ease infinite 0.25s;
  }
  
  #wifi-loader svg.circle-middle circle.front {
    animation: circle-middle6123 1.8s ease infinite 0.1s;
  }
  
  #wifi-loader svg.circle-inner {
    height: 34px;
    width: 34px;
  }
  
  #wifi-loader svg.circle-inner circle {
    stroke-dasharray: 22 66;
  }
  
  #wifi-loader svg.circle-inner circle.back {
    animation: circle-inner162 1.8s ease infinite 0.2s;
  }
  
  #wifi-loader svg.circle-inner circle.front {
    animation: circle-inner162 1.8s ease infinite 0.05s;
  }
  
  #wifi-loader .text {
    position: absolute;
    top: calc(50% + 56px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    font-size: 18px;
    letter-spacing: 0.2px;
  }
  
  #wifi-loader .text::before, #wifi-loader .text::after {
    content: attr(data-text);
  }
  
  #wifi-loader .text::before {
    color: var(--text-color);
  }
  
  #wifi-loader .text::after {
    color: var(--front-color);
    animation: text-animation76 3.6s ease infinite;
    position: absolute;
    left: 0;
  }
  
  @keyframes circle-outer135 {
    0% {
      stroke-dashoffset: 25;
    }
  
    25% {
      stroke-dashoffset: 0;
    }
  
    65% {
      stroke-dashoffset: 301;
    }
  
    80% {
      stroke-dashoffset: 276;
    }
  
    100% {
      stroke-dashoffset: 276;
    }
  }
  
  @keyframes circle-middle6123 {
    0% {
      stroke-dashoffset: 17;
    }
  
    25% {
      stroke-dashoffset: 0;
    }
  
    65% {
      stroke-dashoffset: 204;
    }
  
    80% {
      stroke-dashoffset: 187;
    }
  
    100% {
      stroke-dashoffset: 187;
    }
  }
  
  @keyframes circle-inner162 {
    0% {
      stroke-dashoffset: 9;
    }
  
    25% {
      stroke-dashoffset: 0;
    }
  
    65% {
      stroke-dashoffset: 106;
    }
  
    80% {
      stroke-dashoffset: 97;
    }
  
    100% {
      stroke-dashoffset: 97;
    }
  }
  
  @keyframes text-animation76 {
    0% {
      clip-path: inset(0 100% 0 0);
    }
  
    50% {
      clip-path: inset(0);
    }
  
    100% {
      clip-path: inset(0 0 0 100%);
    }
  }
   
/*--------------------------------*/
*, *::before, *::after{ box-sizing: border-box; }
img{ max-width: 100%; height: auto; display: block; }

header h2{ font-size: clamp(28px, 6vw, 70px); }
header p{ font-size: clamp(16px, 2.5vw, 22px); }
.about h2, .projects h2, .skills h2, .contact h2{ font-size: clamp(24px, 4vw, 40px); }

.projects-container{ flex-wrap: wrap; width: 100%; }
.project-card{ width: 300px; }
.project-card img{ width: 100%; height: auto; aspect-ratio: 16 / 9; }
.contact-buttons{ flex-wrap: wrap; }

@media (max-width: 1200px){
    header, .about, .projects, .skills, .contact{ width: 85%; }
    .header-img-container{ width: 50%; }
    .contact-container{ width: 70%; }
    .contact-form{ width: 70%; }
    .nav-links ul{ gap: 24px; }
    .toggle-aside{ margin-top: 70px; }
}
@media (max-width: 992px){
    header, .about, .projects, .skills, .contact{ width: 90%; }
    .nav-links{ gap: 10px; }
    .nav-links ul{ gap: 16px; }
    .projects-container{ justify-content: center; }
    .project-card{ width: calc(50% - 10px); }
    .contact-container, .contact-form{ width: 80%; }
    .toggle-aside{ margin-top: 80px; }
}
@media (max-width: 768px){
    header{ flex-direction: column; align-items: center; text-align: center; gap: 24px; }
    .header-img-container{ width: 100%; }
    header, .about, .projects, .skills, .contact{ width: 92%; }
    .nav-links{ flex-wrap: wrap; }
    .nav-links ul{ flex-wrap: wrap; }
    .nav-links ul{ gap: 12px; }
    .nav-links button{display: none;}
    nav h1{ font-size: 20px; }
    .project-card{ width: 100%; }
    .contact-container, .contact-form{ width: 100%; }
    .toggle-aside{ margin-top: 70px; }
    .skills button{ margin-bottom: 10px; }
    .contact-form form input{ align-self: center; }
    .contact-form form textarea{ align-self: center; }
    .contact-form button{ align-self: center; }
    footer aside{ display: none; }
}
@media (max-width: 480px){
    .about p{ font-size: 16px; }
    .mail-icon{ font-size: 56px; }
    .contact-container h3{ font-size: 18px; }
    .nav-links ul{ gap: 10px; }
    .nav-links a{ font-size: 14px; }
    .toggle-aside{ margin-top: 70px; }
}
