body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

/* ------------------------------------------------------------------------- */
/* Navbar css starts here */
/* Existing CSS */
header {
  z-index: 1000;
  position: fixed;
  width: 100%;
  top: 0;
  background-color: transparent;
  padding: 10px 0;
  transition: background-color 0.3s;
}

.navBar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 50px;
  color: white;
  padding: 0 20px;
}

.name h1 {
  font-size: 35px;
  font-family: "Leckerli One", sans-serif;
  color: white;
  transition: color 0.3s;
}

.menu ul {
  display: flex;
  font-size: 15px;
}

.menu ul li {
  list-style: none;
  margin: 20px;
  font-family: "Patrick Hand", cursive;
  color: white;
}

.menu ul li a {
  text-decoration: none;
  color: white;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 4px 0;
  transition: 0.4s;
}

/* Media Queries */
@media (max-width: 768px) {
  .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 20px;
    background-color: white;
    border: 1px solid #695aa6;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .menu ul {
    flex-direction: column;
    padding: 0;
    margin: 0;
  }

  .menu ul li {
    margin: 10px 0;
  }

  .menu ul li a {
    color: #695aa6;
  }

  .menu-toggle {
    display: flex;
  }

  .navBar.bgColor .menu {
    background-color: white;
  }

  .navBar.bgColor .menu-toggle .bar {
    background-color: #695aa6;
  }
}

.menu.active {
  display: flex;
}

/* New CSS */
.header-scrolled {
  background-color: #fff; /* Change header background when scrolled */
}

.header-scrolled .name h1,
.header-scrolled .menu ul li a,
.header-scrolled .menu ul li {
  color: #695aa6; /* Change name color when scrolled */
}

.header-scrolled .menu-toggle .bar {
  background-color: #695aa6; /* Change toggle button color when header is scrolled */
}

/* Navbar CSS ends here  */
/* ------------------------------------------------------------------------------------- */
/* hero section CSS starts here  */

.hero {
  position: flex;
  background-image: url("images/header.jpg");
  background-position: top;
  background-size: cover;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px;
}

.hero-container {
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
}

.hero-container .up {
  font-size: 50px;
  color: #212529;
  font-family: Leckerli One, sans-serif;
  margin-bottom: 5px;
}

.hero-container p {
  margin: 0;
  padding: 0;
  float: left;
}

.hero-container .down {
  font-size: 60px;
  color: #212529;
  font-family: Leckerli One, sans-serif;
  margin-bottom: 5px;
}

.hero-container h1 {
  margin: 0;
  color: #212529;
  font-family: Patrick Hand, cursive;
  font-size: 30px;
  margin-bottom: 20px;
}

.over {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
    to top,
    #fff 0%,
    rgba(105, 90, 166, 0.35) 99%,
    rgba(105, 90, 166, 0.5) 100%
  );
}

.hero-container .botton a {
  text-decoration: none;
  color: #695aa6;
}

.hero-container .botton img {
  width: 30px;
  height: 30px;
  margin-right: 10px;
}

@media (max-width: 768px) {
  .hero {
    height: 100vh;
    padding: 50px;
  }

  .hero-container .up {
    font-size: 35px;
  }

  .hero-container .down {
    font-size: 45px;
  }

  .hero-container h1 {
    font-size: 25px;
  }

  .hero-container .botton img {
    width: 25px;
    height: 25px;
    margin-right: 8px;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 100vh;
    padding: 20px;
  }

  .hero-container .up {
    font-size: 25px;
  }

  .hero-container .down {
    font-size: 35px;
  }

  .hero-container h1 {
    font-size: 20px;
  }

  .hero-container .botton img {
    width: 20px;
    height: 20px;
    margin-right: 5px;
  }
}
/* hero section CSS end here  */
/* -------------------------------------------------------------------------- */
/* about section CSS starts here  */
.about {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 40px;
}

.about-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  padding-top: 110px;
}

.imgeffect,
.text {
  height: 400px;
}

.text {
  width: 650px;
  margin-left: 100px;
}

.text h2,
.text p {
  margin: 0;
  padding: 0;
}

.text .p1 {
  font-family: Patrick Hand, cursive;
  margin-bottom: 6px;
}

.text .p2 {
  font-size: 20px;
  font-family: Patrick Hand, cursive;
  margin-bottom: 16px;
}

.text h2 {
  font-family: Leckerli One, sans-serif;
  margin-bottom: 16px;
}
.text button {
  width: 125px;
  height: 37px;
  padding: 6px 12px;
  margin-top: 24px;
  border-radius: 50px;
  background: #695aa6;
  color: white;
  font-family: Patrick Hand, cursive;
  font-size: 17px;
}

.imgeffect img {
  width: 300px;
  height: 300px;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .about {
    height: 100vh;
    padding: 40px;
  }
  .about-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .text {
    width: 100%;
    margin-left: 0;
  }

  .text button {
    width: 100%;
    max-width: 150px;
  }
  .imgeffect img {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 480px) {
  .about {
    height: 100vh;
    padding: 20px;
  }

  .text .p1,
  .text .p2 {
    font-size: 16px;
  }

  .text h2 {
    font-size: 24px;
  }

  .text button {
    width: 100%;
    max-width: 125px;
    font-size: 15px;
  }
}

/* about section CSS ends here */
/* -------------------------------------------------------------- */
/* skills section CSS starts here  */
.Skills {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  background-color: #f9f9f9;
}

.Skills .container {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.Skills .container .heading {
  font-size: 20px;
  text-align: center;
  font-family: Leckerli One, sans-serif;
  font-weight: 600;
  margin-top: 20px;
  color: black;
  margin-bottom: 25px;
}

.skillh1 {
  color: black;
}

.Skills .container .heading h1 {
  padding: 0%;
  margin: 0%;
}

.Skills .container .mainSkill {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  margin-top: 30px;
  gap: 30px;
  justify-content: center;
}

.Skills .container .mainSkill .front,
.back,
.datasci,
.tools {
  width: 100%;
  max-width: 500px;
  background: transparent;
  border: 1px solid #695aa6;
  border-radius: 16px;
  padding: 18px 36px;
  background-color: #695aa600;
  transition: background-color 0.3s ease, rotate 0.3s ease;
}
.Skills .container .mainSkill .front:hover,
.back:hover,
.datasci:hover,
.tools:hover {
  background-color: #695aa625;
  rotate: -5deg;
  transition: rotate 0.3s ease;
}

.Skills .container .mainSkill .front h2,
.back h2,
.datasci h2,
.tools h2 {
  margin: 0%;
  padding: 0%;
  font-size: 20px;
  font-family: Patrick Hand, cursive;
  font-weight: 600;
  color: black;
  margin-bottom: 20px;
  text-align: center;
}

.Skills .container .mainSkill .box {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.Skills .container .mainSkill .front .frontSkill,
.back .backSkill,
.datasci .datasciSkill,
.tools .toolsSkill {
  font-size: 14px;
  font-weight: 400;
  font-family: Patrick Hand, cursive;
  color: black;
  border: 1px solid #695aa6;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.Skills .container .mainSkill .front .box img {
  width: 30px;
  height: 30px;
}

.Skills .container .mainSkill .back .box img {
  width: 30px;
  height: 30px;
}

.Skills .container .mainSkill .datasci .box img {
  width: 30px;
  height: 30px;
}

.Skills .container .mainSkill .tools .box img {
  width: 30px;
  height: 30px;
}

@media (max-width: 768px) {
  .Skills {
    padding: 20px;
  }
  .Skills .container .heading {
    font-size: 18px;
    margin-top: 15px;
    margin-bottom: 20px;
  }

  .Skills .container .mainSkill .front,
  .back,
  .datasci,
  .tools {
    padding: 14px 28px;
  }

  .Skills .container .mainSkill .front h2,
  .back h2,
  .datasci h2,
  .tools h2 {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .Skills .container .mainSkill .front .frontSkill,
  .back .backSkill,
  .datasci .datasciSkill,
  .tools .toolsSkill {
    font-size: 12px;
    padding: 10px 14px;
  }

  .Skills .container .mainSkill .box {
    gap: 10px;
  }

  .Skills .container .mainSkill .front .box img,
  .Skills .container .mainSkill .back .box img,
  .Skills .container .mainSkill .datasci .box img,
  .Skills .container .mainSkill .tools .box img {
    width: 25px;
    height: 25px;
  }
}

@media (max-width: 480px) {
  .Skills .container .heading {
    font-size: 16px;
    margin-top: 80px;
    margin-bottom: 15px;
  }

  .Skills .container .mainSkill .front,
  .back,
  .datasci,
  .tools {
    padding: 10px 20px;
  }

  .Skills .container .mainSkill .front h2,
  .back h2,
  .datasci h2,
  .tools h2 {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .Skills .container .mainSkill .front .frontSkill,
  .back .backSkill,
  .datasci .datasciSkill,
  .tools .toolsSkill {
    font-size: 10px;
    padding: 8px 12px;
  }

  .Skills .container .mainSkill .box {
    gap: 8px;
  }

  .Skills .container .mainSkill .front .box img,
  .Skills .container .mainSkill .back .box img,
  .Skills .container .mainSkill .datasci .box img,
  .Skills .container .mainSkill .tools .box img {
    width: 20px;
    height: 20px;
  }
}

/* skills section CSS ends here  */
/* ------------------------------------------------------------------------------- */
/* experience section CSS starts here  */
.expirience {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: 0;
  font-family: "Patrick Hand", cursive;
  background: #f1f2f6;
  outline: none;
  padding: 40px;
  padding-top: 110px;
}
.expirience h3 {
  font-family: "Leckerli One", sans-serif;
}
h1 {
  text-align: center;
  font-weight: 300;
  color: black;
  font-family: "Leckerli One", sans-serif;
}

h1 span {
  font-weight: 600;
}

.container-ex {
  width: 80%;
  padding: 50px 0;
  margin: 50px auto;
  position: relative;
  overflow: hidden;
}

.container-ex:before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  margin-left: -1px;
  width: 2px;
  height: 100%;
  background: #ccd1d9;
  z-index: 1;
}

.timeline-block {
  width: -webkit-calc(50% + 8px);
  width: -moz-calc(50% + 8px);
  width: calc(50% + 8px);
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  -moz-box-pack: justify;
  justify-content: space-between;
  clear: both;
  background-color: #675ba607;
  border-radius: 5cap;
  transition: background-color 0.3s ease, rotate 0.3s ease;
}
.timeline-block:hover {
  background-color: #675ba63b;
}

.timeline-block-right {
  float: right;
}

.timeline-block-left {
  float: left;
  direction: rtl;
}

.marker {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #f5f7fa;
  background: #695aa6;
  margin-top: 10px;
  z-index: 9999;
}

.timeline-content {
  width: 95%;
  padding: 0 15px;
  color: #666;
  margin-bottom: 25px;
}

.timeline-content h3 {
  margin-top: 5px;
  margin-bottom: 5px;
  font-size: 25px;
  font-weight: 500;
  color: #695aa6;
}

.timeline-content span {
  font-size: 15px;
  color: #a4a4a4;
}

.timeline-content p {
  font-size: 14px;
  line-height: 1.5em;
  word-spacing: 1px;
  color: #888;
}

@media screen and (max-width: 768px) {
  .expirience {
    padding: 0px;
    padding-top: 110px;
  }
  .container-ex:before {
    left: 8px;
    width: 2px;
  }
  .timeline-block {
    width: 100%;
    margin-bottom: 30px;
  }
  .timeline-block-right {
    float: none;
  }

  .timeline-block-left {
    float: none;
    direction: ltr;
  }
}
/* experience section CSS ends hhere */
/* ---------------------------------------------------------------------- */
/* project section CSS starts here  */

.project {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #f9f9f9;
  font-weight: 400;
  padding-top: 110px;
}

.main {
  width: calc(min(76.5rem, 90%));
  color: #111;
}

.main h2 {
  margin: 0;
  padding: 0;
  text-align: center;
  font-family: "Leckerli One", sans-serif;
  font-size: 24px;
}

.main a {
  display: inline-block;
  text-decoration: none;
}

.container {
  margin-top: 3em;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2rem;
}

.card {
  display: flex;
  flex-direction: column;
  border-radius: 2cap;
  background-color: #675ba633;
  transition: background-color 0.3s ease, rotate 0.3s ease;
}
.card:hover {
  background-color: #675ba67a;
}

.card:nth-child(1) .box .icon .iconBox,
.card:nth-child(2) .box .icon .iconBox,
.card:nth-child(3) .box .icon .iconBox {
  background: #695aa6;
}

.card ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.card ul li {
  text-transform: uppercase;
  background: #695aa6;
  color: #282828;
  font-weight: 700;
  font-family: "Patrick Hand", cursive;
  font-size: 0.8rem;
  padding: 0.375rem 0.625rem;
  border-radius: 0.188rem;
}

.card ul li.github,
.card ul li.site {
  color: white;
}

.card .content {
  padding: 0.938rem 0.625rem;
}

.card .content h3 {
  text-transform: capitalize;
  font-family: "Patrick Hand", cursive;
  font-size: clamp(1.5rem, 1.3909rem + 0.4364vw, 1.8rem);
}

.card .content p {
  margin: 0.625rem 0 1.25rem;
  font-family: "Patrick Hand", cursive;
  color: #565656;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 18.75rem;
  background: var(--clr);
  border-radius: 1.25rem;
  border-bottom-right-radius: 0;
  overflow: hidden;
}

.card-inner .box {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 1.25rem;
  overflow: hidden;
}

.card-inner .box .imgBox {
  position: absolute;
  inset: 0;
}

.card-inner .box .imgBox img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-inner .box .icon {
  position: absolute;
  bottom: -0.375rem;
  right: -0.375rem;
  width: 6rem;
  height: 6rem;
  background: var(--clr);
  border-top-left-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-inner .box .icon .iconBox {
  position: absolute;
  inset: 0.625rem;
  background: #282828;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s;
}

.card-inner .box .icon .iconBox span {
  color: #fff;
  font-size: 1.5rem;
}

/* Media Queries */
@media (max-width: 768px) {
  .container {
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1.5rem;
  }

  .card-inner {
    height: 15rem;
  }

  .card .content h3 {
    font-size: 1.5rem;
  }

  .card .content p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .main h2 {
    font-size: 20px;
  }

  .container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .card-inner {
    height: 12rem;
  }

  .card .content h3 {
    font-size: 1.2rem;
  }

  .card .content p {
    font-size: 0.8rem;
  }

  .card ul li {
    font-size: 0.7rem;
    padding: 0.3rem 0.5rem;
  }
}

/* project section CSS ends here  */
/* --------------------------------------------------------------------- */
/* contact section CSS starts here  */

.contact {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f9f9f9;
  padding-top: 110px;
  padding-bottom: 50px;
}

.contact-container {
  display: flex;
  width: 90%;
  max-width: 1200px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.contact-info {
  flex: 1;
  padding: 40px;
  background-color: #695aa6;
  color: white;
}

.contact-info h2 {
  font-family: "Leckerli One", sans-serif;
  margin-bottom: 20px;
}

.contact-info p {
  margin: 10px 0;
  line-height: 1.5;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.social-links a img {
  width: 20px;
  height: 20px;
}

.contact-form {
  flex: 2;
  padding: 40px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin-bottom: 8px;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contact-form button {
  padding: 10px;
  background-color: #695aa6;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #543d8d;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
  }

  .contact-info {
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .contact-form {
    padding: 0px;
  }
}

@media (max-width: 480px) {
  .contact-info p {
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
  }
}
/* contact section CSS ends here  */
