@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;
}
html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  background: #f7f7f7;
  font-family: "Poppins", sans-serif;
}

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


/* 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;
}
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: #0f9d8a;
  border-bottom: 0.2rem solid #0f9d8a;
  padding: 0.5rem 0;
}
/* navbar ends */

/* hamburger icon starts*/
#menu {
  font-size: 3rem;
  cursor: pointer;
  color: rgb(24, 2, 63);
  display: none;
}
@media (max-width: 768px) {
  #menu {
    display: block;
  }
  header .navbar {
    position: fixed;
    top: 6.5rem;
    right: -120%;
    width: 75%;
    height: 100%;
    text-align: left;
    align-items: flex-start;
    background-color: #0e0f31;
  }
  header .navbar ul {
    flex-flow: column;
    padding: 1rem;
  }
  header .navbar ul li {
    text-align: center;
    width: 100%;
    margin: 1rem 0;
    border-radius: 0.5rem;
    width: 26rem;
  }
  header .navbar ul li a {
    display: block;
    padding: 1rem;
    text-align: left;
    color: #fff;
    font-size: 2rem;
  }
  header .navbar ul li a.active,
  header .navbar ul li a:hover {
    padding: 1rem;
    color: #fff;
    border-radius: 0.5rem;
    border-bottom: 0.5rem solid #0f9d8a;
  }
  .fa-times {
    transform: rotate(180deg);
  }
  header .navbar.nav-toggle {
    right: 0;
  }
}
/* hamburger icon ends */

/* hero section starts*/
.home {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  min-height: 100vh;
  align-items: center;
}
.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 h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #002057;
}
.home .content h3 span {
  font-size: 1.5rem;
  font-weight: 800;
  /* color: #ff7b00; */
  color:#2506ad
}
.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);
}
.home .image {
  order: 1;
}

.home .content {
  order: 2;
  text-align: left;
}
/* 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 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: 40rem;
  height: auto;
  border-radius: 5%;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.6);
  transition: 0.3s;
  cursor: pointer;
}

.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;
}

.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;
  
}
.skills h2 {
  color: #fff;
}

.skills .container {
  /* first two lines added for scrolling */
  overflow-y: auto;
  max-height: 70vh;

  color: #fff;
  border-radius: 1rem;
  padding: 2rem;
  width: 90%;
  margin: auto;
  margin-top: 2rem;
}
/* Next 4 for scrollbar styling */
.skills .container::-webkit-scrollbar {
  width: 10px;
}

.skills .container::-webkit-scrollbar-track {
  background: linear-gradient(to bottom, #57059e, #4a00e0);
}

.skills .container::-webkit-scrollbar-thumb {
  background-color: rgb(255, 230, 0);;
  border-radius: 10px;
}

.skills .container::-webkit-scrollbar-thumb:hover {
  background-color: #ccc;
}


.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);
  
  transition: 0.2s;
}
.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%;
  }
}

/* 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*/



/* ===== DARK CODER CIRCUIT BACKGROUND ===== */

.home {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 191, 255, 0.08), transparent 25%),
    radial-gradient(circle at 80% 30%, rgba(0, 120, 255, 0.08), transparent 25%),
    radial-gradient(circle at 75% 75%, rgba(0, 255, 200, 0.05), transparent 30%),
    linear-gradient(135deg, #02050b 0%, #07101a 45%, #02070e 100%);
}

.circuit-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.circuit-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.22;
  animation: gridMoveFast 16s linear infinite;
}

.circuit-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.circuit-line {
  fill: none;
  stroke: rgba(70, 235, 255, 0.24);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 5px rgba(0, 238, 255, 0.22));
}

.circuit-node {
  fill: #78f4ff;
  opacity: 0.9;
  filter: drop-shadow(0 0 6px rgba(120, 244, 255, 0.75));
  animation: nodePulseFast 1s ease-in-out infinite alternate;
}

.data-dot {
  fill: #ffffff;
  filter:
    drop-shadow(0 0 5px #8ef7ff)
    drop-shadow(0 0 12px #1fdfff)
    drop-shadow(0 0 20px rgba(31, 223, 255, 0.7));
}

.data-dot-alt {
  fill: #6cecff;
}

.data-dot-soft {
  fill: #b7fdff;
  opacity: 0.85;
}

/* content above background */
.home .image,
.home .content {
  position: relative;
  z-index: 2;
}

.home .image img {
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5));
}

/* text for dark background */
/* Hero text — stronger visual focus */

.home .content h2,
.home .content h3,
.home .content p {
  color: #ffffff;
  text-shadow: none;
}

.home .content h2 span,
.home .content h3 span,
.home .content p .typing-text {
  color: #edcb59;
  font-weight: 700;
  text-shadow: none;
}

/* button */
.home .content .btn {
  background: linear-gradient(135deg, #00b8ff, #3a66ff);
  box-shadow: 0 0 18px rgba(0, 184, 255, 0.35);
}

.home .content .btn:hover {
  background: linear-gradient(135deg, #1bd7ff, #5c7cff);
  box-shadow: 0 0 26px rgba(0, 184, 255, 0.55);
}

/* social icons */
.home .socials .social-icons a {
  background: #081321;
  color: #ffffff;
  border: 1px solid rgba(78, 237, 255, 0.25);
  box-shadow: 0 0 12px rgba(78, 237, 255, 0.12);
}

.home .socials .social-icons a:hover {
  background: #0d1b2d;
  transform: translateY(-4px);
  box-shadow: 0 0 18px rgba(78, 237, 255, 0.25);
}

.home .social-icons .leetcode img {
  filter: none;
}

/* animations */
@keyframes gridMoveFast {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(42px, 42px);
  }
}

@keyframes nodePulseFast {
  from {
    opacity: 0.5;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1.28);
  }
}

@media screen and (max-width: 900px) {
  .circuit-svg {
    opacity: 0.75;
  }
}


/* ===== CUSTOM SCROLLBAR ===== */

/* Chrome, Safari and Edge */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #eef7f5;
}

::-webkit-scrollbar-thumb {
  background: #0f9d8a;
  border: 2px solid #eef7f5;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #087c6d;
}

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: #0f9d8a #eef7f5;
}

/* ===== ABOUT RESUME BUTTON ===== */

.about .content .resumebtn .btn {
  background: linear-gradient(
    135deg,
    #0f9d8a,
    #087c6d
  );
  color: #ffffff;
  box-shadow: 0 7px 18px rgba(15, 157, 138, 0.28);
  border: none;
}

.about .content .resumebtn .btn:hover {
  background: linear-gradient(
    135deg,
    #18b7a0,
    #0b6f63
  );
  box-shadow: 0 10px 24px rgba(15, 157, 138, 0.4);
  transform: translateY(-2px);
}

/* ===== ABOUT SECTION COLORS ===== */

.about .heading i,
.about .heading span {
  color: #0f9d8a;
}

.about .content .tag {
  color: #087c6d;
}

/* ===== FINAL ABOUT DETAILS ===== */

.about .about-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}

.about .about-detail .detail-label {
  color: #1e201f !important;
  font-weight: 700;
}

.about .about-detail a,
.about .about-detail a span {
  color: #0f9d8a !important;
  font-weight: 500;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.about .about-detail a:hover,
.about .about-detail a:hover span {
  color: #065f55 !important;
  text-decoration: underline;
}
/* ===== UPDATED SKILLS BACKGROUND ===== */

.skills {
  background:
    radial-gradient(
      circle at 12% 20%,
      rgba(24, 183, 160, 0.22),
      transparent 32%
    ),
    radial-gradient(
      circle at 88% 75%,
      rgba(39, 125, 161, 0.24),
      transparent 34%
    ),
    linear-gradient(
      135deg,
      #0a2433 0%,
      #103548 48%,
      #0b2d3a 100%
    ) !important;
}

.skills .container {
  background: rgba(8, 30, 44, 0.76) !important;
  border: 1px solid rgba(40, 210, 183, 0.3) !important;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.28),
    0 0 30px rgba(40, 210, 183, 0.08) !important;
  backdrop-filter: blur(8px);
}

.skills .container .bar {
  background: linear-gradient(
    145deg,
    #102b40,
    #0c2235
  ) !important;

  border: 1px solid rgba(47, 190, 174, 0.25) !important;
}

.skills .container .bar:hover {
  background: linear-gradient(
    145deg,
    #14394e,
    #0d2a3b
  ) !important;

  border-color: #23c9b2 !important;

  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(35, 201, 178, 0.22) !important;
}

.skills .heading {
  color: #ffffff !important;
}

.skills .heading i,
.skills .heading span {
  color: #2dd4bf !important;
}

/* ===== CONSISTENT SCROLL-TO-TOP BUTTON ===== */

#scroll-top {
  position: fixed;
  right: 2rem;
  bottom: -8rem;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 4.8rem;
  height: 4.8rem;
  padding: 0;

  background: #168be3;
  border: 2px solid #60baff;
  border-radius: 50%;

  box-shadow:
    0 7px 18px rgba(22, 139, 227, 0.35),
    0 0 14px rgba(22, 139, 227, 0.18);

  opacity: 0;

  transition:
    bottom 0.4s ease,
    opacity 0.4s ease,
    background 0.3s ease,
    transform 0.3s ease;
}

#scroll-top.active {
  bottom: 2rem;
  opacity: 1;
}

#scroll-top:hover {
  background: #0876c9;
  transform: translateY(-4px);
}

/* White upward chevron */

.scroll-chevron {
  position: relative;
  width: 2rem;
  height: 1.2rem;
}

.scroll-chevron::before,
.scroll-chevron::after {
  position: absolute;
  top: 0.4rem;

  width: 1.35rem;
  height: 0.4rem;

  background: #ffffff;
  border-radius: 1rem;

  content: "";
}

.scroll-chevron::before {
  left: 0;
  transform: rotate(-45deg);
}

.scroll-chevron::after {
  right: 0;
  transform: rotate(45deg);
}
/* Keep every skill card and icon the same size */

.skills .container .bar {
  min-width: 0;
  overflow: hidden;
}

.skills .container .bar .info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.skills .container .bar .info img {
  width: 6rem !important;
  height: 6rem !important;
  max-width: 6rem !important;
  max-height: 6rem !important;
  object-fit: contain;
}