.w-webflow-badge {
  position: fixed !important;
  display: none !important;
  visibility: hidden !important;
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
}

/* Prevent body scroll when lightbox is open */
body.lightbox-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
}

/* TLDR Modal Styles */
.tldr-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.tldr-modal.show {
  display: flex;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.tldr-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  cursor: pointer;
  z-index: 999999;
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(5px)) {
  .tldr-modal-backdrop {
    background: rgba(0, 0, 0, 0.9);
  }
}

.tldr-modal-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  background: #1f1f1f;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: modalSlideIn 0.3s ease-out;
  display: flex;
  flex-direction: column;
  z-index: 1000000;
}

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

.tldr-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid #333;
  background: linear-gradient(135deg, #131313, #1f1f1f);
  flex-shrink: 0;
}

.tldr-modal-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.8rem;
  font-weight: 300;
  color: #efeeec;
  margin: 0;
  text-align: left;
}

.tldr-modal-close {
  background: none;
  border: none;
  color: #efeeec;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tldr-modal-close:hover {
  background: #ff4c24;
  transform: scale(1.1);
}

.tldr-modal-close svg {
  width: 20px;
  height: 20px;
}

.tldr-modal-body {
  padding: 2rem;
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  color: #efeeec;
  font-family: Tahoma, Geneva, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  min-height: 0;
  max-height: calc(90vh - 120px);
}

.tldr-modal-body::-webkit-scrollbar {
  width: 8px;
}

.tldr-modal-body::-webkit-scrollbar-track {
  background: #131313;
  border-radius: 4px;
}

.tldr-modal-body::-webkit-scrollbar-thumb {
  background: #ff4c24;
  border-radius: 4px;
}

.tldr-modal-body::-webkit-scrollbar-thumb:hover {
  background: #e63d1a;
}

/* Firefox scrollbar */
.tldr-modal-body {
  scrollbar-width: thin;
  scrollbar-color: #ff4c24 #131313;
}

.tldr-section {
  margin-bottom: 2rem;
}

.tldr-section h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.4rem;
  font-weight: 300;
  color: #ff4c24;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #333;
}

.tldr-section p {
  margin-bottom: 1rem;
  color: #e3e1de;
}

.tldr-section ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.tldr-section li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
  color: #e3e1de;
}

.tldr-section li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: #ff4c24;
  font-weight: bold;
}

.tldr-section a {
  color: #ff4c24;
  text-decoration: none;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

.tldr-section a:hover {
  color: #e63d1a;
  border-bottom-color: #e63d1a;
}

.tldr-section em {
  color: #0ba954;
  font-style: italic;
}

.tldr-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tldr-link-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  background: #131313;
  border-radius: 8px;
  border-left: 3px solid #ff4c24;
}

.tldr-link-item a {
  font-weight: 600;
  font-size: 1.1rem;
}

.tldr-link-item span {
  color: #cbc8c5;
  font-size: 0.9rem;
  font-style: italic;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .tldr-modal-content {
    width: 95%;
    max-height: 95vh;
  }
  
  .tldr-modal-header {
    padding: 1.5rem 1.5rem 1rem;
  }
  
  .tldr-modal-title {
    font-size: 1.5rem;
  }
  
  .tldr-modal-body {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .tldr-modal-content {
    width: 98%;
    max-height: 98vh;
  }
  
  .tldr-modal-header {
    padding: 1rem 1rem 0.8rem;
  }
  
  .tldr-modal-title {
    font-size: 1.3rem;
  }
  
  .tldr-modal-body {
    padding: 1rem;
  }
}

/* Projects Content Behind Dots */
.projects-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
  z-index: 5;
  overflow-x: hidden; /* keep horizontal clipping */
  overflow-y: auto;   /* allow vertical scrolling so all cards are accessible */
  padding: 2rem;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.projects-content.revealed {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.projects-content::-webkit-scrollbar {
  width: 8px;
}

.projects-content::-webkit-scrollbar-track {
  background: #131313;
  border-radius: 4px;
}

.projects-content::-webkit-scrollbar-thumb {
  background: #A8FF51;
  border-radius: 4px;
}

.projects-content::-webkit-scrollbar-thumb:hover {
  background: #8FE642;
}

.projects-content {
  scrollbar-width: thin;
  scrollbar-color: #A8FF51 #131313;
}

/* Projects Header with Tabs */
.projects-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.5rem 0 5rem 0; /* increased bottom padding to move divider down */
  border-bottom: 2px solid rgba(168, 255, 81, 0.1);
  margin-bottom: 1.5rem;
  flex-wrap: nowrap;
  gap: 2rem;
  position: relative;
}

.projects-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2.2rem;
  font-weight: 300;
  color: #A8FF51;
  margin: 0;
  text-shadow: 0 0 20px rgba(168, 255, 81, 0.35);
  text-align: left;
  flex-shrink: 0;
}

.projects-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.projects-return-btn {
  position: relative;
  top: unset;
  right: unset;
  margin-left: unset;
  margin-top: 2rem;
  flex-shrink: 0;
  background: rgba(168, 255, 81, 0.1);
  border: 1px solid rgba(168, 255, 81, 0.3);
  color: #A8FF51;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  z-index: 1000;
}

/* Tab Content */
.tab-content {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.tab-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Experience Section - Avant-garde design */
.experience-container {
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.experience-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 10;
}

.experience-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #A8FF51;
  text-transform: lowercase;
  letter-spacing: 1px;
  margin: 0;
  text-shadow: 0 0 20px rgba(168, 255, 81, 0.5);
}

.experience-subtitle {
  font-size: 1.1rem;
  color: rgba(168, 255, 81, 0.8);
  font-weight: 300;
  margin-top: 0.5rem;
  letter-spacing: 2px;
  text-transform: lowercase;
}

.experience-main {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 4rem;
  align-items: start;
  min-height: 600px;
  position: relative;
}

.experience-cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  z-index: 5;
}

.experience-card {
  background: linear-gradient(135deg, 
    rgba(21, 37, 37, 0.9) 0%, 
    rgba(21, 37, 37, 0.7) 100%);
  border: 2px solid rgba(168, 255, 81, 0.3);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
  opacity: 0;
  transform: translateX(-100px) rotate(-5deg);
  animation: slideInExperience 0.8s ease forwards;
  cursor: pointer;
}

.experience-card:nth-child(even) {
  transform: translateX(100px) rotate(5deg);
  margin-left: 2rem;
}

.experience-card:nth-child(1) { animation-delay: 0.2s; }
.experience-card:nth-child(2) { animation-delay: 0.4s; }
.experience-card:nth-child(3) { animation-delay: 0.6s; }

@keyframes slideInExperience {
  to {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
  }
}

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

.experience-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(168, 255, 81, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(168, 255, 81, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

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

.experience-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(168, 255, 81, 0.6);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 10px 30px rgba(168, 255, 81, 0.2),
    inset 0 0 20px rgba(168, 255, 81, 0.1);
}

.experience-card:hover .experience-org {
  color: #A8FF51;
  text-shadow: 0 0 15px rgba(168, 255, 81, 0.6);
}

.experience-org {
  font-size: 1.8rem;
  font-weight: 700;
  color: #efeeec;
  margin-bottom: 0.5rem;
  text-transform: lowercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.experience-period {
  font-size: 1rem;
  color: rgba(168, 255, 81, 0.8);
  font-weight: 500;
  margin-bottom: 1.5rem;
  text-transform: lowercase;
  letter-spacing: 1px;
}

.experience-roles {
  margin-bottom: 1.5rem;
}

.experience-role {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.2rem;
  margin-bottom: 0.8rem;
  background: rgba(168, 255, 81, 0.05);
  border: 1px solid rgba(168, 255, 81, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.experience-role:hover {
  background: rgba(168, 255, 81, 0.1);
  border-color: rgba(168, 255, 81, 0.4);
  transform: translateX(5px);
}

.experience-role-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #efeeec;
  text-transform: lowercase;
  letter-spacing: 0.5px;
}

.experience-role-period {
  font-size: 0.9rem;
  color: rgba(168, 255, 81, 0.7);
  font-weight: 400;
  text-transform: lowercase;
}

.experience-summary {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(239, 238, 236, 0.9);
  font-weight: 300;
  text-align: justify;
}

/* Skills Constellation */
.skills-constellation {
  position: relative;
  background: radial-gradient(circle at center, 
    rgba(168, 255, 81, 0.05) 0%, 
    transparent 70%);
  border-radius: 50%;
  width: 350px;
  height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(168, 255, 81, 0.2);
  backdrop-filter: blur(10px);
  margin-top: 2rem;
  overflow: visible;
  animation: constellationFloat 6s ease-in-out infinite;
}

@keyframes constellationFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

.skills-header {
  text-align: center;
  margin-bottom: 2rem;
  z-index: 10;
  position: relative;
}

.skills-header h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #A8FF51;
  text-transform: lowercase;
  letter-spacing: 1px;
  margin: 0;
  text-shadow: 0 0 15px rgba(168, 255, 81, 0.5);
}

.skills-subtitle {
  font-size: 0.9rem;
  color: rgba(168, 255, 81, 0.7);
  font-weight: 300;
  margin-top: 0.3rem;
  letter-spacing: 1px;
  text-transform: lowercase;
}

.skills-orbits {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-orbit {
  position: absolute;
  border: 1px solid rgba(168, 255, 81, 0.2);
  border-radius: 50%;
  animation: orbitRotate 20s linear infinite;
}

.skill-orbit:nth-child(1) {
  width: 120px;
  height: 120px;
  animation-duration: 15s;
}

.skill-orbit:nth-child(2) {
  width: 180px;
  height: 180px;
  animation-duration: 25s;
  animation-direction: reverse;
}

.skill-orbit:nth-child(3) {
  width: 240px;
  height: 240px;
  animation-duration: 35s;
}

@keyframes orbitRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.skill-node {
  position: absolute;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, 
    rgba(21, 37, 37, 0.9) 0%, 
    rgba(21, 37, 37, 0.7) 100%);
  border: 2px solid rgba(168, 255, 81, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #efeeec;
  text-align: center;
  line-height: 1.2;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  backdrop-filter: blur(10px);
  text-transform: lowercase;
  letter-spacing: 0.5px;
  animation: nodeCounter 20s linear infinite reverse;
}

.skill-node:hover {
  transform: scale(1.2);
  border-color: #A8FF51;
  background: linear-gradient(135deg, 
    rgba(168, 255, 81, 0.2) 0%, 
    rgba(21, 37, 37, 0.8) 100%);
  color: #A8FF51;
  text-shadow: 0 0 10px rgba(168, 255, 81, 0.5);
  box-shadow: 
    0 0 20px rgba(168, 255, 81, 0.3),
    inset 0 0 15px rgba(168, 255, 81, 0.1);
  z-index: 10;
}

@keyframes nodeCounter {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

/* Skill category indicators */
.skill-category-label {
  position: absolute;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(168, 255, 81, 0.6);
  text-transform: lowercase;
  letter-spacing: 1px;
  pointer-events: none;
  white-space: nowrap;
}

.skill-category-label.engines {
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
}

.skill-category-label.languages {
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
}

.skill-category-label.tools {
  right: -50px;
  top: 50%;
  transform: translateY(-50%);
}

/* Interests Section - Avant-garde design */
.interests-container {
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
  min-height: 800px;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 76, 36, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 76, 36, 0.04) 0%, transparent 60%);
}

.interests-header {
  text-align: center;
  margin-bottom: 6rem;
  position: relative;
  z-index: 10;
}

.interests-header h2 {
  font-size: 4rem;
  font-weight: 100;
  color: #ff4c24;
  text-transform: lowercase;
  letter-spacing: 8px;
  margin: 0;
  text-shadow: 0 0 40px rgba(255, 76, 36, 0.4);
  position: relative;
  animation: titlePulse 6s ease-in-out infinite;
}

@keyframes titlePulse {
  0%, 100% { 
    text-shadow: 0 0 40px rgba(255, 76, 36, 0.4);
    transform: scale(1);
  }
  50% { 
    text-shadow: 0 0 60px rgba(255, 76, 36, 0.8);
    transform: scale(1.02);
  }
}

.interests-header h2::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -200px;
  right: -200px;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 76, 36, 0.2), 
    rgba(255, 76, 36, 0.6), 
    rgba(255, 76, 36, 0.2), 
    transparent);
  transform: translateY(-50%);
  z-index: -1;
  animation: lineGlow 4s ease-in-out infinite alternate;
}

@keyframes lineGlow {
  0% { opacity: 0.3; }
  100% { opacity: 1; }
}

.interests-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 76, 36, 0.7);
  font-weight: 200;
  margin-top: 1.5rem;
  letter-spacing: 4px;
  text-transform: lowercase;
  position: relative;
  opacity: 0;
  animation: subtitleReveal 2s ease-out 0.5s forwards;
}

@keyframes subtitleReveal {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.interests-constellation {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.interest-node {
  position: absolute;
  cursor: pointer;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.320, 1);
  opacity: 0;
  animation: nodeReveal 1.5s ease-out forwards;
  z-index: 10;
}

.interest-node:nth-child(1) { 
  top: 20%; 
  left: 15%; 
  animation-delay: 0.5s;
}
.interest-node:nth-child(2) { 
  top: 15%; 
  right: 20%; 
  animation-delay: 0.8s;
}
.interest-node:nth-child(3) { 
  bottom: 25%; 
  left: 10%; 
  animation-delay: 1.1s;
}
.interest-node:nth-child(4) { 
  bottom: 20%; 
  right: 15%; 
  animation-delay: 1.4s;
}

@keyframes nodeReveal {
  0% { 
    opacity: 0; 
    transform: scale(0) rotate(180deg);
  }
  70% { 
    opacity: 1; 
    transform: scale(1.1) rotate(10deg);
  }
  100% { 
    opacity: 1; 
    transform: scale(1) rotate(0deg);
  }
}

.interest-orb {
  width: 180px;
  height: 180px;
  background: 
    radial-gradient(circle at 30% 30%, rgba(255, 76, 36, 0.15) 0%, transparent 70%),
    conic-gradient(from 0deg, 
      rgba(255, 76, 36, 0.1) 0deg, 
      rgba(255, 76, 36, 0.05) 90deg, 
      rgba(255, 76, 36, 0.1) 180deg, 
      rgba(255, 76, 36, 0.05) 270deg, 
      rgba(255, 76, 36, 0.1) 360deg);
  border: 1px solid rgba(255, 76, 36, 0.3);
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.320, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  animation: orbFloat 6s ease-in-out infinite;
}

@keyframes orbFloat {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg);
  }
  50% { 
    transform: translateY(-8px) rotate(2deg);
  }
}

.interest-orb::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, 
    transparent, 
    rgba(255, 76, 36, 0.05), 
    transparent, 
    rgba(255, 76, 36, 0.03), 
    transparent);
  animation: orbRotate 10s linear infinite;
  opacity: 0;
  transition: opacity 0.6s ease;
}

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

.interest-orb::after {
  content: '';
  position: absolute;
  top: 10%;
  left: 10%;
  right: 10%;
  bottom: 10%;
  border: 1px solid rgba(255, 76, 36, 0.2);
  border-radius: 50%;
  animation: innerRingPulse 4s ease-in-out infinite;
}

@keyframes innerRingPulse {
  0%, 100% { 
    transform: scale(1);
    opacity: 0.5;
  }
  50% { 
    transform: scale(1.05);
    opacity: 0.8;
  }
}

.interest-node:hover .interest-orb {
  transform: scale(1.15) rotate(5deg);
  border-color: rgba(255, 76, 36, 0.8);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 10px 30px rgba(255, 76, 36, 0.3),
    inset 0 0 30px rgba(255, 76, 36, 0.1);
}

.interest-node:hover .interest-orb::before {
  opacity: 1;
}

.interest-core {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.interest-icon {
  font-size: 2.5rem;
  color: rgba(255, 76, 36, 0.8);
  margin-bottom: 0.8rem;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
}

.interest-node:hover .interest-icon {
  transform: scale(1.2) rotate(15deg);
  color: #ff4c24;
  text-shadow: 0 0 20px rgba(255, 76, 36, 0.6);
}

.interest-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #efeeec;
  text-transform: lowercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  transition: all 0.4s ease;
  font-family: 'Courier New', monospace;
}

.interest-node:hover .interest-title {
  color: #ff6b47;
  text-shadow: 0 0 15px rgba(255, 76, 36, 0.5);
}

.interest-essence {
  font-size: 0.8rem;
  color: rgba(255, 76, 36, 0.6);
  font-weight: 300;
  letter-spacing: 1px;
  text-transform: lowercase;
  opacity: 0;
  transition: all 0.4s ease;
  font-style: italic;
}

.interest-node:hover .interest-essence {
  opacity: 1;
}

.interest-description {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  padding: 1.5rem;
  background: 
    linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(21, 37, 37, 0.9) 100%);
  border: 1px solid rgba(255, 76, 36, 0.4);
  border-radius: 15px;
  color: rgba(239, 238, 236, 0.9);
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
  backdrop-filter: blur(20px);
  z-index: 20;
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.6),
    0 5px 20px rgba(255, 76, 36, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  font-weight: 300;
  letter-spacing: 0.3px;
}

.interest-description::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(45deg, 
    rgba(255, 76, 36, 0.3), 
    transparent, 
    rgba(255, 76, 36, 0.3));
  border-radius: 15px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.interest-description:hover,
.interest-links:hover {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1.02);
}

.interest-links:hover {
  bottom: -55px; /* maintain position */
}

.interest-links {
  position: absolute;
  bottom: -70px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  opacity: 0;
  transition: all 0.6s ease;
  z-index: 15;
}

.interest-node:hover .interest-links {
  opacity: 1;
  bottom: -55px;
}

.interest-link {
  background: rgba(255, 76, 36, 0.1);
  border: 1px solid rgba(255, 76, 36, 0.4);
  color: #ff6b47;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

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

.interest-link:hover::before {
  left: 100%;
}

.interest-link:hover {
  background: rgba(255, 76, 36, 0.2);
  border-color: #ff4c24;
  color: #ff4c24;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 76, 36, 0.3);
}

.constellation-web {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.web-connection {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, 
    rgba(255, 76, 36, 0.1), 
    rgba(255, 76, 36, 0.3), 
    rgba(255, 76, 36, 0.1));
  transform-origin: left center;
  animation: connectionPulse 4s ease-in-out infinite;
}

.web-connection:nth-child(1) {
  top: 25%;
  left: 20%;
  width: 25%;
  transform: rotate(15deg);
  animation-delay: 0s;
}

.web-connection:nth-child(2) {
  top: 30%;
  right: 25%;
  width: 30%;
  transform: rotate(-25deg);
  animation-delay: 1s;
}

.web-connection:nth-child(3) {
  bottom: 35%;
  left: 15%;
  width: 35%;
  transform: rotate(45deg);
  animation-delay: 2s;
}

.web-connection:nth-child(4) {
  bottom: 40%;
  right: 20%;
  width: 25%;
  transform: rotate(-15deg);
  animation-delay: 3s;
}

@keyframes connectionPulse {
  0%, 100% { 
    opacity: 0.2;
    transform: scale(1) rotate(var(--rotation, 0deg));
  }
  50% { 
    opacity: 0.6;
    transform: scale(1.05) rotate(var(--rotation, 0deg));
  }
}

.interest-node:hover ~ .constellation-web .web-connection {
  animation-duration: 2s;
  opacity: 0.8;
}

.interest-svg {
  width: 60px;
  height: 60px;
  transition: all 0.4s ease;
}

/* Cinema SVG Animations */
.cinema-frame {
  animation: cinemaFrameGlow 3s ease-in-out infinite alternate;
  transform-origin: center;
}

.cinema-dot {
  animation: cinemaDotPulse 2s ease-in-out infinite;
}

.cinema-dot:nth-child(3) { animation-delay: 0.2s; }
.cinema-dot:nth-child(4) { animation-delay: 0.4s; }
.cinema-dot:nth-child(5) { animation-delay: 0.6s; }

.cinema-beam {
  animation: cinemaBeamSweep 4s linear infinite;
  transform-origin: 50px 15px;
}

@keyframes cinemaFrameGlow {
  0% { stroke-opacity: 0.5; transform: scale(1); }
  100% { stroke-opacity: 1; transform: scale(1.02); }
}

@keyframes cinemaDotPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes cinemaBeamSweep {
  0% { opacity: 0.2; transform: rotate(0deg); }
  50% { opacity: 0.6; transform: rotate(5deg); }
  100% { opacity: 0.2; transform: rotate(0deg); }
}

/* Music SVG Animations */
.music-wave {
  animation: musicWaveFlow 3s ease-in-out infinite;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

.music-wave:nth-child(3) { animation-delay: 0.5s; }

.music-node {
  animation: musicNodeBeat 1.5s ease-in-out infinite;
}

.music-node:nth-child(4) { animation-delay: 0.2s; }
.music-node:nth-child(5) { animation-delay: 0.4s; }
.music-node:nth-child(6) { animation-delay: 0.6s; }

.music-bar {
  animation: musicBarDance 2s ease-in-out infinite;
  transform-origin: bottom;
}

.music-bar:nth-child(8) { animation-delay: 0.1s; }
.music-bar:nth-child(9) { animation-delay: 0.2s; }
.music-bar:nth-child(10) { animation-delay: 0.3s; }

@keyframes musicWaveFlow {
  0% { stroke-dashoffset: 100; }
  100% { stroke-dashoffset: 0; }
}

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

@keyframes musicBarDance {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.4); }
}

/* Books SVG Animations */
.book-spine {
  animation: bookSpineShift 4s ease-in-out infinite;
  transform-origin: bottom;
}

.book-spine:nth-child(2) { animation-delay: 0.5s; }
.book-spine:nth-child(3) { animation-delay: 1s; }
.book-spine:nth-child(4) { animation-delay: 1.5s; }

.book-text {
  animation: bookTextReveal 3s ease-in-out infinite;
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
}

.book-text:nth-child(6) { animation-delay: 1s; }

.book-dot {
  animation: bookDotGlow 2s ease-in-out infinite;
}

@keyframes bookSpineShift {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.02); }
}

@keyframes bookTextReveal {
  0% { stroke-dashoffset: 20; opacity: 0.5; }
  50% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -20; opacity: 0.5; }
}

@keyframes bookDotGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

/* Games SVG Animations */
.game-hex {
  animation: gameHexRotate 6s linear infinite;
  transform-origin: 50px 45px;
}

.game-hex:nth-child(3) { 
  animation: gameHexPulse 3s ease-in-out infinite;
  transform-origin: 50px 45px;
}

.game-node {
  animation: gameNodeOrbit 4s ease-in-out infinite;
  transform-origin: 50px 45px;
}

.game-node:nth-child(4) { animation-delay: 0s; }
.game-node:nth-child(5) { animation-delay: 1.3s; }
.game-node:nth-child(6) { animation-delay: 2.6s; }

.game-connect {
  animation: gameConnectPulse 2s ease-in-out infinite;
}

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

@keyframes gameHexPulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.1); opacity: 0.6; }
}

@keyframes gameNodeOrbit {
  0% { transform: rotate(0deg) translateX(8px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(8px) rotate(-360deg); }
}

@keyframes gameConnectPulse {
  0%, 100% { opacity: 0.3; stroke-width: 1; }
  50% { opacity: 0.8; stroke-width: 2; }
}

/* Enhanced hover effects for SVGs */
.interest-node:hover .interest-svg {
  transform: scale(1.2);
}

.interest-node:hover .cinema-frame {
  animation-duration: 1s;
}

.interest-node:hover .music-node {
  animation-duration: 0.8s;
}

.interest-node:hover .book-spine {
  animation-duration: 2s;
}

.interest-node:hover .game-hex {
  animation-duration: 3s;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .interests-container {
    padding: 3rem 1rem;
    min-height: 600px;
  }
  
  .interests-header h2 {
    font-size: 2.5rem;
    letter-spacing: 4px;
  }
  
  .interests-subtitle {
    font-size: 1rem;
    letter-spacing: 2px;
  }
  
  .interests-constellation {
    height: 500px;
  }
  
  .interest-orb {
    width: 140px;
    height: 140px;
  }
  
  .interest-icon {
    font-size: 2rem;
  }
  
  .interest-title {
    font-size: 1rem;
  }
  
  .web-connection {
    display: none;
  }
}

@media (max-width: 480px) {
  .interests-container {
    padding: 2rem 1rem;
    min-height: 500px;
  }
  
  .interests-header h2 {
    font-size: 2rem;
    letter-spacing: 3px;
  }
  
  .interests-subtitle {
    font-size: 0.9rem;
    letter-spacing: 1px;
  }
  
  .interests-constellation {
    height: 400px;
  }
  
  .interest-node:nth-child(1) { 
    top: 10%; 
    left: 10%; 
  }
  .interest-node:nth-child(2) { 
    top: 10%; 
    right: 10%; 
  }
  .interest-node:nth-child(3) { 
    bottom: 15%; 
    left: 10%; 
  }
  .interest-node:nth-child(4) { 
    bottom: 15%; 
    right: 10%; 
  }
  
  .interest-orb {
    width: 120px;
    height: 120px;
  }
  
  .interest-icon {
    font-size: 1.8rem;
  }
  
  .interest-title {
    font-size: 0.9rem;
  }
  
  .interest-links {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .interest-link {
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
  }
  
  .interest-description {
    width: 240px;
    padding: 1rem;
    font-size: 0.8rem;
  }
} 

/* Project Modal Styles */
.project-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.project-modal.show {
  display: flex;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.project-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  z-index: 999998;
  /* Clean backdrop */
}



@supports not (backdrop-filter: blur(8px)) {
  .project-modal-backdrop {
    background: rgba(0, 0, 0, 0.98);
  }
}

.project-modal-content {
  position: relative;
  width: 95%;
  max-width: 1200px;
  max-height: 95vh;
  background: 
    linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 25%, #131313 50%, #1a1a1a 75%, #0a0a0a 100%),
    radial-gradient(circle at 20% 20%, rgba(168, 255, 81, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255, 76, 36, 0.06) 0%, transparent 40%);
  border-radius: 20px;
  border: 1px solid rgba(168, 255, 81, 0.3);
  box-shadow: 
    0 30px 100px rgba(0, 0, 0, 0.9),
    0 15px 50px rgba(168, 255, 81, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.8);
  overflow: hidden;
  animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  z-index: 1000000;
  padding: 0;
  position: relative;
}

/* Subtle gradient overlay */
.project-modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(168, 255, 81, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 76, 36, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.project-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid rgba(168, 255, 81, 0.3);
  color: rgba(168, 255, 81, 0.7);
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.project-modal-close:hover {
  background: rgba(168, 255, 81, 0.1);
  border-color: #A8FF51;
  color: #A8FF51;
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 0 20px rgba(168, 255, 81, 0.3);
}

.project-modal-close svg {
  width: 20px;
  height: 20px;
}

.project-modal-body {
  color: #efeeec;
  font-family: Tahoma, Geneva, sans-serif;
  line-height: 1.6;
  padding: 0;
  position: relative;
  z-index: 2;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.project-modal-body::-webkit-scrollbar {
  width: 8px;
}

.project-modal-body::-webkit-scrollbar-track {
  background: rgba(10, 10, 10, 0.5);
  border-radius: 4px;
}

.project-modal-body::-webkit-scrollbar-thumb {
  background: rgba(168, 255, 81, 0.4);
  border-radius: 4px;
}

.project-modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 255, 81, 0.6);
}

/* New Enhanced Layout */
.project-modal-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2rem;
  gap: 1.5rem;
  overflow-y: auto;
  min-height: 0;
}

.project-modal-header-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.project-modal-category {
  font-size: 0.9rem;
  color: rgba(168, 255, 81, 0.8);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  position: relative;
  padding-left: 1.5rem;
}

.project-modal-category::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: #A8FF51;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(168, 255, 81, 0.5);
}

.project-modal-title {
  font-size: 3rem;
  margin: 0;
  color: #ffffff;
  font-weight: 200;
  text-shadow: 0 0 30px rgba(168, 255, 81, 0.2);
  font-family: Arial, Helvetica, sans-serif;
  position: relative;
  line-height: 1.1;
}

.project-modal-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, #A8FF51, transparent, #ff4c24, transparent);
  margin: 1rem 0;
  position: relative;
}

.project-modal-divider::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #A8FF51, transparent);
  animation: dividerFlow 3s ease-in-out infinite;
}

@keyframes dividerFlow {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

.project-modal-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.project-modal-main-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
  min-height: 0;
}

.project-modal-section-title {
  font-size: 1.2rem;
  color: #A8FF51;
  text-transform: lowercase;
  letter-spacing: 1px;
  margin: 0 0 1rem 0;
  font-weight: 400;
  position: relative;
  padding-bottom: 0.5rem;
}

.project-modal-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 1px;
  background: #A8FF51;
}

.project-modal-description {
  color: #d4d4d4;
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-height: none;
  overflow: visible;
}

.project-modal-description h2 {
  color: #A8FF51;
  font-size: 1.3rem;
  margin: 1.5rem 0 1rem 0;
  font-weight: 400;
}

.project-modal-description h3 {
  color: #ff4c24;
  font-size: 1.2rem;
  margin: 1.2rem 0 0.8rem 0;
  font-weight: 400;
}

.project-modal-description p {
  margin: 0.8rem 0;
}

.project-modal-description iframe {
  width: 100%;
  height: 300px;
  border: none;
  border-radius: 8px;
  margin: 1rem 0;
}

.project-modal-description br {
  display: block;
  margin: 0.5rem 0;
  content: "";
}

.project-modal-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-modal-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: 
    linear-gradient(135deg, rgba(168, 255, 81, 0.05) 0%, rgba(168, 255, 81, 0.02) 100%);
  color: #A8FF51;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  border: 1px solid rgba(168, 255, 81, 0.2);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.project-modal-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(168, 255, 81, 0.1), transparent);
  transition: left 0.5s ease;
}

.project-modal-link:hover::before {
  left: 100%;
}

.project-modal-link:hover {
  background: rgba(168, 255, 81, 0.1);
  border-color: #A8FF51;
  transform: translateX(5px);
  box-shadow: 0 5px 20px rgba(168, 255, 81, 0.2);
  color: #fff;
}

.project-modal-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.project-modal-link-text {
  flex: 1;
}

.project-modal-link-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.project-modal-link:hover .project-modal-link-arrow {
  opacity: 1;
  transform: translateX(3px);
}

.project-modal-gallery-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.project-modal-img-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(168, 255, 81, 0.2);
  background: #0a0a0a;
}

.project-modal-img-container:hover {
  transform: scale(1.02);
  border-color: rgba(168, 255, 81, 0.5);
  box-shadow: 0 10px 30px rgba(168, 255, 81, 0.2);
}

.project-modal-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: all 0.3s ease;
}

.project-modal-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.project-modal-img-container:hover .project-modal-img-overlay {
  opacity: 1;
}

.project-modal-img-expand {
  color: #A8FF51;
  background: rgba(168, 255, 81, 0.1);
  padding: 1rem;
  padding-top: 0.5rem;

  border-radius: 50%;
  border: 2px solid rgba(168, 255, 81, 0.3);
  transition: all 0.3s ease;
}

.project-modal-img-container:hover .project-modal-img-expand {
  background: rgba(168, 255, 81, 0.2);
  border-color: #A8FF51;
  transform: scale(1.1);
}

.project-modal-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(168, 255, 81, 0.1);
}

.project-modal-metadata {
  display: flex;
  align-items: center;
  gap: 2rem;
  color: rgba(168, 255, 81, 0.7);
  font-size: 0.85rem;
  text-transform: lowercase;
  letter-spacing: 0.5px;
}

.metadata-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.metadata-label {
  color: rgba(168, 255, 81, 0.5);
  font-weight: 400;
}

.metadata-value {
  color: rgba(168, 255, 81, 0.9);
  font-weight: 500;
  position: relative;
}

.metadata-value::before {
  content: '•';
  margin-right: 0.5rem;
  color: rgba(168, 255, 81, 0.3);
}

/* Image Lightbox Styles */
.image-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.image-lightbox.show {
  display: flex;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  z-index: 999999;
}

.lightbox-content {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000000;
  padding: 2rem;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid rgba(168, 255, 81, 0.3);
  color: rgba(168, 255, 81, 0.7);
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.lightbox-close:hover {
  background: rgba(168, 255, 81, 0.1);
  border-color: #A8FF51;
  color: #A8FF51;
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 0 20px rgba(168, 255, 81, 0.3);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid rgba(168, 255, 81, 0.3);
  color: rgba(168, 255, 81, 0.7);
  cursor: pointer;
  padding: 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.lightbox-nav:hover {
  background: rgba(168, 255, 81, 0.1);
  border-color: #A8FF51;
  color: #A8FF51;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 20px rgba(168, 255, 81, 0.3);
}

.lightbox-prev {
  left: 2rem;
}

.lightbox-next {
  right: 2rem;
}

.lightbox-image-container {
  max-width: 90%;
  max-height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-counter {
  position: absolute;
  bottom: 8rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid rgba(168, 255, 81, 0.3);
  color: #A8FF51;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.lightbox-thumbnails {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  background: rgba(10, 10, 10, 0.8);
  padding: 0.5rem;
  border-radius: 12px;
  border: 1px solid rgba(168, 255, 81, 0.3);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  max-width: 90%;
  overflow-x: auto;
}

.lightbox-thumbnail {
  width: 60px;
  height: 40px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.lightbox-thumbnail:hover {
  border-color: rgba(168, 255, 81, 0.5);
}

.lightbox-thumbnail.active {
  border-color: #A8FF51;
  box-shadow: 0 0 10px rgba(168, 255, 81, 0.3);
}

.lightbox-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .project-modal-content {
    width: 98%;
    max-height: 98vh;
    border-radius: 16px;
  }
  
  .project-modal-layout {
    padding: 1.5rem;
    gap: 1rem;
  }
  
  .project-modal-content-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .project-modal-title {
    font-size: 2.2rem;
  }
  
  .project-modal-close {
    top: 1rem;
    right: 1rem;
    padding: 0.5rem;
  }
  
  .project-modal-gallery {
    grid-template-columns: 1fr;
  }
  
  .project-modal-description iframe {
    height: 200px;
  }
  
  .lightbox-nav {
    padding: 0.8rem;
  }
  
  .lightbox-prev {
    left: 1rem;
  }
  
  .lightbox-next {
    right: 1rem;
  }
  
  .lightbox-thumbnails {
    bottom: 1rem;
    max-width: 95%;
  }
}

@media (max-width: 480px) {
  .project-modal-layout {
    padding: 1rem;
    gap: 0.8rem;
  }
  
  .project-modal-title {
    font-size: 1.8rem;
  }
  
  .project-modal-img {
    height: 150px;
  }
  
  .project-modal-description {
    font-size: 1rem;
  }
  
  .project-modal-description iframe {
    height: 180px;
  }
  
  .lightbox-content {
    padding: 1rem;
  }
  
  .lightbox-close {
    top: 1rem;
    right: 1rem;
  }
  
  .lightbox-counter {
    bottom: 6rem;
  }
}



.projects-return-btn:hover {
  background: #A8FF51;
  color: #000;
  transform: scale(1.1) rotate(90deg);
  border-color: #A8FF51;
}

.projects-return-btn svg {
  width: 16px;
  height: 16px;
}

/* Modern flexible layout for auto-alignment */
.projects-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.project-card {
  --accent: #A8FF51; /* default accent, overridden per category */
  position: relative; /* allow drag transforms but no manual offsets */
  width: 320px;
  height: 420px;
  /* translucent background with accent border */
  background: rgba(21, 37, 37, 0.6);
  border: 2px solid;
  border-image: linear-gradient(135deg, 
    color-mix(in srgb, var(--accent) 60%, transparent), 
    color-mix(in srgb, var(--accent) 20%, transparent), 
    color-mix(in srgb, var(--accent) 60%, transparent)
  ) 1;
  border-radius: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  cursor: grab;
  backdrop-filter: blur(20px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  opacity: 0;
  animation: cardDeal 0.8s ease forwards;
  user-select: none;
  position: relative;
}

/* Remove both pseudo-elements since styling is now on main card */
.project-card::before,
.project-card::after {
  content: none;
}

.project-card:active {
  cursor: grabbing;
}

.project-card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.5),
    0 10px 25px color-mix(in srgb, var(--accent) 40%, transparent),
    inset 0 0 30px color-mix(in srgb, var(--accent) 25%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-image: linear-gradient(135deg, 
    var(--accent), 
    color-mix(in srgb, var(--accent) 30%, transparent), 
    var(--accent)
  ) 1;
  z-index: 100;
}

/* Removed manual nth-child positioning to allow automatic flex alignment */

.project-card.dragging {
  pointer-events: none;
}

.project-card.dragging:hover {
  transform: none !important;
}

@keyframes cardDeal {
  0% {
    opacity: 0;
    transform: translateX(-100px) translateY(-50px) rotate(45deg) scale(0.5);
  }
  100% {
    opacity: 1;
  }
}

.project-card-header {
  position: relative;
  padding: 2rem 2rem 1.5rem;
  background: transparent;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  display: flex;
  align-items: center;
  gap: 1.2rem;
  z-index: 2;
}

.project-card-header::before {
  content: '♠';
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 20px;
  color: var(--accent);
  opacity: 0.8;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}

.project-card-header::after {
  content: '♣';
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 20px;
  color: var(--accent);
  opacity: 0.8;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}

.project-icon {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: 
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 20%, #000) 0%, var(--accent) 60%, color-mix(in srgb, var(--accent) 20%, #000) 100%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  font-size: 22px;
  box-shadow: 
    0 8px 16px color-mix(in srgb, var(--accent) 40%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  border: 2px solid color-mix(in srgb, var(--accent) 30%, transparent);
  position: relative;
  overflow: hidden;
}

.project-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shine 2s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

.project-header-text h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: #efeeec;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  letter-spacing: 0.8px;
  line-height: 1.2;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.project-type {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: lowercase; /* category displayed in lowercase */
  letter-spacing: 0.5px;
  margin-top: 0.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.project-card-body {
  padding: 1.5rem 2rem;
  flex: 1;
  position: relative;
  z-index: 2;
  background: transparent;
}

.project-card-body::before {
  content: none;
}

.project-description {
  font-size: 1rem;
  line-height: 1.7;
  color: #d4d4d4;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.tag {
  background: 
    linear-gradient(135deg, rgba(255, 76, 36, 0.25) 0%, rgba(255, 76, 36, 0.15) 100%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  color: #ff6b47;
  padding: 0.4rem 1rem;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(255, 76, 36, 0.4);
  backdrop-filter: blur(10px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  box-shadow: 
    0 2px 6px rgba(255, 76, 36, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.project-card-footer {
  padding: 1.5rem 2rem 2rem;
  border-top: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  background: transparent;
  position: relative;
  z-index: 2;
}

.project-card-footer::before {
  content: '♦';
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-size: 20px;
  color: var(--accent);
  opacity: 0.8;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}

.project-card-footer::after {
  content: '♥';
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-size: 20px;
  color: var(--accent);
  opacity: 0.8;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}

.project-expand-btn {
  background: 
    linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.8) 100%),
    linear-gradient(45deg, color-mix(in srgb, var(--accent) 10%, transparent) 0%, transparent 50%);
  border: 2px solid color-mix(in srgb, var(--accent) 40%, transparent);
  color: var(--accent);
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.3),
    0 1px 3px color-mix(in srgb, var(--accent) 20%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.project-expand-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 15%, transparent), transparent);
  transition: left 0.6s ease;
}

.project-expand-btn:hover::before {
  left: 100%;
}

.project-expand-btn:hover {
  background: 
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 15%, #000) 0%, color-mix(in srgb, var(--accent) 25%, #000) 100%),
    linear-gradient(45deg, color-mix(in srgb, var(--accent) 20%, transparent) 0%, transparent 50%);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.4),
    0 4px 15px color-mix(in srgb, var(--accent) 30%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 20px color-mix(in srgb, var(--accent) 20%, transparent);
  text-shadow: 0 0 8px color-mix(in srgb, var(--accent) 60%, transparent);
}

.project-expand-btn:active {
  transform: translateY(-1px) scale(0.98);
  transition: all 0.1s ease;
}

.project-expand-btn svg {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.project-expand-btn:hover svg {
  transform: translateY(2px);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.project-expand-btn.expanded {
  background: 
    linear-gradient(135deg, rgba(255, 76, 36, 0.2) 0%, rgba(255, 76, 36, 0.3) 100%),
    linear-gradient(45deg, rgba(255, 76, 36, 0.1) 0%, transparent 50%);
  border-color: #ff4c24;
  color: #ff4c24;
  box-shadow: 
    0 6px 20px rgba(255, 76, 36, 0.3),
    0 2px 8px rgba(255, 76, 36, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.project-expand-btn.expanded svg {
  transform: rotate(180deg) translateY(-2px);
}

.project-details {
  background: #0f0f0f;
  border-top: 1px solid #333;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.project-details.show {
  max-height: 500px;
  padding: 1.5rem;
}

.project-details-content h4 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #A8FF51;
  margin: 0 0 1rem 0;
  text-decoration: none;
  border-bottom: none;
}

.project-details-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.project-details-content li {
  font-family: Tahoma, Geneva, sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #cbc8c5;
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.project-details-content li:before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #A8FF51;
  font-weight: bold;
}

.project-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #245E51;
  color: #A8FF51;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border-bottom: none;
}

.project-link:hover {
  background: #A8FF51;
  color: #131313;
  transform: translateY(-2px);
  border-bottom: none;
}

.project-link svg {
  width: 16px;
  height: 16px;
}

/* Enhanced Dots Animation States */
.dots-wrap {
  position: relative;
  z-index: 2;
}

.dots-container {
  transition: all 0.8s ease;
}

.dots-container.dispersed {
  opacity: 0;
  transform: scale(1.5);
}

/* Subtle floating animation for persistent dots */
@keyframes subtleFloat {
  0%, 100% { transform: translateY(0px) scale(0.8); }
  50% { transform: translateY(-3px) scale(0.85); }
}

.projects-content.revealed ~ .dots-wrap .dot:not([style*="opacity: 0"]) {
  animation: subtleFloat 4s ease-in-out infinite;
  animation-delay: calc(var(--random) * 2s);
}

.osmo-icon__link {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  transition: all 0.3s ease;
  border-radius: 0%;
  padding: 1rem;
}

.osmo-icon__link:hover {
  background: rgba(168, 255, 81, 0.1);
  box-shadow: 0 0 30px rgba(168, 255, 81, 0.3);
  transform: translate(-50%, -50%) scale(1.1);
  filter: brightness(2.2) saturate(1.3) drop-shadow(0 0 10px rgba(168, 255, 81, 0.35));
}


.osmo-icon-svg {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  image-rendering: auto;
}

.osmo-icon__link.hidden {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
}

/* Constellation Navigation System */
.constellation-nav {
  position: relative;
  width: 100%;
  max-width: 700px;
  height: 160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
    justify-content: center;
  }
  
.constellation-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: radial-gradient(circle, #A8FF51 0%, rgba(168, 255, 81, 0.3) 100%);
  border-radius: 50%;
  animation: centerPulse 3s ease-in-out infinite;
  z-index: 5;
}

@keyframes centerPulse {
  0%, 100% { 
    transform: translate(-50%, -50%) scale(1); 
    box-shadow: 0 0 20px rgba(168, 255, 81, 0.4);
  }
  50% { 
    transform: translate(-50%, -50%) scale(1.2); 
    box-shadow: 0 0 30px rgba(168, 255, 81, 0.8);
  }
}

.nav-orbit {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 4rem;
}

.nav-node {
  position: relative;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
  transform-origin: center;
  margin: 0 1.5rem;
  z-index: 10;
}

.node-core {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, 
    rgba(168, 255, 81, 0.8) 0%, 
    rgba(168, 255, 81, 0.4) 100%);
  border: 2px solid rgba(168, 255, 81, 0.6);
  border-radius: 50%;
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

.node-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 1px solid rgba(168, 255, 81, 0.3);
  border-radius: 50%;
  transition: all 0.4s ease;
  z-index: 1;
}

.node-label {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.8rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(168, 255, 81, 0.7);
  text-transform: lowercase;
  letter-spacing: 1px;
  transition: all 0.4s ease;
  white-space: nowrap;
}

.nav-node:hover .node-core {
  transform: scale(1.3);
  background: linear-gradient(135deg, 
    #A8FF51 0%, 
    rgba(168, 255, 81, 0.6) 100%);
  border-color: #A8FF51;
  box-shadow: 0 0 20px rgba(168, 255, 81, 0.6);
}

.nav-node:hover .node-ring {
  transform: translate(-50%, -50%) scale(1.5) rotate(90deg);
  border-color: rgba(168, 255, 81, 0.8);
  border-width: 2px;
}

.nav-node:hover .node-label {
  color: #A8FF51;
  text-shadow: 0 0 10px rgba(168, 255, 81, 0.5);
  transform: translateX(-50%) translateY(-5px);
}

.nav-node.active .node-core {
  background: linear-gradient(135deg, #A8FF51 0%, #7de83a 100%);
  border-color: #A8FF51;
  box-shadow: 
    0 0 25px rgba(168, 255, 81, 0.8),
    inset 0 0 15px rgba(255, 255, 255, 0.3);
  animation: activeNodePulse 2s ease-in-out infinite;
}

.nav-node.active .node-ring {
  border-color: #A8FF51;
  border-width: 2px;
  animation: activeRingRotate 8s linear infinite;
}

.nav-node.active .node-label {
  color: #A8FF51;
  font-weight: 600;
  text-shadow: 0 0 15px rgba(168, 255, 81, 0.6);
}

@keyframes activeNodePulse {
  0%, 100% { transform: scale(1.2); }
  50% { transform: scale(1.4); }
}

@keyframes activeRingRotate {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.constellation-connections {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.connection-svg {
  width: 100%;
  height: 100%;
}

.connection-line {
  animation: connectionFlow 4s ease-in-out infinite;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
}

.connection-line:nth-child(2) {
  animation-delay: 2s;
}

.connection-node {
  animation: connectionNodeGlow 3s ease-in-out infinite;
}

@keyframes connectionFlow {
  0% { stroke-dashoffset: 50; opacity: 0.2; }
  50% { stroke-dashoffset: 0; opacity: 0.6; }
  100% { stroke-dashoffset: -50; opacity: 0.2; }
}

@keyframes connectionNodeGlow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.5); }
}

/* Enhanced active state morphing */
.nav-node.active {
  animation: activeNodeFloat 4s ease-in-out infinite;
}

@keyframes activeNodeFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* Responsive constellation navigation */
@media (max-width: 768px) {
  .constellation-nav {
    height: 120px;
    max-width: 500px;
  }
  
  .nav-orbit {
    padding: 0 2rem;
  }
  
  .nav-node {
    margin: 0 1rem;
  }
  
  .node-core {
    width: 16px;
    height: 16px;
  }
  
  .node-ring {
    width: 32px;
    height: 32px;
  }
  
  .node-label {
    font-size: 0.75rem;
    margin-top: 0.6rem;
  }
  
  .constellation-center {
    width: 8px;
    height: 8px;
  }
}

@media (max-width: 480px) {
  .constellation-nav {
    height: 100px;
    max-width: 380px;
  }
  
  .nav-orbit {
    padding: 0 1rem;
  }
  
  .nav-node {
    margin: 0 0.8rem;
  }
  
  .node-core {
    width: 14px;
    height: 14px;
  }
  
  .node-ring {
    width: 28px;
    height: 28px;
  }
  
  .node-label {
    font-size: 0.7rem;
    margin-top: 0.5rem;
  }
} 

.interest-node:hover .interest-description {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1.02);
}

/* Real-Time Colour Sampler Button */
.color-sampler-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: #A8FF51;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  z-index: 100000;
  transition: all 0.3s ease;
  text-decoration: none;
  transform: none;
}
.color-sampler-btn::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: 0px;
  left: 0px;
  transform-origin: center right;
  transition: transform 0.3s ease;
  background: currentColor;
  transform: scale(0, 1);
}
.color-sampler-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}
.color-sampler-btn:hover::after {
  transform-origin: center left;
  transform: scale(1, 1);
}
.color-sampler-btn:hover svg {
  transform: translateX(2px);
}
.color-sampler-btn.active {
  color: #A8FF51;
}
.color-sampler-btn.active::after {
  transform: scale(1, 1);
}

/* ASCII Sampler Button */
.ascii-sampler-btn {
  position: fixed;
  bottom: 70px; /* Position above the mood button */
  right: 24px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: #FF6B47;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  z-index: 100000;
  transition: all 0.3s ease;
  text-decoration: none;
  transform: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

.ascii-sampler-btn[style*="display: block"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ascii-sampler-btn::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: 0px;
  left: 0px;
  transform-origin: center right;
  transition: transform 0.3s ease;
  background: currentColor;
  transform: scale(0, 1);
}

.ascii-sampler-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.ascii-sampler-btn:hover::after {
  transform-origin: center left;
  transform: scale(1, 1);
}

.ascii-sampler-btn:hover svg {
  transform: translateX(2px);
}

.ascii-sampler-btn:hover {
  color: #ffffff;
}

.ascii-sampler-btn.active {
  color: #FF6B47;
  text-shadow: 0 0 10px rgba(255, 107, 71, 0.5);
}

.ascii-sampler-btn.active::after {
  transform: scale(1, 1);
}

/* Dots container spacing adjustments for ASCII mode */
.dots-container.ascii-active .dot {
  font-size: inherit;
  line-height: 1;
  text-align: center;
  overflow: hidden;
  font-weight: bold;
  font-family: 'Courier New', Courier, monospace !important;
}


/* Card controls (stack/shuffle) */
.cards-actions {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: flex-start;
  margin-bottom: 0;
  transition: opacity 0.3s ease, pointer-events 0.3s ease;
}

.cards-action-btn {
  position: relative;
  background: transparent;
  border: none;
  color: #A8FF51;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  padding: 6px 10px;
  cursor: pointer;
  text-transform: lowercase;
  transition: color 0.3s ease;
}

.cards-action-btn::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.3s ease;
}

.cards-action-btn:hover {
  color: #ffffff;
}

.cards-action-btn:hover::after {
  width: 100%;
}

/* Filter dropdown styling */
.filter-dropdown-container {
  position: relative;
  display: inline-block;
}

.filter-cards-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-dropdown-arrow {
  transition: transform 0.3s ease;
}

.filter-cards-btn.active .filter-dropdown-arrow {
  transform: rotate(180deg);
}

.filter-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: rgba(21, 37, 37, 0.95);
  border: 2px solid rgba(168, 255, 81, 0.3);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 180px;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  color: #cbc8c5;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.filter-option:hover {
  background: rgba(168, 255, 81, 0.1);
  color: #A8FF51;
}

.filter-option.active {
  background: rgba(168, 255, 81, 0.15);
  color: #A8FF51;
}

.filter-option.active::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #A8FF51;
}

.filter-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #A8FF51;
  display: inline-block;
  opacity: 0.8;
}

.filter-option:hover .filter-dot {
  opacity: 1;
  box-shadow: 0 0 8px currentColor;
}

.cards-action-btn.disabled {
  opacity: 0.5 !important;
  pointer-events: none !important;
  color: #666 !important;
}

.cards-action-btn.disabled::after {
  background: #666 !important;
}

/* ================= Central Card Icon Enhancements ================ */
/* Make the central icon larger and give it a subtle luminous glow so it matches the intended PNG design */
.osmo-icon__link {
  /* Override vendor width for larger button – tweak as needed - remember to keep their ratio w/h as 0.73 */
  width: 11.68rem;          /* ~256px */
  height: 16rem;         /* ensure square for consistent scaling */
}

.osmo-icon-svg {
  width: 100%;           /* fully fill the parent anchor */
  height: 100%;
  /* Brighten original dark teal artwork and add a gentle green glow */
  filter: brightness(2.2) saturate(1.3) drop-shadow(0 0 10px rgba(168, 255, 81, 0.35));
}
/* ================================================================ */