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

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

:root {
  --bg-color: #f8f9fc;
  --bg-secondary: #eef0f6;
  --surface-color: #ffffff;
  --surface-hover: #f3f4f8;
  --text-color: #1a1a2e;
  --text-muted: #5c5c7a;
  --main-color: #754ef9;
  --main-color-light: #9b7aff;
  --main-color-glow: rgba(117, 78, 249, 0.18);
  --white-color: #ffffff;
  --border-color: rgba(0, 0, 0, 0.08);
  --shadow-color: rgba(0, 0, 0, 0.08);
  --shadow-lg: rgba(0, 0, 0, 0.14);
  --card-shadow: 0 0.4rem 2rem rgba(0, 0, 0, 0.06);
  --header-bg: transparent;
  --footer-bg: #754ef9;
  --skill-bg: #ffffff;
  --skill-border: rgba(0, 0, 0, 0.08);
  --skill-text: #1a1a2e;
  --skill-icon-bg: rgba(117, 78, 249, 0.08);
  --overlay-color: #754ef9;
}

*::selection {
  background: var(--main-color);
  color: var(--white-color);
}

.dark-mode {
  --bg-color: #0c0c18;
  --bg-secondary: #101022;
  --surface-color: #151528;
  --surface-hover: #1c1c35;
  --text-color: #eaeaf2;
  --text-muted: #9494b0;
  --main-color: #9b7aff;
  --main-color-light: #b49dff;
  --main-color-glow: rgba(155, 122, 255, 0.15);
  --white-color: #eaeaf2;
  --border-color: rgba(255, 255, 255, 0.08);
  --shadow-color: rgba(0, 0, 0, 0.35);
  --shadow-lg: rgba(0, 0, 0, 0.55);
  --card-shadow: 0 0.4rem 2.4rem rgba(0, 0, 0, 0.35);
  --header-bg: rgba(12, 12, 24, 0.82);
  --footer-bg: linear-gradient(135deg, #12102a 0%, #1e1545 50%, #12102a 100%);
  --skill-bg: rgba(255, 255, 255, 0.04);
  --skill-border: rgba(255, 255, 255, 0.1);
  --skill-text: #eaeaf2;
  --skill-icon-bg: rgba(255, 255, 255, 0.07);
  --overlay-color: #6b45e0;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-padding-top: 7rem;
  margin: 0 !important;
  padding: 0 !important;
  top: 0 !important;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.35s ease, color 0.35s ease;
  margin: 0 !important;
  padding: 0 !important;
  top: 0 !important;
  isolation: isolate;
}

body.dark-mode {
  background: var(--bg-color);
}

/* Fix for mobile background-attachment: fixed bug (white spaces during scroll) */
body.dark-mode::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, #0a1435 0%, #01030a 100%);
  z-index: -3;
  pointer-events: none;
}

a,
a:hover,
a:focus,
a:active,
a:visited {
  text-decoration: none;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.2rem 7%;
  background: transparent;
  display: flex;
  align-items: center;
  z-index: 100;
  transition: 0.5s;
}

.header.sticky {
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0.1rem 1rem var(--shadow-color);
  border-bottom: none;
}

.logo {
  font-size: 2.5rem;
  color: var(--main-color);
  font-weight: 600;
  margin-right: auto;
}

.navbar a {
  position: relative;
  font-size: 1.7rem;
  color: var(--white-color);
  font-weight: 500;
  margin-right: 3.5rem;
}

.header.sticky .navbar a {
  color: var(--text-color);
}

.header.sticky .navbar a.active {
  color: var(--main-color);
}

.navbar a.active::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 0.2rem;
  background: var(--white-color);
}

.header.sticky .navbar a::before {
  background: var(--main-color);
  opacity: 0.7;
}

#darkMode-icon {
  font-size: 2.4rem;
  color: var(--white-color);
  cursor: pointer;
}

.header.sticky #darkMode-icon {
  color: var(--text-color);
  opacity: 0.9;
}

#menu-icon {
  font-size: 3.6rem;
  color: var(--text-color);
  display: none;
}

section {
  min-height: 100vh;
  padding: 0 7% 2rem;
}

section:not(.home):not(.skills-section) {
  padding-top: 8rem;
}

.home {
  display: flex;
  align-items: center;
  position: relative;
  padding: 0 7%;
  min-height: 100vh;
  overflow: hidden;
  margin-top: 0 !important;
}

.home .home-content {
  max-width: 44rem;
  padding-top: 5rem;
}

.home-content h3 {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.2;
}

.home-content h1 {
  font-size: 5.6rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.mobile-roles {
  display: none;
}

.home-content p {
  font-size: 1.6rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.home-content .social-media a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background: transparent;
  border: 0.2rem solid var(--main-color);
  border-radius: 50%;
  box-shadow: 0 0.2rem 0.5rem var(--shadow-color);
  font-size: 2rem;
  color: var(--main-color);
  margin: 2.5rem 1.5rem 3rem 0;
  transition: 0.5s ease;
}

.home-content .social-media a:hover {
  background: var(--main-color);
  color: var(--white-color);
}

.btn {
  display: inline-block;
  padding: 1rem 2.8rem;
  background: linear-gradient(90deg, #7b61ff, #00d2ff);
  border-radius: 4rem;
  box-shadow: 0 0 1rem rgba(117, 78, 249, 0.5);
  font-size: 1.6rem;
  color: var(--white-color);
  letter-spacing: 0.1rem;
  font-weight: 600;
  transition: 0.5s ease;
}

.btn:hover {
  box-shadow: none;
}



.home .profession-container {
  position: absolute;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.home .profession-container .profession-box {
  position: absolute;
  top: 50%;
  right: 0;
  width: 768px;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: professionRotate 13s ease-out infinite;
  z-index: 1;
}

@keyframes professionRotate {
  0%,
  20% {
    transform: translateY(-50%) rotate(0deg);
  }

  25%,
  45% {
    transform: translateY(-50%) rotate(-90deg);
  }

  50%,
  70% {
    transform: translateY(-50%) rotate(-180deg);
  }

  75%,
  95% {
    transform: translateY(-50%) rotate(-270deg);
  }

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

.home .profession-box .profession {
  position: absolute;
  left: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  color: var(--main-color);
  transform: rotate(calc(360deg / 4 * var(--i)));
  transform-origin: 384px;
  background: var(--bg-color);
  padding: 15px 25px;
  border-radius: 3rem;
  margin-top: 0 !important;
}

body.dark-mode .home .profession-box .profession {
  background: #0a1435;
}


.home .profession-box .profession:nth-child(1) i {
  margin-right: 0;
}

.home .profession-box .profession:nth-child(2),
.home .profession-box .profession:nth-child(4) {
  padding-bottom: 20px;
}

.home .profession i {
  font-size: 3.8rem;
}

.home .profession h3 {
  font-size: 3.2rem;
  line-height: 1;
  font-weight: 600;
}

.home .profession-box .circle {
  width: 560px;
  height: 560px;
  border: 3px solid var(--main-color);
  border-radius: 50%;
  z-index: -1;
}

.home .profession-container .overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-top: 50vh solid var(--overlay-color);
  border-right: 384px solid var(--overlay-color);
  border-bottom: 50vh solid var(--overlay-color);
  border-left: 384px solid transparent;
  z-index: 2;
  pointer-events: none;
}

.home-img img {
  position: absolute;
  bottom: 0;
  right: 40px;
  pointer-events: none;
  max-width: 480px;
  max-height: 100vh;
  z-index: 4;
}

/* Lottie animation container */
#lottie-container {
  position: absolute;
  bottom: 0;
  right: 40px;
  width: 480px;
  height: 90vh;
  max-height: 100vh;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}

#lottie-container svg {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

span {
  color: var(--main-color);
}

.about {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 2rem !important;
  margin-top: -3rem;
}

.about-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  grid-template-areas:
    "image heading"
    "image text";
  gap: 2rem 4rem;
  align-items: center;
  width: 100%;
  max-width: 120rem;
}

.about-content .heading {
  grid-area: heading;
  text-align: left;
  margin: 0;
}

.about-img {
  grid-area: image;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-img img {
  width: 100%;
  max-width: 42rem;
  height: auto;
  border-radius: 2rem;
}

#lottie-portfolio-container {
  width: 100%;
  max-width: 450px;
  height: auto;
  margin: 0 auto 3rem auto;
}

#lottie-portfolio-container svg {
  width: 100% !important;
  height: auto !important;
}

#lottie-services-container {
  width: 100%;
  max-width: 450px;
  height: auto;
  margin: 0 auto 3rem auto;
}

#lottie-services-container svg {
  width: 100% !important;
  height: auto !important;
}

.about-text {
  grid-area: text;
}

.about-text h3 {
  font-size: 2rem;
  line-height: 1.4;
}

.about-text p {
  font-size: 1.6rem;
  margin: 2rem 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.about-text p:last-of-type {
  margin-bottom: 3rem;
}

.heading {
  font-size: 4.5rem;
  text-align: center;
  color: var(--text-color);
}



.services {
  min-height: auto;
  padding-bottom: 10rem;
}

.services h2 {
  margin-bottom: 5rem;
}

.services .services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.services-container .services-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  background: var(--surface-color);
  padding: 2.5rem 1.5rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease,
    background-color 0.35s ease;
}

.services-container .services-box:hover {
  box-shadow: 0 0.8rem 2.8rem var(--shadow-lg);
  transform: translateY(-5px);
  border-color: rgba(117, 78, 249, 0.25);
}

.dark-mode .services-container .services-box:hover {
  border-color: rgba(155, 122, 255, 0.3);
  box-shadow: 0 0.8rem 2.8rem var(--shadow-lg), 0 0 3rem var(--main-color-glow);
}

.services-box i {
  font-size: 5rem;
  color: var(--main-color);
  margin-bottom: 1.5rem;
}

.services-box h3 {
  font-size: 2rem;
  margin: 0 0 1rem;
  transition: 0.3s ease;
}

.services-box:hover h3 {
  color: var(--main-color);
}

.services-box p {
  font-size: 1.4rem;
  margin: 0 0 2rem;
  color: var(--text-muted);
  flex-grow: 1;
  line-height: 1.6;
}

.services-box .btn {
  align-self: center;
  margin-top: auto;
}

/* skills marquee section */
.skills-section {
  min-height: auto;
  padding: 3rem 0;
  background: var(--bg-color);
  overflow: hidden;
}

#lottie-skills-container {
  width: 100%;
  max-width: 450px;
  height: auto;
  margin: 0 auto 3rem auto;
}

.marquee-container {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}

.marquee {
  width: 100%;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.marquee.is-dragging {
  cursor: grabbing;
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.marquee-content {
  display: flex;
  gap: 1.8rem;
  padding: 1.5rem 0.9rem;
}

.skill-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  padding: 2.2rem 1.6rem;
  background: var(--skill-bg);
  border: 1px solid var(--skill-border);
  border-radius: 1.8rem;
  width: 13.5rem;
  min-height: 14.5rem;
  text-align: center;
  flex-shrink: 0;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease,
    background-color 0.35s ease;
  box-shadow: var(--card-shadow);
  pointer-events: none;
}

.skill-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.6rem;
  height: 5.6rem;
  background: var(--skill-icon-bg);
  border-radius: 1.2rem;
}

.skill-badge img {
  width: 3.6rem;
  height: 3.6rem;
  object-fit: contain;
  border-radius: 0 !important;
}

.skill-badge img.mono {
  filter: brightness(0) saturate(100%);
}

.dark-mode .skill-badge img.mono {
  filter: brightness(0) invert(1);
}

.skill-badge span {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--skill-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.skill-badge:hover {
  transform: translateY(-4px);
  border-color: rgba(117, 78, 249, 0.35);
  box-shadow: 0 0.8rem 2.4rem var(--main-color-glow);
}

.portfolio {
  min-height: auto;
  padding-bottom: 10rem;
}

.portfolio h2 {
  margin-bottom: 4rem;
}

.portfolio-box {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  background: var(--surface-color);
}

.portfolio-box:hover {
  box-shadow: 0 0.8rem 2.8rem var(--shadow-lg);
  border-color: rgba(117, 78, 249, 0.2);
}

.dark-mode .portfolio-box:hover {
  border-color: rgba(155, 122, 255, 0.25);
  box-shadow: 0 0.8rem 2.8rem var(--shadow-lg), 0 0 2rem var(--main-color-glow);
}

.portfolio-box img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 0 !important;
  display: block;
  transition: transform 0.45s ease;
  will-change: transform;
}

.portfolio-box:hover img {
  transform: scale(1.05);
}

.portfolio-box .portfolio-layer {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  background: var(--surface-color);
  padding: 2rem;
  gap: 1rem;
  border-top: 1px solid var(--border-color);
  min-height: 260px; /* Fixed height to prevent pagination jumping */
}

.portfolio-layer h4 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--main-color);
  margin: 0;
}

.portfolio-layer p {
  font-size: 1.4rem;
  margin: 0;
  color: var(--text-muted);
  flex-grow: 1;
  line-height: 1.6;
}

.portfolio-layer a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background: var(--main-color);
  border-radius: 50%;
  color: var(--white-color);
  text-decoration: none;
  transition: 0.3s ease;
  align-self: flex-start;
}

.portfolio-layer a:hover {
  background: var(--main-color-light);
  color: var(--white-color);
  transform: scale(1.08);
  box-shadow: 0 0 1.5rem var(--main-color-glow);
}

.portfolio-layer a i {
  font-size: 1.8rem;
}

/* ===== Portfolio Pagination ===== */
.portfolio-item {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

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

.portfolio-item.fade-in {
  animation: portfolioFadeIn 0.5s ease forwards;
}

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

.portfolio-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 4rem;
  flex-wrap: wrap;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background: var(--surface-color);
  color: var(--text-color);
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px var(--shadow-color);
}

.pagination-btn:hover:not(:disabled) {
  background: var(--main-color);
  color: #fff;
  border-color: var(--main-color);
  box-shadow: 0 4px 18px var(--main-color-glow);
}

.pagination-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.pagination-numbers {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4rem;
  height: 4rem;
  border-radius: 1.2rem;
  border: 2px solid var(--border-color);
  background: var(--surface-color);
  color: var(--text-color);
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px var(--shadow-color);
  font-family: 'Poppins', sans-serif;
  padding: 0 0.6rem;
}

.pagination-num:hover {
  border-color: var(--main-color);
  color: var(--main-color);
  box-shadow: 0 4px 14px var(--main-color-glow);
}

.pagination-num.active {
  background: linear-gradient(135deg, var(--main-color), var(--main-color-light));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 20px var(--main-color-glow);
}

.pagination-info {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 1.3rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.3px;
}

@media (max-width: 450px) {
  .pagination-btn {
    width: 3.8rem;
    height: 3.8rem;
    font-size: 1.8rem;
  }
  .pagination-num {
    min-width: 3.5rem;
    height: 3.5rem;
    font-size: 1.3rem;
    padding: 0 0.4rem;
  }
  .portfolio-pagination {
    gap: 0.5rem;
  }
}

.testimonial-container {
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 100%;
  padding: 5rem 1rem;
}

.testimonial-container .testimonial-wrapper {
  position: relative;
  max-width: 90rem;
  width: 100%;
  padding: 5rem;
}

.testimonial-wrapper .testimonial-box {
  padding: 1rem;
  border-radius: 2rem;
  overflow: hidden;
}

.testimonial-content .testimonial-slide {
  display: flex;
  align-items: center;
  flex-direction: column;
  background: var(--bg-color);
  border-radius: 2rem;
  box-shadow: 0 0.1rem 0.5rem var(--shadow-color);
  padding: 3rem 5rem;
  border-top: 0.8rem solid var(--main-color);
  border-bottom: 0.8rem solid var(--main-color);
}

.testimonial-slide img {
  width: 14rem;
  height: 14rem;
  object-fit: cover;
  border-radius: 50%;
  border: 0.5rem solid var(--bg-color);
  outline: 0.5rem solid var(--main-color);
}

.testimonial-slide h3 {
  font-size: 2.5rem;
  margin: 2rem 0;
}

.testimonial-slide p {
  font-size: 1.4rem;
  text-align: center;
}

.testimonial-box .swiper-button-next,
.testimonial-box .swiper-button-prev {
  color: var(--main-color);
}

.testimonial-box .swiper-button-next {
  right: 0;
}

.testimonial-box .swiper-button-prev {
  left: 0;
}

.testimonial-box .swiper-pagination-bullet {
  background: rgba(0, 0, 0, 0.8);
}

.testimonial-box .swiper-pagination-bullet-active {
  background: var(--main-color);
}

.contact {
  min-height: auto;
  padding-bottom: 7rem;
}

.contact h2 {
  margin-bottom: 3rem;
}

.contact form {
  max-width: 70rem;
  margin: 1rem auto;
  text-align: center;
  margin-bottom: 3rem;
}

.contact form .input-box {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
  width: 100%;
  padding: 1.5rem;
  font-size: 1.6rem;
  color: var(--text-color);
  background: var(--bg-color);
  border-radius: 0.8rem;
  margin: 0.7rem 0;
  box-shadow: 0 0.1rem 0.5rem var(--shadow-color);
}

.contact form .input-box input {
  width: 49%;
}

.contact form textarea {
  resize: none;
}

.contact form .btn {
  margin-top: 2rem;
  cursor: pointer;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 2rem 7%;
  background: var(--footer-bg);
  border-top: 1px solid var(--border-color);
}

.dark-mode .footer {
  border-top-color: rgba(255, 255, 255, 0.06);
}

.footer-text p {
  font-size: 1.6rem;
  color: var(--white-color);
}

.footer-iconTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 99;
}

.footer-iconTop.show {
  opacity: 1;
  visibility: visible;
}

.footer-iconTop a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.8rem;
  background: var(--main-color);
  border-radius: 0.8rem;
  border: 0.2rem solid var(--main-color);
  outline: 0.2rem solid transparent;
  transition: 0.3s ease;
  width: 4.5rem;
  height: 4.5rem;
}

.footer-iconTop a:hover {
  outline-color: var(--white-color);
  background: var(--white-color);
  color: var(--main-color);
}

.footer-iconTop a i {
  font-size: 2.4rem;
  color: var(--white-color);
}

.footer-iconTop a:hover i {
  color: var(--main-color);
}

.dark-mode .footer-iconTop a {
  background: var(--surface-color);
  border-color: var(--border-color);
  box-shadow: 0 0.4rem 1.6rem var(--shadow-lg);
}

.dark-mode .footer-iconTop a i {
  color: var(--main-color);
}

.dark-mode .footer-iconTop a:hover {
  background: var(--main-color);
  outline-color: var(--main-color-light);
}

.dark-mode .footer-iconTop a:hover i {
  color: var(--white-color);
}

.dark-mode .testimonial-box .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.3);
}

/* BREAKPOINTS */
@media (max-width: 1200px) {
  html {
    font-size: 55%;
  }

  .home .profession-container .profession-box {
    right: -10%;
  }

  .home .profession-container .overlay {
    right: -6%;
  }

  .home-img img {
    right: 0;
  }

  #lottie-container {
    right: 0;
  }
}

@media (max-width: 1100px) {
  .home .profession-container .profession-box {
    right: -15%;
  }

  .home-img img {
    max-width: 420px;
  }

  #lottie-container {
    width: 420px;
  }
}

@media (max-width: 1024px) {
  .header {
    padding: 1.2rem 3%;
  }

  section {
    padding: 0 3% 2rem;
  }

  section:not(.home):not(.skills-section) {
    padding-top: 8rem;
  }

  .home {
    padding: 0 3%;
  }

  .home .home-content {
    padding-top: 4.8rem;
  }

  .home .profession-container .profession-box {
    right: -20%;
  }

  .home .profession-container .overlay {
    right: -12%;
  }

  .home-img img {
    max-width: 400px;
  }

  #lottie-container {
    width: 400px;
  }
}

@media (max-width: 991px) {
  .navbar a:nth-child(1) {
    color: var(--main-color);
  }

  .navbar a.active::before {
    background: var(--main-color);
    opacity: 0.7;
  }

  .home .home-content {
    max-width: 50rem;
  }

  .home .profession-container .profession-box {
    right: -35%;
  }

  .home .profession-container .overlay {
    right: -30%;
  }

  .home-img img {
    display: none;
  }

  #lottie-container {
    width: 380px;
    height: auto;
    right: 0;
  }

  .contact-wrapper {
    flex-direction: column;
    gap: 2rem;
  }

  .contact-container {
    width: 100%;
  }

  .footer {
    padding: 2rem 3%;
  }
}

@media (max-width: 896px) {
  .navbar a:nth-child(2) {
    color: var(--main-color);
  }

  .home .profession-container .profession-box {
    right: -50%;
  }

  .home .profession-container .overlay {
    right: -43%;
  }
}

@media (max-width: 780px) {
  .navbar a:nth-child(2) {
    color: var(--white-color);
  }
}

@media (max-width: 768px) {
  #menu-icon {
    display: block;
  }

  #darkMode-icon {
    position: absolute;
    right: 7rem;
    font-size: 2.6rem;
    color: var(--text-color);
    margin-bottom: 0.1rem;
  }

  .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem 3%;
    background: var(--surface-color);
    border-top: 0.1rem solid var(--border-color);
    box-shadow: 0 0.5rem 2rem var(--shadow-color);
    display: none;
  }

  .navbar.active {
    display: block;
  }

  .navbar a {
    display: block;
    font-size: 2rem;
    margin: 3rem 0;
    color: var(--text-color);
  }

  .navbar a:nth-child(1),
  .navbar a:nth-child(2) {
    color: var(--text-color);
  }

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

  .navbar a::before {
    display: none;
  }

  .home {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 3% 0;
    min-height: auto;
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  .home-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    padding-top: 4.8rem;
  }

  .home-content h3 {
    font-size: 2.6rem;
    line-height: 1.2;
  }

  .home-content h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
  }

  #lottie-container {
    position: relative;
    width: 100%;
    max-width: 350px;
    height: auto;
    margin-top: 3rem;
    right: auto;
    bottom: auto;
  }

  .mobile-roles {
    display: block;
    position: relative;
    height: 3.2rem;
    margin: 0 auto 2rem;
    overflow: hidden;
  }

  .mobile-roles span {
    position: absolute;
    left: 0;
    right: 0;
    color: var(--main-color);
    font-size: 2rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(1.5rem);
    animation: mobileRoleCycle 12s ease-in-out infinite;
  }

  .mobile-roles span:nth-child(1) {
    animation-delay: 0s;
  }

  .mobile-roles span:nth-child(2) {
    animation-delay: 3s;
  }

  .mobile-roles span:nth-child(3) {
    animation-delay: 6s;
  }

  .mobile-roles span:nth-child(4) {
    animation-delay: 9s;
  }

  @keyframes mobileRoleCycle {
    0%,
    5%,
    20%,
    100% {
      opacity: 0;
      transform: translateY(1.5rem);
    }

    8%,
    18% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .home-content .social-media a {
    margin: 1.5rem 0.5rem 1.5rem;
    text-decoration: none;
  }

  .home-content .btn {
    margin-bottom: 0;
  }

  .home .profession-container {
    display: none;
  }

  .about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    text-align: center;
  }

  .about-content .heading {
    text-align: center;
    order: 1;
  }

  .about-img {
    order: 2;
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
  }

  .about-img img {
    width: 100%;
    max-width: 24rem;
    margin: 0 auto;
  }

  #lottie-portfolio-container {
    max-width: 320px;
    margin-bottom: 2rem;
  }

  #lottie-services-container {
    max-width: 320px;
    margin-bottom: 2rem;
  }

  .about-text {
    order: 3;
    width: 100%;
  }

  .about-text h3 {
    font-size: 1.8rem;
  }

  .testimonial-container .testimonial-wrapper {
    padding: 5rem 0;
  }

  .testimonial-content .testimonial-slide {
    padding: 3rem 2rem;
  }

  .testimonial-box .swiper-button-next,
  .testimonial-box .swiper-button-prev {
    display: none;
  }
}

/* contact */
.contact-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  max-width: 120rem;
  margin: 0 auto;
}

.contact-lottie {
  flex: 1 1 45%;
  display: flex;
  justify-content: center;
}

#lottie-contact-container {
  width: 100%;
  max-width: 500px;
}

.contact-container {
  flex: 1 1 55%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.contact-box {
  background: var(--surface-color);
  padding: 2.5rem;
  text-align: center;
  border-radius: 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  color: var(--text-color);
}

.contact-box i {
  font-size: 3rem;
  color: var(--main-color);
  margin-bottom: 1rem;
}

.contact-box p {
  color: var(--text-muted);
  font-size: 1.4rem;
}

.contact-box:hover {
  transform: translateY(-5px);
  border-color: rgba(117, 78, 249, 0.25);
  box-shadow: 0 0.8rem 2.4rem var(--shadow-lg);
}

.dark-mode .contact-box:hover {
  border-color: rgba(155, 122, 255, 0.3);
  box-shadow: 0 0.8rem 2.4rem var(--shadow-lg), 0 0 2rem var(--main-color-glow);
}

/* end */
/* footer */
.footer-social {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin: 1rem 0;
}

.footer-social a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white-color);
  font-size: 2rem;
  transition: 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.25);
  color: var(--white-color);
  transform: translateY(-3px);
  box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.2);
}
/* footer */
@media (max-width: 768px) {
  .skills-section {
    padding: 2rem 0;
  }

  .skill-badge {
    width: 11.5rem;
    min-height: 12.5rem;
    padding: 1.8rem 1.2rem;
    gap: 1rem;
  }

  .skill-icon-wrap {
    width: 4.8rem;
    height: 4.8rem;
  }

  .skill-badge img {
    width: 3rem;
    height: 3rem;
  }

  .skill-badge span {
    font-size: 0.95rem;
  }

  .marquee-content {
    gap: 1.4rem;
  }
}

@media (max-width: 450px) {
  html {
    font-size: 50%;
  }

  #darkMode-icon {
    right: 6rem;
  }

  .skill-badge {
    width: 10rem;
    min-height: 11rem;
    padding: 1.5rem 1rem;
  }

  .skill-icon-wrap {
    width: 4.2rem;
    height: 4.2rem;
  }

  .skill-badge img {
    width: 2.6rem;
    height: 2.6rem;
  }

  .skill-badge span {
    font-size: 0.85rem;
  }

  .marquee-content {
    gap: 1.2rem;
  }

  .mobile-roles span {
    font-size: 1.7rem;
  }

  .contact form .input-box input {
    width: 100%;
  }

  .footer {
    flex-direction: column-reverse;
  }

  .footer p {
    text-align: center;
    margin-top: 2rem;
  }
}

@media (max-width: 365px) {
  .about-img {
    max-width: 22rem;
  }

  .about-img img {
    max-width: 20rem;
  }

  #lottie-portfolio-container {
    max-width: 260px;
  }

  #lottie-services-container {
    max-width: 260px;
  }
}

@media (max-width: 315px) {
  .home-content h1 {
    font-size: 4.5rem;
  }
}
img {
  border-radius: 20px;
}


/* 🎓 Education & Learning Section */
.education {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: auto;
  padding-bottom: 5rem;
}

.education .education-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5rem;
  margin-top: 3rem;
  width: 100%;
}

.education-row .education-column {
  flex: 1 1 40rem;
}

.education-column .title {
  position: relative;
  display: inline-block;
  font-size: 2.5rem;
  margin: 0 0 1.5rem 2rem;
  color: var(--text-color);
}

.education-column .education-box {
  position: relative;
  border-left: .2rem solid var(--main-color);
  padding: 0 2rem;
}

.education-box .education-content {
  position: relative;
  padding-left: 2rem;
}

.education-box .education-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: -2.9rem;
  width: 2rem;
  height: 2rem;
  background: var(--main-color);
  border-radius: 50%;
  border: .4rem solid var(--bg-color);
}

.education-content .content {
  position: relative;
  padding: 1.5rem;
  border: .2rem solid var(--border-color);
  border-radius: .6rem;
  margin-bottom: 2rem;
  background: var(--surface-color);
  box-shadow: var(--card-shadow);
  transition: 0.3s;
}

.education-content .content:hover {
  transform: translateY(-5px);
  box-shadow: 0 .5rem 2rem rgba(117, 78, 249, 0.2);
  border-color: var(--main-color);
}

.education-content .content .year {
  font-size: 1.5rem;
  color: var(--main-color);
  padding-bottom: .5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.education-content .content h3 {
  font-size: 2rem;
  color: var(--text-color);
}

.education-content .content .institution {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--main-color-light);
  margin-bottom: 1rem;
}

.education-content .content p {
  font-size: 1.6rem;
  padding-top: .5rem;
  color: var(--text-muted);
}

/* Tech Tags / Badges for Skills */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.tech-tags span {
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  background: var(--skill-icon-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  font-weight: 500;
  transition: 0.3s ease;
}

.tech-tags span:hover {
  background: var(--main-color);
  color: var(--white-color);
  border-color: var(--main-color);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .education .education-row {
    gap: 3rem;
  }
  .education-column .title {
    font-size: 2.2rem;
  }
}

/* Text Gradient & Particles Background */
.gradient-text,
.heading span {
  background: linear-gradient(90deg, #7b61ff, #00d2ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

#particles-js canvas {
  display: block;
}

body.dark-mode #particles-js {
  opacity: 1;
  pointer-events: none;
}

/* === Force no top gap — override Bootstrap or any third-party === */
html,
body {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.header {
  top: 0 !important;
  margin-top: 0 !important;
}

/* home#############################################3 */
