@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Sora:wght@500;600;700&display=swap');

:root {
  --bg-color: #ffffff;
  --text-color: #1a1a1a;
  --accent-yellow: #f1c40f;
  --blue: #007BFF;
  --blue-hover: #0056b3;
  --border-color: #e0e0e0;
  /* Additional semantic tokens for theming */
  --text-on-dark: #ffffff;
  --text-on-light: #0b0b0b;
  --heading-color: var(--text-on-dark);
}

/* ===== Enhancements: reduced motion, reveal animations, navbar polish, hover effects ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Fallback: ensure About and Contact are always visible even if JS fails */
.about,
.contact {
  display: block !important;
  visibility: visible !important;
}

.astronut {
  color: #000;
}

/* Reveal utility */
.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  will-change: transform, opacity;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.fade-in {
  transform: translateY(30px) scale(0.98);
}

/* Make slide-left/slide-right enter from below - simplified for better compatibility */
.reveal.slide-left,
.reveal.slide-right {
  transform: translateY(50px) scale(0.98);
}

/* Parent-driven reveal fallback: if the section receives .in-view, ensure inner panels/grids reveal too */
.about .panel,
.contact .panel,
.services .services-grid,
.testimonials .testi-row {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.about.in-view .panel,
.contact.in-view .panel,
.services.in-view .services-grid,
.testimonials.in-view .testi-row {
  opacity: 1;
  transform: translateY(0);
}

/* Navbar state when scrolled */
.navbar.scrolled {
  background: rgba(0, 0, 0, 0.35) !important;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* Card polish */
.project-card {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(2px);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

/* Button ripple-ish highlight */
/* .hero-buttons .btn {
  --x: 50%;
  --y: 50%;
  --r: radial-gradient(800px circle at var(--x) var(--y), rgba(255, 255, 255, 0.18), transparent 30%);
  background-image: var(--r);
  background-repeat: no-repeat;
} */

.hero-buttons .btn:hover {
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.25));
}

/* Back-to-top entrance */
#backToTop {
  opacity: 0;
  transform: translateY(10px) scale(0.95);
}

#backToTop.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 250ms ease, transform 250ms ease;
}

html,
body {
  height: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: #333;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  user-select: none;
  /* background: url('background.jpeg'); */
  cursor: none;
  overflow: auto;
  scrollbar-width: none;
}

::-webkit-scrollbar {
  display: none;
  /* Hide scrollbar for Chrome, Safari and Opera */
}

.custom-toggler {
  border: none;
  background: transparent;
  padding: 10px;
  position: relative;
  z-index: 1050;
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

.toggler-icon {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-on-light);
  /* Change this to your preferred color */
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
}

/* Modern theme-toggle button styling */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 220ms cubic-bezier(.2, .9, .2, 1), background 220ms, box-shadow 220ms;
  backface-visibility: hidden;
  will-change: transform, box-shadow;
  margin-left: 8px;
}

.theme-toggle:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.theme-toggle:active {
  transform: translateY(0) scale(0.98);
}

.theme-toggle.animating {
  animation: themeToggleBurst 420ms ease;
}

.theme-toggle i {
  transition: transform 300ms ease, color 200ms ease;
  display: inline-block;
}

@keyframes themeToggleBurst {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.18) rotate(-8deg);
  }

  100% {
    transform: scale(1);
  }
}

/* Smooth theme cross-fade helper: applied transiently during toggle */
.theme-transition,
.theme-transition * {
  transition: background-color 340ms ease, color 340ms ease, border-color 340ms ease, box-shadow 340ms ease;
}

/* Respect reduced motion preferences for cursor pulse and toggle animation */
@media (prefers-reduced-motion: reduce) {
  .circle.pulse {
    animation: none !important;
    transform: none !important;
    box-shadow: none !important;
  }

  .theme-toggle.animating {
    animation: none !important;
    transform: none !important;
  }

  .theme-transition,
  .theme-transition * {
    transition: none !important;
  }
}

/* Cross animation when active */
.custom-toggler.active .top-bar {
  transform: translateY(8px) rotate(45deg);
}

.custom-toggler.active .middle-bar {
  opacity: 0;
}

.custom-toggler.active .bottom-bar {
  transform: translateY(-8px) rotate(-45deg);
}


#bgvid {
  position: fixed;
  height: 100vh;
  width: 100vw;
  object-fit: cover;
  top: 0;
  left: 0;
  z-index: -99999;
  /* Ensure video is behind other content */
  pointer-events: none;
  /* Prevent video from blocking interactions */
}

.circle {
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background-color: #f70425 !important;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s cubic-bezier(.2, .9, .2, 1), box-shadow 0.25s ease;
  transform: translate(-50%, -50%) scale(1);
  box-shadow: 0 6px 18px rgba(247, 4, 37, 0.28), 0 0 6px rgba(247, 4, 37, 0.12);
  will-change: transform, opacity, box-shadow;
}

.circle.pulse {
  animation: circlePulse 1.6s infinite ease-in-out;
}

@keyframes circlePulse {
  0% {
    box-shadow: 0 6px 18px rgba(247, 4, 37, 0.28), 0 0 0 rgba(247, 4, 37, 0.12);
  }

  50% {
    box-shadow: 0 18px 48px rgba(247, 4, 37, 0.18), 0 0 30px rgba(247, 4, 37, 0.06);
    transform: translate(-50%, -50%) scale(1.18);
  }

  100% {
    box-shadow: 0 6px 18px rgba(247, 4, 37, 0.28), 0 0 0 rgba(247, 4, 37, 0.12);
    transform: translate(-50%, -50%) scale(1);
  }
}

h1,
h2 {
  text-align: center;
  margin-top: 1em;
}

#user-name {
  font-size: 4rem;
  color: #fff !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  width: 100%;
}

section {
  margin: 0 auto;
  max-width: 97%;
  margin-top: -2rem !important;
}

/* Portfolio stats (likes/visits) */
.portfolio-stats {
  max-width: 1100px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}

.stat-panel {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(8, 8, 12, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

/* Light theme support for stat panel */
html:not(.theme-dark) .stat-panel {
  background: linear-gradient(135deg, rgba(248, 249, 250, 0.9), rgba(240, 244, 248, 0.95));
  border: 1px solid rgba(200, 210, 220, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.stat-label {
  margin: 0;
  color: #9aa6b2;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Light theme stat label */
html:not(.theme-dark) .stat-label {
  color: #6b7280;
}

.stat-title {
  margin: 2px 0 0;
  color: #f1f5f9;
  font-size: 1.4rem;
}

/* Light theme stat title */
html:not(.theme-dark) .stat-title {
  color: #1f2937;
}

.stat-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.metric {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Light theme metric */
html:not(.theme-dark) .metric {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(200, 210, 220, 0.4);
}

.metric-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: #f8fafc;
}

/* Light theme metric value */
html:not(.theme-dark) .metric-value {
  color: #1f2937;
}

.metric-label {
  color: #9aa6b2;
  font-size: 0.95rem;
}

/* Light theme metric label */
html:not(.theme-dark) .metric-label {
  color: #6b7280;
}

.like-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease, color 0.2s ease;
  font-weight: 600;
}

/* Light theme like button */
html:not(.theme-dark) .like-btn {
  background: rgba(248, 249, 250, 0.8);
  border: 1px solid rgba(200, 210, 220, 0.4);
  color: #1f2937;
}

.like-btn i {
  color: #f8fafc;
}

/* Light theme like button icon */
html:not(.theme-dark) .like-btn i {
  color: #1f2937;
}

.like-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

/* Light theme like button hover */
html:not(.theme-dark) .like-btn:hover {
  border-color: rgba(110, 168, 255, 0.4);
  background: rgba(110, 168, 255, 0.1);
  color: #4a90e2;
}

html:not(.theme-dark) .like-btn:hover i {
  color: #4a90e2;
}

.like-btn.liked {
  background: rgba(247, 4, 37, 0.14);
  border-color: rgba(247, 4, 37, 0.4);
  color: #f70425;
}

/* Light theme liked button */
html:not(.theme-dark) .like-btn.liked {
  background: rgba(247, 4, 37, 0.1);
  border-color: rgba(247, 4, 37, 0.5);
  color: #dc2626;
}

.like-btn.liked i {
  color: #f70425;
}

/* Light theme liked button icon */
html:not(.theme-dark) .like-btn.liked i {
  color: #dc2626;
}

@media (max-width: 640px) {
  .stat-title {
    font-size: 1.2rem;
  }
  .metric-value {
    font-size: 1.4rem;
  }
  .like-btn {
    padding: 8px 12px;
  }
}

.project-about-out {
  padding: 1rem;
  background-color: rgb(247, 247, 250) !important;
  border-radius: 10px;
}

.project-about {
  border-bottom-color: rgb(31, 41, 55);
  border-bottom-style: solid;
  border-bottom-width: 0px;
  border-left-color: rgb(31, 41, 55);
  border-left-style: solid;
  border-left-width: 0px;
  border-right-color: rgb(31, 41, 55);
  border-right-style: solid;
  border-right-width: 0px;
  border-top-color: rgb(31, 41, 55);
  border-top-style: solid;
  border-top-width: 0px;
  -webkit-font-smoothing: antialiased;
  unicode-bidi: isolate;
  tab-size: 4;
  box-sizing: border-box;
  font-weight: 400;
  font-feature-settings: normal;
  display: block;
  text-align: left;
  text-size-adjust: 100%;
  transform: none;
  max-width: 1600px;
  font-size: 64px !important;
  line-height: 1.3;
  color: #000 !important;
  /* text-align: justify; */
  font-family: var(--font-geist-sans), Inter, system-ui, sans-serif;
}

.projects {
  position: relative;
  padding: 4rem 5vw 3.5rem;
}

.projects::before {
  content: "";
  position: absolute;
  top: 8%;
  left: 0;
  right: 0;
  height: 50%;
  border-radius: 48px;
  background: radial-gradient(60% 60% at 30% 15%, rgba(241, 196, 15, 0.12), transparent 70%);
  filter: blur(28px);
  opacity: 0.75;
  z-index: 0;
}

.projects-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  padding: 2.8rem;
  border-radius: 36px;
  background: rgba(8, 8, 12, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(24px);
  box-sizing: border-box;
  overflow: hidden;
}

.projects-grid::before,
.projects-grid::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  z-index: -1;
}

.projects-grid::before {
  border: 1px solid transparent;
  background: linear-gradient(140deg, rgba(241, 196, 15, 0.45), rgba(58, 141, 230, 0.4), rgba(241, 196, 15, 0.28)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0.85;
}

.projects-grid::after {
  inset: -18px;
  background: radial-gradient(60% 60% at 50% 0%, rgba(241, 196, 15, 0.2), transparent 70%);
  filter: blur(32px);
  z-index: -2;
  opacity: 0.8;
}

.project-card {
  position: relative;
  width: 100%;
  /* So it fills grid column correctly */
  height: auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-color: transparent;
  transition: 0.5s ease-in-out;
  border-radius: 20px;
  overflow: hidden;
}

.project-card img:not(.toy-image) {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* z-index: 1; */
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Add this to your style.css */
.toy-image {
  position: fixed;
  width: 80px;
  height: 80px;
  margin-left: 2rem;
  pointer-events: none;
  z-index: 9999 !important;
  transform: translateX(-50%) translateY(-10px);
  /* initial peek */
  transition: transform 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6), opacity 0.3s ease;
}

@keyframes bouncePeek {
  0% {
    transform: translateX(-50%) translateY(-18px) scale(1.1, 0.95) rotate(-8deg);
  }

  30% {
    transform: translateX(-50%) translateY(-7px) scale(0.97, 1.05) rotate(3deg);
  }

  50% {
    transform: translateX(-50%) translateY(-14px) scale(1.05, 0.96) rotate(-4deg);
  }

  70% {
    transform: translateX(-50%) translateY(-9px) scale(1, 1.02) rotate(2deg);
  }

  85% {
    transform: translateX(-50%) translateY(-12px) scale(1.01, 0.99) rotate(-1deg);
  }

  100% {
    transform: translateX(-50%) translateY(-10px) scale(1, 1) rotate(0deg);
  }
}




/* Short cards: 1st and 4th, 5th and 8th, etc. */
.project-card:nth-child(4n+1),
.project-card:nth-child(4n+4) {
  height: 60vh;
}

/* Tall cards: 2nd and 3rd, 6th and 7th, etc. */
.project-card:nth-child(4n+2),
.project-card:nth-child(4n+3) {
  height: 100vh;
}

.project-card:hover img {
  transform: scale(1.1);
  cursor: none;
}

/* project_pic */
.image-link {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  /* Ensure it covers the image */
  /* border: 2px solid var(--accent-yellow); */

}

.image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
}

.project-card:hover~.circle {
  cursor: none;
  visibility: hidden;

}

.project-heading {
  font-size: 100px;
  font-family: monospace;
}

.view-circle {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.7rem;
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 999;
}

.project-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff !important;
  text-align: center;
  /* margin-top: 0.5rem; */
  padding: 0 1rem;
  cursor: none;
  z-index: 99;
  background-color: transparent !important;
}


/* Hover carousal for project */
.hover-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.hover-carousel {
  position: absolute;
  width: 200px;
  height: 200px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.85);
}


.hover-carousel-inner {
  display: flex;
  flex-direction: column;
}

.hover-carousel-inner img {
  position: static;
  opacity: 1;
}


.hover-carousel-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 1;
  /* Show all images */
}


.hover-carousel-inner img.focused {
  opacity: 1;
}

.project-card:hover .hover-image {
  opacity: 1;
  pointer-events: auto;
}

/* Default Desktop Sizes */
.project-card:nth-child(4n+1) .hover-carousel,
.project-card:nth-child(4n+4) .hover-carousel {
  width: 200px;
  height: 200px;
}

.project-card:nth-child(4n+2) .hover-carousel,
.project-card:nth-child(4n+3) .hover-carousel {
  width: 350px;
  height: 350px;
}


@keyframes circularScroll {
  0% {
    transform: translateY(0);
  }

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



.hero-content p {
  font-size: 1.2rem;
  margin: 1rem 0 2rem;
  color: var(--bg-color);
}

.hero-buttons .btn {
  position: relative;
  /* Fix for positioning ::before */
  display: inline-block;
  padding: 0.8rem 1.5rem;
  margin-right: 1rem;
  background: transparent !important;
  border: 2px solid var(--accent-yellow) !important;
  border-radius: 10px;
  color: var(--bg-color) !important;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Ensures ::before stays clipped */
  z-index: 0;
  /* Needed to stack correctly */
}

.hero-buttons .btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background-color: #3a8de6;
  transition: width 0.4s ease-in-out;
  z-index: -1;
}

.hero-buttons .btn:hover::before {
  width: 100%;
}

.hero-buttons .btn:hover {
  color: black;
  /* Text color change */
  transform: scale(1.05);
}


.hero-text {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.greet {
  font-size: 3rem;
}

.about {
  background: transparent;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: none;
  width: 100%;
  margin-top: 2rem;
  color: #fff;
  display: block;
  visibility: visible;
  min-height: auto;
}

.contact {
  background: transparent;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: none;
  width: 100%;
  margin-top: 2rem;
  color: #fff;
  display: block;
  visibility: visible;
  min-height: auto;
}

/* Ensure section headings and glass card content are readable on dark bg */
.about h2,
.contact h2 {
  color: #fff;
}

.glass {
  color: #fff;
}

.contact-item .label,
.contact-item .value {
  color: #000;
}

html.theme-dark .contact-item .label,
html.theme-dark .contact-item .value {
  color: #fff;
}

.about,
.contact,
.timeline-section {
  padding-top: 4rem;
  padding-bottom: 3rem;
}

.about>h2,
.contact>h2,
.projects>h2,
.timeline-section>h2,
.services>h2,
.testimonials>h2 {
  color: #000 !important;
  font-size: clamp(2.3rem, 2.6vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.8rem;
  position: relative;
}

.about>h2::after,
.contact>h2::after,
.projects>h2::after,
.timeline-section>h2::after,
.services>h2::after,
.testimonials>h2::after {
  content: "";
  display: block;
  width: 120px;
  height: 4px;
  margin: 18px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(241, 196, 15, 0.85), rgba(58, 141, 230, 0.9));
  box-shadow: 0 0 20px rgba(241, 196, 15, 0.45);
}

html.theme-dark .about>h2,
html.theme-dark .contact>h2,
html.theme-dark .projects>h2,
html.theme-dark .timeline-section>h2,
html.theme-dark .services>h2,
html.theme-dark .testimonials>h2 {
  color: #fff !important;
}
/* .about .panel,
.contact .panel {
  width: min(1100px, 92%);
  margin: 1.5rem auto 0;
  display: block;
} */

.visit-link {
  position: relative;
  display: inline-block;
  padding: 10px 20px;
  font-size: 1.1rem;
  color: var(--text-color);
  background-color: #007BFF;
  text-decoration: none;
  overflow: hidden;
  border-radius: 6px;
  transition: background-color 0.4s ease-in-out, color 0.4s ease-in-out;
  z-index: 0;
}

.visit-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background-color: #0056b3;
  transition: width 0.4s ease-in-out;
  color: #000;
  z-index: -1;
}

.visit-link:hover::before {
  width: 100%;
  color: var(--accent-yellow);
}

.visit-link span {
  position: relative;
  z-index: 1;
  color: #fff;
}

.visit-font {
  font-family: 'Segoe UI', sans-serif;
  font-size: 1.2rem;
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
  margin-top: 1rem;
  margin-left: -1.5rem;
}

@keyframes project-card {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(80px);
  }

  60% {
    opacity: 0.6;
    transform: scale(1.02) translateY(-10px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes contact-card {
  from {
    opacity: 0;
    transform: translateX(100px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }

}

@keyframes about-card {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }

}

.project-card {
  animation: project-card 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  animation-timeline: view();
  animation-range: entry 0 cover 40%;
  animation-delay: var(--delay);
  will-change: transform, opacity, filter;
  backface-visibility: hidden;

}

/* Disable legacy keyframe animations on About/Contact so the reveal utility controls motion. */
.about,
.contact,
.about-card,
.contact-card {
  animation: none !important;
  animation-timeline: none !important;
  animation-range: none !important;
}

/* Back to top base (polished state enhancements are appended earlier) */
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  z-index: 1000;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  background-color: #007BFF;
  color: white;
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  cursor: none;
  transition: background-color 0.3s ease;
}

#backToTop.show {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

#backToTop:hover {
  background-color: #0056b3;
}


.navbar {
  position: absolute;
  /* transform: translateX(calc(150% + 100px)); */
  transform: translateY(20%);
  left: 2%;
  width: auto;
  max-width: 800px;
  background-color: rgba(0, 0, 0, 0.12) !important;
  backdrop-filter: blur(10px);
  /* background-color: #fff; */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  z-index: 2000;
  /* ensure navbar is above most page layers */
  border-radius: 15px;
  padding: 10px 20px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  border: 1px solid rgba(241, 196, 15, 0.45);

}

.navbar.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Mobile navbar: place within gutter, brand left, toggler right, collapse flows below */
@media (max-width: 768px) {
  .navbar {
    left: 12px;
    right: 12px;
    transform: none;
    width: auto;
    padding: 8px 12px;
    top: 12px;
    background-color: rgba(0, 0, 0, 0.12) !important;
    border: 1px solid rgba(241, 196, 15, 0.35);
    border-radius: 12px;
    z-index: 2000;

  }

  .navbar .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
  }

  .navbar-brand {
    margin: 0 !important;
    padding-left: 6px !important;
    color: #fff !important;
  }

  .custom-toggler {
    position: static !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1600 !important;
    /* Keep toggler above the opened collapse panel */
    padding: 6px;
    /* larger hit area for mobile */
  }

  .navbar-collapse {
    position: static !important;
    width: 100% !important;
    margin-top: 8px !important;
  }

  .navbar-collapse {
    z-index: 1500 !important;
  }

  .navbar-collapse.show {
    display: block !important;
  }

  .navbar-nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px;
    padding: 6px 2px;
  }

  .navbar-nav .nav-link {
    width: 100% !important;
    padding: 10px 12px !important;
    text-align: center !important;
  }
}


.navbar a {
  color: white;
  font-weight: bold;
  cursor: none;
}

.navbar-nav .nav-link {
  display: inline-block;
  cursor: none;
  position: relative;
  /* font-weight: bold; */
}

.navbar-nav .nav-link:hover span {
  display: inline-block;
  animation: waveBounce 0.6s ease infinite;
  color: var(--text-color);
  transition: all 0.3s ease;
  cursor: none;
}

@keyframes waveBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.navbar-nav .nav-link {
  display: inline-block;
  cursor: none;
  position: relative;
}

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

/* On Hover - trigger animation only once */
.navbar-nav .nav-link:hover span {
  animation: waveBounce 0.6s ease forwards;
}

/* Stagger delay for wavy effect */
.navbar-nav .nav-link span:nth-child(1) {
  animation-delay: 0s;
}

.navbar-nav .nav-link span:nth-child(2) {
  animation-delay: 0.05s;
}

.navbar-nav .nav-link span:nth-child(3) {
  animation-delay: 0.1s;
}

.navbar-nav .nav-link span:nth-child(4) {
  animation-delay: 0.15s;
}

.navbar-nav .nav-link span:nth-child(5) {
  animation-delay: 0.2s;
}

.navbar-nav .nav-link {
  position: relative;
  display: inline-block;
  cursor: none;
  overflow: hidden;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background-color: var(--text-color);
  /* Choose your border color */
  transition: width 0.4s ease;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

.hero-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: transparent !important;
}

.hero-container canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  /* ensure canvas fills area without distortion */
  will-change: transform;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* .bubble-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgb(247, 5, 37);
  light watery color
  backdrop-filter: blur(6px);
  box-shadow: 0 0 15px rgba(247, 243, 243, 0.3);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
} */
.image-gallery-wrapper {
  position: relative;
  width: 100%;
  background: var(--bg-color);
  margin-top: 2rem;
  border-radius: 25px;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(2px);
  pointer-events: none;
  z-index: 4;
}

.image-gallery {
  position: relative;
  width: 100%;
  height: 800px;
  filter: blur(3px);
  /* Space for all images */
}

/* Make hero full-bleed: remove rounded corners from container and canvas */
.hero-container,
.hero-container canvas {
  border-radius: 0;
}


/* Improve about-stats chips visibility and spacing */
.about-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.about-stats .chip {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  background: rgba(241, 196, 15, 0.14) !important;
  color: #000000 !important;
  border: 1px solid rgba(241, 196, 15, 0.28) !important;
  font-weight: 600;
}

.image-gallery img {
  position: absolute;
  object-fit: cover;
}

/* Specific placement and sizes */
.img1 {
  top: 50px;
  left: 100px;
  width: 250px;
  height: 350px;

}

.img2 {
  top: -300px;
  right: 150px;
  width: 350px;
  height: 400px;
}

.img3 {
  bottom: 200px;
  left: 550px;
  width: 250px;
  height: 300px;
}

.img4 {
  bottom: 50px;
  right: 100px;
  width: 140px;
  height: 190px;
}

.quote {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-size: 3rem;
  font-weight: bold;
  color: #000;
  text-align: center;
  z-index: 7;
  font-family: 'Caveat', cursive;
}

.high {
  position: relative;
  background-image: linear-gradient(90deg, yellow 0%, yellow 100%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  padding: 0 5px;

  animation: highlight-fill linear forwards;
  animation-timeline: view();
  animation-range: entry 0% cover 50%;
}

@keyframes highlight-fill {
  to {
    background-size: 100% 100%;
  }
}



/* Character integration */
.character-engine {
  position: fixed;
  left: 50px;
  top: 100px;
  width: 60px;
  height: 60px;
  z-index: 999999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  transform: translate(-50%, -50%);
}

.character-frame {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


/* Animation for falling */
@keyframes fall {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(50px) rotate(10deg);
  }

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

/* Animation for climbing */
@keyframes climb {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-40px);
  }

  100% {
    transform: translateY(-80px);
  }
}



.footer {
  background-color: #f8f9fa;
  padding: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: #6c757d;
  position: relative;
  margin-top: 2rem;
  width: 100%;
  display: block;
  opacity: 1;
  transform: none;
  animation: none;
}

Glass cards,
chips,
and contact grid .glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(241, 196, 15, 0.12), transparent 60%);
  opacity: 0.8;
  pointer-events: none;
}

.panel {
  padding: 1.8rem;
  border-radius: inherit;
  position: relative;
  max-width: 1100px;
  margin: 1rem auto 0;
  min-height: 120px;
  display: block;
  visibility: visible;
  width: 100%;
}

/* Ensure About/Contact cards are centered with consistent width */
.about .panel,
.contact .panel {
  display: block !important;
  visibility: visible !important;
  opacity: 1;
}

.panel-body {
  position: relative;
  z-index: 1;
  width: 100%;
}

.about-header h3 {
  margin: 0;
}

.about-header {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.about-header i {
  font-size: 1.4rem;
}

.about-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(241, 196, 15, 0.18);
  color: #fff;
  font-weight: 600;
  border: 1px solid rgba(241, 196, 15, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-card .contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  position: relative;
  z-index: 1;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
  color: inherit;
  transition: transform 200ms ease, background 200ms ease;
}

.contact-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
}

.contact-item i {
  font-size: 1.1rem;
  color: var(--accent-yellow);
}

.contact-item .label {
  font-size: 0.85rem;
  opacity: 0.8;
}

.contact-item .value {
  font-weight: 600;
}

/* Long-scroll additions */
.band {
  margin: 3rem auto;
  padding: 1rem 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  overflow: hidden;
  width: min(1200px, 92%);
}

.band .band-inner {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: marquee 5s linear infinite;
  color: #fff;
  font-weight: 700;
}

.band .band-inner span {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.timeline-section {
  padding: 1rem 0;
  /* border: solid red; */
}

/* Hidden details inside experience cards */
.tl-item .more {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    max-height 0.45s ease,
    opacity 0.35s ease,
    transform 0.35s ease;
}

/* On hover: expand card details */
.tl-item:hover .more {
  max-height: 200px;
  /* adjust if you add more items */
  opacity: 1;
  transform: translateY(0);
}

/* Optional: card grows slightly on hover */
.tl-item:hover .content {
  transform: scale(1.015);
  transition: transform 0.25s ease;
}

/* Optional: highlight dot */
.tl-item:hover .dot {
  transform: scale(1.25);
  background-color: #f1c40f;
  transition: 0.25s ease;
}


.timeline {
  position: relative;
  margin: 1.5rem auto 0;
  padding-left: 20px;
  max-width: 1400px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(#f1c40f, transparent);
}

.tl-item {
  position: relative;
  margin-bottom: 18px;
}

.tl-item .dot {
  position: absolute;
  left: -2px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: #f1c40f;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(241, 196, 15, 0.18);
}

.tl-item .content {
  margin-left: 30px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 12px 14px;
  color: #fff;
}

.services {
  position: relative;
  padding: 2rem 0;
  z-index: 1;
}

.services::before {
  content: "";
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 55%;
  background: radial-gradient(55% 55% at 50% 0%, rgba(58, 141, 230, 0.22), transparent 70%);
  filter: blur(30px);
  opacity: 0.7;
  z-index: 0;
}

.services-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: min(1100px, 92%);
  margin: 0 auto;
  padding: 2.2rem;
  background: rgba(12, 12, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(22px);
  z-index: 1;
}

.service-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  padding: 24px 20px;
  color: #fff;
  text-align: center;
  overflow: hidden;
  transition: transform 250ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 250ms ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(58, 141, 230, 0.22), transparent 60%);
  /* Make the overlay translucent and place it behind the content so icons/text remain visible */
  opacity: 0.25;
  z-index: -1;
  pointer-events: none;
}

.service-card i {
  font-size: 1.6rem;
  color: var(--accent-yellow);
  margin-bottom: 0.6rem;
  display: block;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.35);
}

.testimonials {
  padding: 2rem 0;
}

.testi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.testi-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 18px;
  color: #fff;
  font-style: italic;
}

.testi-card .who {
  margin-top: 8px;
  opacity: 0.8;
  font-style: normal;
}


.cta {
  padding: 3rem 0;
  text-align: center;
  background-color: #fff;
  border-radius: 16px;
  color: #000 !important;
  max-width: 1500px;
  transition: all 0.7s ease-in-out;
}


.cta a {
  color: #000 !important;
}

.cta h2 {
  color: #000 !important;
  margin-bottom: 1rem;
}

.cta .btn {
  border: 2px solid var(--accent-yellow);
  background: transparent !important;
  padding: 0.8rem 1.5rem;
  font-weight: bold;
  border-radius: 10px;
}

.cta-btn:hover {
  transform: scale(1.02);
  background-color: #000 !important;
  color: #fff !important;
}

/* -------------------- 4K Ultra HD (2560px and above) -------------------- */
@media (min-width: 2560px) {
  #user-name {
    font-size: 5rem;
  }

  .greet {
    font-size: 4rem;
  }

  .hero-content p {
    font-size: 1.6rem;
  }

  .hero-buttons .btn {
    padding: 1rem 2rem;
    font-size: 1.2rem;
  }

  .project-card h3 {
    font-size: 1.6rem;
  }

  .project-card p {
    font-size: 1.2rem;
  }

  .navbar {
    width: 40%;
    font-size: 1.4rem;
    background-color: rgba(0, 0, 0, 0.12) !important;
    border: 1px solid rgba(241, 196, 15, 0.35);
    border-radius: 15px;
    padding: 12px 22px;
    z-index: 2000;

  }

  .navbar-nav .nav-link span {
    font-size: 1.2rem;
  }
}

/* -------------------- QHD & Full HD (1920px–2559px) -------------------- */
@media (min-width: 1920px) and (max-width: 2559px) {
  #user-name {
    font-size: 4.5rem;
  }

  .greet {
    font-size: 3.2rem;
  }

  .hero-content p {
    font-size: 1.4rem;
  }

  .hero-buttons .btn {
    padding: 0.9rem 1.8rem;
    font-size: 1.1rem;
  }

  .navbar {
    width: 50%;
    font-size: 1.2rem;
    background-color: rgba(0, 0, 0, 0.12) !important;
    border: 1px solid rgba(241, 196, 15, 0.35);
    border-radius: 15px;
    padding: 10px 20px;
    z-index: 2000;
  }

  .navbar-nav .nav-link span {
    font-size: 1.1rem;
  }
}

/* -------------------- Tablets & Laptops (992px–1439px) -------------------- */
@media (max-width: 1439px) {
  #user-name {
    font-size: 3.5rem;
  }

  .greet {
    font-size: 2.6rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .hero-buttons .btn {
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
  }

  .navbar-nav .nav-link span {
    font-size: 1rem;
  }
}

/* -------------------- Mobile Landscape & Small Tablets (768px–991px) -------------------- */
@media (max-width: 991px) {
  #user-name {
    font-size: 3rem;
  }

  .greet {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-buttons .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
  }

  .project-card h3 {
    font-size: 1.1rem;
  }

  .project-card p {
    font-size: 0.9rem;
  }


  .navbar-nav .nav-link span {
    font-size: 0.95rem;
  }

  .projects-grid {
    padding: 2.2rem;
    gap: 2rem;
  }
}

/* -------------------- Phones Portrait (576px–767px) -------------------- */
@media (max-width: 767px) {
  .hero-content {
    padding: 1rem;
  }

  #user-name {
    font-size: 2.5rem;
  }

  .greet {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .hero-buttons .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .project-card h3 {
    font-size: 1rem;
  }

  .project-card p {
    font-size: 0.9rem;
  }

  .navbar-nav .nav-link span {
    font-size: 0.9rem;
  }

  .projects-grid {
    padding: 1.8rem;
    gap: 1.7rem;
  }

}

/* -------------------- Small Phones (≤575px) -------------------- */
@media (max-width: 575px) {
  .navbar {
    width: 10%;
  }

  #user-name {
    font-size: 2rem;
  }

  .greet {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .hero-buttons .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    margin-top: 1rem;
  }

  .hero-text {
    width: 100%;
    margin-top: 5rem;
  }

  .about,
  .contact {
    padding: 1rem;
  }


  .visit-link {
    font-size: 1rem;
  }

  #backToTop {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .navbar-nav .nav-link span {
    font-size: 0.85rem;
  }

  .projects-grid {
    padding: 1.3rem;
    gap: 1.4rem;
  }
}

@media (min-width: 769px) and (max-width: 810px) {
  #bgvid {
    width: 100% !important;
  }
}

/* -------------------- Extra-Small Devices (≤400px) -------------------- */
@media (max-width: 400px) {
  #user-name {
    font-size: 1.8rem;
  }

  .navbar {

    background-color: black !important;
    width: 95vw !important;
  }

  /* .view{
  border:solid blue;
} */
  .greet {
    font-size: 1.3rem;
  }

  .hero-content p {
    font-size: 0.85rem;
  }

  .hero-buttons .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.7rem;
    margin-top: 1rem;
  }

  .navbar {
    width: 96%;
    left: 2%;
    font-size: 0.8rem;
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.12) !important;
    border: 1px solid rgba(241, 196, 15, 0.32);
    border-radius: 12px;
    z-index: 2000;
  }

  .navbar-nav .nav-link span {
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .project-card {
    height: 60vh !important;
  }

  .hover-carousel {
    width: 100px !important;
    height: 100px !important;
  }
}

/* MOBILE FOOTER FIX ---------------------------------------------------------
   Keep the footer visible on small screens with proper styling and spacing.
*/
@media (max-width: 768px) {
  .footer {
    position: relative !important;
    width: 100% !important;
    margin-top: 40px !important;
    padding: 20px 16px !important;
    background: var(--bg-color) !important;
    color: var(--text-color) !important;
    border-top: 1px solid rgba(100, 100, 100, 0.2) !important;
    text-align: center !important;
    z-index: 10 !important;
  }

  .footer p {
    margin: 8px 0 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
  }

  .footer a {
    color: inherit !important;
    text-decoration: none !important;
  }

  .footer a:hover {
    text-decoration: underline !important;
  }

  /* Ensure body doesn't get obscured */
  body {
    padding-bottom: 20px !important;
  }
}


/* DEBUG OVERRIDE: force services and their cards visible in case reveal IntersectionObserver
   is not adding 'in-view' correctly. Remove or refine after verifying. */
.services.reveal,
.services .service-card.reveal,
.services .service-card {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* DEBUG OVERRIDE: also force testimonials visible (same issue as services) */
.testimonials.reveal,
.testimonials .testi-card.reveal,
.testimonials .testi-card {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Tech Snapshot reveal + stagger helpers */
.tech-grid .tech-card {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms cubic-bezier(0.22, 1, 0.36, 1), transform 520ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 320ms ease;
}

.tech-grid.in-view .tech-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Start progress bars at 0 width; JS will animate to data-percent */
.tech-bar span {
  width: 0 !important;
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-yellow), rgba(58, 141, 230, 0.85));
  border-radius: 999px;
  transition: width 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Small visual polish when each card is revealed */
.tech-card:hover {
  transform: translateY(-6px) scale(1.01);
}

/* Tech Snapshot base layout and visual styles */
.tech-snapshot {
  padding: 3.5rem 0 2.5rem;
  background: transparent;
  color: var(--text-on-dark);
}

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

.tech-snapshot h2 {
  text-align: center;
  margin-bottom: 0.25rem;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
}

.tech-snapshot .lead {
  text-align: center;
  margin-bottom: 1.6rem;
  color: rgba(255, 255, 255, 0.85);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  align-items: start;
}

#tech-snapshot .tech-grid {
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.tech-card {
  display: flex;
  gap: 14px;
  padding: 18px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  align-items: center;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

/* Ensure all cards in the grid have equal height */
.tech-card {
  height: 100%;
  box-sizing: border-box;
}

.tech-card .tech-body {
  width: 100%;
}

.tech-card h3 {
  margin-top: 0;
}

.tech-card .tech-icon {
  min-width: 64px;
  min-height: 64px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(241, 196, 15, 0.12), rgba(58, 141, 230, 0.06));
  color: var(--accent-yellow);
  font-size: 28px;
  transition: transform 360ms cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 360ms ease, background 360ms ease;
  position: relative;
  overflow: visible;
  padding: 6px;
}

.tech-icon.react {
  padding: 10px;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 30%, rgba(97, 218, 251, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02), 0 10px 28px rgba(6, 12, 20, 0.48);
}

.react-logo {
  width: 56px;
  height: 56px;
  display: block;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), filter 420ms ease, opacity 420ms ease;
  filter: drop-shadow(0 10px 22px rgba(97, 218, 251, 0.10));
  transform: translateY(4px) scale(0.98);
  will-change: transform, filter, opacity;
}

/* Ensure the SVG viewport does not clip animated rings */
.react-logo {
  overflow: visible;
}

.tech-card.in-view .react-logo {
  transform: translateY(0) scale(1);
}

.tech-card:hover .react-logo {
  transform: translateY(-3px) scale(1.06) rotate(-6deg);
  filter: drop-shadow(0 14px 30px rgba(97, 218, 251, 0.12));
}

@keyframes react-soft-pulse {
  0% {
    box-shadow: 0 8px 18px rgba(97, 218, 251, 0.06);
  }

  50% {
    box-shadow: 0 14px 28px rgba(97, 218, 251, 0.09);
  }

  100% {
    box-shadow: 0 8px 18px rgba(97, 218, 251, 0.06);
  }
}

.tech-icon.react {
  animation: react-soft-pulse 3.8s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {

  .react-logo,
  .tech-icon.react {
    animation: none !important;
    transition: none !important;
  }
}

/* Fixed React ring animations */
.react-logo .ring {
  stroke-dasharray: none !important;
  stroke-dashoffset: 0;
  stroke-linecap: round;
  stroke-opacity: 0.9;
  stroke-width: 8;
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

.react-logo .ring-1 {
  animation: react-dash 3s linear infinite;
}

.react-logo .ring-2 {
  animation: react-dash 4s linear infinite reverse;
  animation-delay: -0.5s;
}

.react-logo .ring-3 {
  animation: react-dash 3.5s linear infinite;
  animation-delay: -0.25s;
}

@keyframes react-dash {
  0% {
    stroke-dashoffset: 0;
    transform: rotate(0deg);
  }

  100% {
    stroke-dashoffset: -240;
    transform: rotate(360deg);
  }
}

/* Fixed animations for other icons */
.animated-icon .ring {
  stroke-dasharray: 80 40;
  stroke-dashoffset: 0;
  stroke-linecap: round;
  stroke-opacity: 0.9;
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

.animated-icon.icon-db .ring {
  animation: icon-dash 2s linear infinite;
}

.animated-icon.icon-cloud .ring {
  animation: icon-dash 2.5s linear infinite reverse;
}

.animated-icon.icon-robot .ring {
  animation: icon-dash 2.2s linear infinite;
}

.animated-icon.icon-js .ring {
  animation: icon-dash 2s linear infinite;
}

.animated-icon.icon-lock .ring {
  animation: icon-dash 2.8s linear infinite reverse;
}

@keyframes icon-dash {
  0% {
    stroke-dashoffset: 0;
  }

  100% {
    stroke-dashoffset: -120;
  }
}

/* Database bouncing pulse */
.db-pulse {
  animation: dbPulse 1.6s ease-in-out infinite;
}

@keyframes dbPulse {
  0% {
    transform: translateY(-8px);
    opacity: .2;
  }

  50% {
    transform: translateY(8px);
    opacity: 1;
  }

  100% {
    transform: translateY(-8px);
    opacity: .2;
  }
}

/* Rotating platter inside the database */
.disk-rotate {
  transform-origin: 50px 45px;
  animation: rotateDisk 2.2s linear infinite;
}

@keyframes rotateDisk {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}


/* Cloud rotating arrows */
.cloud-rotate {
  transform-origin: 50px 76px;
  animation: rotateCloud 2.4s ease-in-out infinite;
}

@keyframes rotateCloud {
  0% {
    transform: rotate(0deg);
    opacity: .4;
  }

  50% {
    opacity: 1;
  }

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

/* AI/ML atom rotation */
/* Robot head subtle float animation */
.robot-head {
  animation: robotFloat 3.2s ease-in-out infinite;
  transform-origin: 50% 50%;
}

@keyframes robotFloat {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }

  100% {
    transform: translateY(0);
  }
}

/* Antenna pulse */
.robot-antenna {
  animation: robotPulse 1.8s ease-in-out infinite;
}

@keyframes robotPulse {
  0% {
    transform: scale(1);
    opacity: .7;
  }

  50% {
    transform: scale(1.25);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: .7;
  }
}

/* Eyes blinking animation */
.eye {
  transform-origin: center;
  animation: eyeBlink 4s ease-in-out infinite;
}

@keyframes eyeBlink {

  0%,
  12%,
  100% {
    transform: scaleY(1);
  }

  13%,
  14% {
    transform: scaleY(0.1);
  }

  /* blink */
}


/* JavaScript lightning flash */
/* JS Letter-by-letter typing */
.js-type {
  animation: jsTyping 2.4s steps(2, end) infinite;
  clip-path: inset(0 100% 0 0);
  position: relative;
}

/* blinking cursor */
.js-type::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 10px;
  width: 4px;
  height: 40px;
  background: #000;
  animation: jsCursor .6s steps(1) infinite;
}

/* Realistic typing pauses */
@keyframes jsTyping {

  /* Start empty */
  0% {
    clip-path: inset(0 100% 0 0);
  }

  /* Type J */
  20% {
    clip-path: inset(0 50% 0 0);
  }

  /* Pause after J */
  30% {
    clip-path: inset(0 50% 0 0);
  }

  /* Type JS fully */
  50% {
    clip-path: inset(0 0% 0 0);
  }

  /* Pause after JS */
  65% {
    clip-path: inset(0 0% 0 0);
  }

  /* Start erasing */
  80% {
    clip-path: inset(0 50% 0 0);
  }

  /* Back to blank */
  100% {
    clip-path: inset(0 100% 0 0);
  }
}

/* Cursor blink */
@keyframes jsCursor {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}


/* Security scan bar */
.scan-line {
  animation: scanLock 1.6s ease-in-out infinite;
}

@keyframes scanLock {
  0% {
    transform: translateY(0);
    opacity: .5;
  }

  50% {
    transform: translateY(20px);
    opacity: 1;
  }

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

.tech-grid.in-view .tech-card .animated-icon .ring {
  stroke-opacity: 1;
}

/* Slight ring brightening when the card is in-view */
.tech-grid.in-view .tech-card .react-logo .ring {
  stroke-opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .react-logo .ring {
    animation: none !important;
    stroke-dasharray: none !important;
    stroke-dashoffset: 0 !important;
    transform: none !important;
  }

  .animated-icon .ring {
    animation: none !important;
    stroke-dasharray: none !important;
    stroke-dashoffset: 0 !important;
  }
}

.tech-card .tech-body h3 {
  margin: 0 0 6px 0;
  font-size: 1.05rem;
}

.tech-desc {
  font-size: 0.95rem;
  opacity: 0.95;
  margin: 6px 0 10px;
}

.tech-bar {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  overflow: hidden;
}

.tech-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-yellow), rgba(58, 141, 230, 0.85));
  border-radius: 999px;
  transition: width 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 992px) {
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .tech-grid {
    grid-template-columns: 1fr;
  }

  .tech-card {
    align-items: flex-start;
  }

  .tech-card .tech-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }
}

.tech-section {
  padding: 4rem 0;
  background: transparent;
}

.tech-wrapper {
  display: flex;
  /* gap: 0.5rem; */
  align-items: stretch;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0.5rem;
  border: 1px solid #000;
  border-radius: 16px;
  height: auto;
  /* allow content to size naturally to avoid overlap */
  overflow: hidden;
  /* border:solid red; */
  padding-bottom: 3rem !important;
}

.tech-left {
  flex: 1.2;
  background-color: #fff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  padding: 1.6rem 1.2rem;
  box-sizing: border-box;
  overflow: hidden;
}


.tech-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
  /* allow the image to set the height so it matches left panel */
  overflow: hidden;
}

/* Ensure tech-side image scales and preserves aspect ratio */
.tech-right img.Jai_tech,
.tech-right img.tech-side-image,
.tech-right img {
  width: 100%;
  height: auto;
  max-width: 520px;
  /* limit the width so it doesn't overpower the left column */
  /* round right side only so panels join seamlessly */
  object-fit: cover;
  display: block;
}

/* breathing room below tech snapshot so next sections never collide */
.tech-section {
  padding-bottom: 2.5rem;
}

@media (max-width: 992px) {

  .tech-right img.Jai_tech,
  .tech-right img.tech-side-image,
  .tech-right img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 15px;
    /* restore rounded corners on mobile when stacked */
  }

  .tech-left {
    border-radius: 15px !important;
  }
}

/* Make Tech Snapshot fully responsive: stack on small screens and adjust spacing */
@media (max-width: 992px) {
  .tech-wrapper {
    display: flex;
    flex-direction: column-reverse;
    /* place content above image for better flow */
    gap: 1rem;
    align-items: stretch;
    padding: 0 1rem;
  }

  .tech-left,
  .tech-right {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .tech-left {
    border-radius: 15px !important;
    padding: 1.6rem 1rem;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
  }

  .tech-right {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    border-radius: 15px !important;
  }

  .tech-right img.Jai_tech,
  .tech-right img.tech-side-image,
  .tech-right img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 15px !important;
    object-fit: cover;
    display: block;
  }

  /* Make the tech-grid single-column on small screens */
  .tech-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .tech-card {
    padding: 14px !important;
    gap: 12px !important;
  }
}

.tech-side-image {
  width: 100%;
  max-width: 480px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

/* Heading */
.tech-section h2 {
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  margin-bottom: 0.2rem;
}

.tech-section .lead {
  color: #000 !important;
  margin-bottom: 1.8rem;
}

html.theme-dark .tech-section .lead {
  color: rgba(255, 255, 255, 0.85) !important;
}
/* Grid */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.tech-card {
  display: flex;
  gap: 14px;
  padding: 18px;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform .2s ease, box-shadow .25s ease;
}

.tech-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}

/* ICON BASE */
.tech-icon {
  min-width: 62px;
  height: 62px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  transition: transform .35s ease;
}

.tech-card:hover .tech-icon {
  transform: scale(1.12);
}

/* POP animation for all icons except React */
.animate-pop {
  animation: pop-in 0.6s ease forwards;
  opacity: 0;
}

@keyframes pop-in {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* React icon is unchanged */
.tech-icon.react {
  animation: none;
}

/* Text */
.tech-desc {
  opacity: .9;
  font-size: 0.92rem;
  margin-bottom: 8px;
}

/* Progress bars */
.tech-bar {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.tech-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-yellow), rgba(58, 141, 230, 0.85));
  border-radius: 999px;
  transition: width 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* RESPONSIVE SETTINGS */
@media (max-width: 992px) {
  .tech-wrapper {
    flex-direction: column;
  }

  .tech-right {
    order: -1;
  }

  .tech-side-image {
    max-width: 420px;
  }
}

@media (max-width: 640px) {
  .tech-grid {
    grid-template-columns: 1fr;
  }
}


/* -------------------- Responsive: grids, hero, and touch fallbacks -------------------- */
/* This section makes the site adapt across common breakpoints and disables hover-only
   interactions on touch devices. Adjust breakpoints and sizes as desired. */

/* Desktop (>=1200px): 3-column services/testimonials */
@media (min-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .testi-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

/* Tablet / small desktop: 2-column layouts */
@media (min-width: 769px) and (max-width: 1199px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .testi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hero-text {
    width: 80%;
    margin-top: 6rem;
  }
}

/* Mobile / small screens: single-column stack, shorter cards, touch-friendly */
@media (max-width: 768px) {

  .about>h2,
  .contact>h2,
  .projects>h2,
  .timeline-section>h2,
  .services>h2,
  .testimonials>h2 {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    margin-bottom: 1rem;
  }

  .services-grid,
  .testi-row,
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 1rem;
  }

  /* Prevent very tall project cards on phones */
  .project-card {
    height: auto !important;
    min-height: 220px;
  }

  .hero-container {
    min-height: 60vh;
    height: auto;
    background-color: transparent !important;
  }

  .hero-text {
    width: 100% !important;
    margin-top: 4rem !important;
    padding: 1rem;
  }

  .navbar {
    width: 96%;
    left: 2%;
    top: 8px;
    transform: translate(0, 0);
    padding: 8px 12px;
    background-color: rgba(0, 0, 0, 0.12) !important;
    border: 1px solid rgba(241, 196, 15, 0.32);
    border-radius: 12px;
    z-index: 2000;
  }

  /* Disable hover transforms for touch devices for better UX */
  body,
  a,
  button,
  .project-card,
  .navbar-nav .nav-link {
    cursor: auto !important;
  }

  .project-card:hover img {
    transform: none;
  }

  .service-card:hover {
    transform: none;
    box-shadow: none;
  }
}

/* Disable hover-only animations where device doesn't support hover */
@media (hover: none) {

  .project-card:hover img,
  .service-card:hover,
  .navbar-nav .nav-link:hover span {
    transform: none;
    animation: none;
  }

  .reveal.in-view {
    transition: none;
  }
}

/* Small touch devices: increase tappable targets */
@media (max-width: 480px) {
  .hero-buttons .btn {
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
  }

  .contact-item {
    padding: 14px;
  }

  .chip {
    padding: 8px 12px;
  }

  /* .image-gallery {
    gap: 16px;
    align-items: center;
    padding: 1rem 0;
  }

  .image-gallery img {
    position: absolute !important;
    object-fit: cover;
  }

  

/* Specific placement and sizes */
  /* 
.img1 {
  top: -500px;
  left: 100px;
  width: 250px;
  height: 350px;
  border:solid red;

}

.img2 {
  top: -720px;
  right: 30px;
  width: 250px;
  height: 300px;
  border:solid green;

}

.img3 {
  bottom: 200px;
  left: 550px;
  width: 250px;
  height: 300px;
  border:solid black;

}

.img4 {
  bottom: 50px;
  right: 100px;
  width: 140px;
  height: 190px;
  border:solid blue;

} */


}

/* End responsive */

/* Mobile fix: stack contact items and other grids into single column for small screens */
@media (max-width: 768px) {

  /* Make contact grid a single-column layout so items appear one below another
     Use !important where needed to override earlier layout rules. */
  .contact-grid,
  .panel-body.contact-grid,
  .contact-card .contact-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-auto-flow: row !important;
    gap: 12px !important;
    align-items: stretch !important;
    justify-items: stretch !important;
    width: 100% !important;
    max-width: 720px !important;
    margin: 0 auto !important;
  }

  /* Ensure direct children of the grid fill the column and inner .contact-item stretches */
  .contact-grid>* {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .contact-grid .contact-item,
  .contact-grid a.contact-item,
  .contact-grid div.contact-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 16px !important;
    width: 100% !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border-radius: 12px !important;
  }

  .contact-item .label {
    min-width: 64px;
  }

  /* Stack services and testimonials into single column */
  .services-grid,
  .testi-row,
  .projects-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    width: 100% !important;
  }

  .service-card,
  .testi-card {
    width: 100% !important;
    margin: 0 auto !important;
  }

  /* Ensure panels are centered and not too wide */
  .about .panel,
  .contact .panel,
  .glass.panel {
    width: min(720px, 95%) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Reduce hero text container width on small screens */
  .hero-text.container.row {
    width: 95% !important;
    margin-top: 4rem !important;
  }
}

/* Make image-gallery responsive on small screens: stack images vertically and remove absolute placement */
@media (max-width: 768px) {
  .image-gallery-wrapper{
    height: calc(100vh + 4rem) !important;
    min-height: auto !important;
    padding-bottom: 2rem !important;
  }
  .image-gallery {
    gap: 16px;
    align-items: center;
    padding: 1rem 0;
    /* border: solid red; */
    height: 0rem;
  }

  .image-gallery img {
    position: absolute !important;
    object-fit: cover;
  }



  /* Specific placement and sizes */

  .img2 {
    top: -45rem;
    /* -720px */
    right: 0.875rem;
    /* 30px  */
    width: 12.625rem;
    /* 250px */
    height: 12.75rem;
    /* 300px */
    /* border: solid green; */
  }

  .img1 {
    top: -31.5rem;
    /* already in rem */
    left: 1.25rem;
    /* already in rem */
    width: 10.625rem;
    /* already in rem */
    height: 10.875rem;
    /* already in rem */
    /* border: solid red; */
  }

  .img3 {

    bottom: 12rem;
    margin-left:-450px;
    
    /* 550px */
    width: 9.625rem;
    /* 250px */
    height: 9.75rem;
    /* 300px */
    /* border: solid rgb(212, 20, 20); */
  }

  .img4 {
   bottom: 2rem;
    /* 50px  */
    right: 1.25rem;
    /* 100px */
    width: 8.75rem;
    /* 140px */
    height: 8.875rem;
    /* 190px */
    /* border: solid blue; */
  }


  /* Make the quote area flow normally on small screens */


  /* Remove large canvas border-radius on small screens to avoid clipping */
  .hero-container canvas {
    border-radius: 0 !important;
    object-fit: cover;
    background-color: transparent !important;
  }
}

/* ==========================
   Forced White Theme Overrides
   - Applies a solid white/light theme across the site
   - Removes gradients and replaces them with solid colors
   - Minimal, high-specificity overrides so this is safe to append
   ========================== */

:root {
  --site-bg: #ffffff;
  --surface-1: #ffffff;
  --surface-2: #f8fafb;
  --text-primary: #0f1724;
  /* very dark slate */
  --text-muted: #475569;
  --accent: #0b63ff;
  /* solid blue accent */
  --accent-strong: #0746d1;
  --border: #e6eef8;
  --card-bg: #ffffff;
}

/* Page base */
html,
body {
  color: var(--text-primary) !important;
}

/* Remove large background gradients/overlays produced by ::before/::after */
.projects::before,
.projects-grid::before,
.projects-grid::after,
.services::before,
.projects::after,
.band::before,
.gallery-overlay,
.projects::before,
.projects-grid::before,
.projects-grid::after {
  display: none !important;
  background: none !important;
}

.about-card,
.contact-card {
  max-width: 1800px !important;
}

/* Navbar — solid white */
.navbar {
  background: var(--surface-1) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06) !important;
}

.navbar a,
.navbar .navbar-brand {
  color: var(--text-primary) !important;
}

/* Hero area — keep canvas but ensure overlay text is visible on white */
.hero-content,
.hero-text,
#user-name,
#user-title {
  color: var(--text-primary) !important;
}

/* Project grid and cards: white cards with subtle border and lift */
.projects-grid {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 1.6rem !important;
}

.project-card {
  background: var(--card-bg) !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04) !important;
}

.project-card img:not(.toy-image) {
  opacity: 1 !important;
}

.hover-image,
.hover-carousel {
  background: rgba(255, 255, 255, 0.0) !important;
}

/* Project title */


/* View circle: keep subtle border so it's visible on light background */
.view-circle {
  background: var(--surface-2) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border) !important;
}

/* Glass panels and service/testimonial cards */
.glass,
.service-card,
.testi-card,
.panel,
.contact-card,
.about-card {
  background: var(--surface-2) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04) !important;
}

/* Chips & badges */
.chip {
  background: #f1f5f9 !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border) !important;
}

/* Buttons: solid accent - no gradients */
.btn,
.btn,
.btn {
  background: var(--accent) !important;
  color: #fff !important;
  border: 1px solid var(--accent-strong) !important;
  box-shadow: none !important;
}

.btn:hover {
  background: var(--accent-strong) !important;
}

/* Visit-link: solid accent background */
.visit-link {
  background: var(--accent) !important;
  border: 1px solid var(--accent-strong) !important;
}

.visit-link span {
  color: #fff !important;
}

/* Contact items */
.contact-item {
  background: var(--surface-1) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-primary) !important;
}

/* Band and marquee: use single solid background and dark text */
.band {
  background: var(--surface-2) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border) !important;
}

.band .band-inner {
  color: var(--text-primary) !important;
}

/* Timeline content boxes */
.timeline .content {
  background: var(--surface-2) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border) !important;
}

/* Footer */
.footer {
  background: var(--surface-2) !important;
  color: var(--text-muted) !important;
  border-top: 1px solid var(--border) !important;
  z-index: 999 !important;
  width: 100% !important;
  display: block !important;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  visibility: visible !important;
}

/* Remove any remaining background-image or gradients on commonly used selectors */
[class*="-grid"] {
  background-image: none !important;
}

[class*="-card"]::before,
[class*="-card"]::after {
  display: none !important;
}

/* Ensure text elements use the new primary color when previously forced white */
#user-name,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Sora', 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
.hero-content p,
.contact-item .value :not(.blg){
  color: var(--text-primary) !important;
}

/* Ensure circles and cursor markers are subtle on white */
.circle {
  background-color: rgba(245, 12, 12, 0.945) !important;
}

/* Strong override when JS forces the cursor color */
.circle.force-red {
  background-color: #f70425 !important;
  box-shadow: 0 8px 26px rgba(247, 4, 37, 0.32) !important;
}

/* Ensure theme-toggle is above other nav elements and receives pointer events reliably */
.theme-toggle {
  z-index: 3001;
  pointer-events: auto;
}

/* Make sure background video doesn't wash out text — apply overlay via surfaces, not gradients */
/* Video opacity is now controlled dynamically by JS per theme to avoid a white flash on theme switch. */

/* End forced white-theme overrides */
/* Dark theme variables to support toggle */
html.theme-dark {
  --site-bg: #0b0d10;
  --surface-1: #0f1724;
  --surface-2: #0b1220;
  --text-primary: #e6eef8;
  --text-muted: #9aa6b2;
  --accent: #6ea8ff;
  --accent-strong: #4a8bdf;
  --border: rgba(255, 255, 255, 0.06);
  --card-bg: #0b1220;
  background-color: #050608 !important;
  color: var(--text-primary) !important;
}

html.theme-dark body {
  background-color: transparent !important;
}

/* Ensure theme-toggle button adapts */
.theme-toggle {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-primary);
}

/* Ensure header texts are white regardless of theme */
#user-name,
#user-title {
  color: #fff !important;
  text-shadow: none !important;
}

/* Make theme toggle visually neutral: no blue background, no border */
.theme-toggle {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--text-primary) !important;
}

/* Also remove Bootstrap .btn backgrounds that could apply */
.theme-toggle.btn {
  background: transparent !important;
  color: var(--text-primary) !important;
  border: none !important;
}

/* Final override: ensure forced red cursor always wins (highest specificity and !important) */
html.theme-dark .circle.force-red,
html.theme-light .circle.force-red,
body .circle.force-red,
.circle.force-red {
  background-color: #f70425 !important;
  box-shadow: 0 10px 30px rgba(247, 4, 37, 0.34) !important;
}

/* Dark-mode navbar / toggler tweaks
   - Ensure hamburger bars are white in dark mode
   - Make nav-link hover color yellow for clear contrast
*/
html.theme-dark .toggler-icon,
html.theme-dark .toggler-icon.top-bar,
html.theme-dark .toggler-icon.middle-bar,
html.theme-dark .toggler-icon.bottom-bar {
  background-color: #ffffff !important;
}

html.theme-dark .navbar a,
html.theme-dark .navbar .navbar-brand,
html.theme-dark .navbar-nav .nav-link,
html.theme-dark .navbar-nav .nav-link span {
  color: #ffffff !important;
}

html.theme-dark .navbar-nav .nav-link:hover span {
  color: var(--accent-yellow) !important;
  animation: waveBounce 0.6s ease forwards;
}

html.theme-dark .navbar-nav .nav-link::after {
  background-color: var(--accent-yellow) !important;
}

html.theme-dark .about-stats .chip {
  background: rgba(241, 196, 15, 0.18) !important;
  border: 1px solid rgba(241, 196, 15, 0.35) !important;
  color: #fff !important;
}

html.theme-dark .project-title {
  color: #fff !important;
  margin-bottom: 10px;
  background: transparent !important;
}

html.theme-dark .tech-left {
  flex: 1.2;
  background-color: var(--surface-2);
  padding: 2.5rem 2rem 2.8rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

html.theme-dark .astronut {
  color: #fff;
}

html.theme-dark .tech-wrapper {
  border: 1px solid rgba(255, 255, 255, 0.12);
}

html.theme-dark .project-about-out {
  background-color: rgb(9, 9, 10) !important;
}

html.theme-dark .cta {
  background-color: var(--surface-2);
}

html.theme-dark .cta a {
  color: #f5f2f2 !important;
}

html.theme-dark .cta h2 {
  color: #f8f3f3 !important;
  margin-bottom: 1rem;
}

html.theme-dark .cta .btn {
  border: 2px solid var(--accent-yellow);
  background: transparent !important;
  padding: 0.8rem 1.5rem;
  font-weight: bold;
  border-radius: 10px;
}

html.theme-dark .cta-btn:hover {
  transform: scale(1.02);
  background-color: #000 !important;
  color: #fff !important;
}

/********************************************* New timeline *********************************/
/* Timeline Container */
.new_timeline-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  margin-top: 2rem !important;
  position: relative;
}

/* Timeline Line */
.new_timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: #333;
  transform: translateX(-50%);
}

/* Timeline Items */
.new_timeline-item {
  position: relative;
  margin-bottom: 60px;
  width: 100%;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.new_timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Content Box */
.new_timeline-content {
  position: relative;
  width: 45%;
  padding: 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.new_timeline-item:nth-child(odd) .new_timeline-content {
  left: 0;
}

.new_timeline-item:nth-child(even) .new_timeline-content {
  left: 55%;
}

/* Hover Effect */
.new_timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Timeline Dot */
.new_timeline-content::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #333;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

.new_timeline-item:nth-child(odd) .new_timeline-content::before {
  right: -38px;
}

.new_timeline-item:nth-child(even) .new_timeline-content::before {
  left: -38px;
}

/* Year Styling */
.new_timeline-year {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #333;
}

/* Description Styling */
.new_timeline-description {
  font-size: 1rem;
  line-height: 1.5;
  color: #555;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .new_timeline-container::before {
    background-color: #fff;
  }

  .new_timeline-content {
    background: #222;
    border-color: #444;
    color: #fff;
  }

  .new_timeline-content::before {
    background: #fff;
  }

  .new_timeline-year {
    color: #fff;
  }

  .new_timeline-description {
    color: #ddd;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .new_timeline-container::before {
    left: 20px;
  }

  .new_timeline-content {
    width: calc(100% - 60px);
    left: 40px !important;
  }

  .new_timeline-content::before {
    left: -38px !important;
    right: auto !important;
  }
}

/* Responsive adjustments for project-about text
   - Overrides previous oversized rule and provides fluid typography across screens
   - Keeps text centered on small screens and left-aligned on large screens
*/
.project-about-out {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 1.25rem;
  background-color: rgba(247, 247, 250, 0.95) !important;
  border-radius: 10px;
}

.project-about {
  /* Constrain line length for readability */
  max-width: min(76ch, 1100px) !important;
  margin: 0 auto !important;
  /* Fluid type: clamp(min, preferred, max) */
  font-size: clamp(0.95rem, 1.6vw + 0.2rem, 1.15rem) !important;
  line-height: 1.6 !important;
  color: #000;
  text-align: center !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  font-weight: 400 !important;
  font-family: var(--font-geist-sans), Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
}

html.theme-dark .project-about {
  color: #e6eef8 !important;
}

@media (min-width: 992px) {
  .project-about {
    font-size: clamp(1.02rem, 1.1vw + 0.4rem, 1.25rem) !important;
    text-align: left !important;
    margin-left: 0 !important;
  }

  .project-about-out {
    padding: 1.5rem 2rem !important;
  }
}

@media (max-width: 480px) {
  .project-about {
    font-size: clamp(0.85rem, 2.2vw + 0.1rem, 1rem) !important;
    text-align: center !important;
    padding: 0 0.6rem !important;
  }
}

/* ===== Blogs section styles (featured card on homepage) ===== */
.blogs {
  border: solid black 1px;
  margin-top: 1rem !important;
  max-width: 1230px !important;
  border-radius: 12px;
}

html.theme-dark .blogs {
  border: solid white 1px;
}

.blogs {
  max-width: 1100px;
  margin: 2.5rem auto;
  padding: 1rem;
}

.blogs h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.blogs .lead {
  color: #000;
  margin-bottom: 1rem;
  text-align: center;
}

.blogs-container {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  justify-content: center;
}

.blog-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  background: var(--card-bg, #fff);
  transition: transform 360ms cubic-bezier(.2, .9, .2, 1), box-shadow 360ms;
}

.blog-card.slide-up {
  transform: translateY(18px);
  opacity: 0;
}

.blog-card.in-view {
  transform: translateY(0);
  opacity: 1;
}

.blog-card-body {
  padding: 18px 20px;
  z-index: 3;
}

html.theme-dark .blog-card-body {
  background: var(--surface-2);
}

.blog-title {
  margin-top: 0.5rem;
  margin-bottom: 20px;
  font-size: 2rem;
  color: var(--heading-color, #0b1221);
}

.blog-excerpt {
  margin: 0 0 12px 0;
  color: var(--text-muted, #4b5563);
  line-height: 1.5;
}

.blog-actions {
  display: flex;
  gap: 8px;
}

.blog-image {
  background-size: cover;
  background-position: center center;
  min-height: 400px;
  width: 100%;
  position: relative;
}

.blog-image::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(0, 0, 0, 0.18) 100%);
  pointer-events: none;
}

html.theme-dark .read-more {
  text-decoration: none;
  background-color: transparent !important;
  color: var(--text-on-dark) !important;
  font-weight: 600;
  border: 1px solid var(--accent-yellow) !important;
}

html.theme-dark .read-more:hover {
  background-color: var(--accent-yellow) !important;
  color: black !important;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.12);
}

@media (max-width: 900px) {
  .blogs-container {
    flex-direction: column;
  }

  .blog-image {
    min-height: 180px;
  }
}

/* small utility to make the blog read-more button look like a subtle pill */
.blog-actions .btn {
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
}

/* fade-in helper for reveal items (if JS toggles .in-view) */
.slide-up {
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1), opacity 520ms ease;
}

/* ===== MODERN SKILLS SECTION ===== */
.skills-showcase {
  padding: 4rem 2rem;
  margin: 3rem auto;
  max-width: 1400px;
  width: 100%;
}

.skills-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.skills-header h2 {
  font-size: clamp(2.3rem, 2.6vw, 3rem);
  font-weight: 800;
  color: var(--heading-color);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.skills-subtitle {
  font-size: clamp(1rem, 1.2vw, 1.3rem);
  color: var(--text-muted, #9aa6b2);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  width: 100%;
}

/* Skill Category */
.skill-category {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.skill-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(110, 168, 255, 0.1), rgba(58, 141, 230, 0.05));
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.skill-category:hover {
  border-color: rgba(110, 168, 255, 0.3);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(110, 168, 255, 0.15);
}

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

.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
  position: relative;
  z-index: 1;
}

.category-header i {
  font-size: 1.8rem;
  color: #6ea8ff;
  transition: all 0.3s ease;
}

.skill-category:hover .category-header i {
  transform: scale(1.15) rotate(10deg);
  color: #82b6ff;
}

.category-header h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--heading-color);
  margin: 0;
  text-transform: capitalize;
}

.skill-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  position: relative;
  z-index: 1;
}

/* Individual Skill Item */
.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.skill-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(110, 168, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.skill-item:hover {
  background: rgba(110, 168, 255, 0.1);
  border-color: rgba(110, 168, 255, 0.3);
  transform: scale(1.08) translateY(-6px);
  box-shadow: 0 12px 24px rgba(110, 168, 255, 0.2);
}

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

.skill-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6ea8ff, #4a90e2);
  border-radius: 12px;
  font-size: 1.8rem;
  color: white;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 2;
}

.skill-item:hover .skill-icon {
  transform: rotate(12deg) scale(1.1);
  background: linear-gradient(135deg, #82b6ff, #6a9fe2);
  box-shadow: 0 8px 20px rgba(110, 168, 255, 0.4);
}

.skill-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-color, #e6eef8);
  text-align: center;
  transition: all 0.35s ease;
  position: relative;
  z-index: 2;
}

.skill-item:hover .skill-name {
  color: #6ea8ff;
  transform: translateY(-2px);
}

/* Dark Theme Support */
html.theme-dark .skill-category {
  background: linear-gradient(135deg, rgba(15, 23, 32, 0.6), rgba(11, 18, 26, 0.4));
  border-color: rgba(110, 168, 255, 0.15);
}

html.theme-dark .skill-category:hover {
  border-color: rgba(110, 168, 255, 0.4);
  box-shadow: 0 20px 40px rgba(110, 168, 255, 0.2);
}

html.theme-dark .skill-item {
  background: rgba(110, 168, 255, 0.05);
  border-color: rgba(110, 168, 255, 0.1);
  color: #e6eef8;
}

html.theme-dark .skill-item:hover {
  background: rgba(110, 168, 255, 0.15);
  border-color: rgba(110, 168, 255, 0.35);
  box-shadow: 0 12px 24px rgba(110, 168, 255, 0.25);
}

html.theme-dark .skill-name {
  color: #e6eef8;
}

html.theme-dark .skill-item:hover .skill-name {
  color: #82b6ff;
}

html.theme-dark .category-header h3 {
  color: #fff;
}

/* Light Theme Support */
html:not(.theme-dark) .skill-category {
  background: linear-gradient(135deg, rgba(248, 249, 250, 0.8), rgba(240, 244, 248, 0.9));
  border-color: rgba(110, 168, 255, 0.2);
}

html:not(.theme-dark) .skill-category:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.95));
  border-color: rgba(110, 168, 255, 0.4);
  box-shadow: 0 20px 40px rgba(110, 168, 255, 0.15);
}

html:not(.theme-dark) .skill-item {
  background: rgba(248, 249, 250, 0.9);
  border-color: rgba(110, 168, 255, 0.15);
  color: #1a1a1a;
}

html:not(.theme-dark) .skill-item:hover {
  background: rgba(110, 168, 255, 0.08);
  border-color: rgba(110, 168, 255, 0.3);
}

html:not(.theme-dark) .skill-name {
  color: #333;
}

html:not(.theme-dark) .skill-item:hover .skill-name {
  color: #4a90e2;
}

html:not(.theme-dark) .category-header h3 {
  color: #0b0b0b;
}

html:not(.theme-dark) .skills-header h2 {
  color: #0b0b0b;
}

html:not(.theme-dark) .skills-subtitle {
  color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
  .skills-showcase {
    padding: 2.5rem 1.5rem;
    margin: 2rem auto;
  }

  .skills-header h2 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
  }

  .skills-subtitle {
    font-size: 1rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .skill-category {
    padding: 1.5rem;
  }

  .category-header {
    margin-bottom: 1.5rem;
  }

  .category-header i {
    font-size: 1.5rem;
  }

  .category-header h3 {
    font-size: 1.2rem;
  }

  .skill-items {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .skill-item {
    padding: 0.8rem;
    gap: 0.6rem;
  }

  .skill-icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
  }

  .skill-name {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .skills-showcase {
    padding: 1.5rem 1rem;
    margin: 1.5rem auto;
  }

  .skills-header h2 {
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
  }

  .skills-subtitle {
    font-size: 0.9rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .skill-category {
    padding: 1rem;
  }

  .category-header {
    margin-bottom: 1rem;
    gap: 0.8rem;
  }

  .category-header i {
    font-size: 1.3rem;
  }

  .category-header h3 {
    font-size: 1.1rem;
  }

  .skill-items {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .skill-item {
    padding: 0.6rem;
    gap: 0.5rem;
  }

  .skill-icon {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.2rem;
  }

  .skill-name {
    font-size: 0.75rem;
  }
}

/* ===== CERTIFICATIONS & PROFESSIONAL DEVELOPMENT SECTION ===== */
.certifications {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 3rem 1rem;
  position: relative;
}

.certifications h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--text-on-light);
  position: relative;
}

html.theme-dark .certifications h2 {
  color: #ffffff;
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.cert-card {
  padding: 2rem;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

html.theme-dark .cert-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(110, 168, 255, 0.15);
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0b63ff, #6ea8ff);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cert-card:hover {
  border-color: #0b63ff;
  box-shadow: 0 12px 32px rgba(11, 99, 255, 0.12);
  transform: translateY(-8px);
}

html.theme-dark .cert-card:hover {
  border-color: rgba(110, 168, 255, 0.3);
  box-shadow: 0 12px 32px rgba(110, 168, 255, 0.15);
}

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

.cert-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: #f0f4ff;
  color: #0b63ff;
  font-size: 1.8rem;
  transition: all 0.3s ease;
}

html.theme-dark .cert-icon {
  background: rgba(110, 168, 255, 0.1);
  color: #6ea8ff;
}

.cert-card:hover .cert-icon {
  transform: scale(1.1);
  background: #0b63ff;
  color: #ffffff;
}

html.theme-dark .cert-card:hover .cert-icon {
  background: rgba(110, 168, 255, 0.3);
  color: #ffffff;
}

.cert-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-on-light);
  margin-bottom: 0.5rem;
}

html.theme-dark .cert-card h3 {
  color: #ffffff;
}

.cert-source {
  font-size: 0.85rem;
  color: #0b63ff;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

html.theme-dark .cert-source {
  color: #6ea8ff;
}

.cert-detail {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}

html.theme-dark .cert-detail {
  color: #d1d5db;
}

/* ===== SOFT SKILLS & ACHIEVEMENTS SECTION ===== */
.soft-skills {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 3rem 1rem;
  position: relative;
}

.soft-skills h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--text-on-light);
  position: relative;
}

html.theme-dark .soft-skills h2 {
  color: #ffffff;
}

.skills-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.skill-item {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

html.theme-dark .skill-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(110, 168, 255, 0.15);
}

.skill-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #0b63ff, #6ea8ff);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skill-item:hover {
  border-color: #0b63ff;
  box-shadow: 0 12px 32px rgba(11, 99, 255, 0.12);
  transform: translateX(8px);
}

html.theme-dark .skill-item:hover {
  border-color: rgba(110, 168, 255, 0.3);
  box-shadow: 0 12px 32px rgba(110, 168, 255, 0.15);
}

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

.skill-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f4ff;
  color: #0b63ff;
  font-size: 1.6rem;
  transition: all 0.3s ease;
}

html.theme-dark .skill-icon {
  background: rgba(110, 168, 255, 0.1);
  color: #6ea8ff;
}

.skill-item:hover .skill-icon {
  transform: scale(1.15) rotate(6deg);
  background: #0b63ff;
  color: #ffffff;
}

html.theme-dark .skill-item:hover .skill-icon {
  background: rgba(110, 168, 255, 0.3);
  color: #ffffff;
}

.skill-content {
  flex: 1;
  text-align: left;
}

.skill-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-on-light);
  margin-bottom: 0.5rem;
  margin-top: 0;
}

html.theme-dark .skill-content h3 {
  color: #ffffff;
}

.skill-content p {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

html.theme-dark .skill-content p {
  color: #d1d5db;
}

/* Responsive: Certifications Grid */
@media (max-width: 991px) {
  .certifications {
    margin: 3rem auto;
    padding: 2rem 1rem;
  }

  .certifications h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .certifications-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
  }

  .cert-card {
    padding: 1.5rem;
  }
}

@media (max-width: 640px) {
  .certifications {
    margin: 2rem auto;
    padding: 1.5rem 1rem;
  }

  .certifications h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .certifications-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .cert-card {
    padding: 1.5rem 1rem;
  }

  .cert-icon {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }

  .cert-card h3 {
    font-size: 1rem;
  }
}

/* Responsive: Soft Skills Grid */
@media (max-width: 991px) {
  .soft-skills {
    margin: 3rem auto;
    padding: 2rem 1rem;
  }

  .soft-skills h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .skills-list {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
  }

  .skill-item {
    padding: 1.5rem;
  }
}

@media (max-width: 640px) {
  .soft-skills {
    margin: 2rem auto;
    padding: 1.5rem 1rem;
  }

  .soft-skills h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .skills-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .skill-item {
    padding: 1.5rem 1rem;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .skill-icon {
    margin: 0 auto;
  }

  .skill-content {
    text-align: center;
  }

  .skill-item::before {
    height: 4px;
    width: 100%;
    left: 0;
    top: 0;
    bottom: auto;
  }

  .skill-item:hover {
    transform: translateY(-4px);
  }
}
