/* Make Swiper slider pagination dots bigger */
.swiper-pagination-bullet {
  width: 18px;
  height: 18px;
  background: #ffc200;
  opacity: 0.7;
  margin: 0 7px 0 7px !important;
  transition: background 0.2s, transform 0.2s;
}

.swiper-pagination-bullet-active {
  background: #232323;
  opacity: 1;
  transform: scale(1.18);
}


.navbar-toggler-close {
  color: #212121;
  background: transparent !important;
  border: none;
  position: absolute;
  right: 16px;
  top: 12px;
  z-index: 10001;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0;
  line-height: 1;
}

.navbar-toggler-icon {
  background: transparent !important;
  box-shadow: none !important;
}

body.dark-mode .navbar-toggler-close,
.dark-mode .navbar-toggler-close {
  color: #fff !important;
}

body:not(.dark-mode) .navbar-toggler-close,
:not(.dark-mode) .navbar-toggler-close {
  color: #212121 !important;
}

@media (min-width: 576px) {
  .navbar-toggler-close {
    display: none !important;
  }
}

@media (max-width: 991.98px) {
  .navbar-collapse.show {
    background: #fff;
  }

  .dark-mode .navbar-collapse.show {
    background: #23272b;
  }
}

/* Navbar toggler icon color for dark and light mode */
.navbar-toggler-icon .fa-bars {
  color: #212121 !important;
  transition: color 0.2s;
}
.dark-mode .navbar-toggler-icon .fa-bars {
  color: #fff !important;
}
@media (min-width: 576px) and (max-width: 991.98px) {
  .navbar-expand-sm .navbar-nav {
    flex-direction: row !important;
    overflow-x: auto;
    white-space: nowrap;
    width: 100vw;
    gap: 0.5rem;
    align-items: center;
    padding-left: 0;
    scrollbar-width: thin;
    scrollbar-color: #ffc200 #f0f0f0;
  }
  .navbar-expand-sm .navbar-nav .nav-item {
    flex: 0 0 auto;
    width: auto;
    margin: 0;
  }
  .navbar-expand-sm .navbar-nav .nav-link {
    padding: 0.75rem 1.2rem;
    font-size: 1.1rem;
    border-radius: 1.5rem;
    text-align: center;
    background: transparent;
    transition: background 0.2s;
  }
  .navbar-expand-sm .navbar-nav .nav-link:active,
  .navbar-expand-sm .navbar-nav .nav-link:focus {
    background: #ffc20022;
  }
  /* Optional: show a subtle scrollbar */
  .navbar-expand-sm .navbar-nav::-webkit-scrollbar {
    height: 6px;
  }
  .navbar-expand-sm .navbar-nav::-webkit-scrollbar-thumb {
    background: #ffc200;
    border-radius: 3px;
  }
  .navbar-expand-sm .navbar-nav::-webkit-scrollbar-track {
    background: #f0f0f0;
  }
}
@import url('https://fonts.googleapis.com/css?family=Maven+Pro:400,700');

/* Loading States & Skeleton Screens */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.dark-mode .skeleton {
  background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
  background-size: 200% 100%;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Skeleton Components */
.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
  border-radius: 4px;
}

.skeleton-text.large {
  height: 1.5rem;
  margin-bottom: 0.75rem;
}

.skeleton-text.small {
  height: 0.75rem;
  margin-bottom: 0.25rem;
}

.skeleton-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

.skeleton-image {
  width: 100%;
  height: 200px;
  border-radius: 8px;
}

.skeleton-card {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.skeleton-button {
  height: 40px;
  width: 120px;
  border-radius: 20px;
  margin: 0.5rem 0;
}

/* Project Card Skeleton */
.skeleton-project-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  padding: 1rem;
  margin: 1rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.skeleton-project-image {
  width: 100%;
  height: 200px;
  border-radius: 15px;
  margin-bottom: 1rem;
}

.skeleton-project-title {
  height: 1.5rem;
  width: 80%;
  margin-bottom: 0.75rem;
  border-radius: 4px;
}

.skeleton-project-description {
  height: 0.875rem;
  width: 100%;
  margin-bottom: 0.5rem;
  border-radius: 4px;
}

.skeleton-project-description:last-child {
  width: 60%;
}

/* Skills Section Skeleton */
.skeleton-skill-bar {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.skeleton-skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.skeleton-skill-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 4px;
}

.skeleton-skill-name {
  height: 1.2rem;
  width: 100px;
  border-radius: 4px;
}

.skeleton-skill-percentage {
  height: 1rem;
  width: 40px;
  border-radius: 4px;
}

.skeleton-skill-progress {
  height: 10px;
  width: 100%;
  border-radius: 6px;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: all 0.5s ease;
}

.loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.dark-mode .loading-overlay {
  background: rgba(0, 0, 0, 0.9);
}

/* Modern Spinner */
.modern-spinner {
  width: 60px;
  height: 60px;
  position: relative;
}

.modern-spinner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-top: 3px solid #ffc200;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.modern-spinner::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  border: 3px solid transparent;
  border-bottom: 3px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite reverse;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Content Loading States */
.content-loading {
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.content-loaded {
  opacity: 1;
  pointer-events: auto;
}

/* Smooth Image Loading */
.fade-in-image {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.fade-in-image.loaded {
  opacity: 1;
}

/* Progressive Image Loading */
.progressive-image {
  position: relative;
  overflow: hidden;
}

.progressive-image .placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

.progressive-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.progressive-image img.loading {
  opacity: 0;
}

.progressive-image img.loaded {
  opacity: 1;
}

/* Lazy Loading Animation */
.lazy-load {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.lazy-load.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Section Loading States */
.section-skeleton {
  padding: 2rem 0;
}

.section-skeleton .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Responsive Skeleton Adjustments */
@media (max-width: 768px) {
  .skeleton-project-card {
    margin: 0.5rem;
    padding: 0.75rem;
  }

  .skeleton-project-image {
    height: 150px;
  }

  .skeleton-skill-bar {
    padding: 0.75rem;
    margin-bottom: 1rem;
  }

  .modern-spinner {
    width: 40px;
    height: 40px;
  }
}

/* Loading Button States */
.button.loading,
.form-btn.loading,
.custom-btn.loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.button.loading::after,
.form-btn.loading::after,
.custom-btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Enhanced Fade In Cards */
.fade-in-card {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-card.loaded {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Staggered Animation for Multiple Elements */
.fade-in-card:nth-child(1) {
  transition-delay: 0.1s;
}
.fade-in-card:nth-child(2) {
  transition-delay: 0.2s;
}
.fade-in-card:nth-child(3) {
  transition-delay: 0.3s;
}
.fade-in-card:nth-child(4) {
  transition-delay: 0.4s;
}
.fade-in-card:nth-child(5) {
  transition-delay: 0.5s;
}
.fade-in-card:nth-child(6) {
  transition-delay: 0.6s;
}

/* Loading Text Animation */
.loading-text {
  position: relative;
}

.loading-text::after {
  content: '';
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0%,
  20% {
    content: '';
  }
  40% {
    content: '.';
  }
  60% {
    content: '..';
  }
  80%,
  100% {
    content: '...';
  }
}

body {
  font-family: 'Maven Pro', sans-serif;
  padding-top: 40px;
  background: transparent;
  overflow-x: hidden;
}

#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: -1;
}

.dark-mode #particles-js {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

/*#particlesdark-js{
  width: 0;
}

.dark-mode #particlesdark-js { 
  position: absolute;
  top: 0;left: 0;
  height: 100%;
  width: 100%;
}
.dark-mode #particles-js{
  width: 0;
}*/

/*---------color mode------------*/
.color-mode {
  font-weight: bold;
  cursor: pointer;
}

.color-mode-icon {
  display: flex;
  margin-left: auto;
}

.color-mode-icon:after {
  font-family: 'unicons';
  content: '\ea9f';
  font-size: 30px;
  font-weight: 300;
  font-style: normal;
}

.color-mode-icon.active:after {
  font-family: 'unicons';
  content: '\eb65';
  font-size: 30px;
  color: #ffffff;
}

.dark-mode {
  background: #000000;
}

.dark-mode .navbar-light .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.8);
}

.dark-mode .navbar-light .navbar-nav .nav-link:hover {
  color: #ffc200;
}

.dark-mode .navbar[class*='headroom--not-top'] {
  background: #0c0c0d;
  border-bottom: 1px solid #1f1f1f;
}

.dark-mode .small-des {
  color: #b9b8b8;
}

.dark-mode .small-text {
  background: #0d0c15;
  color: #ffffff;
}

.dark-mode .feature-card .uil,
.dark-mode .navbar-light .navbar-brand,
.dark-mode h1,
.dark-mode h2,
.dark-mode h3,
.dark-mode h4,
.dark-mode h5,
.dark-mode h6,
.dark-mode .color-mode {
  color: #ffffff;
}

.dark-mode p {
  color: #b9b8b8;
}

.dark-mode .navbar-brand .uil img {
  content: url(images/logo2.png);
}

/*---------------------------------------------*/

.full-screen {
  padding: 8rem 0;
}

.small-text {
  color: #5b5b5b;
  font-size: 14px;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 50px;
  letter-spacing: 0.2px;
}

ul {
  margin: 0;
  padding: 0;
}

ul li {
  list-style: none;
}

a {
  font-weight: normal;
  text-decoration: none !important;
  transition: all 0.4s ease;
}

a:hover {
  color: #ffc200 !important;
}

.navbar-brand .uil {
  width: 2rem;
  margin-right: 5px;
}

.home-text p {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
  color: #5b5b5b;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: bold;
  letter-spacing: -1px;
}

h1 {
  color: #0c0c0c;
  font-size: 2.8em;
  margin: 24px 0;
}

.sectionhead h1 {
  text-align: center;
}

h2 {
  color: #353535;
  font-size: 2.4em;
  font-weight: bold;
}

h3 {
  color: #484848;
}

h3,
b,
strong {
  font-weight: bold;
}

.custom-btn {
  background: #eee;
  color: #5b5b5b;
  font-weight: bold;
  border-radius: 50px;
  padding: 13px 29px;
  font-size: 14px;
  line-height: normal;
  overflow: hidden;
}

.custom-btn:hover {
  color: #ffc200;
}

.custom-btn.custom-btn-bg {
  background: #474559;
  color: #ffffff;
}

.custom-btn.custom-btn-bg:hover {
  background: #ffc200;
  color: #ffffff !important;
}

.animated {
  position: relative;
}

.animated-info {
  display: block;
  vertical-align: top;
  margin-top: 5px;
  margin-bottom: 5px;
  padding-bottom: 28px;
  min-width: 260px;
  position: relative;
}

.animated-item {
  color: #ffc200;
}

.animated-item {
  font-size: 32px;
  line-height: inherit;
  display: block;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  animation: BottomTotop 6s linear infinite 0s;
}

.animated-item:nth-child(2n + 2) {
  animation-delay: 2s;
}

.animated-item:nth-child(3n + 3) {
  animation-delay: 4s;
}

.home-image img {
  width: 70%;
  margin-left: 6rem;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  cursor: pointer;

  background-color: rgba(255, 193, 7, 0.6); /* Semi-transparent #ffc107 */
}

.home-image style {
  will-change: transform;
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1);
}

.home .home-text h6 {
  font-weight: 100;
}

.sectionhead span {
  color: #ffc200;
  text-align: center;
}

#home {
  overflow: hidden;
  padding-top: 20px;
  padding-bottom: 30px;
}

#about {
  overflow: hidden;
}

#about .content p {
  color: #ffffff;
}

/*Home cards===============*/
.home-cards {
  font-family: sans-serif;
  box-sizing: border-box;
}

.home-cards,
.home-cards:before,
.home-cards:after {
  box-sizing: inherit;
}

.home-cards .text-center {
  text-align: center;
}

.home-cards .color-white {
  color: #ffffff;
}

.home-cards .box-container {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 1rem 15rem;
  width: 100%;
}

@media screen and (min-width: 768px) {
  .home-cards .box-container {
    flex-direction: row;
  }
}

.home-cards .box-item {
  position: relative;
  -webkit-backface-visibility: hidden;
  width: 260px;
  max-width: 100%;
}

.home-cards .flip-box {
  -ms-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  perspective: 1000px;
  -webkit-perspective: 1000px;
}

.home-cards .flip-box-front,
.flip-box-back {
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  min-height: 200px;
  -ms-transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  -webkit-transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.home-cards .flip-box-front {
  -ms-transform: rotateY(0deg);
  -webkit-transform: rotateY(0deg);
  transform: rotateY(0deg);
  -webkit-transform-style: preserve-3d;
  -ms-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.flip-box:hover .flip-box-front {
  -ms-transform: rotateY(-180deg);
  -webkit-transform: rotateY(-180deg);
  transform: rotateY(-180deg);
  -webkit-transform-style: preserve-3d;
  -ms-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.flip-box-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;

  -ms-transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
  -webkit-transform-style: preserve-3d;
  -ms-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.flip-box:hover .flip-box-back {
  -ms-transform: rotateY(0deg);
  -webkit-transform: rotateY(0deg);
  transform: rotateY(0deg);
  -webkit-transform-style: preserve-3d;
  -ms-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.flip-box .inner {
  position: absolute;
  left: 0;
  width: 100%;
  padding: 30px;
  outline: 1px solid transparent;
  -webkit-perspective: inherit;
  perspective: inherit;
  z-index: 2;

  transform: translateY(-50%) translateZ(60px) scale(0.94);
  -webkit-transform: translateY(-50%) translateZ(60px) scale(0.94);
  -ms-transform: translateY(-50%) translateZ(60px) scale(0.94);
  top: 50%;
}

.title {
  align-self: start;
  font-size: 16px;
  font-weight: 200;
}

.flip-box-header {
  font-size: 24px;
  color: #ffffff;
}

.flip-box p {
  font-size: 16px;
  line-height: 1em;
}

.flip-box-img {
  width: 10%;
}

.flip-box-buttons {
  display: flex;
  background-color: transparent;
  cursor: pointer;
  margin-top: 10px;
  padding: 8px 5px;
  flex-wrap: nowrap;
  justify-content: center;
}

/* Adding circle border to the icons */
.flip-box-buttons a {
  display: block;
  width: 30px;
  height: 30px;
  margin: 0 5px;
  line-height: 30px;
  text-align: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 1px #fff;
  transition: transform 0.2s ease-in-out;
  text-decoration: none;
  /* Remove underlines */
}

.inner a {
  display: inline-block;
  position: relative;
  color: white;
  /* Makes the icons white */
  font-size: 20px;
  margin-left: 8px;
  margin-right: 8px;
}

/* Zooming out on hover */
.flip-box-buttons a:hover {
  transform: scale(1.2);
}

@media screen and (max-width: 1379px) {
  .box-container {
    flex-wrap: wrap;
  }

  .box-item {
    width: calc(33.333% - 20px);
    /* margin-bottom: 20px; */
  }
}

@media screen and (max-width: 767px) {
  .home-cards .box-container {
    padding: 0 2rem;
    width: 100%;
  }

  .home-cards .box-item {
    width: 100%;
    /* margin-bottom: 20px; */
  }
}

/*---------------------------------*/

/*---------Animation Items-----------------*/
@keyframes BottomTotop {
  0% {
    opacity: 0;
  }

  5% {
    opacity: 0;
    transform: translateY(5px);
  }

  10% {
    opacity: 1;
    transform: translateY(0px);
  }

  25% {
    opacity: 1;
    transform: translateY(0px);
  }

  30% {
    opacity: 0;
    transform: translateY(5px);
  }

  80% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

.content p {
  position: relative;
  display: block;
  font-size: 15px;
  flex: 1 1 40rem;
  padding-top: 1rem;
  z-index: 1;
}

/* ----------NAVIGATION BAR------------ */

.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 999999;
  will-change: transform;
  transition: transform 200ms linear;
}


.navbar[class*='-pinned'] {
  transform: translate(0, 0);
}

.navbar[class*='headroom--not-top'] {
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
  padding-top: 0;
  padding-bottom: 0;
}

.navbar-brand {
  font-weight: bold;
}

.navbar-expand-sm .navbar-nav .nav-link {
  padding: 0.2rem 20px 0.2rem 20px;
}

.nav-link {
  font-weight: bold;
  font-size: 16px;
  overflow: hidden;
}

.nav-link span {
  position: relative;
  display: inline-block;
  transition: transform 0.3s;
}

.nav-link span:before {
  position: absolute;
  top: 100%;
  content: attr(data-hover);
  transform: translate3d(0, 0, 0);
}

.navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .nav-link:hover {
  color: #ffc200;
  font-weight: bold;
}

.navbar-light .navbar-nav .nav-link:focus span,
.navbar-light .navbar-nav .nav-link:hover span {
  transform: translateY(-100%);
}

.color-mode {
  justify-self: left;
}

.navbar-light .navbar-toggler-icon {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

.navbar-toggler {
  border: none !important;
  border-radius: 0px !important;
  background: transparent !important;
  padding: 0 !important;
  width: 32px !important;
  height: 32px !important;
  line-height: 32px !important;
  outline: none !important;
  box-shadow: none !important;
  cursor: pointer;
  margin-right: 10px;
  position: initial;
}

.navbar-toggler:focus {
  outline: none !important;
  box-shadow: none !important;
}

.navbar-toggler[aria-expanded='true'] .navbar-toggler-icon:first-child {
  transform: rotate(45deg);
  top: 6px;
}

.navbar-toggler[aria-expanded='true'] .navbar-toggler-icon:nth-child(2) {
  display: none;
}

.navbar-toggler[aria-expanded='true'] .navbar-toggler-icon:last-child {
  transform: rotate(-45deg);
  bottom: 1px;
}

.navbar-toggler .navbar-toggler-icon {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* Make navbar toggler icon white in dark mode, black in light mode */
body.dark-mode .navbar-toggler .navbar-toggler-icon,
.dark-mode .navbar-toggler .navbar-toggler-icon {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

body:not(.dark-mode) .navbar-toggler .navbar-toggler-icon,
:not(.dark-mode) .navbar-toggler .navbar-toggler-icon {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  transition: all 0.4s ease;
  position: relative;
}

/*----------ABOUT ME--------------------------*/
#contact {
  justify-content: center;
  overflow: hidden;
}

#about h2 {
  font-size: 2rem;
}

#about .container {
  align-items: center;
  justify-content: center;
}

#about .box {
  align-content: center;
  justify-content: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 10%;
}

/*!important*/
#about .flex-direction {
  flex-direction: row;
}

#about .about-details {
  display: inline-block;
  width: 600px;
  height: 500px;
}

#about .about-me {
  align-self: center;
  justify-self: center;
}

#about .about-me img {
  width: 400;
  height: 550px;
  filter: drop-shadow(2px 2px 20px #ffc200);
  /*image edgs glow*/
}

/* skills section starts */
#skills {
  overflow: hidden;
}

.skills {
  padding-top: 20px;
  padding-bottom: 20px;
}

.skills .container {
  padding: auto;
  margin: auto;
}

.skills .container .row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  flex-wrap: wrap;
}

.skills .container .row .col {
  display: grid;
}

.skills .container .col {
  position: relative;
  width: 90%;
  color: #fff;
  margin-top: 0.5rem;
}

.skills .container .col .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 .col .bar:hover {
  transform: translateX(12px);
  box-shadow: 0 5px 8px rgba(0, 2, 68, 0.4);
}

.skills .container .col .bar .info {
  display: flex;
  align-items: top;
  justify-content: space-between;
  margin-bottom: 5px;
}

.skills .container .col .bar .info i {
  font-size: 2rem;
}

.skills .container .col .bar .info span {
  font-size: 1.2rem;
  font-weight: 300;
  font-family: 'Poppins';
  margin-left: 0.5rem;
}

.skills .container .col .bar .line {
  position: relative;
  width: 100%;
  height: 10px;
  background: rgb(212, 211, 211);
  border-radius: 6px;
}

.skills .container .col .bar .line:before {
  content: '';
  position: absolute;
  height: 100%;
  top: 0;
  left: 0;
  border-radius: 4px;
}

.skills .container .col .bar .java:before {
  width: 85%;
  background: #ffc200;
}

.skills .container .col .bar .cpp:before {
  width: 80%;
  background: #ffc200;
}

.skills .container .col .bar .html:before {
  width: 90%;
  background: #ffc200;
}

.skills .container .col .bar .c:before {
  width: 90%;
  background: #ffc200;
}

.skills .container .col .bar .content:before {
  width: 80%;
  background: #ffc200;
}

.skills .container .col .bar .python:before {
  width: 65%;
  background: #ffc200;
}

.skills .container .col .bar .graphics:before {
  width: 75%;
  background: #ffc200;
}

.skills .container .col .bar .msoffice:before {
  width: 78%;
  background: #ffc200;
}

.skills .container .col .bar .project:before {
  width: 85%;
  background: #ffc200;
}

.skills .container .col .bar .gcp:before {
  width: 60%;
  background: #ffc200;
}

/* skills section ends */

/*Education Section*/
#education {
  overflow: hidden;
}

.bg-lightgrey {
  background-color: #1a1a1a;
}

#education .boxcontainer {
  padding: 10px;
  display: flex;
  justify-content: space-evenly;
}

.edu {
  padding: 10px 0px;
  width: 48%;
  margin: 1%;
  float: left;
  padding-left: 10px;
  justify-content: top;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.edu-list {
  width: 100%;
  float: left;
  padding: 30px 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid #ffc40018;
  margin-bottom: 20px;
  border-radius: 1rem;
}

.edu-content {
  width: 100%;
  float: left;
  margin-left: 10px;
}

.edu-content h2 {
  color: wheat;
  font-weight: 600;
  font-size: 20px;
}

.edu-content h3 {
  color: #ffc200;
  font-weight: 500;
  font-size: 17px;
  margin: 0;
}

.edu-content p {
  color: #ffffff;
  font-size: 15px;
  margin: 0;
}

/*Project Section*/

/*#projects{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000000;
}*/
#projects {
  overflow: hidden;
}

#projects .slide-container {
  max-width: 100%;
  width: 100%;
  height: 35rem;
  padding: 40px 0;
  margin: 10px 0;
}

#projects .slide-content {
  margin: 0 35px;
  padding: 35px;
  overflow: hidden;
  border-radius: 25px;
}

#projects .card {
  box-sizing: border-box;
  border-radius: 25px;
  background-color: transparent;
  box-shadow: 0 0 0.8rem rgba(47, 47, 48, 0.9);
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 400px;
  /* Set a fixed maximum height for the card */
  overflow: hidden;
  /* Hide any overflow content */
}

#projects .project-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 14px;
  flex-grow: 1;
}

#projects .image-content {
  position: relative;
  row-gap: 8px;
  padding: 0;
  width: 100%;
  height: 60%;
  /* Adjust as needed */
  overflow: hidden;
}

#projects .overlay {
  position: absolute;
  left: 0;
  top: 0;
  height: 10rem;
  width: 10rem;
  background-color: transparent;
  border-radius: 25px 25px 0 25px;
}

#projects .overlay::before,
.overlay::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -40px;
  height: 40px;
  width: 40px;
  background-color: transparent;
}

/*.overlay::after{
  border-radius: 0 25px 0 0;
  background-color: transparent;
}*/

.project-image {
  width: 100%;
  height: 100%;
}

#projects .project-image img {
  position: relative;
  height: 100%;
  width: 100%;
  border-radius: 25px 25px 0 25px;
  z-index: -1;
  object-fit: cover;
}

#projects .project-content h2 {
  font-size: 24px;
  font-weight: 500;
  color: #333;
}

#projects .project-content p {
  font-size: 14px;
  color: #707070;
  text-align: center;
  margin-bottom: 10px;
}

.dark-mode #projects .project-content h2 {
  font-size: 24px;
  font-weight: 500;
  color: #ffffff;
}

.dark-mode #projects .project-content p {
  font-size: 14px;
  color: #949494;
  text-align: center;
  margin-bottom: 10px;
}

#projects .button {
  border: none;
  font-size: 16px;
  color: #fff;
  padding: 5px 16px;
  background-color: #ffc200;
  border-radius: 6px;
  margin: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#projects .button:hover {
  background: #484848;
}

#projects .swiper-navBtn {
  color: #000000;
  transition: color 0.3s ease;
}

#projects .swiper-navBtn:hover {
  color: #ffc200;
}

#projects .swiper-navBtn::before,
.swiper-navBtn::after {
  font-size: 35px;
}

#projects .swiper-button-next {
  right: 0;
}

#projects .swiper-button-prev {
  left: 0;
}

/* Enhanced Swiper pagination bullets for gold/black theme */
.swiper-pagination {
  position: relative;
  bottom: 0 !important;
  margin-top: 18px;
  z-index: 10;
  text-align: center;
}
.swiper-pagination-bullet {
  background: #232323;
  border: 2px solid #ffc200;
  opacity: 1;
  width: 14px;
  height: 14px;
  margin: 0 6px !important;
  transition: background 0.2s, border 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px #0003;
}
.swiper-pagination-bullet-active {
  background: #ffc200;
  border: 2px solid #ffc200;
  transform: scale(1.18);
  box-shadow: 0 4px 16px #ffc20055;
}
.swiper-pagination-bullet:hover {
  background: #ffc200;
  border-color: #ffc200;
  transform: scale(1.1);
}
@media (max-width: 767px) {
  .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin: 0 3px !important;
  }
}

/*Experience Section*/

#experiences {
  padding: 20px;
  overflow: hidden;
}

.experience-box {
  border: 0.1px solid #ffffff;
  box-shadow: 0 0 1.25rem rgba(31, 45, 61, 0.08);
  border-radius: 10px;
}

.experience-box ul {
  margin: 0;
  padding: 30px 20px;
  list-style: none;
}

.experience-box li {
  position: relative;
  padding: 0 20px 0 60px;
  margin: 0 0 30px;
}

.experience-box li:last-child {
  margin-bottom: 0;
}

.experience-box li:after {
  /*circle dash*/
  content: '';
  position: absolute;
  top: 0px;
  left: 20px;
  border-left: 1px dashed #fc5356;
  bottom: 0;
}

.experience-box .icon {
  width: 40px;
  height: 40px;
  position: absolute;
  left: 0;
  right: 0;
  color: #ffc200;
  line-height: 40px;
  background: none;
  text-align: center;
  z-index: 1;
  border: 1px dashed;
  border-radius: 50%;
}

.experience-box .time {
  background: #ffc200;
  color: #ffffff;
  font-size: 15px;
  padding: 2px 10px;
  display: inline-block;
  margin-bottom: 8px;
  border-radius: 20px;
  font-weight: 600;
}

.experience-box h5 {
  font-weight: 700;
  color: #1d1e1e;
  font-size: 16px;
  margin-bottom: 5px;
}

.dark-mode .experience-box h5 {
  font-weight: 700;
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 5px;
}

.experience-box p {
  margin: 0;
}

.experience-box li:after {
  /*circle dash lower*/
  content: '';
  position: absolute;
  top: 42px;
  left: 20px;
  border-left: 1px dashed #ffc200;
  bottom: 0;
}

/*Achievements and Certifications*/
#achievements {
  padding: 20px;
  overflow: hidden;
}

#achievements .box img {
  position: absolute;
  width: 18rem;
  height: 12rem;
  border-radius: 7%;
  object-fit: cover;
}

/*#achievements .box {
  background: transparent;
  position: relative;
  width: 18rem;
  height: 12rem;
  margin: 15px;
  border-radius: 7%;
  box-shadow: 2px 2px 12px rgba(0, 0, 22, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 1;
}*/
/*#achievements .box {
  background: transparent;
  position: relative;
  width: 18rem;
  height: 12rem;
  margin: 15px;
  border-radius: 7%;
  box-shadow: 2px 2px 12px rgba(0, 0, 22, 0.9);
  display: flex;
  justify-content: end;
  align-items: center;
  flex-direction: column;
 }*/
#achievements .box {
  position: relative;
  width: 18rem;
  height: 12rem;
  margin: 15px;
  border-radius: 7%;
  box-shadow: 2px 2px 12px rgba(0, 0, 22, 0.9);
  display: flex;
  justify-content: end;
  align-items: center;
  flex-direction: column;
  overflow: hidden;
  /* hide the gradient overflow */
}

#achievements .box::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  /* control the size of the gradient */
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  z-index: 1;
  /* ensure the gradient stays behind the box content */
}

#achievements .box-container {
  padding: 10px;
  display: flex;
  justify-content: space-evenly;
}

#achievements .box p {
  color: rgb(0, 0, 0);
  font-weight: 400;
}

.dark-mode #achievements .box h2 {
  color: rgb(0, 0, 0);
  font-weight: 400;
}

#achievements .box p:nth-child(2) {
  font-family: calibri;
  text-align: center;
  font-size: 23px;
  color: #000000;
}

#achievements .box button {
  width: 100px;
  height: 30px;
  margin-bottom: 10px;
  background-color: #ffc200;
  border: none;
  outline: none;
  border-radius: 5px;
  z-index: 1;
  transition: all 0.4s ease;
}

#achievements .box button:hover {
  background: #484848;
  color: #ffffff;
}

/*-------------------------------*/
.modal {
  z-index: 9999999;
  position: fixed;
  margin-top: 20px;
  margin: auto;
  padding: auto;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  animation: fadeIn 0.8s;
  justify-content: center;
}

.modal-content {
  background-color: #ffffff;
  margin: auto;
  margin-top: 50px;
  margin-bottom: auto;
  padding: 15px;
  border: 1px solid #888;
  width: 60%;
  align-self: center;
}

.close {
  color: #aaaaaa;
  float: right;
  margin-left: auto;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

/* Blur effect */

/* Fade in animation */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/*--------------Contact sction---------------*/
#contact {
  justify-content: center;
  overflow: hidden;
}

/*#contact .containerbox {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	font-family: 'Montserrat', sans-serif;
  font-size:10px;
	height: 100vh;
}*/

#contact h2 {
  font-size: 2rem;
}

#contact .container {
  align-items: center;
  justify-content: center;
}

#contact .box {
  align-content: center;
  justify-content: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 10%;
}

/*!important*/
#contact .flex-direction {
  flex-direction: row;
}

#contact .contact-form {
  display: inline-block;
  width: 500px;
  height: 320px;
}

#contact .contact-image {
  align-self: center;
  justify-self: center;
}

#contact .contact-image img {
  width: 400px;
  height: 300px;
  filter: drop-shadow(2px 2px 20px #ffc200);
  /*image edgs glow*/
}

#contact .form {
  margin-left: auto;
  margin-top: auto;
  margin-bottom: auto;
}

#contact input,
textarea {
  color: #000000;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid #000000;
  padding: 6px 15px;
  margin: 6px 0;
  width: 70%;
  font-size: 0.8rem;
  text-align: center;
}

#message {
  color: #000000;
}

.dark-mode #message {
  color: #ffffff;
}

.dark-mode #contact input,
textarea {
  color: #ffffff;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid #ffffff;
  padding: 6px 15px;
  margin: 6px 0;
  width: 70%;
  font-size: 0.8rem;
  text-align: center;
}

#contact .form-btn {
  transition: all 0.4s ease;
  border-radius: 20px;
  border: 1px solid #ffffff;
  background-color: #ffc200;
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
  padding: 12px 45px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  margin: auto;
}

.dark-mode #contact .form-btn {
  border-radius: 20px;
  border: 1px solid #ffffff;
  background-color: #ffc200;
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
  padding: 12px 45px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  margin: auto;
}

#contact .form-btn:hover {
  background: #484848;
}

/* footer section starts */
#footer {
  overflow: hidden;
}

.footer {
  position: relative;
  min-height: auto;
  padding-top: auto;
  background: transparent;
  justify-content: end;
}

.footer .social {
  margin-left: auto;
  margin-right: auto;
  width: 50%;
  padding-top: 30px;
  padding-bottom: 20px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-evenly;
}

.footer .note {
  font-family: 'Lucida Handwriting';
  font-size: 20px;
  text-align: center;
  color: #000000;
}

.footer .note p {
  margin-bottom: 0;
  margin-top: 15px;
}

.footer .social a {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: #000000;
  /* Makes the icons black for light mode */
  height: 50px;
  width: 50px;
  padding: 8px;
  margin-top: 25px;
  text-align: center;
  border-radius: 50px;
  font-size: 30px;
  transition: transform 0.2s ease-in-out;
}

.social a:hover {
  transform: scale(1.2);
  /* Zoom in on hover */
}

.dark-mode .footer {
  background: transparent;
}

.dark-mode .note p,
.dark-mode .social a {
  color: #ffffff;
}

.footer .credit {
  position: relative;
  padding: auto;
  text-align: center;
  align-self: center;
  font-size: 15px;
  font-weight: 600;
}

.footer .credit p {
  margin: 0;
  padding: 5px 0;
  color: #000000;
}

.footer .credit a {
  color: #000000;
  font-weight: 600;
}

.dark-mode .footer .credit p,
.dark-mode .footer .note p {
  color: #ffffff;
}

.dark-mode .footer .credit a {
  color: #ffffff;
}

.footer .fa {
  color: #e90606;
  margin: 5px;
  font-size: 15px;
  animation: pound 0.35s infinite alternate;
}

/* Enhanced Footer Mobile Responsiveness */
@media (max-width: 768px) {
  .footer .social {
    width: 90%;
    padding-top: 20px;
    padding-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
  }

  .footer .social a {
    height: 45px;
    width: 45px;
    font-size: 24px;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .footer .note {
    font-size: 16px;
    padding: 0 20px;
  }

  .footer .note p {
    margin-top: 10px;
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  .footer .social {
    width: 100%;
    padding: 15px 10px;
    justify-content: center;
    gap: 10px;
  }

  .footer .social a {
    height: 40px;
    width: 40px;
    font-size: 20px;
    margin: 5px;
  }

  .footer .note {
    font-size: 14px;
    padding: 0 15px;
  }

  .footer .credit {
    font-size: 13px;
    padding: 0 15px;
  }

  .footer .credit p {
    padding: 8px 0;
  }
}

/* Extra Small Devices */
@media (max-width: 320px) {
  .footer .social {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .footer .social a {
    height: 35px;
    width: 35px;
    font-size: 18px;
    margin: 3px;
  }

  .footer .note {
    font-size: 12px;
  }

  .footer .credit {
    font-size: 12px;
  }
}

/* Ensure proper touch targets */
@media (hover: none) and (pointer: coarse) {
  .footer .social a {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/*@-webkit-keyframes pound {
  to {
    transform: scale(1.1);
  }
}

@keyframes pound {
  to {
    transform: scale(1.1);
  }
}*/

/*Body Media*/
@media (max-width: 998px) {
  .full-screen {
    padding-bottom: 4rem;
  }

  #home {
    padding-top: 5px;
  }

  .color-mode-icon {
    display: block;
    justify-items: center;
  }

  .color-mode i {
    flex-direction: row;
    padding-right: 10px;
  }

  /*.navbar-toggler {
    flex-direction: row;
    margin-left: auto;
  }*/

  #home .home-image {
    margin-top: auto;
  }

  .edu {
    flex-direction: column;
  }

  #home {
    justify-content: center;
    overflow: hidden;
  }

  #about {
    justify-content: center;
  }

  #about .box {
    display: grid;
    align-content: center;
    justify-content: center;
    display: 100%;
    gap: 0;
  }

  .about .flex-direction {
    flex-direction: column;
  }

  #about .about-details {
    display: contents;
    text-align: center;
    padding: 5px;
    width: 100%;
  }

  #about .about-me img {
    justify-self: center;
    width: 300px;
    height: 337px;
    object-fit: cover;
    object-position: 100% 0;
    padding-bottom: 20px;
  }
}

/* skills media queries starts*/
@media screen and (max-width: 998px) {
  #skills {
    justify-content: center;
  }

  .skills .container {
    padding: 0;
    margin: auto;
  }

  .skills .container .row {
    grid-template-columns: repeat(1, 1fr);
    margin: 1rem;
    padding-top: 1rem;
  }

  .skills .container .col {
    margin-top: 5px;
    width: 100%;
  }

  .skills .container .col .bar {
    margin-bottom: 10px;
    padding: 10px;
  }

  .skills .container .col .bar .line {
    height: 0.8rem;
  }

  .education {
    justify-content: center;
  }

  .education .container {
    padding: 0;
    margin: auto;
  }

  .education .container .row {
    grid-template-columns: repeat(1, 1fr);
    margin: 1rem;
    padding-top: 1rem;
  }

  .education .container .col {
    display: contents;
    margin-top: 5px;
    width: 100%;
  }

  .education .container .col .edu-list {
    margin-bottom: 10px;
    padding: 10px;
  }

  .modal-content {
    background-color: #fefefe;
    margin: auto;
    margin-top: 110px;
    margin-bottom: auto;
    padding: auto;
    border: 1px solid #888;
    width: 95%;
    align-self: center;
  }

  #contact {
    justify-content: center;
  }

  #contact .box {
    display: grid;
    align-content: center;
    display: 100%;
    gap: 0;
  }

  #contact .flex-direction {
    flex-direction: column;
  }

  #contact .contact-form {
    text-align: center;
    width: 400px;
    height: 320px;
  }

  #contact .contact-image {
    margin: 5px;
    padding: 8px;
  }

  #contact .contact-image img {
    justify-self: center;
    width: 400px;
    height: 300px;
  }
}

@media (max-width: 568px) {
  h1 {
    font-size: 2.4em;
  }

  h2 {
    font-size: 2em;
  }

  .home-image img {
    align-items: center;
  }

  #home .home-image .img-fluid {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 8%;
    width: 80%;
  }

  .intro {
    text-align: justify;
  }

  .animated .mr-2,
  .animated .name-dk {
    font-size: 26px;
  }

  .animated-item {
    font-size: 24px;
  }

  .navbar-collapse {
    background: #cccccccb;
    text-align: center;
    padding-bottom: 20px;
  }

  .navbar-expand-sm .navbar-nav .nav-link {
    padding: 3px 20px;
  }

  .animated-info {
    min-width: 200px;
  }

  .custom-btn-group {
    text-align: center;
  }

  .custom-btn {
    display: block;
    margin: 10px 0;
  }
}

/* Professional Skip to Main Content Link */
.skip-to-main-wrapper {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.skip-to-main-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
  font-size: 18px;
  position: relative;
  overflow: hidden;
}

.skip-to-main-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
  color: #ffffff;
  text-decoration: none;
}

.skip-to-main-link:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.skip-to-main-link:hover:before {
  left: 100%;
}

.skip-to-main-link span {
  position: absolute;
  right: 70px;
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.3s ease;
}

.skip-to-main-link span:after {
  content: '';
  position: absolute;
  top: 50%;
  left: -5px;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right-color: rgba(0, 0, 0, 0.8);
}

.skip-to-main-link:hover span {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.dark-mode .skip-to-main-link {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

.dark-mode .skip-to-main-link:hover {
  box-shadow: 0 6px 20px rgba(79, 172, 254, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
  .skip-to-main-wrapper {
    bottom: 20px;
    right: 20px;
  }

  .skip-to-main-link {
    width: 50px;
    height: 50px;
    font-size: 16px;
  }

  .skip-to-main-link span {
    display: none;
  }
}

/*slider media*/
/*@media screen and (max-width: 768px) {
  .slide-content {
    margin: 0 10px;
  }

  .swiper-navBtn {
    display: none;
  }
}*/

/* <!-- Modern Scroll to Top Button Styles --> */

/* Loading Skeleton Animations */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

.dark-mode .skeleton {
  background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
  background-size: 200% 100%;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
  border-radius: 4px;
}

.skeleton-image {
  width: 100%;
  height: 200px;
  border-radius: 8px;
}

/* Smooth Image Loading */
.fade-in-image {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.fade-in-image.loaded {
  opacity: 1;
}

/* Modern Scroll to Top Button */
.modern-scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 0px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}

.modern-scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), #667eea);
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.scroll-btn:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.scroll-icon {
  position: relative;
  z-index: 3;
  transition: all 0.3s ease;
}

.arrow-up {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 12px solid white;
  transition: all 0.3s ease;
}

.scroll-btn:hover .arrow-up {
  transform: translateY(-3px);
  border-bottom-color: #fff;
}

.scroll-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  font-size: 10px;
  font-weight: 700;
  color: white;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  z-index: 2;
}

.scroll-btn:hover .scroll-text {
  opacity: 1;
}

.scroll-btn:hover .scroll-icon {
  opacity: 0;
}

.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.progress-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.progress-circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.3);
  stroke-linecap: round;
  stroke-dasharray: 157; /* 2 * π * 25 */
  stroke-dashoffset: 157;
  transition: stroke-dashoffset 0.3s ease;
}

/* Pulse Animation */
.scroll-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), #667eea);
  border-radius: 50%;
  animation: pulse-ring 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
  z-index: -1;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* Ripple Effect */
.scroll-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
  z-index: 1;
}

.scroll-btn:active::after {
  width: 100%;
  height: 100%;
}

/* Dark mode adjustments */
.dark-mode .scroll-btn {
  background: linear-gradient(135deg, #667eea, var(--primary-color));
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.1);
}

.dark-mode .scroll-btn:hover {
  box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .modern-scroll-to-top {
    bottom: 20px;
    right: 20px;
  }

  .scroll-btn {
    width: 50px;
    height: 50px;
  }

  .arrow-up {
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 10px solid white;
  }

  .scroll-text span {
    font-size: 8px;
  }
}

/* Alternative floating design */
.scroll-btn.floating {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.scroll-btn.floating:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Enhanced Skill Bars with Animation */
.skill-item {
  position: relative;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.skill-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.skill-progress {
  position: relative;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.skill-progress-bar {
  height: 100%;
  background: linear-gradient(45deg, #ffc200, #ff8c00);
  border-radius: 4px;
  transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.skill-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%
  );
  animation: shine 2s infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Interactive Project Cards */
.project-card-enhanced {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 194, 0, 0.1),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.project-card-enhanced:hover::before {
  transform: translateX(100%);
}

.project-card-enhanced:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Creative Animated Background Waves */
.path-0 {
  animation: pathAnim-0 4s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes pathAnim-0 {
  0% {
    d: path(
      'M 0,700 L 0,262 C 81.05462040535897,237.42219168670562 162.10924081071795,212.8443833734112 237,221 C 311.89075918928205,229.1556166265888 380.6176571624871,270.04465819306074 434,323 C 487.3823428375129,375.95534180693926 525.4201305393336,440.9769838543456 594,497 C 662.5798694606664,553.0230161456544 761.7018206801787,600.047406389557 830,596 C 898.2981793198213,591.952593610443 935.7725867399517,536.833390587427 994,513 C 1052.2274132600483,489.166609412573 1131.2078323600138,496.61903126073514 1209,535 C 1286.7921676399862,573.3809687392649 1363.3960838199932,642.6904843696325 1440,712 L 1440,700 L 0,700 Z'
    );
  }

  25% {
    d: path(
      'M 0,700 L 0,262 C 80.89797320508416,267.1350051528684 161.7959464101683,272.2700103057369 217,290 C 272.2040535898317,307.7299896942631 301.71418756441085,338.0549639299209 374,349 C 446.28581243558915,359.9450360700791 561.3473033321883,351.51013397457916 633,383 C 704.6526966678117,414.48986602542084 732.8965991068362,485.90450017176227 791,496 C 849.1034008931638,506.09549982823773 937.0663002404672,454.8718653383718 1021,507 C 1104.9336997595328,559.1281346616282 1184.8381999312949,714.6080384747509 1254,766 C 1323.1618000687051,817.3919615252491 1381.5809000343525,764.6959807626246 1440,712 L 1440,700 L 0,700 Z'
    );
  }

  50% {
    d: path(
      'M 0,700 L 0,262 C 49.7437306767434,281.98488491927174 99.4874613534868,301.96976983854347 176,308 C 252.5125386465132,314.03023016145653 355.7938852627963,306.1058055650979 432,342 C 508.2061147372037,377.8941944349021 557.3369975953281,457.6070079010649 616,477 C 674.6630024046719,496.3929920989351 742.8581243558916,455.46616283064236 819,465 C 895.1418756441084,474.53383716935764 979.2305049811062,534.5283407763656 1042,597 C 1104.7694950188938,659.4716592236344 1146.219855719684,724.4204740638955 1209,744 C 1271.780144280316,763.5795259361045 1355.890072140158,737.7897629680522 1440,712 L 1440,700 L 0,700 Z'
    );
  }

  75% {
    d: path(
      'M 0,700 L 0,262 C 89.99793885262798,221.77327378907592 179.99587770525596,181.54654757815186 244,185 C 308.00412229474404,188.45345242184814 346.01442803160427,235.58708347646854 398,261 C 449.98557196839573,286.41291652353146 515.946410168327,290.1051185159739 588,332 C 660.053589831673,373.8948814840261 738.1999312950877,453.99244245963587 803,494 C 867.8000687049123,534.0075575403641 919.2538646513226,533.9251116454826 995,528 C 1070.7461353486774,522.0748883545174 1170.784610099622,510.30711095843355 1249,540 C 1327.215389900378,569.6928890415664 1383.607694950189,640.8464445207833 1440,712 L 1440,700 L 0,700 Z'
    );
  }

  100% {
    d: path(
      'M 0,700 L 0,262 C 81.05462040535897,237.42219168670562 162.10924081071795,212.8443833734112 237,221 C 311.89075918928205,229.1556166265888 380.6176571624871,270.04465819306074 434,323 C 487.3823428375129,375.95534180693926 525.4201305393336,440.9769838543456 594,497 C 662.5798694606664,553.0230161456544 761.7018206801787,600.047406389557 830,596 C 898.2981793198213,591.952593610443 935.7725867399517,536.833390587427 994,513 C 1052.2274132600483,489.166609412573 1131.2078323600138,496.61903126073514 1209,535 C 1286.7921676399862,573.3809687392649 1363.3960838199932,642.6904843696325 1440,712 L 1440,700 L 0,700 Z'
    );
  }
}

/* Creative Matrix Rain Effect */
.matrix-rain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.matrix-column {
  position: absolute;
  top: -100px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: #00ff41;
  text-shadow: 0 0 5px #00ff41;
  animation: matrix-fall linear infinite;
  opacity: 0.7;
}

@keyframes matrix-fall {
  to {
    transform: translateY(100vh);
  }
}

/* Creative Floating Icons */
.floating-icons {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.floating-icon {
  position: absolute;
  font-size: 20px;
  opacity: 0.6;
  animation: float-up 15s linear infinite;
  color: var(--primary-color);
}

@keyframes float-up {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.6;
  }

  90% {
    opacity: 0.6;
  }

  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* Creative Cursor Trail */
.cursor-trail {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(138, 43, 226, 0.8) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease;
  animation: pulse 2s infinite;
}

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

  50% {
    transform: scale(1.5);
    opacity: 0.4;
  }
}

/* Creative Typewriter Effect Enhancement */
.typewriter-text {
  display: inline-block;
  overflow: hidden;
  border-right: 3px solid var(--primary-color);
  white-space: nowrap;
  animation:
    typing 3.5s steps(40, end),
    blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }

  50% {
    border-color: var(--primary-color);
  }
}

/* Creative Glitch Effect */
.glitch {
  position: relative;
  display: inline-block;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  animation: glitch-1 0.3s infinite linear alternate-reverse;
}

.glitch::after {
  animation: glitch-2 0.3s infinite linear alternate-reverse;
}

@keyframes glitch-1 {
  0% {
    clip: rect(42px, 9999px, 44px, 0);
    transform: skew(0.85deg);
  }

  5% {
    clip: rect(12px, 9999px, 59px, 0);
    transform: skew(0.4deg);
  }

  10% {
    clip: rect(48px, 9999px, 29px, 0);
    transform: skew(0.7deg);
  }

  100% {
    clip: rect(42px, 9999px, 44px, 0);
    transform: skew(0.85deg);
  }
}

@keyframes glitch-2 {
  0% {
    clip: rect(65px, 9999px, 119px, 0);
    transform: skew(0.74deg);
  }

  5% {
    clip: rect(52px, 9999px, 33px, 0);
    transform: skew(0.9deg);
  }

  10% {
    clip: rect(79px, 9999px, 85px, 0);
    transform: skew(0.6deg);
  }

  100% {
    clip: rect(65px, 9999px, 119px, 0);
    transform: skew(0.74deg);
  }
}

/* <!-- Enhanced Responsive CSS --> */

/* Mobile First Responsive Design */
@media (max-width: 576px) {
  body {
    padding-top: 20px;
  }

  .home-text h1 {
    font-size: 1.8rem !important;
  }

  .home-text .small-text {
    font-size: 0.9rem;
  }

  .home-text .intro {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .custom-btn-group {
    flex-direction: column;
    gap: 10px;
  }

  .custom-btn {
    width: 100%;
    text-align: center;
  }

  .navbar-brand img {
    width: 30px;
    height: 30px;
  }

  .flip-box {
    height: 250px;
  }

  .flip-box-header {
    font-size: 1.1rem !important;
  }

  .flip-box p {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .navbar-toggler {
  border: none !important;
    padding: 4px 8px;
  }

  .navbar-nav {
    text-align: center;
    padding: 0.5rem 0;
  }

  .nav-link {
    padding: 0.4rem 1rem !important;
    margin: 0.1rem 0;
  }

  .home-text {
    text-align: center;
    margin-bottom: 2rem;
  }

  .home-image {
    text-align: center;
  }

  .home-image img {
    max-width: 300px;
    width: 100%;
  }

  .about-details {
    text-align: center;
    margin-top: 2rem;
  }

  .sectionhead h1 {
    font-size: 2rem;
  }

  .box-container {
    padding: 0 1rem;
  }

  .skills .row {
    flex-direction: column;
  }

  .skills .col {
    margin-bottom: 2rem;
  }

  .experience-box ul li {
    text-align: center;
    padding: 1.5rem;
  }

  .contact .box {
    flex-direction: column;
  }

  .contact-image {
    margin-bottom: 2rem;
    text-align: center;
  }

  .contact-image img {
    max-width: 250px;
  }

  .form {
    width: 100%;
  }

  .form-controls {
    margin-bottom: 1rem;
  }

  .social a {
    margin: 0 8px;
    font-size: 1.2rem;
  }

  .footer .note p {
    font-size: 0.9rem;
    padding: 0 1rem;
  }
}

@media (max-width: 992px) {
  .animated-info {
    text-align: center;
  }

  .projects .slide-container {
    padding: 0 1rem;
  }

  .achievements .box-container {
    justify-content: center;
  }

  .achievements .box {
    margin: 1rem;
    width: calc(50% - 2rem);
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }

  .home-text h1 {
    font-size: 3.5rem;
  }

  .flip-box {
    height: 350px;
  }
}

/* Orientation specific styles */
@media (orientation: landscape) and (max-height: 500px) {
  .home {
    min-height: 100vh;
    padding: 2rem 0;
  }

  .navbar {
    padding: 0.25rem 0;
  }

  body {
    padding-top: 20px;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .flip-box:hover .flip-box-inner {
    transform: none;
  }

  .flip-box:active .flip-box-inner {
    transform: rotateY(180deg);
  }

  .custom-btn:hover {
    transform: none;
  }

  .custom-btn:active {
    transform: scale(0.95);
  }
}

/* Z-Index Hierarchy Fix */
/* Home Cards - Lower Priority */
.home-cards,
.home-cards .flip-box,
.home-cards .flip-box-front,
.home-cards .flip-box-back {
  z-index: 10 !important;
}

/* Resume Modal - Highest Priority */
.resume-modal {
  z-index: 999999 !important;
}

.resume-modal-content {
  z-index: 1000000 !important;
}

/* Navigation */
.navbar {
  z-index: 9999 !important;
}

/* Scroll to Top Button */
.modern-scroll-to-top {
  z-index: 99999 !important;
}

/* Particles Background */
#particles-js {
  z-index: -1 !important;
}
