@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;800&display=swap");

html {
  scroll-behavior: smooth;
}

/* Lenis smooth scroll helper styles */
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/*======== Using Css Custom Variables =========*/

body.dark {
  --bg-color1: #0b0f19;
  --bg-color2: #1c1e2a;
  --color1: #fff;
  --color2: #ddd;
}

body:not(.dark) {
  --bg-color1: #fbfdff;
  --bg-color2: #f5f5f5;
  --color1: #3e4455;
  --color2: #000;
}

/*======= Universal CSS Properties =======*/

*,
::after,
::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  outline: none;
}

li {
  list-style: none;
}

h1 {
  font-size: 3rem;
  color: var(--color1);
  font-weight: 600;
}

h2 {
  font-size: 2.5rem;
  color: var(--color1);
  font-weight: 600;
  text-align: center;
}

h4 {
  font-size: 1.25rem;
  color: var(--color1);
  font-weight: 600;
}

h6 {
  font-size: 1rem;
}

p {
  color: var(--color1);
}

p strong {
  font-weight: 500;
  color: var(--color2);
}

img {
  width: 100%;
  object-fit: cover;
  vertical-align: middle;
}

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

/* ========== Dark And Light Mode Toggle ======== */

.theme-toggle {
  position: fixed;
  top: 50%;
  z-index: 10;
  right: 0;
  border: none;
  background-color: var(--color2);
}

.theme-toggle:focus-visible,
.navbar-toggle:focus-visible,
.portfolio-navbar ul li a:focus-visible,
#social-container a:focus-visible {
  outline: 2px solid #4d63dd;
  outline-offset: 2px;
  border-radius: 8px;
}

body:not(.dark) .theme-toggle .lni-night,
body.dark .theme-toggle .lni-sun {
  cursor: pointer;
  color: var(--bg-color2);
  padding: 10px 10px;
  display: block;
  font-size: 1.25rem;
}

body:not(.dark) .theme-toggle .lni-sun {
  display: none;
}

body.dark .theme-toggle .lni-night {
  display: none;
}

/*========= Navigation Link When Scroll Active =======*/

.portfolio-navbar ul li a.active-link {
  font-weight: 800;
}

/*======== CSS Header Stick To Top =========*/

header.header-sticky {
  position: fixed;
  background-color: #f5f5f5;
  z-index: 2000;
  transition: 0.4s;
  box-shadow: 0 4px 6px 0 rgba(12, 0, 46, 0.05);
}

.header-sticky .brand-name a {
  color: #3e4455;
}

body.dark .header-sticky {
  background-color: var(--bg-color1); /* match your dark theme */
}

body.dark .header-sticky .navbar-toggle i {
  color: #fff; /* make hamburger icon white in dark mode */
}

.header-sticky .portfolio-navbar ul li a {
  color: #343434;
}

header.header-sticky .portfolio-navbar.show ul li a {
  color: var(--color1);
}

/*======= Wrapper =======*/

.portfolio-container {
  max-width: 1070px;
  margin: 0 auto;
  padding: 0 15px;
}

.portfolio-row {
  display: flex;
  flex-wrap: wrap;
}

/*======= Styling Navigation Bar  =======*/

header {
  left: 0;
  right: 0;
  z-index: 20;
  transition: 0.8s;
  padding: 15px;
  position: fixed;
  background-color: var(--bg-color1);
}

header .portfolio-row.header-wrap {
  justify-content: space-between;
  align-items: center;
}

.brand-name a {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--color1);
}

.portfolio-navbar {
  display: none;
}

.navbar-toggle {
  border: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.navbar-toggle i {
  font-size: 1.25rem;
  line-height: 30px;
  cursor: pointer;
  color: var(--color1);
}

/*======= Responsive Navigation Menu =======*/

.portfolio-navbar.show {
  display: block;
  position: absolute;
  background-color: var(--bg-color2);
  width: calc(100% - 20px);
  left: 10px;
  top: calc(100% + 8px);
  padding: 10px 15px;
  border: 1px solid rgba(77, 99, 221, 0.28);
  border-radius: 12px;
  box-shadow: 0 14px 28px rgba(18, 24, 64, 0.18);
  text-align: center;
  z-index: 40;
}

body.dark .portfolio-navbar.show {
  border-color: rgba(141, 160, 255, 0.35);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
}

.portfolio-navbar ul li {
  display: block;
}

.portfolio-navbar ul li a {
  color: var(--color1);
  text-transform: uppercase;
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 42px;
}

/* ======== Style for About Section  =======*/

#about {
  padding-top: 100px;
  background-color: var(--bg-color1);
}

.about-content {
  align-items: center;
}

.about-intro {
  margin: 3rem 0;
  width: 100%;
  order: 2;
  text-align: center;
}

.about-text h3 {
  color: var(--color1);
  margin-bottom: 10px;
}

/*======== CSS Main Heading =======*/

h1 strong,
h2 strong {
  background-image: linear-gradient(to right, #977ec7 0%, #f987d6 100%);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

/* ======= Style for About image =======*/

.about-image {
  width: 100%;
  order: 1;
  position: relative;
  z-index: 2;
  transition-duration: 0.4s;
  cursor: pointer;
}

.about-image::before {
  position: absolute;
  width: 100%;
  height: 100%;
  content: "";
  background-image: linear-gradient(11deg, #6ec1e4 0%, #54595f 100%);
  z-index: -1;
  transition: all 0.5s ease-in-out;
  border-radius: 100% 73% 100% 72% / 99% 86% 75% 63%;
  box-shadow: 2px 10px 0px 0px rgba(216, 19, 19, 0.16);
}

.about-image:hover {
  transform: translateY(-10.5px);
}

.about-image img {
  border-radius: 100% 73% 100% 72% / 99% 86% 75% 63%;
}

.about-image:hover::before {
  filter: drop-shadow(0 0 30px rgba(130, 237, 255, 0.97));
}

/*======= Style for Resume Section  =======*/

#resume {
  padding: 60px 0;
  background-color: var(--bg-color2);
}

/*======= Resume Intro  =======*/
.resume-intro {
  width: 100%;
}

.resume-text {
  margin-top: 18px;
}

/*======= Hello Button  =======*/

.button-container {
  display: flex;
  gap: 20px; /* Adds space between buttons */
  margin-top: 20px;
}

.hello-btn a,
.download-btn a {
  display: inline-block;
  padding: 10px 20px;
  background: #4d63dd;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: 0.3s ease-in-out;
}

.hello-btn a:hover,
.download-btn a:hover {
  background: #d5d5d5;
  color: #000;
}

/*======= Style for Resume Body  =======*/

.resume-body {
  width: 100%;
  margin-top: 20px;
}

.resume-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.btn {
  position: relative;
  padding: 0 10px;
  background-color: #d5d5d5;
  font-size: 1.1rem;
  border-radius: 5px;
  line-height: 40px;
  color: #000;
  cursor: pointer;
  border: 0;
  font-family: "Poppins", sans-serif;
  margin-top: 1rem;
  transition: 0.4s;
}

.btn:not(:last-child) {
  margin-right: 15px;
}

.btn:hover,
.btn.active {
  background-color: #4d63dd;
  color: #fff;
}

/*======= Style for Resume Tab  =======*/

.resume-tab {
  display: none;
}

.resume-tab.active {
  display: block;
  animation: fadeIn 1s ease;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.institution,
.organization {
  color: #78add9;
  font-weight: 400;
}

.years {
  color: var(--color1);
}

.qualification-content {
  padding: 1rem 2.1rem;
  position: relative;
}

.qualification-content::after {
  position: absolute;
  content: "";
  height: 7px;
  width: 7px;
  left: 8px;
  top: 25px;
  transform: rotate(45deg);
  background: #e15747;
}

.qualification-content::before {
  content: "";
  height: 70%;
  width: 3px;
  left: 10px;
  position: absolute;
  background: #e8e8e8;
}

/*========== Style For Resume Skills Tab ==========*/

#skills1.resume-tab.active {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

#skills1 .bar-content {
  margin-bottom: 0;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid rgba(77, 99, 221, 0.24);
  background: linear-gradient(
    160deg,
    rgba(77, 99, 221, 0.16),
    rgba(255, 255, 255, 0.1)
  );
  box-shadow: 0 10px 24px rgba(18, 25, 66, 0.1);
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

body.dark #skills1 .bar-content {
  background: linear-gradient(
    160deg,
    rgba(77, 99, 221, 0.18),
    rgba(255, 255, 255, 0.04)
  );
}

#skills1 .bar-content:hover {
  transform: translateY(-4px);
  border-color: rgba(77, 99, 221, 0.56);
  box-shadow: 0 16px 34px rgba(16, 24, 70, 0.24);
}

#skills1 .bar-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 0;
  margin-bottom: 10px;
}

#skills1 .bar-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--color1);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.35;
}

#skills1 .bar-title i {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(77, 99, 221, 0.2);
  background: rgba(77, 99, 221, 0.12);
  font-size: 0.78rem;
}

#skills1 .bar-percentage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--color1);
  border: 1px solid rgba(77, 99, 221, 0.28);
  background: rgba(77, 99, 221, 0.1);
  font-weight: 700;
  font-size: 0.8rem;
}

#skills1 .bar-progress {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(120, 173, 217, 0.24);
  overflow: hidden;
}

#skills1 .progress-bar {
  width: 0;
  height: 100%;
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, #4d63dd, #78add9);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  transition-delay: 1.1s;
}

#skills1 .bar-content:nth-child(1) .progress-bar {
  background: linear-gradient(90deg, #4d63dd, #4285f4);
}

#skills1 .bar-content:nth-child(2) .progress-bar {
  background: linear-gradient(90deg, #5a67d8, #61dafb);
}

#skills1 .bar-content:nth-child(3) .progress-bar {
  background: linear-gradient(90deg, #22c55e, #61dafb);
}

#skills1 .bar-content:nth-child(4) .progress-bar {
  background: linear-gradient(90deg, #f97316, #f4c20d);
}

.resume-tab.active .progress-bar {
  animation: progress 1400ms ease-out 1;
}

@keyframes progress {
  from {
    width: 0;
    opacity: 0.2;
  }

  to {
    opacity: 1;
  }
}

/*======= Style for skills Section  =======*/

#skills_section,
#research,
#contact {
  background:
    radial-gradient(
      circle at 12% 18%,
      rgba(77, 99, 221, 0.14),
      transparent 38%
    ),
    radial-gradient(
      circle at 82% 80%,
      rgba(120, 173, 217, 0.18),
      transparent 42%
    ),
    var(--bg-color1);
}

#skills_section {
  padding: 70px 0;
}

#skills_section h2 {
  text-align: center;
  margin-bottom: 0.35rem;
}

.skill-row,
.skills-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
  margin-top: 2rem;
  align-items: stretch;
}

.skill-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 235px;
  border-radius: 18px;
  padding: 34px 28px;
  text-align: center;
  cursor: pointer;
  background: linear-gradient(
    160deg,
    rgba(77, 99, 221, 0.16),
    rgba(255, 255, 255, 0.12)
  );
  border: 1px solid rgba(77, 99, 221, 0.26);
  box-shadow: 0 12px 28px rgba(17, 24, 67, 0.12);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

body.dark .skill-card {
  background: linear-gradient(
    160deg,
    rgba(77, 99, 221, 0.2),
    rgba(255, 255, 255, 0.04)
  );
}

.skill-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    140deg,
    rgba(77, 99, 221, 0.82),
    rgba(120, 173, 217, 0.72)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.skill-card .icon,
.skill-card .skill-content {
  position: relative;
  z-index: 1;
}

.skill-card .icon {
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 50%;
  font-size: 1.65rem;
  color: var(--color1);
  border: 1px solid rgba(77, 99, 221, 0.22);
  background: rgba(77, 99, 221, 0.1);
  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}

.skills-row .skill-card:nth-child(2) .icon {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.12);
}

.skills-row .skill-card:nth-child(3) .icon {
  border-color: rgba(36, 150, 237, 0.3);
  background: rgba(36, 150, 237, 0.12);
}

.skill-content h6 {
  color: var(--color1);
  margin: 0.35rem 0 0.75rem;
  font-size: 1.08rem;
  transition: color 0.3s ease;
}

.skill-content p {
  color: var(--color1);
  opacity: 0.92;
  line-height: 1.65;
  font-size: 0.94rem;
  margin: 0 auto;
  max-width: 30ch;
  transition:
    color 0.3s ease,
    opacity 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-9px);
  border-color: rgba(77, 99, 221, 0.56);
  box-shadow: 0 20px 38px rgba(16, 24, 70, 0.28);
}

.skill-card:hover::before {
  opacity: 1;
}

.skill-card:hover .icon {
  transform: translateY(-4px) scale(1.05);
  color: #4d63dd;
  border-color: rgba(255, 255, 255, 0.7);
  background-color: #fff;
}

.skill-card:hover h6,
.skill-card:hover p {
  color: #fff;
  opacity: 1;
}

/*======= Style for project section  =======*/

#projects {
  padding: 60px 0;
  background-color: var(--bg-color2);
}

#research {
  padding: 60px 0;
}

.filter-wrap {
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.portfolio-filter-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 1rem;
}

#projects .portfolio-filter-nav {
  margin-top: 1.75rem;
}

/*======= Portfolio Gallery =======*/

#projects .portfolio-wrapper,
#research .portfolio-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 30px;
}

#research .research-wrapper {
  grid-template-columns: 1fr;
  align-items: stretch;
  align-content: stretch;
  grid-auto-rows: 1fr;
}

#research .research-card {
  display: flex;
  flex: 1 1 auto;
  height: 100%;
}

#research .research-card .research-item {
  width: 100%;
  height: 100%;
  min-height: 100%;
}

#research .research-card .research-content {
  min-height: 190px;
  display: flex;
  flex-direction: column;
}

#research .research-card .research-content p {
  flex: 1;
}

.research-ip-highlight {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  align-items: stretch;
  border-radius: 14px;
  border: 1px solid rgba(77, 99, 221, 0.3);
  background: linear-gradient(
    140deg,
    rgba(77, 99, 221, 0.12),
    rgba(120, 173, 217, 0.14)
  );
}

.research-ip-media {
  width: 100%;
  min-height: 180px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(77, 99, 221, 0.24);
  background: linear-gradient(
    145deg,
    rgba(77, 99, 221, 0.2),
    rgba(120, 173, 217, 0.24)
  );
}

.research-ip-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.research-ip-content {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.research-ip-content h4 {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.research-ip-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  align-items: stretch;
}

.research-ip-meta-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.18rem;
  height: 100%;
  min-height: 82px;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(77, 99, 221, 0.22);
  background: rgba(77, 99, 221, 0.08);
}

.research-ip-meta-item span {
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color1);
  opacity: 0.76;
}

.research-ip-meta-item strong {
  font-size: 0.92rem;
  color: var(--color1);
  line-height: 1.35;
}

.research-ip-content p {
  margin: 0;
}

.research-ip-summary {
  line-height: 1.6;
  color: var(--color1);
  max-width: 78ch;
}

.research-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
  margin-top: 1.8rem;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

#research .research-group {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  height: 100%;
}

.research-group-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color1);
  margin: 0;
}

#research .research-group .research-wrapper {
  margin-top: 0;
  flex: 1 1 auto;
  grid-auto-rows: 1fr;
  height: 100%;
}

.portfolio-item {
  position: relative;
}

.portfolio-item.show {
  animation: fadeIn 0.6s ease;
}

.portfolio-item.hide {
  display: none;
}

#research .research-card.hide {
  display: none;
}

#research .research-card.show {
  animation: fadeIn 0.6s ease;
}

.portfolio-card,
.research-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(77, 99, 221, 0.25);
  background: linear-gradient(
    160deg,
    rgba(77, 99, 221, 0.16),
    rgba(255, 255, 255, 0.15)
  );
  backdrop-filter: blur(4px);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

body.dark .portfolio-card,
body.dark .research-item {
  background: linear-gradient(
    160deg,
    rgba(77, 99, 221, 0.18),
    rgba(255, 255, 255, 0.03)
  );
}

.portfolio-card:hover,
.research-item:hover {
  transform: translateY(-8px);
  border-color: rgba(77, 99, 221, 0.65);
  box-shadow: 0 16px 35px rgba(27, 33, 90, 0.24);
}

.portfolio-card,
.research-item,
.portfolio-card:hover,
.research-item:hover {
  color: inherit;
}

.portfolio-media {
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(77, 99, 221, 0.18),
    rgba(120, 173, 217, 0.22)
  );
}

.portfolio-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.portfolio-card:hover .portfolio-media img,
.research-item:hover .portfolio-media img {
  transform: scale(1.06);
}

.portfolio-placeholder {
  flex-direction: column;
  gap: 8px;
  color: #2b3147;
  font-weight: 600;
}

body.dark .portfolio-placeholder {
  color: #f5f8ff;
}

.portfolio-placeholder i {
  font-size: 2rem;
  opacity: 0.8;
}

.portfolio-placeholder span {
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.portfolio-body,
.research-content {
  padding: 18px 20px 22px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.project-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(77, 99, 221, 0.35);
  padding: 4px 10px;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: var(--color1);
  background: rgba(77, 99, 221, 0.08);
}

.project-tag.featured {
  background-color: #4d63dd;
  border-color: #4d63dd;
  color: #fff;
}

.portfolio-body h4,
.research-content h4 {
  line-height: 1.35;
  margin-bottom: 10px;
}

.portfolio-body p,
.research-content p {
  color: var(--color1);
  opacity: 0.9;
  line-height: 1.6;
}

.research-type {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background-color: rgba(77, 99, 221, 0.14);
  border: 1px solid rgba(77, 99, 221, 0.3);
  color: var(--color1);
  padding: 4px 10px;
  font-size: 0.75rem;
  margin-bottom: 12px;
}

.research-type.patent {
  background-color: rgba(255, 162, 0, 0.15);
  border-color: rgba(255, 162, 0, 0.5);
}

.ip-showcase {
  margin-top: 26px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(77, 99, 221, 0.25);
  background: linear-gradient(
    160deg,
    rgba(77, 99, 221, 0.1),
    rgba(255, 255, 255, 0.08)
  );
}

body.dark .ip-showcase {
  background: linear-gradient(
    160deg,
    rgba(77, 99, 221, 0.15),
    rgba(255, 255, 255, 0.03)
  );
}

.ip-showcase h4 {
  margin-bottom: 14px;
}

.product-title {
  width: 100%;
  position: absolute;
  bottom: -45px;
  padding: 15px 30px;
  opacity: 0;
  transition: 0.6s;
  text-align: center;
  color: #fff;
}

.product-title h4,
.product-title p {
  color: #fff;
}

/*======= Style for achievements section  =======*/
#achievements {
  padding: 60px 0;
  background-color: var(--bg-color1);
}

#achievements .portfolio-wrapper {
  margin-top: 30px;
}

.achievements-item {
  position: relative;
  border-radius: 5px;
  overflow: hidden;
}

.achievements-item img {
  border-radius: 5px;
  height: 350px;
}

.achievements-item-content {
  position: absolute;
  left: 25px;
  top: 25px;
  right: 25px;
  bottom: 25px;
  background-color: rgba(16, 16, 16, 0.5);
  transition: 0.5s;
  transform: scale(1.15);
  opacity: 0;
}

.achievements-item:hover .achievements-item-content {
  opacity: 1;
  transform: scale(1);
}

.achievements-item:hover .product-title {
  bottom: 30%;
  opacity: 1;
}

.tap-hint {
  display: none;
  margin-top: 10px;
  font-size: 0.8rem;
  opacity: 0.85;
}

/*======= Style for Contact Section =======*/

#contact {
  padding: 60px 0;
}

/*======= Style for contact general  =======*/

.contact-general {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-card {
  text-align: center;
}

.contact-card .icon i {
  font-size: 2.5rem;
  color: var(--color1);
}

.contact-content {
  margin-top: 20px;
}

.contact-content h5 {
  font-size: 1rem;
  color: var(--color1);
  font-weight: 500;
}

.contact-content span,
.contact-content a {
  color: var(--color1);
}

.contact-content a {
  text-decoration: none;
  transition: color 0.25s ease;
}

.contact-content a:hover {
  color: #4d63dd;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ======= Style For Contact Form ======== */

/* ======= Style For Contact Form ======== */

#contact-form {
  margin: 2rem auto;
}

body:not(.dark) #contact-form {
  background-color: #ffffff;
  border: 1px solid #dce4f4;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 18px 36px rgba(54, 77, 130, 0.1);
}

#contact-form label {
  margin-bottom: 5px;
  color: var(--color1);
}

.name-email {
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
  width: 100%;
}

.input-control,
.contact-msg {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  background-color: #f6f6f9;
  border: 1.5px solid #f6f6f9;
  border-radius: 5px;
  color: #3e4455;
  height: 50px;
  line-height: 56px;
  outline: 0;
  padding: 0 30px;
  width: 100%;
  font-weight: 500;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.contact-msg {
  height: 150px;
  line-height: 1.2;
  padding: 20px 30px;
  resize: none;
}

body:not(.dark) .input-control,
body:not(.dark) .contact-msg {
  background-color: #ffffff;
  border-color: #cfdaef;
}

body:not(.dark) .input-control::placeholder,
body:not(.dark) .contact-msg::placeholder {
  color: #7a86a5;
}

.input-control:focus,
.contact-msg:focus {
  border-color: #4d63dd;
  box-shadow: 0 0 0 3px rgba(77, 99, 221, 0.16);
}

body.dark .input-control,
body.dark .contact-msg {
  background-color: #121827;
  border-color: #2b3551;
  color: #e5eaf8;
}

body.dark .input-control::placeholder,
body.dark .contact-msg::placeholder {
  color: #9da8c7;
}

.input-subject,
.form-submit {
  width: 100%;
  margin-bottom: 1rem;
}

.btn-submit {
  width: 100%;
  padding: 15px 30px;
  color: #fff;
  font-family: "Poppins", sans-serif;
  background-color: #ff5252;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
}

/* ========= Message After Form Submission =======*/

.loader {
  width: 100%;
  padding: 10px;
  background-color: #3d4145;
  margin-top: 10px;
  text-align: center;
  font-weight: 600;
  display: none;
}

.loader.show {
  display: block;
}

.loader i {
  animation: rotateme 0.4s linear infinite;
  color: var(--color2);
}

/*============ Loader animation =========*/

@keyframes rotateme {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.form-message {
  display: none;
  width: 100%;
  background-color: #3d4145;
  margin-top: 10px;
  text-align: center;
  font-weight: 600;
}

.form-message.show {
  display: block;
}

.success-msg {
  color: green;
  line-height: 3;
}

.error-msg {
  color: red;
  line-height: 3;
}

/*======= CSS for footer section =======*/

footer {
  background-color: var(--bg-color2);
  padding: 20px 0;
}

.portfolio-row.footer-wrap {
  flex-direction: column;
  align-items: center;
}

/* .social-icons li{
    display: inline-block;
}

.social-icons li:not(:last-child){
    margin-right: 0.5rem;
    border-right: 1px solid var(--color2);
    padding-right: 0.7rem;
}

.social-icons li a{
    color: var(--color1);
} */

#social-container {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 0.85rem;
  align-items: center;
}

#social-container a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

#social-container .social-link {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(77, 99, 221, 0.28);
  background: color-mix(in srgb, var(--bg-color2) 86%, #ffffff 14%);
  color: var(--color1);
  box-shadow: 0 8px 20px rgba(18, 24, 64, 0.16);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

body.dark #social-container .social-link {
  background: color-mix(in srgb, var(--bg-color1) 90%, #ffffff 10%);
  border-color: rgba(141, 160, 255, 0.35);
}

#social-container .social-link i {
  font-size: 1.22rem;
}

#social-container .social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(77, 99, 221, 0.65);
  box-shadow: 0 12px 24px rgba(18, 24, 64, 0.24);
}

#social-container .linkedin-link:hover {
  color: #0a66c2;
}

#social-container .cloud-link:hover {
  color: #34a853;
}

body:not(.dark) #social-container .github-link:hover {
  color: #111827;
}

body.dark #social-container .github-link:hover {
  color: #f8fafc;
}
.copyright-text {
  display: block;
}

/*======= Large devices (Desktop,768px and up) =======*/
/* DARK MODE â€” mobile and desktop â€” WHEN STICKY */
body.dark .header-sticky {
  background-color: var(--bg-color1);
}

body.dark .header-sticky .portfolio-navbar ul li a,
body.dark .header-sticky .logo,
body.dark .header-sticky .navbar-toggle i {
  color: #fff;
}

/* LIGHT MODE â€” WHEN STICKY */
body:not(.dark) .header-sticky {
  background-color: var(--bg-color1); /* white likely */
}

body:not(.dark) .header-sticky .portfolio-navbar ul li a,
body:not(.dark) .header-sticky .logo,
body:not(.dark) .header-sticky .navbar-toggle i {
  color: var(--color1);
}

.career-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #1c1e2a;
  color: #fff !important;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  font-size: 0.9rem;
  z-index: 9999;
  animation:
    popupSlide 0.8s ease-out,
    fadeOut 0.5s ease-in 8s forwards;
  cursor: pointer;
  transition: transform 0.2s ease;
}

/* Enforce white text on all nested elements inside popup */
/* Global override for white text inside the popup */
.career-popup,
.career-popup * {
  color: #ffffff !important;
}

/* Exception: highlight strong text */
.career-popup strong {
  color: #00ffe1 !important;
}

.career-popup:hover {
  transform: scale(1.03);
}

@keyframes popupSlide {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(30px);
    pointer-events: none;
  }
}

#confettiCanvas {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
}

/* Toast animation */
@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  30% {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
  70% {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
}

.toast-message {
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%) scale(1);
  background: radial-gradient(circle, #1c1e2a, #101117);
  color: #00ffe1;
  padding: 20px 28px;
  border-radius: 16px;
  font-size: 1.2rem;
  text-align: center;
  z-index: 10001;
  font-family: "Segoe UI", sans-serif;
  box-shadow:
    0 0 15px rgba(0, 255, 225, 0.6),
    0 0 40px rgba(0, 255, 225, 0.2);
  border: 2px solid rgba(0, 255, 225, 0.3);
  animation:
    toastPopIn 0.6s ease,
    toastExit 1s ease-in-out 3.2s forwards;
}

@keyframes toastPopIn {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.5);
  }
  60% {
    opacity: 1;
    transform: translateX(-50%) scale(1.1);
  }
  100% {
    transform: translateX(-50%) scale(1);
  }
}

@keyframes toastExit {
  0% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(0.95) rotate(1deg);
    opacity: 0.6;
    filter: blur(1px);
  }
  100% {
    transform: translateX(-50%) translateY(-50px) scale(0.7) rotate(-2deg);
    opacity: 0;
    filter: blur(3px);
  }
}

/* Toast Styles */
.custom-toast {
  position: fixed;
  top: 84px;
  right: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: min(390px, calc(100vw - 24px));
  background: color-mix(in srgb, var(--bg-color1) 86%, #ffffff 14%);
  color: var(--color1);
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(77, 99, 221, 0.28);
  font-family: "Poppins", sans-serif;
  box-shadow: 0 14px 36px rgba(24, 31, 91, 0.24);
  backdrop-filter: blur(8px);
  z-index: 10000;
  animation: toastEnter 0.35s ease forwards;
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
}

.custom-toast .toast-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(77, 99, 221, 0.16);
  color: #4d63dd;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.custom-toast .toast-content {
  flex: 1;
  min-width: 0;
}

.custom-toast .toast-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color1);
}

.custom-toast .toast-subtitle {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: var(--color1);
  opacity: 0.76;
}

.custom-toast .toast-progress {
  display: block;
  margin-top: 10px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4d63dd, #78add9);
  transform-origin: left;
  animation: toastProgress 3.2s linear forwards;
}

.custom-toast .toast-close {
  border: none;
  background: transparent;
  color: var(--color1);
  opacity: 0.6;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  padding: 4px;
  border-radius: 6px;
}

.custom-toast .toast-close:hover {
  opacity: 1;
  background: rgba(77, 99, 221, 0.12);
}

body.dark .custom-toast {
  background: color-mix(in srgb, var(--bg-color1) 92%, #ffffff 8%);
  border-color: rgba(141, 160, 255, 0.3);
}

/* Hide animation */
.hide-toast {
  opacity: 0;
  transform: translateY(-10px);
}

/* Slide-in Keyframe */
@keyframes toastEnter {
  0% {
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastProgress {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

body {
  overflow-x: hidden;
}

body.cursor-effects-enabled {
  cursor: none;
}

/* Magic particle dot */
.magic-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, #00ffe1, #0077ff);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.8;
  transform: scale(1);
  animation: magic-fade 0.8s forwards ease-out;
  z-index: 9999;
  mix-blend-mode: screen;
}

/* Particle fade-out */
@keyframes magic-fade {
  0% {
    transform: scale(1.5);
    opacity: 1;
  }
  100% {
    transform: scale(0);
    opacity: 0;
  }
}

#magic-cursor-canvas {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
}

@media (min-width: 768px) {
  /*======= Responsive Universal CSS Properties =======*/

  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 3.5rem;
    text-align: unset;
    color: var(--color1);
    font-weight: 600;
  }

  /*======= Header Responsive  =======*/

  header {
    background-color: transparent;
    position: absolute;
    padding: 0 15px;
    transition: background-color 0.3s ease;
  }

  .navbar-toggle i {
    display: none;
  }

  .portfolio-navbar {
    display: block;
  }

  .portfolio-navbar ul li {
    display: inline-block;
    padding: 0 10px;
  }

  .portfolio-navbar ul li a {
    color: var(--color1);
    line-height: 65px;
  }

  /*======= About Section Responsive  =======*/

  #about {
    padding: 175px 0 150px 0;
  }

  .about-intro {
    width: 60%;
    margin: 0;
    order: 1;
    text-align: unset;
  }

  /*======= About Image Responsive  =======*/

  .about-image {
    width: 40%;
    order: 2;
  }

  /*======= Resume Intro Responsive  =======*/

  .resume-intro {
    width: 50%;
    padding-right: 6.25rem;
  }

  /*======= Resume Body Responsive  =======*/

  .resume-body {
    width: 50%;
    margin-top: 0;
    min-height: 400px;
  }

  .resume-body h2 {
    display: none;
  }

  .resume-heading {
    padding: 20px 0;
  }

  .btn {
    padding: 0 25px;
    margin-top: 0;
    margin-bottom: 10px;
  }

  .qualification-content::after {
    left: -2px;
  }

  .qualification-content::before {
    left: 0;
  }

  #skills1.resume-tab.active {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /*======= skills Section Responsive  =======*/

  .skill-row,
  .skills-row {
    grid-template-columns: repeat(3, 1fr);
  }

  /*======= Project Responsive  =======*/

  .filter-wrap {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  #projects .filter-wrap {
    column-gap: 2rem;
    row-gap: 1rem;
  }

  /*======= Portfolio Gallery Responsive  =======*/

  #projects .portfolio-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .research-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    grid-auto-rows: 1fr;
    column-gap: 1.8rem;
  }

  .research-ip-highlight {
    grid-template-columns: minmax(220px, 260px) 1fr;
    column-gap: 1rem;
    align-items: center;
  }

  .research-ip-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .research-ip-media {
    min-height: 150px;
  }

  #research .research-group .research-wrapper {
    grid-template-columns: 1fr;
  }

  #research .portfolio-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #research .research-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /*======= Contact General Responsive  =======*/

  .contact-general {
    grid-template-columns: repeat(3, 1fr);
    margin: 4rem 0;
  }

  .contact-general h2 {
    display: none;
  }

  .contact-card:nth-of-type(2) {
    border-left: 1px solid #d9d9d9;
    border-right: 1px solid #d9d9d9;
  }

  /* ======= Contact Form Responsive ======== */

  #contact-form {
    margin: 2rem auto;
    width: 80%;
  }

  /*======= Footer Responsive  =======*/

  .portfolio-row.footer-wrap {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .copyright-text {
    display: block;
  }

  /*========== Theme Icon Color When Nabar Sticky ========*/

  .theme-toggle {
    background: none;
    position: static;
    transform: none;
  }

  body:not(.dark) .header-sticky .theme-toggle .lni-night,
  body.dark .header-sticky .theme-toggle .lni-sun {
    color: #3e4455;
  }

  body:not(.dark) .theme-toggle .lni-night,
  body.dark .theme-toggle .lni-sun {
    color: var(--color2);
  }
}

@media (hover: none) and (pointer: coarse) {
  .portfolio-card:hover,
  .research-item:hover,
  .skill-card:hover,
  .about-image:hover {
    transform: none;
    box-shadow: none;
  }

  .portfolio-card:hover .portfolio-media img,
  .research-item:hover .portfolio-media img {
    transform: none;
  }

  .achievements-item-content {
    opacity: 1;
    transform: none;
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    padding-top: 90px;
    background: linear-gradient(
      180deg,
      rgba(16, 16, 16, 0.05),
      rgba(16, 16, 16, 0.85)
    );
  }

  .product-title,
  .achievements-item:hover .product-title {
    position: relative;
    bottom: 0;
    opacity: 1;
    padding: 18px 16px;
    text-align: left;
  }

  .achievements-item:hover .achievements-item-content {
    opacity: 1;
    transform: none;
  }

  .tap-hint {
    display: block;
  }
}

@media (max-width: 767px) {
  header {
    padding: 10px 12px;
    backdrop-filter: blur(8px);
  }

  header .portfolio-row.header-wrap {
    min-height: 44px;
    position: relative;
  }

  .brand-name a {
    font-size: 1.02rem;
    max-width: 185px;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .navbar-toggle {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    margin-left: auto;
    margin-right: 52px;
    background-color: var(--bg-color2);
    border: 1px solid rgba(77, 99, 221, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .navbar-toggle i {
    line-height: 1;
    font-size: 1.1rem;
  }

  .theme-toggle {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(77, 99, 221, 0.35);
    background-color: var(--bg-color2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(12, 16, 40, 0.16);
  }

  body:not(.dark) .theme-toggle .lni-night,
  body.dark .theme-toggle .lni-sun {
    color: var(--color1);
    padding: 0;
    font-size: 1.1rem;
  }

  .portfolio-navbar.show {
    top: calc(100% + 6px);
  }

  .career-popup {
    bottom: 15px;
    right: 10px;
    left: 10px;
    width: auto;
    max-width: calc(100% - 20px);
    padding: 12px 16px;
    font-size: 0.85rem;
    border-radius: 10px;
    text-align: center;
  }

  .career-popup strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 5px;
  }

  .career-popup small {
    display: block;
    font-size: 0.8rem;
  }

  .toast-message {
    top: 8%;
    width: 90%;
    max-width: 320px;
    padding: 16px 20px;
    font-size: 1rem;
    border-radius: 12px;
  }

  .toast-message strong {
    font-size: 1.05rem;
  }

  .toast-message small {
    font-size: 0.85rem;
    display: block;
    margin-top: 6px;
  }

  .custom-toast {
    left: 10px;
    right: 10px;
    top: 72px;
    max-width: none;
    width: auto;
  }
}
