/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Satisfy&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
  font-family: "Poppins", sans-serif;
}

:root {
  --main-color: #033a80;
  --bg-color: #fff;
  --logo: #033a80;
  --logo2: rgb(0, 0, 0);
  --text-color: #0f0c27;
  --hover: hsl(260, 100%, 51%);

  --big-font: 3.2rem;
  --medium-font: 1.8rem;
  --p-font: 0.941rem;
  --typing: #033a80;
  --hover-color: hsl(260, 100%, 51%);
}

section {
  padding: 50px 10%;
}

body.active {
  --text-color: #fff;
  --bg-color: #0f0c27;
  --logo: #fff;
  --logo2: rgb(0, 206, 168);
  --typing: rgb(2, 166, 70);
}

body {
  background: var(--bg-color);
  color: var(--text-color);
}

*::selection {
  background: #2797ff;
  font-style: italic;
  color: #fff;
}

.heading {
  text-align: center;
}

.heading h2 {
  font-size: 30px;
}

.heading span {
  font-size: var(--p-font);
  color: rgb(2, 166, 70);
}

header {
  position: fixed;
  width: 100%;
  top: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-color);
  padding: 13px 10%;
  transition: 0.2s;
  box-shadow: -3px -3px 7px #ffffff73, 2px 2px 5px rgba(94, 104, 121, 0.288);
}

header.shadow {
  box-shadow: 0 0 4px rgb(14 55 54 / 15%);
}

.logo {
  font-size: 1.61rem;
  font-weight: 600;
  color: var(--text-color);
}

.navbar {
  display: flex;
}

.navbar a {
  font-size: 1rem;
  padding: 10px 20px;
  color: var(--text-color);
  font-weight: 500;
}

.navbar a:hover {
  color: var(--hover);
}

#menu-icon {
  font-size: 24px;
  cursor: pointer;
  z-index: 10001;
  display: none;
}

#darkmode {
  font-size: 22px;
  cursor: pointer;
}

.home {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 0.2fr 1fr 1fr;
  align-items: center;
  gap: 1rem;
}

.home-img {
  order: 3;
}

/* Improve styling for .home-img img */
.home-img img {
  width: 66%;
  max-height: 68vh; /* Use max-height to ensure responsiveness */
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  margin: 1rem;
}


.home-text span {
  font-size: var(--medium-font);
  font-weight: 500;
}

.home-text h1 {
  font-size: var(--big-font);
}

.home-text h2 {
  font-size: 1.1rem;
  font-weight: 400;
}

.home-text p {
  font-size: var(--p-font);
  font-weight: 400;
  margin: 0.7rem 0 1rem;
}

.typingtext span {
  color: var(--typing);
  font-weight: 500;
}

.social {
  display: flex;
  flex-direction: column;
}

.social a {
  margin-bottom: 1rem;
  font-size: 22px;
  color: var(--text-color);
}

.social a:hover {
  color: var(--hover);
}

.btn {
  display: inline-block;
  background: var(--main-color);
  color: #fff;
  padding: 0.7rem 1.3rem;
  border-radius: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease-in-out;
  border: none;
}

.btn:hover {
  background: var(--hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* cursor */
.cursor {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 2px solid #ff6c37;
  border-radius: 50%;
  left: 0;
  top: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: 0.1s;
  background-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 20px rgba(255, 108, 55, 0.5);
  }
  
  .cursor2 {
  position: fixed;
  width: 10px;
  height: 10px;
  background-color: #ff6c37;
  border-radius: 50%;
  left: 0;
  top: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: 0.15s;
  box-shadow: 0 0 10px rgba(255, 108, 55, 0.5);
  }

.about-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.about-img img {
  width: 60%;
  border-radius: 0.5rem;
}

.about-text p {
  font-size: 16px;
  font-weight: 400;
  text-align: justify;
  line-height: 1.5;
}

.information {
  margin: 1rem 0 1.4rem;
  padding: 1rem;
  background-color: #f2f2f2;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.information .info-box {
  display: flex;
  align-items: center;
  margin-bottom: 1.4rem;
}

.information .info-box .bx {
  font-size: 22px;
  margin-right: 0.5rem;
}

.information .info-box span {
  font-weight: 400;
}

.information .info-box a {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
  padding: 0.5rem;
  border-radius: 5px;
  border: 2px solid #007bff;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.information .info-box a:hover {
  color: #fff;
  background-color: #007bff;
  text-decoration: none;
  border-color: #0056b3;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 2rem;
  margin-top: 4rem;
}

.skills-img img {
  width: 80%;
  padding-left: 4rem;
  object-position: center;
}

.bars-box {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  margin-bottom: 1rem;
}

.bars-box h3,
span {
  font-size: 1.1rem;
  font-weight: 500;
}

.light-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0.5rem;
  background: hsla(260, 100%, 44%, 0.4);
  border-radius: 0.5rem;
}

.percent-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 0.5rem;
  background: var(--main-color);
  border-radius: 0.5rem;
}

.percent-bar:hover {
  background-color: var(--hover-color);
  transition: width 0.3s ease-in-out;
}

.percent-bar:hover::after {
  content: attr(data-percent) "%";
  display: block;
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--hover-color);
  background-color: white;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.2);
}

.html-bar {
  width: 80%;
  background-color: red;
}

.css-bar {
  width: 80%;
  background-color: #2196f3;
}

.js-bar {
  width: 50%;
  background-color: orange;
}

.react-bar {
  width: 10%;
  background-color: blue;
}

.php-bar {
  width: 10%;
  background-color: blueviolet;
}

.project-showcase {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.project-showcase.alternative {
  flex-wrap: wrap-reverse;
}

.project-details {
  flex-basis: 100%;
  margin-bottom: 20px;
}

.project-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.project-tech {
  margin-bottom: 10px;
}

.project-tech span {
  display: inline-block;
  padding: 6px 12px;
  background-color: #f2f2f2;
  color: #333;
  font-size: 12px;
  font-weight: bold;
  margin-right: 8px;
  border-radius: 15px;
}

.project-description {
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

.project-image {
  width: 100%;
  height: auto;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.project-image:hover {
  transform: scale(1.1);
}

.project-image::after {
  content: attr(data-name);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 10px;
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 14px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 4px;
  white-space: nowrap;
}

.project-image:hover::after {
  opacity: 1;
}

@media (min-width: 600px) {
  .project-details {
    flex-basis: 57%;
  }

  .project-image {
    width: 40%;
  }
}

@media (max-width: 600px) {
  .project-details,
  .project-image {
    flex-basis: 100%;
  }
}


.contact-form {
  display: grid;
  place-items: center;
  margin-top: 2rem;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  width: 650px;
}

form input,
textarea {
  padding: 15px;
  border-radius: 0.5rem;
  width: 100%;
  border: none;
  outline: none;
  background: hsla(260, 100%, 44%, 0.1);
  margin-bottom: 1rem;
  color: var(--text-color);
}

form input::placeholder,
textarea::placeholder {
  color: var(--text-color);
}

form textarea {
  resize: none;
  height: 200px;
}

.contact-button {
  width: 160px;
  cursor: pointer;
  background: linear-gradient(to bottom, #2768d9, #1845a5);
  color: #fff;
  justify-content: center;
  padding: 15px 32px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  border: 2px solid #2768d9;
  box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease-in-out;
  font-weight: 600;
  font-size: 16px;
  margin: 0 auto;
  display: block;
}

.contact-button:hover {
  background: #fff;
  color: #2768d9;
}

.copyright {
  padding: 20px;
  background: var(--main-color);
  text-align: center;
  color: #fff;
}

.copyright a {
  color: #22cf91;
}

#preloader {
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.preloader-title {
  font-family: "Satisfy", cursive;
  font-size: 48px;
  font-weight: bold;
  color: #333333;
  text-align: center;
  margin-bottom: 20px;
}

.preloader-subtitle {
  font-size: 24px;
  color: #666666;
  text-align: center;
}

.fa-circle-notch {
  font-size: 48px;
  color: #ff8a00;
  animation: spin 2s linear infinite;
}

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

.fa-circle-notch {
  color: #033a80;
}

@media screen and (max-width: 768px) {
  .preloader-title {
    font-size: 36px;
  }
  .preloader-subtitle {
    font-size: 18px;
  }
  .fa-circle-notch {
    font-size: 36px;
  }
}

@media screen and (max-width: 480px) {
  .preloader-title {
    font-size: 24px;
  }
  .preloader-subtitle {
    font-size: 14px;
  }
  .fa-circle-notch {
    font-size: 24px;
  }
}

@media (max-width: 991px) {
  header {
    padding: 18px 4%;
  }

  section {
    padding: 50px 4%;
  }
}

@media (max-width: 881px) {
  :root {
    --big-font: 2.7rem;
    --medium-font: 1.4rem;
  }
}

@media (max-width: 768px) {
  :root {
    --big-font: 2.4rem;
    --medium-font: 1.2rem;
  }

  header {
    padding: 11px 4%;
  }

  #menu-icon {
    display: initial;
    color: var(--text-color);
  }

  header .navbar {
    position: absolute;
    top: -500px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg-color);
    box-shadow: 0 4px 4px rgb(0 0 0 / 10%);
    transition: 0.2s ease;
    text-align: center;
  }

  .navbar.active {
    top: 100%;
  }

  .navbar a {
    padding: 1.5rem;
    display: block;
    background: var(--bg-color);
  }

  #darkmode {
    position: absolute;
    top: 1.4rem;
    right: 2rem;
  }

  .scroll-down {
    display: none;
  }

  .home {
    grid-template-columns: 0.5fr 3fr;
  }

  .home-text {
    grid-column: 1/3;
    padding-left: 1.4rem;
  }

  .home-img {
    order: initial;
  }

  .about-container {
    grid-template-columns: 1fr;
  }

  .about-img {
    display: flex;
    justify-content: center;
  }

  .skills-container {
    grid-template-columns: 1fr;
  }

  .skills-img img {
    padding-left: 0;
  }

  .skills-img {
    padding-top: 2rem;
    display: flex;
    justify-content: center;
  }

  .contact-form form {
    width: 300px;
  }

  .contact-button {
    margin-left: 25%;
  }
}

@media (max-width: 340px) {
  :root {
    --big-font: 1.7rem;
    --medium-font: 1.1rem;
  }

  .home-text span {
    font-size: 1rem;
  }

  .home-text h2 {
    font-size: 0.9rem;
    font-weight: 500;
  }

  .information .info-box span {
    font-size: 1rem;
  }

  .portfolio-content {
    grid-template-columns: repeat(auto-fit, minmax(200px, auto));
  }

  .contact-form form {
    width: 300px;
  }

  .contact-button {
    margin-left: 25%;
  }
}
@media only screen and (max-width: 600px) {
  .cursor,
  .cursor2 {
    display: none;
  }
}
/* Timline */

/* .main {
  width: 100%;
  height: auto;
  background-color: var(--bg-color);
  font-family: poppins;
  padding: 50px 0;
  display: grid;
  place-items: center;
}
.main .time {
  font-size: 27px;
  font-weight: 500;
  color: var(--p-font);
  position: relative;
  margin-bottom: 80px;
}
.time::after {
  content: " ";
  position: absolute;
  width: 50%;
  height: 4px;
  left: 50%;
  bottom: -5px;
  background-image: linear-gradient(
    to right,
    rgb(106, 6, 236),
    rgb(220, 0, 240)
  );
  transform: translateX(-50%);
}

.container {
  width: 70%;
  height: auto;
  position: relative;
}
.container ul::after {
  position: absolute;
  content: "";
  width: 2px;
  height: 100%;
  background-image: linear-gradient(
    to right,
    rgb(106, 6, 236),
    rgb(220, 0, 240)
  );
}
.container ul {
  list-style: none;
}
.container ul li {
  width: 50%;
  height: auto;
  padding: 15px 20px;
  background-color: #fff;
  margin-bottom: 30px;
  border-radius: 10px;
  box-shadow: 4px 4px 25px rgba(51, 51, 51, 0.192);
  position: relative;
  z-index: 99;
}
.container ul li:nth-child(odd) {
  float: left;
  clear: right;
  transform: translateX(-30px);
}
.container ul li:nth-child(odd) .date {
  right: 20px;
}
.container ul li:nth-child(even) {
  float: right;
  clear: left;
  transform: translateX(30px);
}
.container ul li:nth-child(4) {
  margin-bottom: 0;
}
.container ul li .title {
  font-size: 20px;
  font-weight: 500;
  color: rgb(106, 6, 236);
}
ul li p {
  font-size: 15px;
  color: #444;
  margin: 7px 0;
  line-height: 23px;
}
ul li a {
  font-size: 15px;
  color: rgb(106, 6, 236);
  text-decoration: none;
}
ul li .date {
  position: absolute;
  top: -45px;
  width: 135px;
  height: 35px;
  border-radius: 20px;
  color: #fff;
  background-image: linear-gradient(
    to right,
    rgb(106, 6, 236),
    rgb(220, 0, 240)
  );
  display: grid;
  place-items: center;
  font-size: 14px;
}
.container ul li .circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: rgba(220, 0, 240, 0.401);
  position: absolute;
  top: 0;
}
.container ul li .circle::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  background-color: rgb(106, 6, 236);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.container ul li:nth-child(odd) .circle {
  right: -30px;
  transform: translate(50%, -50%);
}
.container ul li:nth-child(even) .circle {
  left: -30px;
  transform: translate(-50%, -50%);
}

/*  Media Query Started  */

@media screen and (max-width: 1224px) {
  .container {
    width: 85%;
  }
}

@media screen and (max-width: 993px) {
  .container {
    width: 80%;
    transform: translateX(15px);
  }
  .container ul::after {
    left: -30px;
  }
  .container ul li {
    width: 100%;
    float: none;
    clear: none;
    margin-bottom: 80px;
  }
  .container ul li:nth-child(odd) {
    text-align: left;
    transform: translateX(0);
  }
  .container ul li:nth-child(odd) .date {
    left: 20px;
  }
  .container ul li:nth-child(odd) .circle {
    left: -30px;
    transform: translate(-50%, -50%);
  }
  .container ul li:nth-child(even) {
    transform: translateX(0);
  }
}
