/* Default Theme Variables */
:root {
  --color-primary: #9333ea;
  --color-light: #f3e8ff;
  --color-hover: #7e22ce;
}

/* Dynamic Color Themes */
[data-theme="purple"] { --color-primary: #9333ea; --color-light: #f3e8ff; --color-hover: #7e22ce; }
[data-theme="blue"] { --color-primary: #2563eb; --color-light: #dbeafe; --color-hover: #1d4ed8; }
[data-theme="emerald"] { --color-primary: #059669; --color-light: #d1fae5; --color-hover: #047857; }
[data-theme="rose"] { --color-primary: #e11d48; --color-light: #ffe4e6; --color-hover: #be123c; }

html {
  scroll-behavior: auto !important;
  overflow-x: clip;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  position: relative;
}

body {
  transition: background-color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Spin Animations */
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.animate-spin-slow {
  animation: spin-slow 12s linear infinite;
}

/* Floating Sparkle Animation */
@keyframes float-pulse {
  0%, 100% { transform: translateY(0px) scale(1); opacity: 0.85; }
  50% { transform: translateY(-12px) scale(1.1); opacity: 1; filter: drop-shadow(0 0 20px var(--color-primary)); }
}

/* Ambient Orb Glow */
@keyframes orb-glow {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(1.3); }
}
.animate-ambient-orb {
  animation: orb-glow 6s ease-in-out infinite;
}

/* Infinite Marquee */
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}
.animate-marquee {
  display: flex;
  width: 200%;
  animation: marquee 25s linear infinite;
}

.bg-dynamic-gradient {
  background-color: #f8fafc;
  background-image: radial-gradient(at 0% 0%, var(--color-light) 0px, transparent 50%);
}

/* Morphing Image Container */
.image-container {
  position: absolute;
  z-index: 20 !important;
  overflow: hidden;
  will-change: left, top, width, height, border-radius;
  pointer-events: none;
}

#realImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* 🌸 ULTRA-AESTHETIC AURORA GLASS CAPSULE */
.aesthetic-glass-capsule {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  vertical-align: middle;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(243, 232, 255, 0.75) 50%, rgba(255, 255, 255, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 
    0 8px 28px -4px rgba(147, 51, 234, 0.15),
    0 2px 10px 0 rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(147, 51, 234, 0.1);
  cursor: pointer;
  user-select: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  margin: 0 0.35rem;
  overflow: hidden;
}

@media (min-width: 640px) {
  .aesthetic-glass-capsule {
    padding: 0.38rem 1.15rem;
    gap: 0.55rem;
    margin: 0 0.5rem;
  }
}

/* Moving Soft Pastel Aurora Wave */
.aesthetic-glass-capsule::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(147, 51, 234, 0.2), transparent 60%),
              radial-gradient(circle at 80% 50%, rgba(56, 189, 248, 0.2), transparent 60%),
              radial-gradient(circle at 50% 80%, rgba(244, 114, 182, 0.18), transparent 60%);
  animation: auroraMeshMove 6s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes auroraMeshMove {
  0% { transform: scale(1) rotate(0deg); opacity: 0.7; }
  50% { transform: scale(1.2) rotate(10deg); opacity: 1; }
  100% { transform: scale(1) rotate(-10deg); opacity: 0.7; }
}

/* Soft Shimmer Glass Streak */
.aesthetic-glass-capsule::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: skewX(-25deg);
  animation: aestheticShimmer 4.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes aestheticShimmer {
  0%, 65% { left: -100%; }
  100% { left: 160%; }
}

.aesthetic-glass-capsule:hover {
  transform: scale(1.05) translateY(-2px);
  border-color: rgba(147, 51, 234, 0.4);
  box-shadow: 
    0 14px 38px -4px rgba(147, 51, 234, 0.25),
    0 4px 14px 0 rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Aesthetic Rotating 4-Point Star */
.aesthetic-star-icon {
  display: inline-block;
  animation: spinSlowAesthetic 14s linear infinite;
  transform-origin: center center;
  color: var(--color-primary, #9333ea);
}

@keyframes spinSlowAesthetic {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* OPTION 3: 3D TILT ARCH CARD & FLOATING PARALLAX BADGES */
.tilt-3d-stage {
  perspective: 1100px;
  perspective-origin: center center;
}

.tilt-3d-card {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  will-change: transform;
}

.tilt-3d-card:hover {
  box-shadow: 0 30px 65px -10px rgba(147, 51, 234, 0.35);
}

.tilt-layer-floating {
  transform: translateZ(45px);
  transform-style: preserve-3d;
  will-change: transform;
}

.tilt-layer-bar {
  transform: translateZ(55px) translateX(-50%);
  transform-style: preserve-3d;
  will-change: transform;
}

.tilt-glare-overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.35) 0%, transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 15;
}

.tilt-3d-card:hover .tilt-glare-overlay {
  opacity: 1;
}

/* Header & Glass Effect */
#mainHeader {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
#navBar { 
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
}

/* 1. AT TOP OF PAGE: Floating Glass Pill Capsule */
.header-at-top {
  top: 1rem !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 94vw !important;
  max-width: 64rem !important;
}
.header-at-top #navBar { 
  width: 100% !important; 
  max-width: 100% !important; 
  border-radius: 9999px !important; 
  background: rgba(255, 255, 255, 0.82) !important; 
  backdrop-filter: blur(24px) saturate(190%) !important; 
  -webkit-backdrop-filter: blur(24px) saturate(190%) !important; 
  border: 1px solid rgba(255, 255, 255, 0.85) !important; 
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12) !important; 
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

/* 2. WHEN SCROLLING DOWN: Full Width Morph Header */
.header-scrolled {
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  transform: translateX(0) !important;
  width: 100% !important;
  max-width: 100% !important;
}
.header-scrolled #navBar { 
  width: 100% !important; 
  max-width: 100% !important; 
  border-radius: 0px !important; 
  background: rgba(255, 255, 255, 0.92) !important; 
  backdrop-filter: blur(24px) saturate(190%) !important; 
  -webkit-backdrop-filter: blur(24px) saturate(190%) !important; 
  border-bottom: 1px solid rgba(229, 231, 235, 0.8) !important; 
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important; 
  padding-left: 2rem !important;
  padding-right: 2rem !important;
}

/* Dotted Arrow SVG Styling */
#dottedArrowSvg path {
  stroke-width: 2.5;
  stroke: var(--color-primary, #9333ea);
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 6, 8;
}
#dottedArrowheadHead { fill: var(--color-primary, #9333ea); }

.menu-btn-line { 
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease, background-color 0.3s ease; 
  transform-origin: center; 
}
.menu-open .line-1 { transform: translateY(3px) rotate(45deg); background-color: var(--color-primary, #9333ea) !important; }
.menu-open .line-2 { opacity: 0; transform: scale(0); }
.menu-open .line-3 { transform: translateY(-3px) rotate(-45deg); background-color: var(--color-primary, #9333ea) !important; }

#mobileMenu { 
  transform-origin: top center;
  border-radius: 1.75rem;
  will-change: opacity, transform, filter;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.45s cubic-bezier(0.34, 1.35, 0.64, 1), 
              filter 0.35s ease;
}
#mobileMenu.active { 
  opacity: 1; 
  pointer-events: auto; 
  transform: scale(1) translateY(0); 
  filter: blur(0px);
}
#mobileMenu.inactive { 
  opacity: 0; 
  pointer-events: none; 
  transform: scale(0.94) translateY(-20px); 
  filter: blur(8px);
  transition-delay: 0.18s; /* Smooth delay allowing items to gracefully exit first */
}

/* 🌟 AWESOME TWO-WAY STAGGERED SPRING CASCADE (OPEN & CLOSE) */
#mobileMenu .mobile-nav-item {
  opacity: 0;
  transform: translateY(22px) scale(0.96);
  filter: blur(4px);
  will-change: transform, opacity, filter;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), 
              filter 0.3s ease, 
              background-color 0.25s ease, 
              box-shadow 0.25s ease;
}

/* OPENING STATE: Cascading In Sequence (Top to Bottom) */
#mobileMenu.active .mobile-nav-item {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0px);
  transition: opacity 0.42s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.48s cubic-bezier(0.34, 1.56, 0.64, 1), 
              filter 0.38s ease;
}

#mobileMenu.active .mobile-nav-item:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.active .mobile-nav-item:nth-child(2) { transition-delay: 0.10s; }
#mobileMenu.active .mobile-nav-item:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.active .mobile-nav-item:nth-child(4) { transition-delay: 0.20s; }
#mobileMenu.active .mobile-nav-item:nth-child(5) { transition-delay: 0.25s; }
#mobileMenu.active .mobile-nav-item:nth-child(6) { transition-delay: 0.30s; }
#mobileMenu.active .mobile-nav-item:nth-child(7) { transition-delay: 0.35s; }

/* CLOSING STATE: Reverse Cascading Out Sequence (Bottom to Top) */
#mobileMenu.inactive .mobile-nav-item {
  opacity: 0;
  transform: translateY(-14px) scale(0.97);
  filter: blur(3px);
}

#mobileMenu.inactive .mobile-nav-item:nth-child(7) { transition-delay: 0.00s; }
#mobileMenu.inactive .mobile-nav-item:nth-child(6) { transition-delay: 0.03s; }
#mobileMenu.inactive .mobile-nav-item:nth-child(5) { transition-delay: 0.06s; }
#mobileMenu.inactive .mobile-nav-item:nth-child(4) { transition-delay: 0.09s; }
#mobileMenu.inactive .mobile-nav-item:nth-child(3) { transition-delay: 0.12s; }
#mobileMenu.inactive .mobile-nav-item:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.inactive .mobile-nav-item:nth-child(1) { transition-delay: 0.18s; }

/* Interactive touch/press feedback */
#mobileMenu .mobile-nav-item:active {
  transform: scale(0.97);
}

/* 🔮 REACT BITS 3D GLASS ICONS SYSTEM */
.glass-icon-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.2rem 1.6rem;
  max-width: 980px;
  margin: 0 auto;
  padding: 1.5rem 0.5rem 4rem 0.5rem;
  overflow: visible;
}

.glass-icon-btn {
  background-color: transparent;
  outline: none;
  position: relative;
  width: 3.8rem;
  height: 3.8rem;
  perspective: 24em;
  transform-style: preserve-3d;
  -webkit-tap-highlight-color: transparent;
  border: none;
  cursor: pointer;
  margin: 0.4rem;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: visible;
}

@media (min-width: 640px) {
  .glass-icon-btn {
    width: 4.4rem;
    height: 4.4rem;
    margin: 0.6rem;
  }
}

.glass-icon-btn__back,
.glass-icon-btn__front,
.glass-icon-btn__label {
  transition:
    opacity 0.35s cubic-bezier(0.83, 0, 0.17, 1),
    transform 0.35s cubic-bezier(0.83, 0, 0.17, 1),
    box-shadow 0.35s ease;
}

.glass-icon-btn__back,
.glass-icon-btn__front {
  border-radius: 1.25em;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glass-icon-btn__back {
  box-shadow: 0.4em -0.4em 0.85em rgba(0, 0, 0, 0.18);
  display: block;
  transform: rotate(15deg);
  transform-origin: 100% 100%;
  will-change: transform;
}

.glass-icon-btn__front {
  background: rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.8), 0 8px 24px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: 80% 50%;
  will-change: transform;
}

.glass-icon-btn__icon {
  margin: auto;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glass-icon-btn__label {
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  text-align: center;
  line-height: 1.2;
  opacity: 0;
  position: absolute;
  top: 100%;
  right: -50px;
  left: -50px;
  transform: translateY(0);
  pointer-events: none;
  color: #0f172a;
  z-index: 30;
}

/* 🌟 HOVER & FOCUS 3D ISOMETRIC ELEVATION */
.glass-icon-btn:hover .glass-icon-btn__back,
.glass-icon-btn:focus-visible .glass-icon-btn__back {
  transform: rotate(25deg) translate3d(-0.5em, -0.5em, 0.5em);
  box-shadow: 0.8em -0.8em 1.4em rgba(0, 0, 0, 0.28);
}

.glass-icon-btn:hover .glass-icon-btn__front,
.glass-icon-btn:focus-visible .glass-icon-btn__front {
  transform: translate3d(0, 0, 2em);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.95), 0 16px 36px rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.5);
}

.glass-icon-btn:hover .glass-icon-btn__label,
.glass-icon-btn:focus-visible .glass-icon-btn__label {
  opacity: 1;
  transform: translateY(22%);
}

/* 🌟 FILTER STATES FOR GLASS ICONS */
.glass-icon-btn.dimmed-skill {
  opacity: 0.18 !important;
  filter: grayscale(85%) !important;
  transform: scale(0.9) !important;
  pointer-events: none !important;
}

.glass-icon-btn.focused-skill {
  opacity: 1 !important;
  filter: none !important;
  transform: scale(1.06) !important;
  pointer-events: auto !important;
}

/* Tooltip Detail Card for Glass Icons */
.glass-detail-box {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(10px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 50;
  width: 220px;
}

.glass-icon-btn:hover .glass-detail-box {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.glass-detail-box::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #0b0f19 transparent transparent transparent;
}

.skill-tab-btn { transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important; }
.skill-tab-btn.active-tab { 
  background-color: var(--color-primary, #9333ea) !important; 
  color: #ffffff !important; 
  box-shadow: 0 8px 24px -4px var(--color-primary, #9333ea) !important; 
  border-color: var(--color-primary, #9333ea) !important;
  transform: scale(1.06) !important;
}

/* 🔄 ROTATING CIRCULAR BADGE FOR PROJECTS HEADER */
.projects-rotating-badge {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 6.5rem; /* 104px */
  height: 6.5rem;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

@media (min-width: 1024px) {
  .projects-rotating-badge {
    width: 7.25rem; /* 116px */
    height: 7.25rem;
  }
}

.projects-rotating-badge:hover {
  transform: scale(1.08);
}

.projects-rotating-svg {
  width: 100%;
  height: 100%;
  animation: projectCircleSpin 12s linear infinite;
  transform-origin: center;
  transition: animation-duration 0.3s ease;
}

.projects-rotating-badge:hover .projects-rotating-svg {
  animation-duration: 2.4s; /* Fast speed on hover! */
}

@keyframes projectCircleSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.projects-badge-center-arrow {
  position: absolute;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--color-primary, #9333ea);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(147, 51, 234, 0.4);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, box-shadow 0.3s ease;
  z-index: 10;
}

.projects-rotating-badge:hover .projects-badge-center-arrow {
  transform: translateY(4px) scale(1.12);
  box-shadow: 0 12px 28px rgba(147, 51, 234, 0.55);
}

/* SECTION 4: GSAP SCROLLTRIGGER STACKED DECK ENGINE */
/* SECTION 4: BRIGHT GRADIENT GLASS STACKED PROJECTS */
#projects {
  position: relative;
}

.projects-stack {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-bottom: 2rem;
  position: relative;
}

.category-hidden {
  display: none !important;
  opacity: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.split-project-card {
  position: sticky;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, var(--color-light, #f3e8ff) 50%, rgba(255, 255, 255, 0.95) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 28px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  overflow: hidden;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08), 0 20px 50px -15px rgba(147, 51, 234, 0.12);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
  will-change: transform;
  z-index: 30;
}

.split-project-card:hover {
  border-color: var(--color-primary, #9333ea);
  box-shadow: 0 15px 45px -10px rgba(147, 51, 234, 0.25);
}

@media (min-width: 641px) {
  .split-project-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
  }
  
  .preview-70 {
    width: 58%;
    flex-shrink: 0;
    border-bottom: none;
    border-right: 1px solid rgba(229, 231, 235, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .details-30 {
    width: 42%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .viewport-box {
    height: 270px;
  }
}

.split-project-card:hover {
  border-color: var(--color-primary, #9333ea);
  box-shadow: 0 15px 45px -10px rgba(147, 51, 234, 0.25);
}

.preview-70 {
  width: 100%;
  background: radial-gradient(circle at 10% 20%, var(--color-light, #f3e8ff), transparent 50%), rgba(248, 250, 252, 0.85);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  position: relative;
}

.device-switcher {
  display: flex;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 50px;
  padding: 3px;
  gap: 3px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.device-btn {
  padding: 0.35rem 0.7rem;
  border-radius: 50px;
  border: none;
  background: transparent;
  color: #64748b;
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.3s ease;
}

.device-btn.active {
  background: var(--color-primary, #9333ea);
  color: #ffffff;
  box-shadow: 0 4px 12px var(--color-primary, #9333ea);
}

.viewport-box {
  width: 100%;
  height: 330px;
  background: rgba(248, 250, 252, 0.95);
  border-radius: 18px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.03), 0 10px 25px -5px rgba(0,0,0,0.05);
  padding: 8px;
}

.viewport-box.mode-desktop .screen-frame { 
  width: 100%; 
  height: 100%; 
  border-radius: 12px; 
  border: 1px solid rgba(203, 213, 225, 0.6);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.viewport-box.mode-mobile .screen-frame { 
  width: 165px; 
  height: 96%; 
  border: 6px solid #0f172a; 
  border-radius: 28px; 
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.25);
}

.screen-frame {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  width: 100%;
  height: 100%;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.screen-frame img {
  width: 100%;
  height: 100%;
  object-position: top center;
  transition: transform 0.6s ease;
}

.viewport-box.mode-desktop .screen-frame img {
  object-fit: cover;
  object-position: top center;
  background: #ffffff;
}

/* SEO CARDS: 100% FULL UNCROPPED SCREENSHOTS */
.split-project-card[data-category="seo"] .screen-frame img {
  object-fit: contain !important;
  object-position: center !important;
  background: #ffffff !important;
  padding: 4px !important;
}

.split-project-card[data-category="seo"] .viewport-box {
  background: #ffffff !important;
}

.viewport-box.mode-mobile .screen-frame img {
  object-fit: cover;
  object-position: top center;
}

.split-project-card:hover .screen-frame img {
  transform: scale(1.03);
}

/* RESPONSIVE PROJECT VIEWPORT CARDS FOR MOBILE */
@media (max-width: 640px) {
  .viewport-box {
    padding: 6px !important;
    border-radius: 14px !important;
  }

  .viewport-box.mode-desktop {
    height: 190px !important;
  }
  
  .viewport-box.mode-desktop .screen-frame img {
    object-fit: cover !important;
    object-position: top center !important;
    background: #ffffff !important;
  }

  /* SEO CARDS ON MOBILE: 100% FULL UNCROPPED SCREENSHOTS */
  .split-project-card[data-category="seo"] .viewport-box {
    height: 180px !important;
    background: #ffffff !important;
  }

  .split-project-card[data-category="seo"] .screen-frame img {
    object-fit: contain !important;
    object-position: center !important;
    background: #ffffff !important;
    padding: 2px !important;
  }

  .viewport-box.mode-mobile {
    height: 240px !important;
  }

  .viewport-box.mode-mobile .screen-frame {
    width: 135px !important;
    height: 96% !important;
    border: 4px solid #0f172a !important;
    border-radius: 20px !important;
  }
}

.details-30 {
  width: 100%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.85);
  position: relative;
}

.project-category-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  background: var(--color-light, #f3e8ff);
  color: var(--color-primary, #9333ea);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(147, 51, 234, 0.15);
}

@media (min-width: 993px) {
  .projects-stack { gap: 4rem; }
  .split-project-card { flex-direction: row; }
  .preview-70 { width: 68%; padding: 2rem; border-bottom: none; border-right: 1px solid rgba(229, 231, 235, 0.8); }
  .details-30 { width: 32%; padding: 2rem; }
  .viewport-box { height: 390px; }
}

/* SECTION 5: EDUCATION SECTION STYLES */
.education-section {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px 120px 20px;
}

/* 4-BOX ZIG ZAG CONTAINER */
.education-container {
  display: flex;
  flex-direction: column;
  gap: 100px;
  position: relative;
  z-index: 2;
  margin-top: 50px;
}

/* ADVANCED REACT-BITS GLASS SURFACE SYSTEM FOR EDUCATION SECTION */
.glass-surface-card, .edu-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, var(--color-light, #f3e8ff) 50%, rgba(255, 255, 255, 0.96) 100%);
  backdrop-filter: blur(16px) saturate(180%) brightness(1.05);
  -webkit-backdrop-filter: blur(16px) saturate(180%) brightness(1.05);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 0 2px 1px rgba(255, 255, 255, 0.8) inset,
    0 0 10px 4px rgba(147, 51, 234, 0.05) inset,
    0px 4px 16px rgba(17, 17, 26, 0.04),
    0px 8px 24px rgba(17, 17, 26, 0.04),
    0px 16px 56px rgba(17, 17, 26, 0.04),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 0 rgba(147, 51, 234, 0.12);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.4s ease;
  overflow: hidden;
}

/* SPECULAR SHIMMER HIGHLIGHT ON HOVER */
.glass-surface-card::before, .edu-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-25deg);
  transition: left 0.75s ease;
  pointer-events: none;
}

.glass-surface-card:hover::before, .edu-card:hover::before {
  left: 140%;
}

.edu-card {
  width: 450px;
  max-width: 100%;
  min-height: 210px;
  padding: 28px;
  border-radius: 20px;
  opacity: 0.35;
  transform: scale(0.95);
}

.edu-card.active, .edu-card:hover {
  opacity: 1;
  transform: scale(1.02);
  border-color: var(--color-primary, #9333ea);
  box-shadow:
    0 0 4px 2px rgba(255, 255, 255, 0.9) inset,
    0 0 15px 5px rgba(147, 51, 234, 0.12) inset,
    0px 8px 24px rgba(147, 51, 234, 0.15),
    0px 16px 40px rgba(147, 51, 234, 0.18),
    inset 0 1px 0 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 0 var(--color-primary, #9333ea);
}

/* EDUCATION SECTION CARDS */
.education-container {
  position: relative;
}

/* ZIG ZAG POSITIONS */
.edu-card.left { align-self: flex-start; }
.edu-card.right { align-self: flex-end; }

/* TYPEWRITER TEXT CURSOR */
.typing-text-container {
  position: relative;
  min-height: 48px;
  font-family: 'Courier New', Courier, monospace;
}

.typing-text-container::after {
  content: '|';
  color: var(--color-primary, #9333ea);
  font-weight: bold;
  animation: blink 0.8s infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* VECTOR PAPER PLANE CONTAINER */
#paperPlane {
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  z-index: 30;
  pointer-events: none;
  filter: drop-shadow(0px 8px 18px rgba(147, 51, 234, 0.45));
  will-change: transform;
}

/* RESPONSIVE DESIGN FOR EDUCATION SECTION */
@media (max-width: 850px) {
  .education-container { gap: 60px; }
  .edu-card { width: 100%; }
  .edu-card.left, .edu-card.right { align-self: center; }
  #paperPlane {
    width: 40px;
    height: 40px;
  }
}

/* INTRO ANIMATED PRELOADER STYLES */
.font-bubble {
  font-family: 'Fredoka', cursive, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

#introLoader {
  will-change: transform, opacity, filter;
  background: radial-gradient(circle at 50% 40%, #ffffff 0%, var(--color-light, #f3e8ff) 70%, #f4f2ed 100%);
}

#introLoader.intro-dismissed {
  transform: translateY(-100%) scale(0.98);
  opacity: 0;
  pointer-events: none;
  filter: blur(8px);
}

@keyframes introFadeDown {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes introFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes introScaleUp {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.intro-top-bar {
  animation: introFadeDown 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.intro-text-left {
  animation: introFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.intro-portfolio-title {
  animation: introScaleUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards;
}

/* MOBILE SCROLL PERFORMANCE OPTIMIZATION ENGINE */
@media (max-width: 768px) {
  * {
    -webkit-tap-highlight-color: transparent;
  }
  
  /* Remove GPU header backdrop blur during scroll on mobile */
  .header-at-top #navBar, .header-scrolled #navBar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(255, 255, 255, 0.97) !important;
  }

  /* STACKED DECK FOR MOBILE */
  .projects-stack {
    gap: 2.5rem;
  }

  /* 3D STAR PARALLAX SCROLL FOR MOBILE TEAM SECTION (BIGGER 3D STAR & SMOOTH SCROLL) */
  #team {
    min-height: 240vh !important;
    position: relative !important;
  }
  #sticky-bg-text-container {
    position: sticky !important;
    top: 5rem !important;
    height: 60vh !important;
    z-index: 10 !important;
    pointer-events: none !important;
  }
  .blackhole-wrapper {
    width: min(88vw, 360px) !important;
    height: min(88vw, 360px) !important;
    max-width: 400px !important;
    max-height: 400px !important;
  }
  #team-cards-container {
    margin-top: -42vh !important;
    padding-bottom: 15vh !important;
    gap: 20vh !important;
    pointer-events: none !important;
  }
  .team-card {
    pointer-events: auto !important;
    width: 92vw !important;
    max-width: 400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  .team-card.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }

  /* Replace heavy GPU blur shaders on mobile with crisp 60fps/120fps rendering */
  .glass-surface-card, .edu-card, .marquee-review-card, .glass-icon-front {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(255, 255, 255, 0.97) !important;
    will-change: auto !important;
  }

  /* Force hardware accelerated fast native scrolling */
  body, html {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto !important;
  }

  /* Disable heavy ambient glow animations during mobile scroll */
  .animate-ambient-orb {
    animation: none !important;
    opacity: 0.15 !important;
  }
}

/* 🎬 3-TIER LUXURY STAGGERED LAYER CURTAINS WITH CURVED BOTTOM REVEAL */
#introLoader {
  position: fixed;
  inset: 0;
  z-index: 99999 !important;
  overflow: hidden;
  pointer-events: auto;
}

.intro-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  will-change: transform, border-radius;
  transform: translateY(0);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* Layer 1: Front Obsidian Dark Canvas */
.intro-layer-1 {
  z-index: 30;
  background-color: #0a0c0f;
  transition: transform 0.85s cubic-bezier(0.85, 0, 0.15, 1) 0.0s, border-radius 0.85s cubic-bezier(0.85, 0, 0.15, 1) 0.0s;
}

/* Layer 2: Middle Deep Violet Velvet Canvas */
.intro-layer-2 {
  z-index: 20;
  background: #2e1065;
  transition: transform 0.85s cubic-bezier(0.85, 0, 0.15, 1) 0.12s, border-radius 0.85s cubic-bezier(0.85, 0, 0.15, 1) 0.12s; /* 0.12s delay creates wide visible purple layer */
}

/* Layer 3: Back Vibrant Theme Accent Canvas */
.intro-layer-3 {
  z-index: 10;
  background: var(--color-primary, #9333ea);
  transition: transform 0.85s cubic-bezier(0.85, 0, 0.15, 1) 0.24s, border-radius 0.85s cubic-bezier(0.85, 0, 0.15, 1) 0.24s; /* 0.24s delay creates wide visible neon theme layer */
}

/* On Dismiss: Cascading Triple Layer Sweep Up with Fluid Curved Wave Bottom */
#introLoader.intro-dismissed .intro-layer-1 {
  transform: translateY(-100%) !important;
  border-bottom-left-radius: 50vw 18vh !important;
  border-bottom-right-radius: 50vw 18vh !important;
}

#introLoader.intro-dismissed .intro-layer-2 {
  transform: translateY(-100%) !important;
  border-bottom-left-radius: 50vw 18vh !important;
  border-bottom-right-radius: 50vw 18vh !important;
}

#introLoader.intro-dismissed .intro-layer-3 {
  transform: translateY(-100%) !important;
  border-bottom-left-radius: 50vw 18vh !important;
  border-bottom-right-radius: 50vw 18vh !important;
}

#introLoader.intro-dismissed {
  pointer-events: none !important;
  visibility: hidden;
  transition: visibility 0s 1.35s; /* Wait for all 3 layers to finish completely */
}

#introLoader.intro-dismissed .intro-content-wrapper {
  transform: translateY(-40px) scale(0.95);
  opacity: 0;
  filter: blur(10px);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease, filter 0.45s ease;
}

.intro-content-wrapper {
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.55s ease, filter 0.55s ease;
  will-change: transform, opacity, filter;
  position: relative;
  z-index: 20;
}

/* 🖱️ FIGMA-STYLE VECTOR SELECTION DRAG REVEAL ENGINE (100% RESPONSIVE) */
.figma-selection-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  max-width: 90vw;
}

@media (min-width: 640px) {
  .figma-selection-wrapper {
    padding: 1.1rem 2.2rem;
  }
}

/* The Animated Bounding Box Frame */
.figma-bounding-box {
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--color-primary, #9333ea);
  border-radius: 4px;
  box-shadow: 0 0 25px rgba(147, 51, 234, 0.45), inset 0 0 15px rgba(147, 51, 234, 0.15);
  animation: dragBoxExpand 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: clip-path, opacity;
}

@media (min-width: 640px) {
  .figma-bounding-box {
    border-width: 2px;
    border-radius: 6px;
  }
}

/* Figma Corner Handles ■ */
.figma-handle {
  position: absolute;
  width: 7px;
  height: 7px;
  background-color: #ffffff;
  border: 1.5px solid var(--color-primary, #9333ea);
  border-radius: 1.5px;
  box-shadow: 0 0 8px rgba(147, 51, 234, 0.9);
}

@media (min-width: 640px) {
  .figma-handle {
    width: 9px;
    height: 9px;
    border-radius: 2px;
  }
}

.figma-handle-tl { top: -4px; left: -4px; }
.figma-handle-tr { top: -4px; right: -4px; }
.figma-handle-bl { bottom: -4px; left: -4px; }
.figma-handle-br { bottom: -4px; right: -4px; }

/* The Figma Mouse Cursor Icon - Responsive Diagonal Track */
.figma-mouse-cursor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 50;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.7));
  animation: cursorDragResponsive 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  pointer-events: none;
  will-change: top, left, transform, opacity;
}

/* Masked Text Reveal */
.figma-portfolio-text {
  font-family: 'Syne', 'Unbounded', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--color-primary, #9333ea);
  font-size: clamp(1.85rem, 8.5vw, 6.8rem);
  line-height: 1.05;
  animation: textClipReveal 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  white-space: nowrap;
  text-shadow: 0 0 30px rgba(147, 51, 234, 0.4);
}

@keyframes dragBoxExpand {
  0% {
    clip-path: inset(0 100% 100% 0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

@keyframes textClipReveal {
  0% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

/* Fully Responsive Percentage-Based Drag Cursor Animation */
@keyframes cursorDragResponsive {
  0% {
    top: 0;
    left: 0;
    transform: translate(-15px, -15px) scale(0.85);
    opacity: 0;
  }
  14% {
    top: 0;
    left: 0;
    transform: translate(-2px, -2px) scale(1);
    opacity: 1;
  }
  86% {
    top: 100%;
    left: 100%;
    transform: translate(-4px, -4px) scale(1);
  }
  92% {
    top: 100%;
    left: 100%;
    transform: translate(-2px, -2px) scale(0.92); /* Mouse Click Pulse */
  }
  100% {
    top: 100%;
    left: 100%;
    transform: translate(-4px, -4px) scale(1);
    opacity: 1;
  }
}

@keyframes flourishDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes introFadeDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes introFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* REACT BITS GLASS ICONS CARD SLIDE-OUT SYSTEM (MATCHING SS 2) */
.glass-icon-wrapper {
  position: relative;
  cursor: pointer;
  perspective: 1000px;
}

/* Back Paper / Card Layer */
.glass-icon-back {
  position: absolute;
  inset: 0;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, var(--color-primary, #9333ea) 0%, #7e22ce 100%);
  opacity: 0.85;
  transform: translate(0px, 0px) rotate(0deg);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  z-index: 1;
  box-shadow: 0 8px 20px rgba(147, 51, 234, 0.3);
}

/* On Hover: Paper card slides out to top-right with 8 deg tilt angle matching React Bits SS 2! */
.glass-icon-wrapper:hover .glass-icon-back,
.glass-icon-wrapper.active-glass-icon .glass-icon-back {
  transform: translate(10px, -10px) rotate(8deg);
  opacity: 1;
}

/* Front Glass Button Layer */
.glass-icon-front {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 1.25rem;
  padding: 0.85rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 16px rgba(17, 17, 26, 0.05);
}

.glass-icon-wrapper:hover .glass-icon-front,
.glass-icon-wrapper.active-glass-icon .glass-icon-front {
  transform: translate(-3px, 3px);
  border-color: var(--color-primary, #9333ea);
  box-shadow: 0 12px 28px -5px rgba(147, 51, 234, 0.25);
}

/* INFINITE MARQUEE NONSTOP REVIEWS SLIDERS WITH HOVER PAUSE */
.marquee-container {
  overflow: hidden !important;
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 0;
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.marquee-track-left {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marqueeLeft 34s linear infinite;
  will-change: transform;
}

.marquee-track-right {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marqueeRight 38s linear infinite;
  will-change: transform;
}

/* PAUSE ANIMATION ON HOVER (NONSTOP SLIDER STOPS ON HOVER AS REQUESTED) */
.marquee-container:hover .marquee-track-left,
.marquee-container:hover .marquee-track-right,
.marquee-track-left:hover,
.marquee-track-right:hover {
  animation-play-state: paused !important;
}

@keyframes marqueeLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marqueeRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.marquee-review-card {
  width: 350px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .marquee-review-card {
    width: 290px;
  }
}

/* SECTION 7: 3D PARALLAX SCROLL TEAM STYLING */
#team-cards-container .team-card {
  will-change: transform, opacity;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

#team-cards-container .team-card.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
  box-shadow: 0 25px 50px -12px rgba(147, 51, 234, 0.25), 0 0 0 1px rgba(147, 51, 234, 0.3) !important;
}

/* 🚀 "LET'S CONNECT" GLASS POPUP MODAL ANIMATIONS */
#connectModal {
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s ease;
}
#connectModal.inactive {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#connectModal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#connectModalContent {
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
}
#connectModal.inactive #connectModalContent {
  transform: scale(0.84) translateY(30px) rotateX(8deg);
  opacity: 0;
}
#connectModal.active #connectModalContent {
  transform: scale(1) translateY(0) rotateX(0deg);
  opacity: 1;
}

/* 📩 CONTACT SUCCESS MODAL ANIMATIONS */
#contactSuccessModal {
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s ease;
}
#contactSuccessModal.inactive {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
#contactSuccessModal:not(.inactive) {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.connect-option-card {
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.connect-option-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 16px 35px -5px rgba(147, 51, 234, 0.25);
}

/* Custom Thin Scrollbar for Connect Modal Content */
#connectModalContent::-webkit-scrollbar {
  width: 5px;
}
#connectModalContent::-webkit-scrollbar-track {
  background: rgba(241, 245, 249, 0.6);
  border-radius: 10px;
}
#connectModalContent::-webkit-scrollbar-thumb {
  background: rgba(147, 51, 234, 0.4);
  border-radius: 10px;
}
#connectModalContent::-webkit-scrollbar-thumb:hover {
  background: rgba(147, 51, 234, 0.7);
}

#main-title.highlighted {
  opacity: 1 !important;
}

.blackhole-img {
  will-change: transform;
}

/* SECTION 8: PRICING & CUSTOM ESTIMATE CALCULATOR STYLING */
#pricing .choice-card.selected {
  border-color: var(--color-primary, #9333ea) !important;
  background-color: var(--color-light, rgba(147, 51, 234, 0.08)) !important;
  box-shadow: 0 0 15px rgba(147, 51, 234, 0.25) !important;
}

#pricingPopupOverlay input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary, #9333ea);
  cursor: pointer;
  box-shadow: 0 0 15px var(--color-primary, #9333ea);
}

/* HIGH-END MARQUEE TYPOGRAPHY */
.font-syne {
  font-family: 'Syne', sans-serif !important;
}

.font-syncopate {
  font-family: 'Syncopate', sans-serif !important;
}









