/* === SHARED STYLES (VARIABLES, GLASS, ANIMATIONS) === */
:root {
  --bg: #0D0D0D;
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.15);
  --accent-1: #6C63FF;
  --accent-2: #FF6584;
  --text: #F0F0FF;
  --text-muted: #8A8AB0;
  --divider: #3A3A5C;
  --shadow: rgba(79, 142, 247, 0.10);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* from contact */

  --nav-height: 60px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  margin: 0;
}

::selection {
  background: rgba(108, 99, 255, 0.3);
  color: var(--text);
}

::-moz-selection {
  background: rgba(108, 99, 255, 0.3);
  color: var(--text);
}

.roboto-mono {
  font-family: 'Roboto Mono', monospace;
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px var(--shadow);
}

.glass-rounded {
  border-radius: 20px;
}

.shimmer-text {
  background: linear-gradient(90deg, var(--text) 0%, var(--accent-1) 25%, var(--accent-2) 50%, var(--text) 75%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerText 4s linear infinite;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Animations */
@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -50px); }
  66% { transform: translate(-20px, 20px); }
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}
@keyframes shimmerText {
  to { background-position: 200% center; }
}
@keyframes blinkCursor {
  from, to { border-color: transparent; }
  50% { border-color: var(--accent-1); }
}

.cursor-blink {
  animation: blinkCursor 0.8s step-end infinite;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmerSweep {
  0%   { left: -75%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 125%; opacity: 0; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .shimmer-text { animation: none; }
  .shimmer-container::before { animation: none !important; }
}

/* === INDEX PAGE === */

.fade-in-on-scroll {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === CONTACT PAGE === */


.shimmer-container {
  position: relative;
  overflow: hidden;
}
.shimmer-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 20%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0.03) 80%,
    transparent 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  animation: shimmerSweep 3s ease-in-out infinite;
}
.shimmer-container:hover::before {
  animation: shimmerSweep 1.2s ease-in-out forwards;
}
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}
#main-content {
  padding-top: var(--nav-height);
}

.tilt-card {
  will-change: transform;
  transform-style: preserve-3d;
}
.btn-loading-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}
.btn--loading .btn-text { display: none; }
.btn--loading .btn-loading-spinner { display: block; }

/* === PROJECTS PAGE === */
.project-card, .cert-card {
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1),
              opacity 0.3s ease;
}
.project-card:hover, .cert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(108, 99, 255, 0.15),
              0 4px 16px rgba(0, 0, 0, 0.3);
}

.glass.glass-rounded.spotlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(108, 99, 255, 0.20),
              0 0 0 1px rgba(108, 99, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.card--hidden {
  opacity: 0 !important;
  pointer-events: none;
  transform: scale(0.95);
  visibility: hidden;
  position: absolute;
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--divider);
  border-radius: 10px;
}

.snap-x {
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.snap-x::-webkit-scrollbar {
  display: none;
}
.snap-item {
  scroll-snap-align: start;
}
dialog::backdrop {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

/* === SKELETON LOADER === */
#skeleton-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0D0D0D;
  padding: 80px 48px 48px 48px;
  transition: opacity 300ms ease;
  overflow: hidden;
}

#skeleton-loader.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Skeleton shimmer animation */
@keyframes skeletonShimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}

.skel {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(255,255,255,0.10) 50%,
    rgba(255,255,255,0.04) 75%
  );
  background-size: 600px 100%;
  animation: skeletonShimmer 1.4s ease-in-out infinite;
  border-radius: 8px;
}

/* Skeleton navbar */
.skel-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 10000;
}

.skel-nav-logo {
  width: 80px;
  height: 16px;
}

.skel-nav-links {
  display: flex;
  gap: 32px;
}

.skel-nav-link {
  width: 56px;
  height: 12px;
}

/* Skeleton body content area */
.skel-body {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 100px;
  padding-left: clamp(24px, 4vw, 64px);
  padding-right: clamp(24px, 4vw, 64px);
}

/* Hero skeleton (index.html) */
.skel-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70vh;
}

.skel-hero-card {
  width: 380px;
  max-width: 90vw;
  padding: 48px 40px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.skel-hero-name  { width: 60%; height: 28px; }
.skel-hero-role  { width: 80%; height: 14px; }
.skel-hero-tag   { width: 40%; height: 12px; }
.skel-hero-btn   { width: 130px; height: 40px; border-radius: 999px; margin-top: 8px; }
.skel-hero-icons { display: flex; gap: 16px; margin-top: 8px; }
.skel-hero-icon  { width: 36px; height: 36px; border-radius: 50%; }

/* Grid skeleton (projects.html) */
.skel-heading {
  width: 280px;
  height: 52px;
  margin-bottom: 12px;
}

.skel-proj-sub {
  width: 320px;
  height: 14px;
  margin-bottom: 40px;
}

.skel-horizontal-card {
  display: grid;
  grid-template-columns: 380px 1fr;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 2rem;
  min-height: 220px;
}

.skel-h-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(255,255,255,0.10) 50%,
    rgba(255,255,255,0.04) 75%
  );
  background-size: 600px 100%;
  animation: skeletonShimmer 1.4s ease-in-out infinite;
}

.skel-h-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skel-h-title {
  width: 60%;
  height: 24px;
}

.skel-h-desc1 {
  width: 100%;
  height: 14px;
}

.skel-h-desc2 {
  width: 85%;
  height: 14px;
}

.skel-h-buttons {
  display: flex;
  gap: 12px;
  margin-top: auto;
  justify-content: center;
}

.skel-h-btn {
  width: 120px;
  height: 40px;
  border-radius: 999px;
}

@media (max-width: 768px) {
  .skel-horizontal-card {
    grid-template-columns: 1fr;
  }
  .skel-h-img {
    height: 200px;
  }
}

.skel-proj-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 672px;
  margin: 0 auto 48px auto;
}

.skel-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  overflow: hidden;
}

.skel-card-thumb { width: 100%; height: 160px; border-radius: 0; }
.skel-card-body  { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.skel-card-tag   { width: 60px;  height: 10px; }
.skel-card-title { width: 75%;   height: 18px; }
.skel-card-desc1 { width: 100%;  height: 12px; }
.skel-card-desc2 { width: 85%;   height: 12px; }
.skel-card-btn   { width: 100%;  height: 36px; border-radius: 10px; margin-top: 8px; }

.skel-card.skel-cert-card {
  border-left: 4px solid rgba(108, 99, 255, 0.2);
  min-height: 350px;
}
.skel-card.skel-cert-card .skel-card-body {
  padding: 24px;
}

/* Contact skeleton */
.skel-contact-heading { width: 340px; height: 64px; margin-bottom: 16px; }
.skel-contact-sub     { width: 360px; height: 14px; margin-bottom: 40px; }

.skel-cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}
@media (max-width: 767px) {
  .skel-cards-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.skel-contact-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.skel-contact-icon  { width: 48px; height: 48px; border-radius: 50%; }
.skel-contact-label { width: 60%;  height: 10px; }
.skel-contact-value { width: 80%;  height: 14px; }
.skel-contact-btn   { width: 90%;  height: 32px; border-radius: 999px; margin-top: 4px; }

.skel-form-card {
  max-width: 560px;
  margin: 0 auto;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skel-form-heading { width: 200px; height: 28px; }
.skel-form-label   { width: 80px;  height: 10px; }
.skel-form-input   { width: 100%;  height: 48px; border-radius: 12px; }
.skel-form-textarea{ width: 100%;  height: 100px; border-radius: 12px; }
.skel-form-btn     { width: 100%;  height: 48px; border-radius: 12px; }

#top-nav {
  position: fixed;
  z-index: 70 !important; /* Always above overlay and menu */
  background: linear-gradient(
    180deg,
    rgba(79, 142, 247, 0.10) 0%,
    rgba(13, 13, 13, 0.92) 100%
  );
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(79, 142, 247, 0.20);
  box-shadow: 0 1px 0 rgba(79, 142, 247, 0.10),
              0 4px 24px rgba(0, 0, 0, 0.40);
  margin-bottom: 0;
  padding-bottom: 1px;
  overflow: visible;
}

#mobile-menu-btn {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.scroll-section-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  overflow: visible;
  padding: 24px 0;
  margin: -24px 0;
}

.scroll-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(13, 13, 13, 0.80);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 16px var(--shadow);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 200ms ease, box-shadow 200ms ease,
              transform 200ms ease, opacity 200ms ease;
  z-index: 20;
  position: relative;
  margin: 0 12px;
  opacity: 0.5;
}

.scroll-arrow:hover {
  background: rgba(108, 99, 255, 0.15);
  box-shadow: 0 0 20px rgba(108, 99, 255, 0.30);
  transform: scale(1.08);
  opacity: 1;
}

.scroll-arrow:active { transform: scale(0.96); }

.scroll-arrow.hidden-arrow {
  opacity: 0;
  pointer-events: none;
}

.scroll-section-wrapper > *:not(.scroll-arrow) {
  flex: 1;
  min-width: 0;
  overflow: visible;
}

/* === CERTIFICATE CAROUSEL === */

/* Ghost skeleton blocks inside ghost cards */
.skel-cert-org   { width: 60px;  height: 10px; border-radius: 4px; }
.skel-cert-title { width: 75%;   height: 20px; border-radius: 4px; }
.skel-cert-desc  { width: 90%;   height: 12px; border-radius: 4px; }
.skel-cert-date  { width: 50%;   height: 10px; border-radius: 4px; }

/* Ghost cards — blurred, dimmed */
.cert-ghost {
  opacity: 0.25;
  filter: blur(2px);
  transform: scale(0.94);
  transition: opacity 400ms ease, filter 400ms ease,
              transform 400ms ease;
  pointer-events: none;
  border-left: 4px solid var(--glass-border) !important;
}

/* Real card — fully visible, slightly elevated */
.cert-real {
  opacity: 1;
  filter: none;
  transform: scale(1);
  transition: transform 400ms ease, box-shadow 400ms ease;
  box-shadow: 0 8px 40px rgba(108, 99, 255, 0.25);
  z-index: 2;
  position: relative;
}

/* Auto-scroll animation */


.cert-carousel-track {
  display: flex;
  gap: 24px;
  animation: certScroll 18s linear infinite;
  width: max-content;
  will-change: transform;
}

/* Pause on hover */
.cert-carousel:hover .cert-carousel-track {
  animation-play-state: paused;
}

/* Override the overflow hidden from scroll wrapper */


.cert-carousel {
  overflow: visible;
  cursor: grab;
}

.cert-carousel:active {
  cursor: grabbing;
}

/* Background Orbs */
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  -webkit-filter: blur(100px);
  will-change: transform, opacity;
  pointer-events: none;
  z-index: -1;
}

.carousel-outer {
  flex: 1;
  min-width: 0;
  padding: 24px 0;
  margin: -24px 0;
  overflow-x: clip;
  overflow-y: visible;
  /* Granular mask for seamless fade */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0,0,0,0.05) 5%,
    rgba(0,0,0,0.3) 12%,
    rgba(0,0,0,0.8) 20%,
    black 25%,
    black 75%,
    rgba(0,0,0,0.8) 80%,
    rgba(0,0,0,0.3) 88%,
    rgba(0,0,0,0.05) 95%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0,0,0,0.05) 5%,
    rgba(0,0,0,0.3) 12%,
    rgba(0,0,0,0.8) 20%,
    black 25%,
    black 75%,
    rgba(0,0,0,0.8) 80%,
    rgba(0,0,0,0.3) 88%,
    rgba(0,0,0,0.05) 95%,
    transparent 100%
  );
}

#mobile-menu {
  z-index: 60 !important; /* Below navbar but above overlay */
}

#mobile-menu.open {
  max-height: 400px; /* Increased to avoid cutoff */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#mobile-menu a.active-mobile {
  color: var(--accent-1);
}

#mobile-overlay {
  z-index: 55 !important;
  transition: opacity 0.3s ease;
}

#mobile-overlay.visible {
  display: block;
  opacity: 1;
}

@media (min-width: 768px) {
  #mobile-menu, #mobile-overlay {
    display: none !important;
  }
}

/* === MOBILE RESPONSIVE FIXES === */
@media (max-width: 767px) {
  /* 1. Typography & Header Density */
  #hero .glass.glass-rounded {
    padding: 30px 20px !important;
    max-width: 90vw !important;
  }
  #hero h1 {
    font-size: 1.8rem !important;
  }

  .gradient-text {
    font-size: 2.25rem !important;
    line-height: 1.1 !important;
  }

  h2.text-3xl {
    font-size: 1.75rem !important;
    margin-bottom: 1.5rem !important;
  }

  /* Compact section spacing */
  header.mb-12, section.mb-24, .py-24 {
    margin-bottom: 2rem !important;
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  /* 2. Contact Cards & Form Density */
  #cards .grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  #cards .tilt-card {
    padding: 1rem !important;
  }
  #cards h3 { font-size: 0.9rem !important; }
  #cards span { font-size: 0.65rem !important; }

  #form .glass-rounded {
    padding: 1.5rem !important;
  }
  #form h2 {
    margin-bottom: 2rem !important;
  }
  #form p.-mt-8 {
    margin-top: -1.5rem !important;
    margin-bottom: 1.5rem !important;
  }

  /* 3. Background Orbs Density */
  .bg-orb {
    max-width: 60vw !important;
    max-height: 60vw !important;
  }

  /* 4. Main Content Padding Fix */
  #main-content, main.pt-\[100px\] {
    padding-top: 75px !important;
  }

  /* 5. Scroll Arrow Resize */
  .scroll-arrow {
    width: 28px !important;
    height: 28px !important;
    margin: 0 4px !important;
  }
  .scroll-arrow svg {
    width: 14px !important;
    height: 14px !important;
  }

  /* 6. High-Density Card Refinements (Projects & Certificates) */
  .project-card, .cert-card {
    min-width: 230px !important;
    padding: 0 !important;
  }
  
  .project-card .p-6, .cert-card.p-6, .cert-real.p-6 {
    padding: 1rem !important;
  }

  .project-card .h-48 {
    height: 120px !important;
  }
  
  .project-card h3, .cert-card h4 {
    font-size: 1rem !important;
    margin-bottom: 0.4rem !important;
  }
  
  .project-card p, .cert-card p {
    font-size: 0.75rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0.8rem !important;
  }

  .proj-carousel, .cert-carousel {
    gap: 12px !important;
  }

  /* 7. Skeleton Loader Polish */
  #skeleton-loader {
    padding: 70px 20px 20px 20px !important;
  }
  .skel-body {
    padding: 80px 0 0 0 !important; /* Tighten up for mobile */
  }
}

@media (max-width: 480px) {
  .project-card, .cert-card {
    min-width: 210px !important; /* Even smaller for very small screens */
  }
}


/* === PAGE TRANSITIONS === */
.page-transition-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99990;
  pointer-events: none;
  opacity: 0;
  transition: opacity 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

.page-transition-overlay.fade-in {
  opacity: 1;
  pointer-events: all;
}

/* === TOUCH RIPPLE EFFECT (Mobile) === */
.touch-ripple {
  position: fixed;
  pointer-events: none;
  z-index: 99998;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  border: 1.5px solid #6C63FF;
  background: transparent;
  box-shadow: 0 0 6px rgba(108, 99, 255, 0.5),
              0 0 12px rgba(108, 99, 255, 0.25),
              inset 0 0 6px rgba(108, 99, 255, 0.1);
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  animation: touchRippleAnim 600ms cubic-bezier(0.2, 0.8, 0.4, 1) forwards;
}

.touch-ripple-hold {
  position: fixed;
  pointer-events: none;
  z-index: 99997;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  border: 1.5px solid #FF6584;
  background: transparent;
  box-shadow: 0 0 6px rgba(255, 101, 132, 0.5),
              0 0 12px rgba(255, 101, 132, 0.25),
              inset 0 0 6px rgba(255, 101, 132, 0.1);
  transform: translate(-50%, -50%) scale(1);
  opacity: 0.7;
  animation: touchRippleHold 900ms cubic-bezier(0.2, 0.8, 0.4, 1) forwards;
}

@keyframes touchRippleAnim {
  0%   { 
    transform: translate(-50%, -50%) scale(0.3); 
    opacity: 1; 
  }
  40%  { 
    opacity: 1; 
  }
  100% { 
    transform: translate(-50%, -50%) scale(3.5); 
    opacity: 0; 
  }
}

@keyframes touchRippleHold {
  0%   { 
    transform: translate(-50%, -50%) scale(0.3); 
    opacity: 0.7; 
  }
  100% { 
    transform: translate(-50%, -50%) scale(5); 
    opacity: 0; 
  }
}

/* === CUSTOM CURSOR === */
* {
  cursor: none !important;
}

#cursor-dot {
  position: fixed;
  top: -100px;
  left: -100px;
  width: 8px;
  height: 8px;
  background: var(--accent-1);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 200ms ease, height 200ms ease,
              background 200ms ease, opacity 200ms ease;
  box-shadow: 0 0 10px var(--accent-1),
              0 0 20px var(--accent-1),
              0 0 40px rgba(108, 99, 255, 0.4);
  opacity: 0;
}

#cursor-ring {
  position: fixed;
  top: -100px;
  left: -100px;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(108, 99, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 300ms ease, height 300ms ease,
              border-color 300ms ease, opacity 300ms ease;
  opacity: 0;
  box-shadow: 0 0 8px rgba(108, 99, 255, 0.3),
              0 0 16px rgba(108, 99, 255, 0.15);
}

/* Cursor hover state  expands on clickable elements */
body.cursor-hover #cursor-dot {
  width: 12px;
  height: 12px;
  background: var(--accent-2);
  box-shadow: 0 0 14px var(--accent-2),
              0 0 28px var(--accent-2),
              0 0 50px rgba(255, 101, 132, 0.4);
}

body.cursor-hover #cursor-ring {
  width: 52px;
  height: 52px;
  border-color: rgba(255, 101, 132, 0.4);
  box-shadow: 0 0 10px rgba(255, 101, 132, 0.3),
              0 0 20px rgba(255, 101, 132, 0.15);
}

/* Cursor click state */
body.cursor-click #cursor-dot {
  width: 6px;
  height: 6px;
  opacity: 0.8;
}

body.cursor-click #cursor-ring {
  width: 24px;
  height: 24px;
}

/* Hide custom cursor on touch/mobile devices */
@media (hover: none), (pointer: coarse), 
       (max-width: 768px) {
  * { cursor: auto !important; }
  #cursor-dot, #cursor-ring { 
    display: none !important; 
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* === ADVANCED UI EFFECTS === */
a, button {
  transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1);
}

#star-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}


.scrambling {
  opacity: 1;
}

#scroll-progress {
  position: fixed;
  top: 60px;
  left: 0;
  height: 1px;
  width: 0%;
  z-index: 49;
  background: linear-gradient(
    90deg, 
    var(--accent-1) 0%, 
    var(--accent-2) 100%
  );
  box-shadow: 0 0 6px var(--accent-1),
              0 0 12px rgba(108, 99, 255, 0.3);
  transition: width 50ms linear;
  pointer-events: none;
}



/* === CARD SPOTLIGHT EFFECT === */
.spotlight-card {
  position: relative;
  overflow: hidden;
}

.spotlight-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(108, 99, 255, 0.06) 0%,
    rgba(108, 99, 255, 0.03) 30%,
    transparent 70%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 300ms ease;
  border-radius: inherit;
  z-index: 1;
}

.spotlight-card:hover::after {
  opacity: 1;
}

  .glass.glass-rounded:hover {
    box-shadow: 0 8px 32px var(--shadow),
                0 0 0 1px rgba(108, 99, 255, 0.3),
                0 0 20px rgba(108, 99, 255, 0.1);
    transition: box-shadow 300ms ease;
  }

  /* Glass tags on project/cert cards */
  .roboto-mono.tracking-widest {
    display: inline-block;
    background: rgba(108, 99, 255, 0.08);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 999px;
    padding: 2px 10px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 10px;
    width: fit-content;
  }

  /* Glass pill on footer text */
  footer p {
    display: inline-block;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    padding: 6px 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }


  /* Glass on scroll progress bar end cap */
  #scroll-progress::after {
    content: '';
    position: absolute;
    right: 0;
    top: -1.5px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-1);
    box-shadow: 0 0 6px var(--accent-1),
                0 0 12px rgba(108, 99, 255, 0.5);
  }

.skill-chip {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  color: var(--text);
  transition: box-shadow 300ms ease, 
              border-color 300ms ease;
}

.skill-chip:hover {
  box-shadow: 0 0 16px rgba(108, 99, 255, 0.3);
  border-color: var(--accent-1);
}

#top-nav a {
  transform: none !important;
  transition: color 200ms ease !important;
}

#top-nav a:hover {
  transform: none !important;
}

.skeleton-shimmer {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.02) 25%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.02) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.project-date-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Roboto Mono', monospace;
  transition: opacity 0.3s ease;
}

.glass.px-6.py-2.rounded-full:hover {
  box-shadow: 0 0 20px rgba(108, 99, 255, 0.3);
  transition: box-shadow 0.3s ease;
}

a[href*="github"]:hover {
  color: var(--text) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Force static buttons - no hover movement */
.glass.px-6.py-2\.5.rounded-full {
  transition: none !important;
  transform: none !important;
}

.glass.px-6.py-2\.5.rounded-full:hover {
  transform: none !important;
  box-shadow: none !important;
}

.glass.px-6.py-2\.5.rounded-full:active {
  transform: none !important;
}
