@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
    
}

:root{
    --primary-color: #e0e0e0;
    --secondary-color: black;
}
.dark-theme{
    --primary-color: black;
    --secondary-color: #e0e0e0;
}

html{
    font-size: 62.5%;
}

body{
    width: 100%;
    padding: auto;
    height: 100vh;
    overflow-x: hidden;
    background-color: var(--primary-color);
    transition: background-color 0.1s ease, color 0.1s ease;
    color: var(--secondary-color);
    flex-direction: column;
    display: flex;
}
.col-lg-9{
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navbar */
.main-nav a{
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

.main-nav a:hover,
.main-nav a.active{
    color: var(--secondary-color);
    border-bottom: 3px solid #b74b4b;
}
.main-nav .collapse{
    padding-left: 430px;
    right: 0px;
}
.main-nav .nav-link.active, .main-nav .navbar-nav .nav-link.show {
    color: var(--secondary-color)!important;
}

/* Left sidebar */
.left-sidebar{
    text-align: center;
    
}

.left-sidebar img{
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 0 25px solid #b74b4b;
    cursor: pointer;
    transition: 0.2s linear;
}

.left-sidebar img:hover{
    font-size: 1.8rem;
    font-weight: 500;
}
.left-sidebar .name{  
    font-size: 5rem;
    color: #b74b4b;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease-in;
    text-decoration: none;
}

.left-sidebar .name:hover{
    transform: scale(1.1);
}

/* theme switch */
.theme__fill {
    pointer-events: none; /* Prevents this element from blocking clicks */
}

.theme {
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
  }
  
  .theme__fill,
  .theme__icon {
    transition: 0.3s;
  }
  
  .theme__fill {
    background-color: var(--bg);
    transition: background-color 0.1s ease, color 0.1s ease;
    display: block;
    mix-blend-mode: difference;
    position: fixed;
    inset: 0;
    height: 100%;
    transform: translateX(-100%);
  }
  
  .theme__icon,
  .theme__toggle {
    z-index: 1;
  }
  
  .theme__icon,
  .theme__icon-part {
    position: absolute;
  }
  
  .theme__icon {
    display: block;
    top: 0.5em;
    left: 0.5em;
    width: 1.5em;
    height: 1.5em;
  }
  
  .theme__icon-part {
    border-radius: 50%;
    box-shadow: 0.4em -0.4em 0 0.5em hsl(0,0%,100%) inset;
    top: calc(50% - 0.5em);
    left: calc(50% - 0.5em);
    width: 1em;
    height: 1em;
    transition: box-shadow var(--transDur) ease-in-out,
          opacity var(--transDur) ease-in-out,
          transform var(--transDur) ease-in-out;
    transform: scale(0.5);
  }
  
  .theme__icon-part ~ .theme__icon-part {
    background-color: hsl(0,0%,100%);
    border-radius: 0.05em;
    top: 49%;
    left: calc(50% - 0.05em);
    transform: rotate(0deg) translateY(0.5em);
    transform-origin: 50% 0;
    width: 0.1em;
    height: 0.2em;
  }
  
  .theme__icon-part:nth-child(3) {
    transform: rotate(45deg) translateY(0.45em);
  }
  
  .theme__icon-part:nth-child(4) {
    transform: rotate(90deg) translateY(0.45em);
  }
  
  .theme__icon-part:nth-child(5) {
    transform: rotate(135deg) translateY(0.45em);
  }
  
  .theme__icon-part:nth-child(6) {
    transform: rotate(180deg) translateY(0.45em);
  }
  
  .theme__icon-part:nth-child(7) {
    transform: rotate(225deg) translateY(0.45em);
  }
  
  .theme__icon-part:nth-child(8) {
    transform: rotate(270deg) translateY(0.5em);
  }
  
  .theme__icon-part:nth-child(9) {
    transform: rotate(315deg) translateY(0.5em);
  }
  
  .theme__label,
  .theme__toggle,
  .theme__toggle-wrap {
    position: relative;
  }
  
  .theme__toggle,
  .theme__toggle:before {
    display: block;
  }
  
  .theme__toggle {
    background-color: hsl(60, 5%, 93%);
    border-radius: 25% / 50%;
    border: 2px solid #b74b4b; 
    box-shadow: 0 0 0 0.125em var(--primaryT);
    padding: 0.25em;
    width: 6em;
    height: 3em;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color var(--transDur) ease-in-out,
          box-shadow 0.15s ease-in-out,
          transform var(--transDur) ease-in-out;
    cursor: pointer;
  }
  
  .theme__toggle:before {
    background-color: hsl(48,90%,55%);
    margin-block-start: -2px;
    margin-left: -1px;
    border-radius: 50%;
    content: "";
    width: 2.5em;
    height: 2.5em;
    transition: 0.3s;
  }
  
  .theme__toggle:focus {
    box-shadow: 0 0 0 0.125em var(--primary);
    outline: transparent;
  }
  
  /* Checked */
  .theme__toggle:checked {
    background-color: hsl(195, 43%, 5%);
  }
  
  .theme__toggle:checked:before,
  .theme__toggle:checked ~ .theme__icon {
    transform: translateX(3em);
    
  }
  
  .theme__toggle:checked:before {
    background-color: hsl(198,90%,55%);
    margin-block-start: -2px;
    margin-right: -5px;
    
  }
  
  .theme__toggle:checked ~ .theme__fill {
    transform: translateX(0);
  }
  
  .theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(1) {
    box-shadow: 0.2em -0.2em 0 0.2em hsl(0,0%,100%) inset;
    transform: scale(1);
    top: 0.4em;
    left: 5px;
  }
  
  .theme__toggle:checked ~ .theme__icon .theme__icon-part ~ .theme__icon-part {
    opacity: 0;
  }
  
  .theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(2) {
    transform: rotate(45deg) translateY(0.8em);
  }
  
  .theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(3) {
    transform: rotate(90deg) translateY(0.8em);
  }
  
  .theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(4) {
    transform: rotate(135deg) translateY(0.8em);
  }
  
  .theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(5) {
    transform: rotate(180deg) translateY(0.8em);
  }
  
  .theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(6) {
    transform: rotate(225deg) translateY(0.8em);
  }
  
  .theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(7) {
    transform: rotate(270deg) translateY(0.8em);
  }
  
  .theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(8) {
    transform: rotate(315deg) translateY(0.8em);
  }
  
  .theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(9) {
    transform: rotate(360deg) translateY(0.8em);
  }
  
  .theme__toggle-wrap {
    margin: 0 0.75em;
  }
  
  @supports selector(:focus-visible) {
    .theme__toggle:focus {
      box-shadow: 0 0 0 0.125em var(--primaryT);
    }
  
    .theme__toggle:focus-visible {
      box-shadow: 0 0 0 0.125em var(--primary);
    }
  }
/* theme switch end */

.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: transparent;
    transition: background-color 0.1s ease, color 0.1s ease;
    border: 0.2rem solid #b74b4b;
    font-size: 2rem;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
    color: #b74b4b;
}

.social-icons a:hover{
    color: var(--secondary-color);
    transform: scale(1.3) translateY(-5px);
    background-color: #b74b4b;
    box-shadow: 0  0 25px #b74b4b;
}

/* about */
#about{
    max-height: 600px;
    overflow-y: scroll;
    overflow-x: none;
}
#about::-webkit-scrollbar {
    display: none; 
}
#about {
    -ms-overflow-style: none; 
    scrollbar-width: none; 
}
#about{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background-color: var(--primary-color);
    transition: background-color 0.1s ease, color 0.1s ease;
    height: auto;
}

#about .about-content h1{
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

#about span{
    color: #b74b4b;
    
}

.about-content h3{
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.about-content p{
    font-size: 1.6rem;
}
 
/* what i do */
.what__i_do .card {
  background-size: cover; 
  background-position: center; 
  width: 400px;
  height: 120px;
  padding: 0.5rem;
  border-radius: 8px;
  backdrop-filter: blur(5px);
  border-bottom: 3px solid rgba(255, 255, 255, 0.440);
  border-left: 2px rgba(255, 255, 255, 0.545) outset;
  box-shadow: -40px 50px 30px rgba(0, 0, 0, 0.280);
  transform: skewX(10deg);
  transition: .4s;
  overflow: hidden;
  color: white;
  margin-left: 50px;
  margin-bottom: 80px;
  text-align: center;
}
.what__i_do p {
  font-size: medium;
}
.what__i_do .card:hover {
  background-color: rgba(0, 0, 0, 0.5); 
  background-blend-mode: overlay; 
  transform: scale(1.05);
  height: 200px;
  transform: skew(0deg);
}

.what__i_do .card .align {
  padding: 1rem;
  display: flex;
  flex-direction: row;
  gap: 5px;
  align-self: flex-start;
}

.what__i_do .card .red {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ff605c;
  box-shadow: -5px 5px 5px rgba(0, 0, 0, 0.280);
}

.what__i_do .card .yellow {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ffbd44;
  box-shadow: -5px 5px 5px rgba(0, 0, 0, 0.280);
}

.what__i_do .card .green {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #00ca4e;
  box-shadow: -5px 5px 5px rgba(0, 0, 0, 0.280);
}

.what__i_do .card h1 {
  text-align: center;
  margin: 1.3rem;
  color: rgb(255, 243, 243);
  text-shadow: -10px 5px 10px rgba(0, 0, 0, 0.573);
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
}

/* Owl Carousel for Courses */
.courses .item{
  width: 450px;
  height:110px;
  margin: 10px;
  padding: 10px;
  }
.courses .cards {
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: left;
  backdrop-filter: blur(10px);
  transition: 0.5s ease-in-out;
  border: 2px solid #b74b4b;
}

.courses .cards:hover {
  cursor: pointer;
  transform: scale(1.05);
}

.courses .img {
  width: 50px;
  height: 50px;
  margin: 10px;
  border-radius: 20px;
}
.courses .owl-item img {
  border-radius: 10px;
}

.courses .cards:hover > .img {
  transition: 0.5s ease-in-out;
}

.courses .textBox {
  width: calc(100% - 90px);
  margin-left: 5px;
  font-family: 'Poppins' sans-serif;
}

.courses .textContent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin:0px -12px 0px 0px;
}

.courses a {
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
  color: #712020;
  margin-right: 10px;
}
.courses a:hover{
  border-bottom: 2px solid #b74b4b;
}
.courses .h1 {
  font-size: 16px;
  font-weight: bold;
}

.courses .p {
  font-size: 12px;
  font-weight: bold;
}
/* Certificates */

.certificate-card{
  display: flex;
  justify-content: space-evenly;
  margin-top: 2rem;
  max-width: 226px;
  max-height: 170px;
  box-shadow: 0 0 25px #6d6464;
  cursor: pointer;
  padding: 10px;
  margin: 9px;
  filter: grayscale(100%); 
  transition: filter 0.3s ease-in-out;
  transition: 0.5s ease-in-out;
}
.certificate-card:hover{
  cursor: pointer;
  transform: scale(1.05);
  filter: grayscale(0);
}
.certificate-card img{
  width: 100%;
  height: 100%;
}

.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: var(--primary-color);
    transition: background-color 0.1s ease, color 0.1s ease;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #b74b4b;
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid #b74b4b;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn:hover{
    transform: scale3d(1.03);
    background-color: #b74b4b;
    color: var(--secondary-color);
    box-shadow: 0 0 25px #b74b4b;
}

.typing-text{
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.typing-text span{
    position: relative;

}

.typing-text span::before{
    content: " ";
    color: #b74b4b;
    animation: words 20s infinite;
    padding: none;
}

.typing-text span::after{
    content: "";
    background-color: var(--primary-color);
    position: absolute;
    width: auto;
    height: 100%;
    border-left: 3px solid  var(--primary-color);
    right: -8;
    animation: cursor 0.6s infinite;
}
@keyframes words{
    0%, 20%{
        content: "Full Stack Developer";
    }
    21%, 40%{
        content: "Python Developer";
    }
    41%, 60%{
        content: "Web Developer";
    }
    61%, 80%{
        content: "Django Developer";
    }
    81%, 100%{
        content: "Software Engineer";
    }
    
}

/* Resume */

#resume{
    max-height: 600px;
    overflow-y: scroll;
}
#resume::-webkit-scrollbar {
    display: none; 
}
#resume {
    -ms-overflow-style: none; 
    scrollbar-width: none; 
}
.resume{
    width: 80%;
    height: auto;
    margin: auto;
    overflow-y: auto;
}
.resume h4{
    color: #6d6464;
}

.resume .progress{
    height: 6px;
    margin-left: 50px;
}
.resume #skills h4{
    padding-left: 50px;
    cursor: pointer;
}
.resume #skills h4:hover{
    color: var(--secondary-color);
    transition: 0.3s ease;
}
.resume #skills h2{
    padding-bottom: 10px;
}
.resume h1, .footer h4{
  position: relative;
}

.resume h1:after , .footer h4:after{
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: #b74b4b;
  transition: background-color 0.1s ease, color 0.1s ease;
  transition: width 1s ease-in-out;
  margin-bottom: -5px;
}

.resume h1:hover:after {
  width: 140px;
  margin-bottom: -5px;
}

.footer h4:hover:after{
  width: 100px;
  margin-bottom: -5px;
}
/* project */
#projects-container{
  height: 500px;
  overflow-y: scroll;
}
#projects-container::-webkit-scrollbar {
  display: none; 
}
#projects{
    height: 100vh;
}
.project_filter {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-evenly; 
    align-items: center; 
    padding: 10px;
    border: 2px solid #b74b4b;
    border-radius: 5px;
   
}

.project_filter span {
    font-size: 16px;
    font-weight: bold; 
    cursor: pointer;
    margin: 0 5px;
    color: var(--secondary-color);
    text-decoration: none;
}
.project_filter span:hover {
    color: #b74b4b;
}
.project-filter-link {
    color: #000; 
    text-decoration: none;
  }
  
  .project-filter-link.actives {
    color: #b74b4b;
    font-weight: bold; 
  }
#projects{
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    align-items: center;
}
.col-9{
    overflow: hidden;
}
.project .card {
  height: auto;
  margin: auto;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden; 
}

.project .card-img {
  width: 100%;
  height: 200px;
  object-fit: fill;
  margin: auto;
  cursor: pointer;
  border-radius: 10px;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: brightness(100%); 
}

.project .card:hover .card-img {
  transform: scale(1.05);
  filter: brightness(20%);
}

.project .card-text{
  display: none;
  font-size: 12px;
  font-weight: 300px;
}
.project .card-title{
  display: none;
  font-weight: 1000;
}
.project .card:hover .card-title{
  display: block;
}
.project .card:hover .card-text{
  display: block;
}
.project .card-img-overlay a{
  text-decoration: none;
  color: #f03355;
  font-weight: 500px!important;
  font-size: 20px;
}
.project .card-img-overlay a:hover{
  text-decoration: underline;
}
#projects .dropdown{
  display: none;
}
/* connect me */
#contact {
  background-color: var(--primary-color);
  transition: background-color 0.1s ease, color 0.1s ease;
  height: 100vh;
  text-align: center;
}
#contact h2{
    margin-top: 50px;
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}
#contact-form {
  max-width: 100%;
  margin-top: 30px;
  padding: 20px;
  background-color: var(--primary-color);
  transition: background-color 0.1s ease, color 0.1s ease;
  border: 1px solid #b74b4b;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(251, 251, 251, 0.1);
}

#contact-form input, #contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid var(--secondary-color);
}

#contact-form button[type="submit"] {
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: var(--primary-color);
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #b74b4b;
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid #b74b4b;
    transition: 0.3s ease;
    cursor: pointer;
}
#contact-form button[type="submit"]:hover {
    transform: scale3d(1.03);
    background-color: #b74b4b;
    color: var(--secondary-color);
    box-shadow: 0 0 25px #b74b4b;
}
#contact-form .error {
    color: red;
    font-size: 0.9em;
    display: none;
}
#contact #success-message{
    margin-top: 10px;
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.3;
}
.loader {
    color: green;
    width: 50px;
    aspect-ratio: 1;
    display: grid;
    animation: l15 1s infinite linear;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);  
    display: none;
    
  }
  .loader:before,
  .loader:after {
    content: "";
    grid-area: 1/1;
    border-radius: 50%;
    background: #f03355;
    -webkit-mask:repeating-linear-gradient(#000 0 5px,#0000 0 10px);
    mask: repeating-linear-gradient(#000 0 5px, #0000 0 10px);
    animation: l35 1.5s infinite;
  }
  .loader:after {
    -webkit-mask:repeating-linear-gradient(#0000 0 5px,#000 0 10px);
    mask: repeating-linear-gradient(#0000 0 5px, #000 0 10px);
    --s:-1;
  }
  @keyframes l35 {
    0%,
    10% {transform: translate(0) rotate(0)}
    35% {transform: translate(calc(var(--s,1)*50%)) rotate(0)}
    66% {transform: translate(calc(var(--s,1)*50%)) rotate(calc(var(--s,1)*180deg))}
    90%,
    100% {transform: translate(0) rotate(calc(var(--s,1)*180deg))}
  }
  
/* Footer */
.footer {
  background-color: var(--primary-color);
  transition: background-color 0.1s ease, color 0.1s ease;
  color: var(--secondary-color);
  padding: 20px 0;
  margin-top: auto;
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.footer .col-md-4 {
  flex-basis: 33.33%;
  padding: 20px;
}

.footer h4 {
  margin-top: 0;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li {
  margin-bottom: 10px;
}

.footer a {
  color: var(--secondary-color);
  text-decoration: none;
}

.footer a:hover {
  color: #b74b4b;
}

.copyright {
  background-color: var(--primary-color);
  transition: background-color 0.1s ease, color 0.1s ease;
  color: var(--secondary-color);
  padding: 10px 0;
  text-align: center;
  clear: both;
}

@keyframes cursor{
    to{
        border-left: 3px solid #b74b4b;
    }
}



@media (max-width: 1272px){
    .about{
        gap: 4rem;
    }
    .courses .item{
      width: auto;
      height: auto;
    }
    .what__i_do .card {
      height: auto;
      width: auto;
    }
}

@media(max-width:995px){
  *{
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
  }
    #about{
        flex-direction: column;
    }

    #about .about-content h3{
        font-size: 2.5rem;
    }

    .about-content h1{
        font-size: 5rem;
    }
    .about-content{
        height: auto;
    }
    
    .left-sidebar img{
        width: 70vw;
        margin-top: 4rem;
    }
    .loader {
        margin: auto;
    }
    #projects-container{
        height: 500px;
        overflow-y: scroll;
    }
    #projects{
        height: auto;
    }
    .project_filter{
        display: none;
    }
    #projects .dropdown{
      display: block;
      color: #000;
    }
    #projects .dropdown .dropdown-menu{
      width: 90%;
      text-align: center;
      padding-bottom: 10px;
    }
    #projects .dropdown-menu span{
      font-size: 1.5rem;
      font-weight: 600;
    }
    #contact{
        height: auto;
    }
    
    .footer h4:hover:after{
        width: 50px;
        margin-bottom: -5px;
      }
      #about{
        margin-top: -30px;
      }
      #about .about-content h1{
        font-size: 4rem;
        font-weight: 700;
        line-height: 1.3;
    }
    #contact h2{
        margin-top:0px;
    }
    .main-nav{
      display: none;
    }
    .sub-nav {
      display: block!important;
      background-color: var(--primary-color); 
      position: fixed;
      bottom: 0; 
      width: 100%;
      z-index: 1000; 
      border-top: 2px solid #f03355; 
      border-radius: 20px 20px 0px 0px;
    }
    
    .sub-nav .vertical-nav {
      display: flex;
      flex-direction: row; 
      align-items: center;
      justify-content: center;
      list-style: none; 
      padding: 0;
      margin: 0;
      width: 100%; 
    }
    
    .sub-nav .nav-item {
      flex: 1; 
      text-align: center; 
    }
    
    .sub-nav .nav-link {
      display: block;
      padding: 10px 0; 
      text-decoration: none; 
      color: var(--secondary-color); 
      font-size: 1.5rem; 
      font-weight: bold;
      transition: color 0.3s, text-decoration 0.3s; 
    }
    .sub-nav .nav-link.active{
      color: #b74b4b;
    } 
    .what__i_do .card{
      height: 110px;
      width: auto;
    }
    .what__i_do .card:hover{
      width: auto;
      height: 210px;
    }
    .what__i_do p {
      font-size: medium;
    }
    .courses .item{
      width: auto;
      height:auto;
    }
    .certificate-card{
      width: auto;
      height: auto;
      padding: auto;
      margin: auto;
    }
}