@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  outline: none;
  border: none;
  text-transform: capitalize;
  transition: background-color 0.3s ease, color 0.3s ease;
}
html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  background: #f7f7f7;
  font-family: "Poppins", sans-serif;
}

*::selection {
  background: #2b3dda;
  color: #fff;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}
html::-webkit-scrollbar {
  width: 0.8rem;
}
html::-webkit-scrollbar-track {
  background: rgb(235, 202, 245);
}
html::-webkit-scrollbar-thumb {
  background: #420177;
}

/* pre loader start */
/* 🌌 Loader Container */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050505;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  overflow: hidden;
}

#rocket {
  filter: drop-shadow(0 0 20px #00ffff) drop-shadow(0 0 40px #011aff);
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}
/* pre loader end */
/* Dark mode styles */
/* Position toggle switch in top right */
#toggle,
.toggle-switch {
  position: absolute;
  top: 20px;
  right: 30px;
  z-index: 2000;
}

label.toggle-switch {
  width: 80px;
  height: 40px;
  border-radius: 999px;
  background: #F3F3F3;
  box-shadow: inset 5px 5px 10px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.circle {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: white;
  position: absolute;
  top: 50%;
  left: 5px;
  transform: translateY(-50%);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

label:active .circle {
  width: 42px;
}

input[type=checkbox]:checked + .toggle-switch .circle {
  left: 40px;
}

.sun,
.moon {
  width: 24px;
  height: 24px;
  position: absolute;
  transition: 0.3s ease;
}

.sun {
  color: #FFD600;
  opacity: 1;
}

.moon {
  color: #ffffff;
  opacity: 0;
}

input[type=checkbox]:checked + .toggle-switch .sun {
  opacity: 0;
  transform: translateY(20px);
}

input[type=checkbox]:checked + .toggle-switch .moon {
  opacity: 1;
  transform: translateY(0);
}

/* Right-align the toggle */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* navbar starts */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.7rem 10%;
  height: 6.5rem;
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(146, 161, 176, 0.3);
}
section {
  min-height: 100vh;
  padding: 2rem 9%;
}
.heading {
  font-size: 3.5rem;
  color: rgb(32, 32, 32);
  font-weight: 800;
  text-align: center;
}
.heading span {
  color: rgb(115, 3, 167);
}
header .logo {
  font-size: 1.9rem;
  font-weight: 800;
  text-decoration: none;
  color: #0e2431;
  margin-left: 1px; /* move logo text 10px to the right */
}
header .logo i {
  font-size: 2.2rem;
}
header .logo:hover {
  color: #fc8c05;
}
header .navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
}
header .navbar li {
  margin-left: 2.5rem;
}
header .navbar ul li a {
  font-size: 1.57rem;
  color: #0e2431;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04rem;
  transition: 0.2s;
}
header .navbar ul li a.active,
header .navbar ul li a:hover {
  color: #011aff;
  border-bottom: 0.2rem solid #011aff;
  padding: 0.5rem 0;
}
/* navbar ends */
/* 🌐 Glassmorphism Mobile Navbar + Hamburger Fix */
#menu {
  font-size: 3rem;
  cursor: pointer;
  color: rgb(24, 2, 63);
  display: none;
}

/* ✅ FINAL FIX — Mobile view */
@media (max-width: 768px) {
  /* Hamburger / 3-dot menu */
  #menu {
    display: block;
    position: absolute;
    top: 30px;
    right: 15px;
    font-size: 3rem;
    color: rgb(24, 2, 63);
    z-index: 2000;
  }

  /* Adjust toggle switch to avoid overlap */
  #toggle,
  .toggle-switch {
    top: 15px;
    right: 60px;
  }

  /* 🌟 Glassmorphism Navbar */
  .navbar {
    position: fixed !important;
    top: 6.5rem !important;
    right: -120% !important; /* hidden off-screen */
    width: 75%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    padding: 2rem;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    transition: right 0.4s ease-in-out;
    z-index: 3000;
  }

  /* Show only when toggled */
  .navbar.nav-toggle {
    right: 0 !important;
  }

  /* Navbar list styles */
  header .navbar ul {
    flex-flow: column;
    padding: 1rem;
  }

  header .navbar ul li {
    text-align: left;
    width: 100%;
    margin: 1rem 0;
    border-radius: 0.5rem;
  }

  /* Navbar links */
  header .navbar ul li a {
    display: block;
    padding: 1rem;
    color: #340c5b; /* black for  look */
    font-size: 1.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
  }

  header .navbar ul li a.active,
  header .navbar ul li a:hover {
    color: #011aff; /* glowing blue accent */
    border-bottom: 0.3rem solid #011aff;
  }

  .fa-times {
    transform: rotate(180deg);
  }
}

/* Fix toggle position outside media query */
#toggle,
.toggle-switch {
  position: absolute;
  top: 20px;
  right: 30px;
  z-index: 1000;
}

/*uppar 1st code paste */
/* hero section starts*/
.home {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  min-height: 100vh;
  align-items: center;
}
.home #particles-js {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}
.home::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}
.home .content {
  flex: 1 1 40rem;
  padding-top: 1rem;
  z-index: 1;
}
.home .image {
  flex: 1 1 40rem;
  z-index: 1;
}
.home .image img {
  width: 70%;
  margin-left: 6rem;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}
.home .image img:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}
.home .content h2 {
  font-size: 5rem;
  font-weight: 800;
  color: #002057;
}
.home .content h2 span {
  font-size: 5rem;
  font-weight: 800;
  color: #ff7b00;
}
.home .content p {
  font-size: 2.5rem;
  color: #000;
  font-weight: 600;
  padding: 1rem 0;
}
.home .content p span {
  font-size: 2.5rem;
  color: rgb(148, 8, 8);
  font-weight: 600;
  padding: 1rem 0;
}
.home .btn {
  margin-top: 1rem;
  position: absolute;
  line-height: 0;
  padding: 1.6rem 3rem;
  border-radius: 4em;
  transition: 0.5s;
  color: #fff;
  background: #2506ad;
  box-shadow: 0px 5px 18px rgba(48, 68, 247, 0.6);
  font-family: "Nunito", sans-serif;
}
.home .btn span {
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 0.1rem;
}
.home .btn i {
  margin-left: 0.3rem;
  font-size: 1.5rem;
  transition: 0.3s;
}
.home .btn:hover {
  background: #1a047e;
}
.home .btn:hover i {
  transform: translateX(5px);
}
/* social icons start */
.socials {
  position: relative;
  margin-top: 9rem;
}
.socials .social-icons {
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}
.socials .social-icons li {
  display: inline-block;
  margin-bottom: 14px;
}
.social-icons a {
  font-size: 2rem;
  display: inline-block;
  line-height: 44px;
  color: #00d9ff;
  background-color: #09011b;
  width: 44px;
  height: 44px;
  text-align: center;
  margin-right: 8px;
  border-radius: 100%;
  -webkit-transition: all 0.2s linear;
  -o-transition: all 0.2s linear;
  transition: all 0.2s linear;
}
.social-icons a:active,
.social-icons a:focus,
.social-icons a:hover {
  color: #fff;
  background-color: #0685da;
}
.social-icons a.github:hover {
  background-color: #0e0e0e;
}
.social-icons a.twitter:hover {
  background-color: #00aced;
}
.social-icons a.linkedin:hover {
  background-color: #007bb6;
}
.social-icons a.dev:hover {
  background-color: #070707;
}
.social-icons a.instagram:hover {
  background-color: #ee00da;
}
/* social icons end */

/* hero media queries starts*/
@media (max-width: 450px) {
  .home .btn {
    margin: 4rem 0;
  }
  .socials {
    margin-top: 12rem;
  }
  .home .image img {
    margin-top: -12rem;
  }
  .home .content p {
    font-size: 2.2rem;
  }
  .home .content p span {
    font-size: 2.2rem;
  }
}
/* hero media queries ends*/
/* hero section end */

/* about section starts */
.about {
  background: rgb(255, 255, 255);
}
.about .row {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 4rem;
}
.about .row .image {
  text-align: center;
  flex: 1 1 35rem;
}
.about .row .image img {
  margin: 4rem;
  width: 30rem;
  height: auto;
  border-radius: 5%;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.6);
  mix-blend-mode: luminosity;
  transition: 0.3s;
  cursor: pointer;
}
.about .row .image img:hover {
  mix-blend-mode: normal;
}
.about .row .content {
  flex: 1 1 45rem;
  padding: 3rem;
}
.about .row .content h3 {
  color: rgb(27, 27, 27);
  font-size: 2.5rem;
}
.about .row .content .tag {
  font-size: 1.4rem;
  color: #020133;
  font-weight: 600;
  margin-top: 1rem;
}
.about .row .content p {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  font-family: "Nunito";
  font-weight: 600;
  text-transform: none;
}
.about .row .content .box-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-family: "Nunito";
  font-weight: 600;
}
.about .row .content .box-container .box p {
  text-transform: none;
}
.about .row .content .box-container .box p span {
  color: #011aff;
}
.resumebtn {
  margin-top: 6rem;
}
.resumebtn .btn {
  padding: 1.7rem 3rem;
  border-radius: 0.5em;
  transition: 0.3s;
  color: #fff;
  background: #2506ad;
  box-shadow: 0px 5px 10px rgba(48, 68, 247, 0.6);
  font-family: "Nunito", sans-serif;
}
.resumebtn .btn span {
  font-weight: 600;
  font-size: 1.8rem;
  letter-spacing: 0.1rem;
}
.resumebtn .btn i {
  margin-left: 0.3rem;
  font-size: 1.2rem;
  transition: 0.3s;
}
.resumebtn .btn:hover {
  background: #1a047e;
}
.resumebtn .btn:hover i {
  transform: translateX(5px);
}
/* about media queries starts*/
@media screen and (max-width: 600px) {
  .about .row .image {
    margin-top: 2rem;
  }
  .about .row .image img {
    margin: 0 auto;
    width: 80%;
    mix-blend-mode: normal;
  }
  .about .row {
    padding: 0.5rem;
    margin-bottom: 7rem;
  }
  .about .row .content {
    padding: 1rem;
  }
  .about .row .content .box-container {
    gap: 0;
  }
}
/* about media queries ends*/
/* about section ends */

/* skills section starts */
.skills {
  min-height: 90vh;
  background: linear-gradient(to bottom, #000030, #000030);
}
.skills h2 {
  color: #fff;
}
.skills .heading span {
  color: rgb(255, 230, 0);
}
.skills .container {
  background: rgba(255, 255, 255, 0.4);
  color: #fff;
  border-radius: 1rem;
  padding: 2rem;
  width: 90%;
  margin: auto;
  margin-top: 2rem;
}
.skills .container .row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  flex-wrap: wrap;
  gap: 1.8rem;
}
.skills .container .bar {
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 22, 0.9);
  transition: 0.2s;
}
.skills .container .bar:hover {
  box-shadow: 0 8px 10px rgba(0, 2, 68, 0.8) !important;
  background-color: rgba(0, 0, 0, 0.9) !important;
}
.skills .container .bar .info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}
.skills .container .bar .info i {
  font-size: 4rem;
}
.skills .container .bar .info span {
  font-size: 2rem;
  font-weight: 500;
  font-family: "Poppins";
  margin-left: 0.5rem;
}
/* skills media queries starts*/
@media screen and (max-width: 600px) {
  .skills .container {
    padding: 0;
    margin: 0;
  }
  .skills .container .row {
    grid-template-columns: repeat(2, 1fr);
    margin: 1rem;
    padding: 2rem 0.2rem 2rem 0.2rem;
    gap: 1rem;
  }
  .skills .container {
    margin-top: 5px;
    width: 100%;
  }
}
/* skills media queries ends*/
/* skills section ends */

/* education section starts */
.education {
  background: radial-gradient(circle at center, #7760be 0%, #0d0720 100%);
  min-height: 80vh;
  padding: 5rem 0;
}
.education .qoute {
  font-size: 2.7rem;
  text-align: center;
  font-family: "Nunito", sans-serif;
  font-weight: 600;
  margin-top: 0.5rem;
}
.education .box-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* Glassmorphic Card */
.education .box-container .box {
  display: flex;
  flex-direction: row;
  width: 80%;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.429); /* transparent white layer */
  backdrop-filter: blur(20px); /* glass blur */
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  text-align: center;
  position: relative;
  margin-top: 2rem;
  overflow: hidden;
  transition: 0.4s ease;
}

.education .box-container .box:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Image Section */
.education .box-container .box .image {
  flex: 1 1 20rem;
  width: 100%;
  overflow: hidden;
  border-radius: 1rem 0 0 1rem;
}

.education .box-container .box img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.85;
  transition: 0.4s ease;
}

.education .box-container .box:hover img {
  transform: scale(1.05);
  opacity: 1;
}

/* Content Section */
.education .box-container .box .content {
  flex: 1 1 70rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #f0f0f0;
}

.education .box-container .box .content h3 {
  font-size: 2.4rem;
  color: #1a173a; /* accent color */
  margin-bottom: 0.5rem;
}

.education .box-container .box .content h4 {
  font-size: 1.8rem;
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.education .box-container .box .content p {
  font-size: 1.8rem;
  line-height: 1.6;
  color: #ffffff;
}

/* Center alignment + spacing */
.education .box-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}


/* education media queries starts*/
@media screen and (max-width: 600px) {
  .education .box-container .box {
    flex-direction: column;
    width: 100%;
  }
  .education .box-container .box .image {
    width: 100%;
    height: 25rem;
  }
  .education .box-container .box img {
    width: 100%;
  }
  .education .box-container .box .content {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    flex-wrap: wrap;
    flex: 0;
  }
  .education .btns {
    margin-top: 2rem;
    margin-left: 1rem;
    margin-right: 1rem;
    flex-wrap: wrap;
  }
}
/* education media queries ends*/
/* education section ends */

/* work section starts */
.work {
  /* background: #010124; */
  background: linear-gradient(to bottom, #000031, #00002c);
}
.work h2 {
  color: #fff;
  padding: 1rem;
}
.work .heading span {
  color: rgb(255, 230, 0);
}
.work .box-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 2rem;
}
.work .box-container .box {
  flex: 1 1 30rem;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  height: 30rem;
}
.work .box-container .box img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.work .box-container .box .content {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 85%;
  left: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
}
.work .box-container .box .content .tag {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 4.5rem;
  width: 100%;
  padding-left: 1rem;
  background: #ffd900;
}
.work .box-container .box .content .tag h3 {
  font-size: 2rem;
}
.work .box-container .box:hover .content {
  top: 25%;
}
.work .desc {
  margin: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.work .desc p {
  font-size: 1.5rem;
}
.work .desc .btns {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 2rem;
}
.work .desc .btns .btn {
  line-height: 0;
  display: inline;
  padding: 1.5rem 2.5rem;
  border-radius: 0.5rem;
  font-size: 1.5rem;
  color: #fff;
  background: rgb(12, 12, 12);
  margin-right: 2rem;
}
.work .desc .btns .btn:hover {
  background: #310ae0f5;
}
.work .viewall {
  display: flex;
  justify-content: center;
}
.work .viewall .btn {
  position: relative;
  line-height: 0;
  padding: 1.6rem 3rem;
  border-radius: 0.5em;
  transition: 0.5s;
  color: rgb(255, 255, 255);
  font-weight: 700;
  border: 2px solid #fff;
  box-shadow: 0px 5px 10px rgba(65, 84, 241, 0.4);
  text-align: center;
}
.work .viewall .btn span {
  font-weight: 600;
  font-size: 1.7rem;
  font-family: "Nunito", sans-serif;
}
.work .viewall .btn i {
  margin-left: 0.3rem;
  font-size: 1.5rem;
  transition: 0.3s;
}
.work .viewall .btn:hover {
  background: #fff;
  color: #000;
}
.work .viewall .btn:hover i {
  transform: translateX(5px);
}
/* work section ends */

/* experience section starts */
.experience .timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}
.experience .timeline::after {
  content: "";
  position: absolute;
  width: 6px;
  background: #020133;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  z-index: -2;
}
.experience .container {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}
/*circles on timeline*/
.experience .container::after {
  content: "\f0b1";
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: rgb(255, 255, 255);
  border: 4px solid #ff9f55;
  top: 15px;
  border-radius: 50%;
  z-index: 100;
  font-size: 1.89rem;
  text-align: center;
  font-weight: 600;
  color: #02094b;
  font-family: "Font Awesome\ 5 Free";
}
.experience .left {
  left: 0;
}
.experience .right {
  left: 50%;
}
/* arrows pointing right */
.experience .left::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  right: 30px;
  border: medium solid #f68c09;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent #f68c09;
}
/* arrows pointing left  */
.experience .right::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  left: 30px;
  border: medium solid #f68c09;
  border-width: 10px 10px 10px 0;
  border-color: transparent #f68c09 transparent transparent;
}
.experience .right::after {
  left: -16px;
}
.experience .content {
  background-color: #f68c09;
  position: relative;
  border-radius: 6px;
}
.experience .content .tag {
  font-size: 1.3rem;
  padding-top: 1.5rem;
  padding-left: 1.5rem;
}
.experience .content .desc {
  margin-left: 1.5rem;
  padding-bottom: 1rem;
}
.experience .content .desc h3 {
  font-size: 1.5rem;
  font-weight: 600;
}
.experience .content .desc p {
  font-size: 1.2rem;
}
/* view all button */
.morebtn {
  display: flex;
  justify-content: center;
}
.morebtn .btn {
  position: relative;
  line-height: 0;
  padding: 1.6rem 3rem;
  border-radius: 0.5em;
  transition: 0.5s;
  color: #fff;
  background: #2506ad;
  box-shadow: 0px 5px 10px rgba(48, 68, 247, 0.6);
  text-align: center;
}
.morebtn .btn span {
  font-weight: 600;
  font-size: 1.7rem;
  font-family: "Nunito", sans-serif;
}
.morebtn .btn i {
  margin-left: 0.3rem;
  font-size: 1.5rem;
  transition: 0.3s;
}
.morebtn .btn:hover {
  background: #1a047e;
}
.morebtn .btn:hover i {
  transform: translateX(5px);
}

/* Media queries - Responsive timeline on screens less than 600px wide */
@media screen and (max-width: 600px) {
  .experience {
    min-height: 80vh;
  }
  .experience .timeline {
    margin-top: 2rem;
  }
  .experience .timeline::after {
    left: 31px;
  }
  .experience .container {
    width: 100%;
    padding-left: 8rem;
    padding-right: 2rem;
  }
  .experience .container::after {
    font-size: 2.2rem;
  }
  .experience .container::before {
    left: 61px;
    border: medium solid #f68c09;
    border-width: 10px 10px 10px 0;
    border-color: transparent #f68c09 transparent transparent;
  }
  .experience .left::after {
    left: 15px;
  }
  .experience .right::after {
    left: 15px;
  }
  .experience .right {
    left: 0%;
  }
  .morebtn {
    margin-top: 3rem;
  }
}
/* experience media queries ends */
/* experience section ends */

/* contact section starts */
.contact {
  background: #e5ecfb;
  min-height: 60vh;
}
.contact .container {
  max-width: 1050px;
  width: 100%;
  background: #fff;
  border-radius: 1.5rem;
  margin: 2rem 5rem;
  box-shadow: 0 5px 10px rgba(147, 147, 147, 0.776);
}
.contact .container .content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.5rem 2rem;
}
.contact .content .image-box {
  max-width: 60%;
  margin-left: 4rem;
}
.contact .content .image-box img {
  width: 100%;
  height: 40rem;
  position: relative;
}
.contact .content form {
  width: 45%;
  margin-right: 3.5rem;
}
form .form-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.form-group .field {
  height: 50px;
  display: flex;
  position: relative;
  margin: 1rem;
  width: 100%;
}
form i {
  position: absolute;
  top: 50%;
  left: 18px;
  color: rgb(51, 51, 51);
  font-size: 17px;
  pointer-events: none;
  transform: translateY(-50%);
}
form .field input,
form .message textarea {
  width: 100%;
  height: 100%;
  outline: none;
  padding: 0 16px 0 48px;
  font-size: 16px;
  font-family: "Poppins", sans-serif;
  border-radius: 5px;
  border: 1px solid rgb(51, 51, 51);
  background: #e5ecfb;
}
.field input::placeholder,
.message textarea::placeholder {
  color: rgb(51, 51, 51);
}
.field input:focus,
.message textarea:focus {
  padding-left: 47px;
  border: 2px solid rgb(115, 3, 167);
}
.field input:focus ~ i,
.message textarea:focus ~ i {
  color: rgb(115, 3, 167);
}
form .message {
  position: relative;
  margin: 1rem;
  width: 100%;
}
form .message i {
  top: 25px;
  font-size: 20px;
  left: 15px;
}
form .message textarea {
  min-height: 130px;
  max-height: 230px;
  max-width: 100%;
  min-width: 100%;
  padding: 12px 20px 0 48px;
}
form .message textarea::-webkit-scrollbar {
  width: 0px;
}
form .button-area {
  display: flex;
  float: right;
  flex-direction: row-reverse;
}
.button-area button {
  color: #fff;
  border: none;
  outline: none;
  font-size: 1.8rem;
  cursor: pointer;
  border-radius: 5px;
  padding: 13px 25px;
  background: #2506ad;
  box-shadow: 0px 5px 10px rgba(48, 68, 247, 0.6);
  transition: 0.3s ease;
  font-family: "Nunito", sans-serif;
}
.button-area button:hover {
  background: #421cecf5;
}
.button-area span {
  font-size: 17px;
  padding: 1rem;
  display: none;
}
.button-area button i {
  position: relative;
  top: 6px;
  left: 2px;
  font-size: 1.5rem;
  transition: 0.3s;
  color: #fff;
}
.button-area button:hover i {
  left: 8px;
}
/* contact section media queries starts */
@media (max-width: 900px) {
  .contact {
    min-height: 70vh;
  }
  .contact .container {
    margin: 3rem 0 2rem 0;
  }
  .contact .container .content {
    padding: 18px 12px;
  }
  .contact .content .image-box {
    display: none;
  }
  .contact .content form {
    width: 100%;
    margin-right: 2rem;
  }
}
/* contact section media queries ends */
/* contact section ends */
/* ---------- Lottie Animations in Contact Section ---------- */
.contact .content .image-box {
  max-width: 80%;
  margin-left: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lottie-wrapper {
  display: flex;
  flex-direction: column; /* Stack one over another */
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem;
  background: linear-gradient(135deg, #4cc9f0, #4361ee, #7209b7);
  border-radius: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.lottie-wrapper lottie-player {
  width: 420px;
  height: 200px;
  transition: transform 0.3s ease;
}

.lottie-wrapper lottie-player:hover {
  transform: scale(1.05);
}

/* Floating animation for subtle motion */
.lottie-wrapper lottie-player:first-child {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .contact .content .image-box {
    display: none;
  }
}


/* footer section starts */
.footer {
  min-height: auto;
  padding-top: 0;
  background: rgb(0, 1, 43);
}
.footer .box-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.footer .box-container .box {
  flex: 1 1 25rem;
  margin: 2.5rem;
}
.footer .box-container .box h3 {
  font-size: 2.5rem;
  color: #fff;
  padding-bottom: 1rem;
  font-weight: normal;
}
.footer .box-container .box p {
  font-size: 1.5rem;
  color: #ccc;
  padding: 0.7rem 0;
  text-transform: none;
}
.footer .box-container .box p i {
  padding-right: 1rem;
  color: #ffae00;
}
.footer .box-container .box a {
  font-size: 1.5rem;
  color: rgb(238, 238, 238);
  padding: 0.3rem 0;
  display: block;
}
.footer .box-container .box a:hover {
  color: #ffae00;
}
.footer .box-container .box .share {
  display: flex;
  flex-wrap: wrap;
  padding: 1rem 0;
}
.footer .box-container .box .share a {
  height: 4rem;
  width: 4rem;
  padding: 1rem;
  text-align: center;
  border-radius: 5rem;
  font-size: 1.7rem;
  margin-right: 1rem;
  transition: 0.2s;
  background: rgb(230, 230, 230);
  color: #02094b;
  border: none;
}
.footer .box-container .box .share a:hover {
  background: transparent;
  transform: scale(0.98);
  border: 0.1rem solid rgb(180, 178, 178);
  color: #ffae00;
}
.footer .credit {
  padding: 1rem 0 0 0;
  text-align: center;
  font-size: 1.5rem;
  font-family: "Nunito", sans-serif;
  font-weight: 600;
  color: #fff;
  border-top: 0.1rem solid #fff3;
}
.footer .credit a {
  color: #ffae00;
}
.footer .fa {
  color: #e90606;
  margin: 0 0.3rem;
  font-size: 1.5rem;
  animation: pound 0.35s infinite alternate;
}
@-webkit-keyframes pound {
  to {
    transform: scale(1.1);
  }
}
@keyframes pound {
  to {
    transform: scale(1.1);
  }
}
@media (max-width: 450px) {
  .footer .box-container .box {
    margin: 1.5rem;
  }
  .footer .box-container .box p {
    padding: 0.7rem;
  }
  .footer .box-container .box .share a {
    padding: 1.2rem;
  }
}
/* footer section ends */

/* common media queries starts*/
@media (max-width: 450px) {
  html {
    font-size: 55%;
  }
  body {
    padding-right: 0;
  }
  section {
    padding: 2rem;
  }
}
/* common media queries ends*/

/* scroll top starts */
#scroll-top {
  position: fixed;
  top: -140%;
  right: 2rem;
  padding: 1rem 1.5rem;
  font-size: 2rem;
  background: #ffae00;
  color: rgb(13, 0, 44);
  border-radius: 50%;
  transition: 1s linear;
  z-index: 1000;
}
#scroll-top.active {
  top: calc(100% - 12rem);
}
/* scroll top ends */

  /* Dark mode fix for About Me section */
  body.dark-mode .about {
    background-color: #1e1e1e !important;
  }

  body.dark-mode .about .content h3,
  body.dark-mode .about .content p,
  body.dark-mode .about .tag,
  body.dark-mode .about .content .box-container .box p,
  body.dark-mode .about .content .box-container .box p span {
    color: #ffffff !important;
  }

  body.dark-mode .about .resumebtn .btn {
    background-color: #333;
    color: #fff;
    border: 1px solid #fff;
  }

  body.dark-mode .about .image img {
  mix-blend-mode: normal !important;
}


    body, .about, .about .content, .about .tag, .about .btn {
    transition: background-color 0.3s ease, color 0.3s ease;
  }

  /* Fix toggle position in header */
  #toggle,
  .toggle-switch {
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 1000;
  }

  /* Optional - keep it on top even when scrolling */
  header {
    position: relative;
  }
/* particle new */
#tsparticles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* ensures particles stay in the background */
  pointer-events: none;
}
/*certficate*/

.cert-container .box img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.cert-container .content {
  padding: 1rem;
}

.cert-container .tag {
  background: #ffd700;
  padding: 0.5rem 1rem;
  font-weight: bold;
}

.cert-container .desc {
  margin-top: 1rem;
  font-size: 1.4rem;
}

.cert-container .btns {
  margin-top: 1rem;
}

.cert-container .btns .btn {
  padding: 0.8rem 1.5rem;
  background-color: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}

@media (max-width: 1024px) {
  .cert-container .box {
    width: 48%;
  }
}

@media (max-width: 768px) {
  .cert-container .box {
    width: 100%;
  }
}
/* Certification grid layout (3/2/1 responsive) */
.cert-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 per row desktop */
  gap: 1.5rem;
  padding: 1rem;
}

.cert-container .box {
  width: 100%; /* grid handles column sizing */
}

@media (max-width: 1024px) {
  .cert-container {
    grid-template-columns: repeat(2, 1fr); /* 2 per row tablet */
  }
}

@media (max-width: 768px) {
  .cert-container {
    grid-template-columns: 1fr; /* 1 per row mobile */
  }
}
/* Certification grid fixes */
.cert-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 1rem;
  align-items: stretch; /* make all boxes the same height in a row */
}

.cert-container .box {
  width: 100%;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Hover effect */
.cert-container .box:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 1024px) {
  .cert-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cert-container {
    grid-template-columns: 1fr;
  }
}

/*dark button*/
/* Position toggle button */
.darkmode-toggle {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  align-items: center;
}

/* Optional: Smooth and aesthetic toggle base */
.toggle-switch {
  background: #ddd;
  border-radius: 50px;
  padding: 0.3rem;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.circle {
  background: white;
  border-radius: 50%;
  padding: 0.4rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sun, .moon {
  width: 1.3rem;
  height: 1.3rem;
  display: block;
}

.experience {
    position: relative;
}

.bitmoji-experience {
    position: absolute;
    right: 5px;
    bottom: 20px;
    width: 160px;
    z-index: 10;
    transition: transform 0.3s ease-in-out;
}

.bitmoji-experience:hover {
    transform: scale(1.05);
}
.certification .viewall .btn {
  border: 2px solid #fff;
  color: #fff;
}

.certification .viewall .btn:hover {
  background-color: #fff;
  color: #000;
}

.certification {
  background: linear-gradient(to bottom, #1e1329, #1e1329); /* bluish gradient */
  margin-top: 5rem;
  padding-top: 4rem;
}
.certification h2 {
  color: #fff;
}
.certification .heading span {
  color: #FFE600;
}
.certification .cert-container .box {
  background-color: #fff;
}
.certification .desc p {
  color: #000;
}
/* 🌙 Dark Theme Styles */
body.dark-mode {
  background-color: #121212;
  color: #f1f1f1;
}

body.dark-mode header,
body.dark-mode section,
body.dark-mode footer {
  background-color: #1e1e1e;
  color: #ffffff;
}

body.dark-mode a {
  color: #9cdcfe;
}

body.dark-mode .btn {
  background: #333;
  color: #fff;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3 {
  color: #ffffff;
}

/* ====== Profile Card ====== */
/* ===============================
   GitHub Section Layout 
*/

.github-container {
  display: flex;
  gap: 2rem;
  margin: 4rem auto;
  max-width: 1200px;
  padding: 2rem;
}

/* Left column: profile + repos */
.left-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Profile card */
#profile {
  background: #111;
  color: #eee;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
#profile img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;   /* prevents stretching */
  margin-bottom: 1.5rem;
}
#profile h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
#profile p {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
#profile a {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background: #ffcc00;
  color: #000;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}
#profile a:hover {
  background: #e6b800;
}

/* Repo list */
#repos {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 280px; /* shrink repo section */
  overflow-y: auto;
}

/* Repo card */
.repo-card {
  background: #1a1a1a;
  padding: 1.2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  color: #bbb;
}
.repo-card h3 {
  color: #4ea1ff;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.repo-card p {
  font-size: 1.2rem;
  line-height: 1.5;
}

/* Right column: README */
.readme-card {
  flex: 2.5;
  background: #0d0d0d;
  color: #ddd;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  overflow-y: auto;
  max-height: 570px; /* balanced height desktop */
  font-size: 1.3rem;
  line-height: 1.4;
}

/* README headings */
.readme-card h1,
.readme-card h2,
.readme-card h3 {
  color: #ffcc00;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

/* Scrollbar style */
.readme-card::-webkit-scrollbar,
#repos::-webkit-scrollbar {
  width: 12px;
}
.readme-card::-webkit-scrollbar-thumb,
#repos::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 12px;
}
.readme-card::-webkit-scrollbar-track,
#repos::-webkit-scrollbar-track {
  background: #222;
}

/* Responsive */
@media (max-width: 768px) {
  .github-container {
    flex-direction: column;
  }
  #profile img {
    width: 100px;
    height: 100px;
  }
  .readme-card {
    max-height: 400px; /* shorter on mobile */
  }
  #repos {
    max-height: 220px;
  }
}
/* Fade-in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* General fade-in class */
.fade-in {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

/* Stagger repo cards for nice effect */
.repo-card:nth-child(1) { animation-delay: 0.1s; }
.repo-card:nth-child(2) { animation-delay: 0.2s; }
.repo-card:nth-child(3) { animation-delay: 0.3s; }
.repo-card:nth-child(4) { animation-delay: 0.4s; }
.repo-card:nth-child(5) { animation-delay: 0.5s; }
.repo-card:nth-child(6) { animation-delay: 0.6s; }
.github-title {
  text-align: center;
  font-size: 3.5rem;   /* ⬅️ change this value */
  font-weight: bold;
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;   /* adjust spacing */
}

.github-title i {
  color: #000;
  font-size: 4rem;   /* logo size matches heading */
}


.github-title .first {
  color: #000000;             /* yellow for "My" */
}

.github-title .second {
  color: #ff0040;             /* blue for "GitHub" */
}
.viewall {
  text-align: center;
  margin-top: 2rem;
}

.viewall .btn {
  padding: 12px 30px;
  font-size: 1.1rem;
  border-radius: 8px;
  background: #310bb9;
  color: #000;
  font-weight: 600;
  transition: all 0.3s ease;
}

.viewall .btn:hover {
  background: #0055ff;
  transform: translateY(-3px);
}
/* Fullscreen Loader */


/* Certifications container - same as projects */
.cert-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* Center align */
  gap: 1.5rem;
  margin-top: 20px;
}

/* Certification cards (same as project cards) */
.cert-container .box {
  flex: 1 1 30rem;          /* Responsive width */
  max-width: 350px;         /* Limit size */
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease-in-out;
}

.cert-container .box:hover {
  transform: translateY(-8px);
}

.cert-container .box img {
  width: 100%;
  height: 200px;            /* Keep uniform card height */
  object-fit: cover;        /* Prevent stretching */
  border-bottom: 3px solid #ffd900;
}

.cert-container .box .content {
  padding: 1rem;
  background: #fff;
}

.cert-container .box .content h3 {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  color: #000;
}

.cert-container .box .content p {
  font-size: 1.3rem;
  color: #555;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .cert-container {
    gap: 0.6rem;
  }
  .cert-container .box {
    flex: 1 1 45%;
  }
}

@media (max-width: 480px) {
  .cert-container .box {
    flex: 1 1 100%;
  }
}
/* Certifications container - 3 per row */
.cert-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
  gap: 0.6rem;
  margin: 20px;
  justify-items: center; /* Center cards in each grid cell */
}

/* Certification cards */
.cert-container .box {
  width: 100%;
  max-width: 320px;  /* keeps consistent size */
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease-in-out;
}

.cert-container .box:hover {
  transform: translateY(-8px);
}

.cert-container .box img {
  width: 100%;
  height: 140px;         /* uniform height */
  object-fit: cover;     /* prevents stretching */
  border-bottom: 1px solid #ffd900;
}

.cert-container .box .content {
  padding: 1rem;
  background: #fff;
}

.cert-container .box .content h3 {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  color: #000;
}

.cert-container .box .content p {
  font-size: 1.3rem;
  color: #555;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .cert-container {
    grid-template-columns: repeat(2, 1fr); /* 2 per row */
  }
}

@media (max-width: 600px) {
  .cert-container {
    grid-template-columns: 1fr; /* 1 per row */
  }
}
.spline-scene {
  width: 100%;
  height: 70vh; /* or 100vh if you want full screen */
  border: none;
  position: relative;
  z-index: 2; /* keep above particles */
}
.spline-container {
  flex: 1 1 40rem; /* adjust to match your layout */
  display: flex;
  align-items: center;
  justify-content: center;
}

.spline-container iframe {
  width: 100%;
  height: 500px; /* or 100% if full height */
  border: none;
}

.readme-card {
  width: 100vw;        /* full viewport width */
  max-width: 100%;     /* don’t let it shrink */
  margin: 0;           /* remove side gaps */
  border-radius: 0;    /* optional: remove rounding so it touches edges */
}

.readme-card img {
  width: 90%;
  max-width: 600px;    /* prevents it from being too wide on desktop */
  max-height: 300px;   /* keeps image from being too tall */
  height: auto;
  object-fit: cover;   /* crops nicely if needed */
  display: block;
  margin: auto;        /* center */
  border-radius: 10px; /* optional */
}
/* About Section with Video Background */
.about {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Fullscreen video background */
.about .bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* ensures video fills section */
  z-index: -1;       /* keeps it behind content */
}

/* Optional overlay to make text readable */
.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* adjust transparency */
  z-index: 0;
}

/* Ensure content is above video + overlay */
.about .row,
.about .heading {
  position: relative;
  z-index: 1;
}
.about .heading,
.about .row {
  position: relative;
  z-index: 1;
  color: #fff; /* force white text */
  text-shadow: 2px 2px 6px rgba(0,0,0,0.8); /* adds readability */
}
.about .row .content h3,
.about .row .content p {
  color: #fff;
  text-shadow: 3px 3px 8px rgba(0,0,0,0.9);
}
.about .row .content h3 span {
  color: #00aaff; /* pick your blue shade */
  text-shadow: 2px 2px 6px rgba(0,0,0,0.8); /* keep readable */
}
.about .row .content .tag {
  color: #00aaff !important;
}
/* ------------ Grayscale-to-Color image ------------ */

/* Default: grayscale (desktop) */
.about .row .image img.tilt {
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
  transition: filter 0.6s ease, -webkit-filter 0.6s ease;
  will-change: filter;
  /* override any blend mode that made it grayscale */
  mix-blend-mode: normal !important;
}

/* On hover (only on devices that support hover) -> color */
@media (hover: hover) and (pointer: fine) {
  .about .row .image img.tilt:hover,
  .about .row .image img.tilt:focus {
    -webkit-filter: grayscale(0%);
    filter: grayscale(0%);
  }
}

/* On touch devices / small screens: always color (no hover) */
@media (hover: none) and (pointer: coarse), (max-width: 768px) {
  .about .row .image img.tilt {
    -webkit-filter: grayscale(0%) !important;
    filter: grayscale(0%) !important;
    mix-blend-mode: normal !important; /* ensure blend-mode not interfering */
  }
}

/* transparent navbar*/

/*uppar 2nd st code paste */
/* Left side: logo + name */
.nav-left {
  display: flex;           /* keeps logo + text side by side */
  align-items: center;     /* vertically centers them */
  gap: 0.5rem;             /* space between logo and text */
}

.nav-left img {
  height: 40px;            /* consistent logo size */
  margin-right: 0;         /* remove old margin */
}

.nav-left span, 
.nav-left h1, 
.nav-left p {
  margin: 0;
  white-space: nowrap;     /* prevent wrapping */
}

/* Right controls (like dark mode button) */
.nav-right {
  display: flex;
  align-items: center;
}

.dark-mode-toggle {
  cursor: pointer;
  font-size: 1.5rem;
  margin-left: 1rem;
}

/* Mobile Menu */
@media (max-width: 768px) {
  .navbar {
    padding: 0.5rem 1rem;
  }

  .menu-toggle {
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 1rem;
    width: 200px;

    flex-direction: column;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 1rem;
    display: none;
  }

  .nav-links.show {
    display: flex;
  }
}

.logo {
  display: flex;
  align-items: center;  /* vertically center image and text */
  gap: 0.5rem;          /* space between logo and text */
  font-size: 1.2rem;    /* adjust text size if needed */
  font-weight: 600;
  color: #fff;          /* make "Abinash" white */
  text-decoration: none; /* remove underline */
}

.logo img {
  height: 40px;         /* consistent size */
  width: auto;
}
/* Contact container side-by-side */
.contact .content {
  display: flex;
  flex-wrap: wrap; /* allows stacking on small screens */
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

/* Left side: Spline */
.image-box {
  flex: 1 1 400px; /* grows, shrinks, min width */
  display: flex;
  justify-content: center;
}

.spline-frame {
  width: 100%;
  height: 400px;
  border-radius: 12px;
}

/* Right side: Form */
#contact-form {
  flex: 1 1 400px;
}

/* On mobile, stack them */
@media (max-width: 768px) {
  .contact .content {
    flex-direction: column;
  }
  .spline-frame {
    height: 300px;
  }
}

.spline-scene {
  width: 100%;
  height: 300px; /* Adjust as needed */
  display: block;
}

/*test1*/
.hero {
  display: grid;
  grid-template-columns: 1fr 3fr;
  align-items: center;
  min-height: 100vh;
  position: relative;
  padding: 0 5%;
  gap: 20px;
}

.hero-content {
  z-index: 2;
  color: #222;
}

#canvas3d {
  width: 100%;
  height: 100vh;
  display: block;
  background: transparent;
}

/* 📱 Mobile Responsive */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;   /* Stack in one column */
    grid-template-rows: auto auto;
    padding: 40px 5%;
  }

  .hero-content {
    text-align: center;
    margin-bottom: 20px;
  }

 #canvas3d {
  width: 100%; /* makes canvas narrower on mobile */
  margin: 2 auto;
}
}
.readme-card img {
  max-width: 90%;
  height: auto;
  display: block;
  margin: 1rem auto; /* centers image */
}
.readme-card img {
  max-width: 100%;   /* never overflow card */
  height: auto;      /* keep aspect ratio */
  border-radius: 8px; /* optional, softer look */
  margin: 1rem 0;    /* some spacing */
}

/* earth card */
        /* Globe Section Styles */
/* 🌍 Globe Section */
.globe {
  background: #000; /* dark background for contrast */
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.globe .heading {
  color: #fff;
  margin-bottom: 2rem;
}

.globe-container {
  position: relative;
  width: 400px;
  max-width: 90%;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.globe .location-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64a3f5;
  font-size: 14px;
  font-weight: 500;
  justify-content: center;
}

.globe .location-header img {
  width: 20px;
  height: auto;
  border-radius: 2px;
}

.globe-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  place-items: center;
  place-content: center;
}

.globe-mask {
  width: 100%;
  aspect-ratio: 1;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 60%, transparent 70%);
  mask-image: radial-gradient(circle at 50% 50%, #000 60%, transparent 70%);
}

#globe-canvas {
  width: 100%;
  height: 100%;
}

.datetime-info {
  color: #e5e7eb;
  font-size: 14px;
  text-align: center;
}

/* 📱 Mobile */
@media (max-width: 600px) {
  .globe-container {
    width: 100%;
    padding: 16px;
  }
}

 .globe-container {
  position: relative;   /* makes legend position relative to this */
  display: inline-block;
}

.tech-legend {
  position: absolute;
  top: 20px;       /* adjust placement */
  right: 20px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  font-family: sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

.tech-legend h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: #4dabf7;
}

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

.tech-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
}


.tech-legend li span {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.scrollElement {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10000px;  /* big enough scroll area */
  z-index: 4;
}
/* --- GitHub Section Social Icons --- */
.github-section a img {
  width: 45px;        /* 🔧 adjust between 45–65px depending on how compact you want */
  height: auto;
  margin: 8px 12px;   /* space between icons */
  transition: transform 0.3s ease, filter 0.3s ease;
  vertical-align: middle;
  border-radius: 10px; /* optional for rounded edges */
}

/* Hover animation for nice UI feedback */
.github-section a img:hover {
  transform: scale(1.1);
  filter: brightness(1.1);
}

/* Optional: make icons responsive */
@media (max-width: 768px) {
  .github-section a img {
    width: 45px;
    margin: 6px 10px;
  }
}
/* blog Section -Layout */
/* ---------- Blog Section ---------- */
.blog {
  background: #1e1329;
  padding: 6rem 9%;
  text-align: center;
}

.blog .heading {
  color: #c7c7c7;
}

/* ---------- Controls ---------- */
.blog-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.blog-controls input {
  padding: 1rem 1.5rem;
  width: 300px;
  border-radius: 10px;
  border: 2px solid #2506ad;
  font-size: 1.6rem;
  outline: none;
}

.tag-filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.tag-filters .tag {
  background: #2506ad;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.3s;
}

.tag-filters .tag.active,
.tag-filters .tag:hover {
  background: #ff7b00;
}

/* ---------- Blog Cards ---------- */
.blog-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-content: center;
}

.blog-card {
  background: linear-gradient(135deg, #2a00b7, #ff0099);
  border-radius: 12px;
  padding: 2rem;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, background 0.3s, color 0.3s;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-card h3 {
  font-size: 1.8rem;
  color: #c0c0c0;
}

.blog-card p {
  font-size: 1.4rem;
  margin-top: 0.5rem;
  color: #ffffff;
}

.blog-card a {
  display: inline-block;
  margin-top: 1rem;
  color: #ecff58;
  font-weight: 600;
  text-decoration: none;
}

/* ---------- View More Button ---------- */
.view-more {
  margin-top: 3rem;
}

.view-more .btn {
  padding: 1.3rem 3rem;
  background: linear-gradient(135deg, #2506ad, #ff7b00);
  color: white;
  font-size: 1.6rem;
  border-radius: 50px;
  transition: transform 0.3s ease, background 0.3s;
}

.view-more .btn:hover {
  transform: translateY(-3px);
}

/* ---------- Dark Mode ---------- */
body.dark .blog {
  background: #1a0f2f;
}

body.dark .blog .heading {
  color: #e0e0e0;
}

body.dark .blog-card {
  background: #2c1b48;
  color: #f0f0f0;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

body.dark .blog-card h3 {
  color: #ff7b00;
}

body.dark .blog-card p {
  color: #ddd;
}

body.dark .blog-card a {
  color: #ff7b00;
}

body.dark .tag-filters .tag {
  background: #2506ad;
  color: white;
}

body.dark .tag-filters .tag.active,
body.dark .tag-filters .tag:hover {
  background: #ff7b00;
}

body.dark .blog-controls input {
  background: #3a1e6d;
  color: #f0f0f0;
  border: 2px solid #2506ad;
}

/* === 3D Globe + Cards Layout === */
.globe-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

/* === THIS IS ME CARD === */
.thisisme-card {
  width: 350px;
  height: 440px;
  background: linear-gradient(180deg, #FDB913 0%, #FFD54F 50%, #FDB913 100%);
  border-radius: 40px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(253, 185, 19, 0.3);
}

.thisisme-card:hover {
  transform: translateY(-10px);
}

.thisisme-card .sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  opacity: 0;
  animation: sparkle 3s infinite;
}

.thisisme-card .sparkle:nth-child(1){top:20%;left:15%;animation-delay:0s;}
.thisisme-card .sparkle:nth-child(2){top:30%;right:20%;animation-delay:1s;}
.thisisme-card .sparkle:nth-child(3){top:50%;left:25%;animation-delay:2s;}
.thisisme-card .sparkle:nth-child(4){top:15%;right:30%;animation-delay:1.5s;}
.thisisme-card .sparkle:nth-child(5){top:40%;right:15%;animation-delay:0.5s;}

@keyframes sparkle {
  0%,100%{opacity:0;transform:scale(0);}
  50%{opacity:1;transform:scale(1);}
}

.thisisme-card .text-container {
  position: absolute;
  top: 50px;
  right: 50px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.thisisme-card:hover .text-container { opacity: 1; }

.thisisme-card .text {
  font-size: 28px;
  font-weight: 600;
  color: #2c2c2c;
  text-align: right;
}

.thisisme-card .arrow {
  position: absolute;
  top: 80px;
  right: 140px;
  width: 70px;
  height: 70px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.thisisme-card:hover .arrow {
  opacity: 1;
  transform: translateY(-5px);
  transition: all 0.4s ease;
}

.thisisme-card .glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.thisisme-card .image-container {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 70%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.thisisme-card .profile-image {
  width: 85%;
  height: 100%;
  object-fit: cover;
}

/* === SOCIAL CARD === */
.social-card {
  background: linear-gradient(135deg, #c7134f, #e85d75, #ff8fa3);
  border-radius: 30px;
  padding: 55px 45px;
  color: white;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  width: 350px;
  text-align: center;
}

.social-card h1 {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.social-card .grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.social-box {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.social-box:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-5px);
}
/* Replace everything from here ↓ */
/* === ICON FIXES === */
.github-icon, .instagram-icon, .linkedin-icon, .youtube-icon {
  width: 45px;
  height: 45px;
  background: white;
  border-radius: 12px;
  padding: 6px;
  display: block;
}

/* GitHub */
.github-icon path {
  fill: #24292e;
}

/* Instagram */
.instagram-icon {
  background: radial-gradient(circle at 30% 107%, 
    #fdf497 0%, 
    #fd5949 45%, 
    #d6249f 60%, 
    #285AEB 90%);
}
.instagram-icon path {
  fill: white;
}

/* LinkedIn */
.linkedin-icon {
  background: #0a66c2;
}
.linkedin-icon path {
  fill: white;
}

/* YouTube */
.youtube-icon path {
  fill: #ff0000;
}


.social-box svg {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-box:hover svg {
  transform: scale(1.15);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}



/* === Responsive Layout === */
@media (max-width: 900px) {
  .globe-section { flex-direction: column; }
  .thisisme-card { width: 100%; height: auto; } .social-card { width: 100%; height: auto; }
}
.globe-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem; /* space between cards and globe */
  flex-wrap: wrap; /* ensures responsiveness */
  margin-top: 3rem;
}

.left-card,
.right-card,
.globe-container {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.globe-container {
  max-width: 400px;
  position: relative;
}

.info-card {
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 768px) {
  .globe-section {
    flex-direction: column;
  }

  .left-card, .right-card, .globe-container {
    flex: 1 1 100%;
  }
}
.globe {
  position: relative;
  z-index: 2; /* stays above background but below scroll animation */
  overflow: hidden;
  min-height: 100vh;
}
/* === Bhagavad Gita Section === */
/* === Section Background (Blur Glassy Look) === */
.gita-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

/* Blurred glass background (outside card) */
.gita-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(31, 20, 41);
  backdrop-filter: blur(20px);
  z-index: 0;
}

/* === Glass Card with Krishna Video === */
.gita-content {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 850px; /* bigger card */
  padding: 2.5rem 3rem;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.5s ease;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
}

/* Krishna Video inside Card */
.gita-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 1; /* clear video, no black tint */
}

/* === Golden Aura on Hover === */
.gita-content:hover {
  box-shadow: 0 0 25px rgba(253, 184, 19, 0.35), 0 0 60px rgba(253, 184, 19, 0.15);
  transform: scale(1.03);
}

.gita-content::before {
  content: '';
  position: absolute;
  inset: -25px;
  background: radial-gradient(circle, rgba(253,184,19,0.05) 40%, rgba(253,184,19,0.15) 80%);
  border-radius: 25px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.gita-content:hover::before {
  opacity: 1;
  animation: auraPulse 3s ease-in-out infinite;
}

/* === Text === */
.gita-text .sanskrit {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffd700;
  font-family: "Noto Serif Devanagari", serif;
}

.gita-text .transliteration {
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}

.gita-text .translation {
  font-size: 1.1rem;
  color: #e0e0e0;
  margin-bottom: 1rem;
}

.gita-text .source {
  font-size: 1rem;
  font-weight: 600;
  color: #ccc;
  text-align: right;
}


/* === Animations === */

@keyframes blink-caret {
  50% { border-color: #fdb813; }
}

@keyframes auraPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.05); }
}

/* === Responsive === */
@media (max-width: 768px) {
  .gita-content {
    padding: 1.5rem 1.2rem;
    max-width: 95%;
  }

  .gita-text .sanskrit {
    font-size: 1.3rem;
  }

  .gita-text .transliteration {
    font-size: 1.1rem;
  }

  .gita-text .translation {
    font-size: 0.95rem;
  }
}
.gita-content {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 850px;
  height: 470px; /* fixed height */
  padding: 2.5rem 3rem;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.5s ease;
  cursor: pointer;
  background: rgba(50, 26, 26, 0.05);
}
.gita-text {
  position: absolute;      /* Position inside card */
  top: 50%;                /* Vertical center */
  right: 3rem;             /* Distance from right edge */
  transform: translateY(-50%); /* Center vertically */
  text-align: right;       /* Align text to the right */
  width: 47%;              /* Optional: control text width */
}
/* === Responsive: Bhagavad Gita Section (Mobile & Tablet) === */
@media (max-width: 768px) {
  /* Increase section height */
  .gita-section {
    height: auto;
    min-height: 75vh;          /* was 55vh → more vertical space */
    padding: 3rem 1.5rem;      /* add more breathing room */
  }

  /* Make the card bigger */
  .gita-content {
    max-width: 95%;            /* slightly wider on small screens */
    height: auto;              /* let it grow naturally */
    min-height: 420px;         /* ensures card has decent height */
    padding: 2rem 1.5rem;      /* increase inner spacing */
  }

  /* Adjust text area for balance */
  .gita-text {
    width: 80%;
    text-align: center;
    margin-top: 1.2rem;
  }

  /* Make fonts slightly larger for better readability */
  .gita-text .sanskrit {
    font-size: 1.6rem;
  }

  .gita-text .transliteration {
    font-size: 1.15rem;
  }

  .gita-text .translation {
    font-size: 1.3rem;
  }

  .gita-text .source {
    font-size: 1rem;
  }
}

/* For smaller phones (<480px) */
@media (max-width: 480px) {
  .gita-section {
    min-height: 65vh;          /* still roomy but smaller */
    padding: 2rem 1rem;
  }

  .gita-content {
    min-height: 380px;
    padding: 1.8rem 1rem;
  }
}


/* === End of Bhagavad Gita Section === */
/* ---------- Reset + Base ---------- */
/* ---------- Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: white;
}


/* ---------- Creative Section ---------- */
.creative {
  position: relative;
  text-align: center;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: radial-gradient(circle at center, #0b0b0d 0%, #050505 100%);
  overflow: hidden;
}

/* ---------- Gradient Animated Heading ---------- */
.creative h1 {
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 700;
  position: absolute;
  top: 15%; /* higher so image fits below */
  z-index: 1;
  max-width: 85%;
  line-height: 1.2;
  background: linear-gradient(90deg, #ff4d4d, #ff00cc, #0066ff, #00ffee, #ff4d4d);
  background-size: 400%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeUp 1.5s ease forwards, gradientShift 6s ease-in-out infinite;
}

/* ---------- Rising & Floating Image ---------- */
.creative img {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  height: 500px; /* adjust as needed */
  width: auto;
  z-index: 2;
  opacity: 0;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.7));
  animation: riseUp 2s ease forwards 0.8s, floating 4s ease-in-out infinite 2s;
}

/* ---------- Keyframes ---------- */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes riseUp {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(60px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes floating {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  /* Shrink the whole section height */
  section.creative {
    height: auto;              /* let content decide height */
    min-height: 80vh;          /* ensure it's not too short */
    padding: 1rem 0.3rem;      /* reduce top & bottom spacing */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  /* Adjust heading */
  .creative h1 {
    font-size: 2.5rem;
    margin: 0.5rem 0;          /* smaller top-bottom margin */
    text-align: center;
  }

  /* Optimize image responsiveness */
  .creative img {
    width: 80%;
    max-height: 70vh;          /* shorter image */
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    display: block;
  }
}

/* ---------- General Reset ---------- */
body {
  margin: 0;
  background: #0b0b0d; /* Dark background */
  font-family: 'Poppins', sans-serif;
  color: white;
}

/* ---------- Hero Section ---------- */
.hero {
  text-align: center;
  padding: 10vh 2rem;
  background: linear-gradient(to bottom, #0b0b0d, #151515);
}

/* ---------- Small Intro Text ---------- */
.small-text {
  font-size: 1.2rem;
  font-weight: 400;
  color: #f3c6d3;
  margin-bottom: 0.5rem;
}

/* ---------- Main Title ---------- */
.title {
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}

/* ---------- Gradient Text ---------- */
.gradient-text {
  background: linear-gradient(90deg, #f3c6d3, #8a2be2, #7f37ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Developer Text ---------- */
.dev-text {
  display: block;
  font-size: 1.5rem;
  color: #7f37ff;
  font-weight: 500;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .title {
    font-size: clamp(2.5rem, 9vw, 5rem);
  }
  .dev-text {
    font-size: 1.2rem;
  }
}
/* === Custom Cursor Styles === */

/* Cursor — global, topmost */
.cursor {
  position:absolute;           /* global to viewport */
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;      /* don't block clicks */
  z-index: 2147483647;       /* highest safe z-index to avoid overlays */
}

/* Balls */
.cursor__ball {
  position: absolute;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference; /* auto-invert on light/dark */
  opacity: 0.9;
  transition: transform 0.18s ease, opacity 0.18s ease;
  will-change: transform;
}

/* Small/Big sizes */
.cursor__ball--big svg { width: 36px; height: 36px; }
.cursor__ball--small svg { width: 12px; height: 12px; }

.cursor__ball circle { fill: #f7f8fa; transition: fill .12s ease; }

/* If some sections use transforms and still clip, this forces it above */
/* === Global Custom Cursor Fix === */
.cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 999999; /* ensure it's always above everything */
}

.cursor__ball {
  position: absolute;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference; /* lets text remain visible */
  opacity: 0.8;
  transition: transform 0.18s ease, opacity 0.18s ease;
  will-change: transform;
}

.cursor__ball--big svg {
  width: 36px;
  height: 36px;
}
.cursor__ball--small svg {
  width: 12px;
  height: 12px;
}

.cursor__ball circle {
  fill: #f7f8fa;
  transition: fill 0.2s ease;
}

/* === Force high z-index for potential blockers === */
#particles-js,
.spline-container,
video.bg-video,
canvas,
.globe,
.globe-container,
section {
  z-index: 1 !important;
}
.cursor {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 999999;
}

body {
  position: relative; /* ensures absolute cursor anchors to full body */
}
/* Hide custom mouse pointer / cursor on mobile and tablet */
@media (max-width: 1024px) {
  body, 
  html, 
  canvas, 
  .spline-scene, 
  #canvas3d, 
  .custom-cursor {
    cursor: none !important;
  }
}

/* === 🎧 Spotify-style Music Button === */
/* === 🎧 Spotify-style Music Button (Perfect Alignment Next to Dark Mode Toggle) === */
.dark_mode {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px; /* space between dark mode and music button */
}

/* Music Button */
.music-btn {
  position: relative;
  width: 38px;
  height: 38px;
  background: linear-gradient(145deg, #1db954, #189d45);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
}

.music-btn i {
  color: #fff;
  font-size: 1.3rem;
  transition: transform 0.2s ease;
}

.music-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(29, 185, 84, 0.6);
}

/* When active (music playing) */
.music-btn.active {
  background: linear-gradient(145deg, #ff4757, #e84118);
}

.music-btn.active i {
  transform: scale(1.2);
}

/* 🌙 Dark Mode Support */
body.dark-mode .music-btn {
  background: linear-gradient(145deg, #1e1e1e, #2a2a2a);
  box-shadow: 0 0 8px rgba(255,255,255,0.1);
}

body.dark-mode .music-btn.active {
  background: linear-gradient(145deg, #c0392b, #e74c3c);
}

/* Responsive alignment */
@media (max-width: 768px) {
  .dark_mode {
    top: 15px;
    right: 2rem;
    gap: 8px;
  }

  .music-btn {
    width: 34px;
    height: 34px;
  }

  .music-btn i {
    font-size: 1.1rem;
  }
}

/* === Navbar Styles === */

body.dark .blog-card {
  background: #2c1b48 !important;
  color: rgba(255, 255, 255, 0.2) !important;
}

body.dark .blog-card h3 {
  color: #ff7b00 !important;
}

body.dark .blog-card p {
  color: #ddd !important;
}
