/**
 * FutureNav - Cutting Edge Navigation
 * styles.css - Core styles for the futuristic navigation experience
 * March 24, 2025
 */

/* Base styles & Custom properties */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@300;500;700;900&family=Inter:wght@300;400;500;600;700&family=Share+Tech+Mono&display=swap');

:root {
  --primary: #6366f1;
  /* Indigo */
  --primary-dark: #4f46e5;
  --secondary: #06b6d4;
  /* Cyan */
  --accent: #a855f7;
  /* Purple */
  --dark-bg: #111827;
  --darker-bg: #030712;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --navbar-bg: rgba(17, 24, 39, 0.7);
  /* Semi-transparent navbar background */
  --glass-effect: blur(12px);
  --transition-normal: all 0.3s ease;
  --border-glow: rgba(99, 102, 241, 0.3);
  --neon-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
  --glow-cyan: 0 0 15px rgba(6, 182, 212, 0.5);
  --glow-indigo: 0 0 15px rgba(99, 102, 241, 0.5);
  --glow-purple: 0 0 15px rgba(168, 85, 247, 0.5);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Enable smooth scrolling */
  scroll-padding-top: 80px;
  /* Account for fixed navbar */
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background-color: var(--darker-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color 0.5s ease;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, var(--primary-dark), var(--accent));
}

/* Navigation Bar Styles */
#navbar,
nav {
  position: fixed;
  top: 0;
  z-index: 100 !important;
  left: 0;
  right: 0;
  background-color: var(--navbar-bg);
  backdrop-filter: var(--glass-effect);
  -webkit-backdrop-filter: var(--glass-effect);
  /* For Safari */
  border-bottom: 1px solid var(--border-glow);
  z-index: 1000;
  transition: var(--transition-normal);
  height: 70px;
}

#navbar.scrolled {
  padding: 0.5rem 0;
  background-color: rgba(17, 24, 39, 0.9);
  /* More opaque when scrolled */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Navbar Logo */
.logo {
  display: flex;
  align-items: center;
}

/* Navigation Links */
.nav-link {
  position: relative;
  overflow: hidden;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, rgb(6, 182, 212), rgb(99, 102, 241));
  transition: width 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.nav-link:hover {
  color: var(--secondary);
  text-shadow: 0 0 8px rgba(6, 182, 212, 0.3);
}

/* Mobile Navigation */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.open {
  max-height: 300px;
  /* Adjust based on your menu height */
}

#mobile-menu-button {
  background: transparent;
  border: none;
  cursor: pointer;
}

/* For the hamburger animation */
#mobile-menu-button.active #line1 {
  transform: translate(-50%, -50%) rotate(45deg);
  transform-origin: center;
}

#mobile-menu-button.active #line2 {
  opacity: 0;
}

#mobile-menu-button.active #line3 {
  transform: translate(-50%, -50%) rotate(-45deg);
  transform-origin: center;
}

#line1,
#line2,
#line3 {
  transition: transform 0.3s ease, opacity 0.2s ease, background-color 0.3s ease;
  transform-origin: center;
}

/* Section Styles */
section {
  padding: 6rem 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

section:first-of-type {
  padding-top: 8rem;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(to right, var(--primary), var(--secondary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Glow Effects */
.glow-effect {
  position: relative;
}

.glow-effect:before {
  content: '';
  position: absolute;
  inset: -5px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  filter: blur(8px);
}

.glow-effect:hover:before {
  opacity: 1;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: var(--transition-normal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(to right, var(--primary), var(--accent));
  color: white;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--neon-shadow);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--secondary);
  color: var(--secondary);
}

.btn-outline:hover {
  background-color: rgba(6, 182, 212, 0.1);
  transform: translateY(-3px);
}

.contact-btn {
  position: relative;
  overflow: hidden;
}

.contact-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
      transparent 40%,
      rgba(6, 182, 212, 0.2) 45%,
      rgba(6, 182, 212, 0.4) 50%,
      rgba(6, 182, 212, 0.2) 55%,
      transparent 60%);
  transition: transform 0.5s ease;
  transform: translateX(-100%) translateY(-100%) rotate(45deg);
}

.contact-btn:hover::before {
  transform: translateX(100%) translateY(100%) rotate(45deg);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.animate-fadeIn {
  animation: fadeIn 0.8s ease forwards;
}

@keyframes pulse {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* === CHAT AI FLOATING BUTTON === */
.chat-ai-float {
  position: fixed;
  bottom: 145px;
  right: 32px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #1d2330;
  border: 2px solid rgba(76, 201, 240, 0.3);
  z-index: 9999;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(76, 201, 240, 0.4), inset 0 0 10px rgba(72, 149, 239, 0.2);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  animation: chatPulse 3s infinite;
}

.chat-ai-float svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 5px rgba(67, 97, 238, 0.5));
  transition: transform 0.3s ease;
}

.chat-ai-float:hover {
  transform: scale(1.08);
  box-shadow: 0 0 25px rgba(76, 201, 240, 0.6), inset 0 0 15px rgba(72, 149, 239, 0.4);
  border-color: rgba(76, 201, 240, 0.8);
}

.chat-ai-float:hover svg {
  transform: scale(1.1);
}

@keyframes chatPulse {
  0% {
    box-shadow: 0 0 15px rgba(76, 201, 240, 0.4), inset 0 0 10px rgba(72, 149, 239, 0.2);
  }

  50% {
    box-shadow: 0 0 25px rgba(76, 201, 240, 0.6), inset 0 0 15px rgba(72, 149, 239, 0.4);
  }

  100% {
    box-shadow: 0 0 15px rgba(76, 201, 240, 0.4), inset 0 0 10px rgba(72, 149, 239, 0.2);
  }
}

/* Card Styles */
.card {
  background-color: rgba(17, 24, 39, 0.7);
  backdrop-filter: var(--glass-effect);
  border: 1px solid var(--border-glow);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: var(--transition-normal);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--neon-shadow);
  border-color: rgba(99, 102, 241, 0.5);
}

.card-hover-effect {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover-effect:hover {
  transform: translateY(-5px);
  box-shadow: var(--glow-cyan);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: rgba(31, 41, 55, 0.5);
  border: 1px solid rgba(75, 85, 99, 0.5);
  border-radius: 0.5rem;
  color: var(--text-primary);
  transition: var(--transition-normal);
}

.form-input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

/* Grid System */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, 1fr);
}

/* Responsive Layout */
@media (min-width: 640px) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Show desktop nav, hide mobile nav */
  .mobile-only {
    display: none;
  }
}

@media (max-width: 767px) {
  .desktop-only {
    display: none;
  }

  section {
    padding: 4rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  #navbar {
    height: auto;
  }

  .nav-link::after {
    display: none;
  }
}

/* Dark Overlay for Modals */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Background Decorations */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 50px 50px;
  background-image:
    linear-gradient(to right, rgba(6, 182, 212, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(6, 182, 212, 0.05) 1px, transparent 1px);
  z-index: -1;
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(6, 182, 212, 0.05) 50%, transparent 70%);
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}

.bg-glow.top-right {
  top: -20%;
  right: -20%;
}

.bg-glow.bottom-left {
  bottom: -20%;
  left: -20%;
}

/* Footer Styles */
footer {
  background-color: rgba(17, 24, 39, 0.8);
  backdrop-filter: var(--glass-effect);
  border-top: 1px solid var(--border-glow);
  padding: 3rem 0;
}

.footer-link {
  color: var(--text-secondary);
  transition: var(--transition-normal);
}

.footer-link:hover {
  color: var(--secondary);
}

/* Section transitions and animations */
.section-hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.section-highlight {
  position: relative;
}

.section-highlight::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.1), transparent 70%);
  opacity: 0;
  animation: pulse 1s ease;
  pointer-events: none;
  z-index: -1;
}

/* Enhanced accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Header animation */
.text-6xl {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}


/* Enhance focus styles for accessibility */
a:focus,
button:focus {
  outline: 2px solid rgba(6, 182, 212, 0.5);
  outline-offset: 2px;
}

/* Style the scrollbar for a futuristic look */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #0891b2, #4f46e5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #06b6d4, #6366f1);
}

/* === New Hexagon Profile Image Styles === */
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.hexagon-container {
  position: relative;
  width: 16rem;
  /* Default size for medium screens and up */
  height: 18rem;
  filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.3));
  transition: filter 0.4s ease;
}

/* The two core elements share the same size and clip-path */
.hexagon-border-glow,
.hexagon-border-glow-2,
.hexagon-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
}

.hexagon-border-glow {
  background: conic-gradient(from var(--angle), #a855f7, #00ffe7, #6366f1, #a855f7);
  animation: rotate-glow 5s linear infinite;
  filter: blur(10px);
  transform: scale(1.1);
  z-index: 1;
  transition: filter 0.4s ease, animation-duration 0.4s ease;
}

/* Second, softer glow layer */
.hexagon-border-glow-2 {
  background: conic-gradient(from var(--angle), #6366f1, #a855f7, #00ffe7, #6366f1);
  animation: rotate-glow 15s linear infinite reverse;
  filter: blur(25px);
  transform: scale(1.15);
  z-index: 0;
  opacity: 0.7;
}

@keyframes rotate-glow {
  to {
    --angle: 360deg;
  }
}

.hexagon-image {
  object-fit: cover;
  z-index: 2;
  /* Image sits on top of the glow */
  /* New styles for transition */
  opacity: 0;
  transform: scale(1);
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hexagon-image.active {
  opacity: 1;
  transform: scale(1.05);
  /* Subtle zoom-in effect on active image */
}

/* Hover effects to intensify the animation */
.hexagon-container:hover {
  filter: drop-shadow(0 0 25px rgba(6, 182, 212, 0.7));
}

.hexagon-container:hover .hexagon-border-glow {
  animation-duration: 3s;
  /* Speed up rotation on hover */
  filter: blur(12px);
}

/* Responsive size for smaller screens */
@media (max-width: 767px) {
  .hexagon-container {
    width: 12rem;
    height: 14rem;
  }
}

/* On-Load Content Animations */
.fade-in-on-load {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-on-load.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Typewriter Animation === */
.typing-container::after {
  content: '|';
  display: inline-block;
  margin-left: 0.15em;
  font-weight: 300;
  color: #06b6d4;
  /* Cyan theme color */
  animation: blink-caret 0.75s step-end infinite;
}

.typing-container.typing-done::after {
  animation: none;
}

@keyframes blink-caret {

  from,
  to {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* === About Me - Details Panel Animation === */
.details-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-1rem);
  transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.4s ease-in-out,
    transform 0.4s ease-in-out,
    margin-top 0.4s ease,
    padding-top 0.4s ease;
}

.details-panel.open {
  opacity: 1;
  transform: translateY(0);
  margin-top: 1.5rem;
  /* 6 */
  padding-top: 1rem;
  /* 4 */
}

/* === Logo Scroller === */
.animate-scroll {
  animation: scroll 40s linear infinite;
}

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

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

.scroller-logo {
  height: 40px;
  margin: 0 2rem;
  /* Spacing between logos */
  filter: grayscale(100%) opacity(0.6);
  transition: all 0.3s ease;
}

#logo-scroller:hover .scroller-logo {
  filter: grayscale(0%) opacity(1);
}

#logo-scroller:hover .animate-scroll {
  animation-play-state: paused;
}

/* === Skill Navigator Section === */
.skill-category-title {
  @apply text-sm font-bold uppercase tracking-widest text-cyan-400 mb-3;
}

.skill-nav-item {
  @apply w-full text-left px-4 py-2.5 rounded-lg bg-gray-900/50 border border-transparent text-gray-400;
  /* Properties for entry animation */
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.4s ease, transform 0.4s ease, background-color 0.2s, color 0.2s;
}

.skill-nav-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.skill-nav-item:hover {
  @apply bg-gray-800/70 text-white;
}

.skill-nav-item.active {
  @apply bg-gradient-to-r from-indigo-600/30 to-purple-600/30 text-white font-semibold;
  @apply border-indigo-500/50 shadow-lg shadow-indigo-800/10;
}

#skill-detail-panel {
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

#skill-detail-panel.changing {
  opacity: 0;
  transform: translateY(10px);
}

/* === Project Modal Animation === */
/* === Skills Modal Styles === */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.fade-in {
  opacity: 1;
  pointer-events: auto;
}

/* === AI CHAT CONTAINER MODAL === */
/* === AI CHAT CONTAINER MODAL === */
#chatContainer {
  position: fixed;
  width: 360px;
  max-width: 90vw;
  height: 440px;
  max-height: 85vh;
  bottom: 130px;
  right: 32px;
  background: rgba(20, 20, 30, 0.72);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  padding: 0;
  z-index: 99999;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#chatContainer.open {
  animation: chatEnter 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  pointer-events: auto;
}

#chatContainer.close {
  animation: chatExit 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  pointer-events: none;
}

@keyframes chatEnter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }

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

@keyframes chatExit {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
}

.chat-header {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  background: transparent;
  /* Ensure glass effect shows through */
}

.chat-body {
  padding: 16px;
  height: calc(100% - 120px);
  overflow-y: auto;
  color: #fff;
  font-size: 14px;
  scrollbar-width: thin;
  flex: 1;
  /* Ensure it takes available space */
}

.chat-footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 10px;
  background: transparent;
  /* Ensure glass effect shows through */
}

/* Scrollbar for chat body */
.chat-body::-webkit-scrollbar {
  width: 6px;
}

.chat-body::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.3);
}

.chat-body::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.3);
  border-radius: 3px;
}

.chat-footer {
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.6);
  border-top: 1px solid rgba(140, 160, 255, 0.15);
  display: flex;
  gap: 10px;
  align-items: center;
}

.chat-input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.25s ease;
}

.chat-input:focus {
  border-color: rgba(0, 200, 255, 0.5);
}

/* TASK 4D: Mobile Responsiveness */
@media (max-width: 450px) {
  #chatContainer {
    width: 94vw !important;
    height: 78vh !important;
    border-radius: 14px !important;
    bottom: 85px !important;
    right: 12px !important;
  }

  .chat-header {
    padding: 12px 16px;
  }

  .chat-body {
    padding: 14px;
  }

  .chat-footer {
    padding: 12px 14px;
  }
}

.chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0ea5e9, #3b82f6);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.chat-send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.close-chat {
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #94a3b8;
  transition: all 0.2s ease;
}

.close-chat:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}

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

.modal-container {
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(20, 20, 35, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.15), inset 0 0 20px rgba(0, 0, 0, 0.5);
  transform: scale(0.95) translateY(20px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.modal-container.modal-open {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
  z-index: 10;
}

.modal-close:hover {
  color: #fff;
  transform: rotate(90deg);
}

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

.skill-category {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.skill-category:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.skill-category h3 {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.skill-category li {
  padding: 0.25rem 0;
  transition: transform 0.2s ease;
}

.skill-category li:hover {
  transform: translateX(5px);
  color: #fff;
}

/* Custom Scrollbar for Modal */
.modal-container::-webkit-scrollbar {
  width: 6px;
}

.modal-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
}

.modal-container::-webkit-scrollbar-thumb {
  background: rgba(6, 182, 212, 0.3);
  border-radius: 3px;
}

.modal-container::-webkit-scrollbar-thumb:hover {
  background: rgba(6, 182, 212, 0.6);
}

@media (max-width: 640px) {
  .modal-container {
    padding: 1.5rem;
    width: 95%;
  }

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

#project-modal.active {
  opacity: 1;
  pointer-events: auto;
}

/* ==== GLITCH EFFECT UNTUK MODAL TITLE ==== */
.glitch-modal-title {
  position: relative;
  color: #05d9e8;
  -webkit-text-stroke: 1px #fff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-family: 'Orbitron', sans-serif;
  text-shadow: 0 0 8px #05d9e87f, 0 0 18px #00ccff66;
  transition: color 0.19s;
  z-index: 2;
}

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

.glitch-modal-title::before {
  color: #05d9e8;
  left: 2px;
  opacity: 0.65;
  animation: glitch-pulse 2.4s infinite linear alternate-reverse;
}

.glitch-modal-title::after {
  color: #ff2a6d;
  left: -2px;
  opacity: 0.5;
  animation: glitch-pulse 2.1s infinite linear alternate-reverse;
}

@keyframes cyber-modal-pulse {

  0%,
  100% {
    box-shadow: 0 0 14px #05d9e85f, 0 0 25px #a855f79f;
  }

  40% {
    box-shadow: 0 0 32px #05d9e8, 0 0 15px #05d9e89f;
  }

  60% {
    box-shadow: 0 0 22px #ff2a6dee, 0 0 45px #a855f77e;
  }
}

#modal-content-wrapper {
  /* tambahkan pulse/glow */
  box-shadow: 0 0 28px #05d9e877, 0 2px 38px #0008;
  border-radius: 18px;
  animation: cyber-modal-pulse 2.9s infinite;
  border: 2px solid #05d9e866;
}

#modal-content-wrapper:hover {
  box-shadow: 0 0 48px #05d9e8cc, 0 0 70px #a855f7bb;
  border-color: #ff2a6d;
}

/* Top neon bar */
#modal-content-wrapper::after {
  content: '';
  display: block;
  height: 3px;
  width: 65%;
  margin: 0 auto;
  border-radius: 2px;
  background: linear-gradient(90deg, #05d9e8 0%, #a855f7 100%);
  box-shadow: 0 0 16px #a855f788, 0 0 6px #05d9e855;
  margin-top: 0.5rem;
}

/* Scanline animation di modal (optional) */
#modal-content-wrapper .scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 8px, rgba(5, 217, 232, 0.043) 8px, transparent 12px);
  animation: cyber-scanlines 4.5s linear infinite;
}

@keyframes cyber-scanlines {
  0% {
    background-position-y: 0;
  }

  100% {
    background-position-y: 28px;
  }
}

/* The modern glowing border effect using a CSS mask */
#modal-content-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  /* takes from .rounded-2xl class on the element */
  padding: 1px;
  /* determines the border width */
  background: linear-gradient(145deg, rgba(168, 85, 247, 0.8), rgba(6, 182, 212, 0.8));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  /* Make sure it doesn't block interactions with modal content */
}

/* === Staggered Modal Content Animation === */
.modal-animate-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

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

/* === Contact Form Notification === */
.contact-notif {
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(-20px) scale(0.98);
  transition: opacity 0.5s ease-out, transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

.contact-notif.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.contact-notif-content {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(99, 102, 241, 0.1));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.25rem 1.5rem;
  border-radius: 0.75rem;
  /* 12px */
  font-size: 0.9rem;
  color: #e5e7eb;
  /* gray-200 */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(6, 182, 212, 0.1);
}

/* Gradient line on top */
.contact-notif-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #06b6d4, #a855f7);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.7);
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-notif.visible .contact-notif-content::before {
  width: 100%;
}

/* === Contact Section Toast === */
#contact-toast {
  opacity: 0;
  transform: translate(-50%, 5rem);
  transition: opacity 0.5s ease-out, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

#contact-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

/* === Form Status Message === */
.form-status-message {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 0.5rem;
  text-align: center;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: none;
  /* Hidden by default */
}

.form-status-message.show {
  opacity: 1;
  transform: translateY(0);
  display: block;
}

.form-status-message.success {
  background-color: rgba(22, 163, 74, 0.2);
  /* bg-green-600/20 */
  color: #4ade80;
  /* text-green-400 */
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.form-status-message.error {
  background-color: rgba(220, 38, 38, 0.2);
  /* bg-red-600/20 */
  color: #f87171;
  /* text-red-400 */
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* === Custom SweetAlert2 Styling === */
.swal2-container {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.swal2-popup.custom-swal-popup {
  background: rgba(17, 24, 39, 0.9) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 1rem !important;
  /* 16px */
  border: 1px solid rgba(99, 102, 241, 0.2);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  position: relative;
  overflow: hidden;
  padding-left: 1.5rem !important;
  /* Make space for the side bar */
}

.swal2-popup.custom-swal-popup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  /* The width of the colored side bar */
  height: 100%;
  background: linear-gradient(to bottom, #06b6d4, #a855f7);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
}

.swal2-title.custom-swal-title {
  color: #f3f4f6 !important;
  /* text-primary */
}

.swal2-html-container.custom-swal-html-container,
.swal2-html-container {
  color: #d1d5db !important;
  /* text-gray-300, slightly brighter for readability */
}

/* Make the icons match the theme */
.swal2-icon.swal2-success .swal2-success-line-tip,
.swal2-icon.swal2-success .swal2-success-line-long {
  background-color: #06b6d4 !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
  border-color: rgba(6, 182, 212, 0.3) !important;
}

.swal2-icon.swal2-error {
  border-color: #f87171 !important;
}

.swal2-icon.swal2-error .swal2-x-mark-line-left,
.swal2-icon.swal2-error .swal2-x-mark-line-right {
  background-color: #f87171 !important;
}

.swal2-timer-progress-bar {
  background: linear-gradient(to right, #06b6d4, #a855f7) !important;
}

.swal2-confirm.swal2-styled {
  background: linear-gradient(to right, #4f46e5, #a855f7) !important;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: 0 !important;
  font-weight: 500;
}

.swal2-confirm.swal2-styled:focus {
  box-shadow: none !important;
}

/* === New Footer Animations (Aurora Effect) === */
@keyframes move-aurora {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

#page-footer {
  background:
    radial-gradient(ellipse at 70% 30%, rgba(6, 182, 212, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 80%, rgba(168, 85, 247, 0.25) 0%, transparent 50%),
    #0f172a;
  /* Dark blue-gray base */
  background-size: 300% 300%;
  animation: move-aurora 20s ease-in-out infinite;

  /* Fade-up animation setup */
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

#page-footer.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes glow-pulse {

  0%,
  100% {
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.3), 0 0 12px rgba(168, 85, 247, 0.2);
  }

  50% {
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.6), 0 0 30px rgba(168, 85, 247, 0.4);
  }
}

.social-icon-glow {
  animation: glow-pulse 4s infinite ease-in-out;
}

.social-icon-glow:nth-child(2) {
  animation-delay: 0.3s;
}

.social-icon-glow:nth-child(3) {
  animation-delay: 0.6s;
}

/* === Home Section Particle Animation === */
#home-particles {
  pointer-events: none;
  /* Allows clicks to go through */
}

.particle {
  position: absolute;
  bottom: 0;
  border-radius: 50%;
  background: #06b6d4;
  /* Cyan color */
  opacity: 0;
  animation: float-up linear infinite;
  box-shadow: 0 0 8px #06b6d4, 0 0 12px #a855f7;
}

@keyframes float-up {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(-100vh);
    opacity: 0;
  }
}

/* === Animated Copyright Text === */
#copyright-text span {
  display: inline-block;
  transition: color 0.4s ease;
}

/* === Preloader Digital Pulse Animation === */
#preloader-curtain {
  /* Add the grid background */
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(6, 182, 212, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(6, 182, 212, 0.1) 1px, transparent 1px);
}

#preloader-pulse {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, transparent 70%);
  animation: preloader-pulse-animation 2.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes preloader-pulse-animation {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

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

/* === Content Visibility Control === */
.content-hidden {
  opacity: 0;
  visibility: hidden;
}

.content-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease-in;
}


#container {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.fixed.inset-0 {
  z-index: 0 !important;
  pointer-events: none !important;
}

#container {
  z-index: 1 !important;
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
}

#main-content,
nav,
section,
.container,
.portfolio-section,
.action-panel,
.fab-floating {
  position: relative;
  z-index: 2 !important;
}

#main-content,
.fab-floating,
.action-panel {
  z-index: 2;
}

.controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  align-items: center;
  padding: 8px;
  background: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(40px) saturate(180%);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.control-button {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  user-select: none;
  letter-spacing: 0.5px;
  min-width: 100px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.control-button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.2),
    0 1px 3px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.control-button:active {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(0);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.24),
    inset 0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.control-button>span:last-of-type {
  position: relative;
  z-index: 2;
}

.control-button>span:not(:last-of-type) {
  position: absolute;
  display: block;
  box-shadow: 0 0 15px rgba(128, 200, 255, 0.9), 0 0 30px rgba(128, 200, 255, 0.7);
}

.control-button>span:nth-child(1) {
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(128, 200, 255, 1));
}

.control-button:hover>span:nth-child(1) {
  animation: animateBorder1 2s linear infinite;
}

.control-button>span:nth-child(2) {
  top: -100%;
  right: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(128, 200, 255, 1));
}

.control-button:hover>span:nth-child(2) {
  animation: animateBorder2 2s linear infinite;
  animation-delay: 0.5s;
}

.control-button>span:nth-child(3) {
  bottom: 0;
  right: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(270deg, transparent, rgba(128, 200, 255, 1));
}

.control-button:hover>span:nth-child(3) {
  animation: animateBorder3 2s linear infinite;
  animation-delay: 1s;
}

.control-button>span:nth-child(4) {
  bottom: -100%;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(0deg, transparent, rgba(128, 200, 255, 1));
}

.control-button:hover>span:nth-child(4) {
  animation: animateBorder4 2s linear infinite;
  animation-delay: 1.5s;
}

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

  50%,
  100% {
    left: 100%;
  }
}

@keyframes animateBorder2 {
  0% {
    top: -100%;
  }

  50%,
  100% {
    top: 100%;
  }
}

@keyframes animateBorder3 {
  0% {
    right: -100%;
  }

  50%,
  100% {
    right: 100%;
  }
}

@keyframes animateBorder4 {
  0% {
    bottom: -100%;
  }

  50%,
  100% {
    bottom: 100%;
  }
}

.activate-button {
  background: linear-gradient(135deg, rgba(255, 100, 100, 0.15) 0%, rgba(255, 50, 50, 0.1) 100%);
  border: 1px solid rgba(255, 100, 100, 0.3);
  color: rgba(255, 150, 150, 0.95);
}

.activate-button:hover {
  background: linear-gradient(135deg, rgba(255, 120, 120, 0.2) 0%, rgba(255, 80, 80, 0.15) 100%);
  border-color: rgba(255, 150, 150, 0.4);
  color: rgba(255, 200, 200, 1);
}

.activate-button>span:not(:last-of-type) {
  box-shadow: 0 0 15px rgba(255, 120, 120, 0.9), 0 0 30px rgba(255, 120, 120, 0.7);
}

.activate-button>span:nth-child(1) {
  background: linear-gradient(90deg, transparent, rgba(255, 120, 120, 1));
}

.activate-button>span:nth-child(2) {
  background: linear-gradient(180deg, transparent, rgba(255, 120, 120, 1));
}

.activate-button>span:nth-child(3) {
  background: linear-gradient(270deg, transparent, rgba(255, 120, 120, 1));
}

.activate-button>span:nth-child(4) {
  background: linear-gradient(0deg, transparent, rgba(255, 120, 120, 1));
}

.stats {
  position: absolute;
  top: 20px;
  right: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  font-weight: 400;
  pointer-events: none;
  z-index: 5;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px) saturate(150%);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.stats div {
  margin-bottom: 4px;
  padding: 2px 0;
}

.stats div:last-child {
  margin-bottom: 0;
}

.controls::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 21px;
  z-index: -1;
  opacity: 0.5;
}

@media (max-width:640px) {
  .controls {
    gap: 8px;
    bottom: 15px;
    left: 15px;
    right: 15px;
    transform: translateX(0);
    width: auto;
  }

  .control-button {
    padding: 8px 12px;
    font-size: 11px;
    flex-grow: 1;
  }

  .stats {
    top: 15px;
    right: 15px;
    padding: 8px 12px;
  }
}

/* ==== Floating Action Button (FAB) & Action Panel ==== */
.fab-floating {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(48, 53, 72, 0.98);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.23), 0 2px 6px rgba(99, 102, 241, 0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9981 !important;
  border: none;
  outline: none;
  transition: background 0.25s, bottom 0.25s, transform 0.25s;
  cursor: pointer;
  padding: 0;
  margin: 0;
  backdrop-filter: blur(18px) saturate(2);
}

.fab-floating.open {
  transform: scale(1.12) rotate(18deg);
  background: rgba(99, 102, 241, 0.98);
}

.fab-icon {
  font-size: 1.9rem;
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 18px #93c5fd, 0 0 4px #a855f7;
  transition: color 0.2s;
  pointer-events: none;
}

.fab-icon svg.gear-svg {
  width: 2em;
  height: 2em;
  display: block;
  filter: drop-shadow(0 0 7px #8b5cf6cc) drop-shadow(0 0 18px #06b6d4aa);
  transition: transform 0.38s cubic-bezier(.42, 1.79, .44, .95), filter 0.28s;
}

.fab-floating:hover .fab-icon svg.gear-svg {
  filter: drop-shadow(0 0 13px #818cf8ee) drop-shadow(0 0 21px #a855f7cc);
  /* soft neon boost on hover */
}

.fab-floating.open .fab-icon svg.gear-svg {
  transform: rotate(130deg) scale(1.08);
  filter: drop-shadow(0 0 18px #a855f7) drop-shadow(0 0 28px #06b6d4) drop-shadow(0 0 12px #818cf8);
}

/* Action Panel */
.action-panel {
  position: fixed;
  bottom: 105px;
  right: 38px;
  background: rgba(32, 34, 48, 0.93);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.28), 0 2px 10px #312e81cc;
  border-radius: 24px;
  border: 1.5px solid rgba(99, 102, 241, 0.22);
  display: flex;
  flex-direction: column;
  gap: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.99);
  transition: all 0.26s cubic-bezier(0.61, .02, .5, 1.2);
  padding: 17px 19px;
  z-index: 9980 !important;
  min-width: 190px;
  align-items: stretch;
}

.action-panel.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

@media(max-width: 767px) {
  .fab-floating {
    bottom: 16px;
    right: 13px;
    width: 48px;
    height: 48px;
  }

  .fab-icon {
    font-size: 1.25rem;
  }

  .action-panel {
    bottom: 69px;
    right: 9px;
    padding: 9px 7px;
    min-width: 130px;
    gap: 8px;
  }
}

@media (max-width: 700px) {
  .fab-floating {
    bottom: 68px;
    right: 12px;
  }

  /* === RESPONSIVE CHAT === */
  @media (max-width: 540px) {
    .chat-ai-float {
      width: 54px !important;
      height: 54px !important;
      bottom: 120px !important;
      right: 20px !important;
    }

    .chat-ai-float svg {
      width: 26px;
      height: 26px;
    }

    #chatContainer {
      width: 92vw !important;
      height: 60vh !important;
      /* Reduced height for mobile */
      right: 4vw !important;
      bottom: 130px !important;
      /* Match desktop bottom spacing */
      border-radius: 14px !important;
    }

    .chat-coachmark {
      bottom: 120px;
      right: 85px;
    }
  }

  @media (max-width: 450px) {
    .chat-ai-float {
      width: 48px !important;
      height: 48px !important;
      bottom: 110px !important;
      right: 16px !important;
    }

    #chatContainer {
      width: 100% !important;
      height: 80% !important;
      right: 0 !important;
      bottom: 0 !important;
      border-radius: 18px 18px 0 0 !important;
      border-bottom: none !important;
      border-left: none !important;
      border-right: none !important;
    }

    .chat-coachmark {
      bottom: 110px;
      right: 70px;
    }
  }

  .action-panel {
    bottom: 116px;
  }
}

.fab-floating {
  box-shadow: 0 8px 32px #0008, 0 0 16px #4338ca88;
}

.action-panel {
  box-shadow: 0 16px 48px #000a, 0 0 12px #1e40af55, inset 0 5px 15px #818cf822;
}

[data-aos] {
  will-change: opacity, transform;
  backface-visibility: hidden;
}

.cyber-card {
  position: relative;
  width: 100%;
  min-height: 340px;
  max-width: 390px;
  margin: 0 auto;
  background: #0c0c0c;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 6px;
  margin-top: 3px;
  box-shadow: 0 12px 35px #010014e0, 0 0 22px #00ccff1a;
}

.cyber-card::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150px;
  height: 140%;
  background: linear-gradient(#00ccff, #d400d4);
  animation: cyber-rotate 4s linear infinite;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.cyber-card::after {
  content: '';
  position: absolute;
  inset: 4px;
  background: #0c0c0c;
  border-radius: 8px;
  z-index: 2;
}

.cyber-card:hover::before {
  background: linear-gradient(#ff0000, #00ff00);
  filter: blur(20px);
}

.cyber-card-content {
  position: relative;
  z-index: 10;
  padding: 20px 10px 16px 10px;
  text-align: center;
  color: #fff;
}

.cyber-card h2 {
  font-size: 1.45em;
  margin-bottom: 15px;
  color: transparent;
  -webkit-text-stroke: 1.5px #fff;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-family: 'Orbitron', 'Arial', sans-serif;
  font-weight: 700;
}

.cyber-card p {
  font-size: 1.10em;
  line-height: 1.55;
  margin-bottom: 18px;
  color: #8a8a8a;
  font-family: 'Share Tech Mono', monospace;
}

.click-me {
  display: inline-block;
  padding: 10px 26px;
  background: transparent;
  border: 2px solid #00ccff;
  color: #00ccff;
  font-size: 1.13em;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 8px;
  transition: 0.5s;
  font-family: 'Orbitron', 'Arial', sans-serif;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 0 #00ccff;
  margin-bottom: 2px;
}

.cyber-card:hover .click-me {
  background: #00ccff;
  color: #0c0c0c;
  box-shadow: 0 0 10px #00ccff, 0 0 20px #00ccff, 0 0 30px #00ccff;
}

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

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

@media (max-width: 700px) {
  .cyber-card {
    min-height: 260px;
    max-width: 100vw;
  }

  .cyber-card h2 {
    font-size: 1.1em;
  }

  .cyber-card-content {
    padding: 11px 2vw 12px 2vw;
  }

  .click-me {
    font-size: 0.98em;
    padding: 8px 16px;
  }
}

.cyber-card.card-photo {
  font-family: 'Share Tech Mono', monospace;
  border: 2px solid transparent;
  background-color: rgba(13, 2, 33, 0.88);
  padding: 1.5rem;
  width: 100%;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.4s cubic-bezier(0.7, 0, 0.4, 1);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.6);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.cyber-card.card-photo img {
  width: 100%;
  margin-bottom: 1rem;
  border: 1px solid #ff2a6d;
  filter: saturate(1.2) contrast(1.1) brightness(1.1);
  transition: all 0.3s;
  border-radius: 4px;
}

.cyber-card.card-photo:hover img {
  filter: saturate(1.5) contrast(1.27) brightness(1.13);
}

.cyber-card .glitch {
  position: relative;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #05d9e8;
  text-shadow: 0 0 8px #05d9e87f, 0 0 16px #05d9e85c;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.24s;
}

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

.cyber-card .glitch::before {
  left: 2px;
  color: #05d9e8;
  opacity: 0.7;
  animation: glitch-pulse 2.4s infinite linear alternate-reverse;
}

.cyber-card .glitch::after {
  left: -2px;
  color: #ff2a6d;
  opacity: 0.5;
  animation: glitch-pulse 2.1s infinite linear alternate-reverse;
}

@keyframes glitch-pulse {

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

  5% {
    opacity: 1;
    transform: translateX(1.5px);
  }

  6% {
    opacity: 0;
  }

  80% {
    opacity: .5;
    transform: translateX(-1.5px);
  }
}

.cyber-card.card-photo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, transparent 44%, #05d9e8, transparent 81%, transparent);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.28s;
}

.cyber-card.card-photo:hover {
  transform: translateY(-10px) scale(1.025);
  border-image: linear-gradient(45deg, #ff2a6d, #05d9e8) 1;
  box-shadow: 0 0 10px #05d9e8, 0 0 26px #ff2a6d, 0 15px 26px rgba(0, 0, 0, 0.55);
}

.cyber-card.card-photo:hover::before {
  opacity: 0.16;
}

.cyber-card.card-photo::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.06;
  pointer-events: none;
  background: repeating-linear-gradient(60deg, transparent, transparent 18px, rgba(5, 217, 232, 0.07) 18px, rgba(5, 217, 232, 0.09) 38px);
  z-index: 0;
  animation: cyber-scanlines 4s linear infinite;
}

@keyframes cyber-scanlines {
  0% {
    transform: translateY(0);
  }

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

.cyber-card.card-photo p {
  margin-bottom: 1.5rem;
  font-size: 1.01rem;
  color: #daf6ffcc;
}

.cyber-card .read-more {
  display: inline-block;
  padding: 7px 20px;
  border: 1.5px solid #05d9e8;
  color: #05d9e8;
  background: transparent;
  text-transform: uppercase;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  font-weight: bold;
  letter-spacing: 1.1px;
  border-radius: 3px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.cyber-card .read-more::before {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  height: 98%;
  width: 120%;
  background: linear-gradient(90deg, transparent, #05d9e877, transparent);
  transition: left 0.36s;
}

.cyber-card .read-more:hover::before {
  left: 100%;
  transition: left 0.6s ease;
}

.cyber-card .read-more:hover {
  background: rgba(5, 217, 232, 0.17);
  box-shadow: 0 0 8px #05d9e8bb;
  color: #fff;
}

/* Responsive cyber card grid-like, in about section */
@media(max-width: 768px) {
  .cyber-card.card-photo {
    max-width: 98vw;
    padding: 13px 7px;
  }
}

#portfolio .cyber-card img {
  position: relative;
  z-index: 3;
  width: 100%;
  border-radius: 5px;
  margin-bottom: 15px;
  border: 1.5px solid #00ccff;
  box-shadow: 0 0 12px #00ccff44;
  transition: box-shadow 0.36s;
  object-fit: cover;
  background: #090b17;
}

#portfolio .cyber-card .cyber-card-content {
  position: relative;
  z-index: 4;
  background: transparent;
}

#project-modal,
#project-modal.active {
  z-index: 20001 !important;
  position: fixed !important;
}

#portfolio .cyber-card:hover img {
  box-shadow: 0 0 24px #00ccffcc, 0 0 0 #fff0;
}

/* SPLIDE SHOWCASE CUSTOM */
#showcase-carousel {
  padding-top: 20px;
  padding-bottom: 38px;
}

.splide__slide {
  display: flex;
  justify-content: center;
}

.splide__track {
  height: auto !important;
  overflow: visible !important;
}

.splide__list {
  overflow: visible !important;
}

.showcase-card {
  background: rgba(22, 30, 44, 0.96);
  border-radius: 2rem;
  box-shadow: 0 5px 36px 0 #0ff9, 0 0 2px 5px #170b3407;
  min-height: 460px;
  max-width: 375px;
  min-height: 420px;
  padding: 0 0 24px 0;
  margin: 0 0.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
  transition: transform 0.29s cubic-bezier(.55, 1.4, .47, 1), box-shadow 0.38s;
}

.showcase-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 1.2rem 1.2rem 1rem 1rem;
  overflow: hidden;
  background: linear-gradient(120deg, #0ff9, #6366f129 70%, #a855f70c);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.showcase-img img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: 1.1rem 1.1rem 1rem 1rem;
  box-shadow: 0 4px 14px #09f5, 0 0 1px #333c;
  transition: transform 0.27s, box-shadow 0.23s;
  background: #161a2d;
}

.showcase-tag {
  position: absolute;
  left: 1rem;
  top: 1rem;
  padding: 0.37rem 1rem;
  font-size: 0.92em;
  font-weight: 600;
  border-radius: 1.5rem;
  background: linear-gradient(92deg, #06b6d4, #a855f7 82%);
  color: #fff;
  box-shadow: 0 0 16px #06b6d485;
  letter-spacing: 1px;
  z-index: 4;
  text-shadow: 0 1px 4px #fff9, 0 2px 10px #818cf8;
  filter: brightness(1.15) saturate(1.3);
}

.showcase-content {
  flex: 1 1 auto;
  padding: 1.25rem 1.7rem 0.4rem 1.7rem;
  text-align: center;
}

.showcase-content h3 {
  font-size: 1.28rem;
  font-weight: 700;
  margin-bottom: 7px;
  background: linear-gradient(90deg, #818cf8, #0ea5e9 55%, #a855f7 100%);
  -webkit-background-clip: text;
  color: transparent;
}

.showcase-content p {
  font-size: 1.01rem;
  color: #d1d5db;
  margin-bottom: 0.9rem;
}

.showcase-btn {
  display: inline-block;
  background: linear-gradient(80deg, #06b6d4 30%, #a855f7 100%);
  color: #fff;
  font-weight: 600;
  border-radius: 1.7rem;
  font-size: 1.01rem;
  padding: 0.55rem 1.55rem;
  box-shadow: 0 2px 12px #818cf86e;
  margin-top: 7px;
  transition: background 0.23s, box-shadow 0.31s, transform 0.25s;
}

.showcase-btn:hover {
  background: linear-gradient(100deg, #4f46e5 17%, #a855f7 82%);
  box-shadow: 0 1px 10px #57059e99;
  transform: translateY(-2px) scale(1.06);
}

/* Effect active scaling card tengah */
.splide__slide.is-active .showcase-card {
  transform: scale(1.06) translateY(-0.6rem);
  box-shadow: 0 10px 38px #06b6d4cc, 0 1px 24px #818cf8bb;
  z-index: 3;
}

.splide__slide:not(.is-active) .showcase-card {
  opacity: 0.82;
  transform: scale(0.94) translateY(0.5rem);
  filter: blur(0.2px) grayscale(5%);
}

.splide__arrow {
  background: linear-gradient(90deg, #0ea5e9, #818cf8 90%);
  opacity: 0.83;
  border-radius: 50%;
  width: 2.45rem;
  height: 2.45rem;
  border: none;
  top: 45%;
  box-shadow: 0 0 15px #818cf855, 0 2px 15px #818cf855;
  transition: background .18s, box-shadow .22s;
}

.splide__arrow:hover {
  background: linear-gradient(100deg, #a855f7 17%, #4f46e5 92%);
  box-shadow: 0 3px 20px #a855f7cc;
}

.splide__arrow svg {
  fill: #fff;
  width: 1.35rem;
  height: 1.35rem;
}

.splide__progress {
  width: 65%;
  margin: 0 auto;
  height: 0.35rem;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: -8px;
}

.splide__progress__bar {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, #06b6d4 10%, #818cf8 73%, #a855f7 100%);
  box-shadow: 0 2px 10px #818cf86c;
}

/* Mobile Responsive */
@media (max-width:640px) {
  .showcase-card {
    min-height: 300px;
    max-width: 99vw;
  }

  .showcase-img img {
    max-height: 115px;
  }

  .showcase-content {
    padding: .6rem 1vw 0.4rem 1vw;
  }
}

@keyframes slideDownFadeOut {
  0% {
    opacity: 0;
    transform: translateY(-22px) scale(0.95);
  }

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

  80% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(-30px) scale(.97);
  }
}

.banner-anim {
  animation: slideDownFadeOut 3.6s cubic-bezier(.46, 1.6, .33, 1.03) both;
}

#contact-success-banner {
  pointer-events: none;
  min-width: 240px;
  min-height: 46px;
  font-size: 1.07rem;
  z-index: 25000 !important;
  opacity: 0;
  transition: opacity .24s;
}

#contact-success-banner.active {
  opacity: 1;
  display: flex !important;
}

@media (max-width:600px) {
  #contact-success-banner {
    max-width: 97vw;
    left: 3px;

    right: 3px;
    font-size: .99rem;
  }
}

/* Bubble Coachmark for FAB (Gear) */
.coachmark-bubble-hbs {
  position: fixed;
  bottom: 95px;
  right: 20px;
  min-width: 188px;
  max-width: 280px;
  z-index: 60005;
  background: linear-gradient(90deg, #232946 90%, #303152);
  color: #38bdf8;
  border-radius: 1.1em;
  box-shadow: 0 8px 22px #06b6d477, 0 1px 11px #23294680;
  padding: 1em 1.3em 0.85em 1.3em;
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: scale(0.7);
  pointer-events: auto;
  user-select: none;
  outline: none;
  border: none;
  transition: opacity 0.33s cubic-bezier(.47, 1.75, .51, .86), transform .46s cubic-bezier(.43, 1.69, .57, 1);
  display: block;
}

.coachmark-bubble-hbs.shown {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.coachmark-bubble-hbs.hidden {
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
}

.coachmark-bubble-inner {
  display: block;
  white-space: pre-line;
  font-weight: 500;
  text-shadow: 0 1px 6px #181f3290, 0 2px 10px #06b6d4c0;
  padding-bottom: 2px;
}

.coachmark-bubble-arrow {
  display: block;
  width: 27px;
  height: 27px;
  position: absolute;
  bottom: -14px;
  right: 31px;
}

.coachmark-bubble-arrow::after {
  content: '';
  position: absolute;
  bottom: -3px;
  right: 0;
  left: 0;
  margin: auto;
  width: 21px;
  height: 21px;
  background: linear-gradient(135deg, #232946 80%, #303152 100%);
  transform: rotate(45deg);
  border-radius: 6px;
  box-shadow: 0 4px 16px #06b6d466, 0 1px 6px #2329468b;
}

@media (max-width: 700px) {
  .coachmark-bubble-hbs {
    right: 16px;
    min-width: 134px;
    font-size: .92rem;
    padding: 0.75em 1em 0.7em 1em;
  }

  .coachmark-bubble-arrow {
    right: 16px;
    width: 20px;
    height: 20px;
  }
}

/* Coachmark ABOUT Section Overlay */
.coachmark-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  z-index: 9990;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
  opacity: 1;
}

.coachmark-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.coachmark-bubble {
  position: absolute;
  background: #fff;
  color: #111;
  padding: 14px 18px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  max-width: 240px;
  font-size: 14px;
  animation: pop 0.35s cubic-bezier(.43, 1.38, .47, 1);
  opacity: 1;
  border: 1.5px solid #38bdf8;
}

.coachmark-bubble.hidden {
  display: none;
  opacity: 0;
}

@keyframes pop {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }

  100% {
    transform: scale(1);

    opacity: 1;
  }
}

.coachmark-bubble::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #fff;
  z-index: 10002;
}

@media(max-width:600px) {
  .coachmark-bubble {
    font-size: 13px;
    max-width: 82vw;
    padding: 12px 9px;
  }

  .coachmark-bubble::after {
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #fff;
  }
}

/* COACHMARK BUBBLE FLOATING UI */
.coachmark-bubble {
  position: absolute;
  min-width: 220px;
  max-width: 290px;
  padding: 13px 22px;
  background: rgba(28, 34, 48, 0.97);
  color: #fff;
  font-size: 15px;
  border-radius: 14px;
  box-shadow: 0 4px 34px #06b6d433, 0 0 1.5px #818cf8cc;
  z-index: 1022;
  opacity: 0;
  pointer-events: auto;
  outline: none;
  transition: opacity .34s, transform .38s cubic-bezier(.43, 1.38, .47, 1), box-shadow .31s;
  transform: scale(.88);
  filter: blur(0.1px);
  user-select: none;
  display: block;
}

.coachmark-bubble.show {
  opacity: 1;
  transform: scale(1);
}

.coachmark-bubble .coachmark-arrow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -14px;
  width: 22px;
  height: 22px;
  z-index: 10;
  pointer-events: none;
}

.coachmark-bubble .coachmark-arrow::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  margin: auto;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 14px solid rgba(28, 34, 48, 0.97);
  filter: drop-shadow(0 1px 3px #06b6d480);
}

@media(max-width:600px) {
  .coachmark-bubble {
    font-size: 13px;
    min-width: 142px;
    max-width: 92vw;
    padding: 10px 8px;
  }

  .coachmark-bubble .coachmark-arrow {
    width: 17px;
    height: 17px;
    bottom: -9px;
  }

  .coachmark-bubble .coachmark-arrow::after {
    border-left: 8.5px solid transparent;
    border-right: 8.5px solid transparent;
    border-top: 9px solid rgba(28, 34, 48, 0.97);
  }
}

#coachmark-fab {
  position: absolute;
  min-width: 185px;
  max-width: 270px;
  padding: 12px 19px;
  background: rgba(22, 34, 44, 0.96);
  color: #fff;
  font-size: 14px;
  border-radius: 13px;
  box-shadow: 0 4px 26px #06b6d433, 0 0 1.5px #818cf888;
  z-index: 12000;
  opacity: 0;
  pointer-events: auto;
  transition: opacity .32s, transform .36s cubic-bezier(.49, 1.7, .51, 1), box-shadow .29s;
  filter: blur(0.1px);
  user-select: none;
  display: block;
}

#coachmark-fab.show {
  opacity: 1;
  transform: scale(1);
}

#coachmark-fab .coachmark-arrow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -12px;
  width: 19px;
  height: 20px;
  z-index: 10;
  pointer-events: none;
}

#coachmark-fab .coachmark-arrow::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 9.5px solid transparent;
  border-right: 9.5px solid transparent;
  border-top: 13px solid rgba(22, 34, 44, 0.96);
  filter: drop-shadow(0 1px 3px #06b6d470);
}

@media(max-width:600px) {
  #coachmark-fab {
    font-size: 12.5px;
    min-width: 110px;
    max-width: 82vw;
    padding: 8px 6px;
  }

  #coachmark-fab .coachmark-arrow {
    width: 13px;
    height: 14px;
    bottom: -6px;
  }

  #coachmark-fab .coachmark-arrow::after {
    border-left: 6.5px solid transparent;
    border-right: 6.5px solid transparent;
    border-top: 7px solid rgba(22, 34, 44, 0.96);
  }
}

#coachmark-download {
  position: absolute;
  min-width: 180px;
  max-width: 260px;
  padding: 11px 17px;
  background: rgba(30, 34, 45, 0.96);
  color: #fff;
  font-size: 13.5px;
  border-radius: 11px;
  box-shadow: 0 4px 26px #05b6e433, 0 0 1px #818cf864;
  z-index: 11100;
  opacity: 0;
  pointer-events: auto;
  transition: opacity .28s, transform .33s cubic-bezier(.49, 1.7, .51, 1), box-shadow .29s;
  filter: blur(0.09px);
  user-select: none;
  display: block;
}

#coachmark-download.show {
  opacity: 1;
  transform: scale(1);
}

#coachmark-download .coachmark-arrow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -11px;
  width: 17px;
  height: 18px;
  z-index: 3;
  pointer-events: none;
}

#coachmark-download .coachmark-arrow::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 8.5px solid transparent;
  border-right: 8.5px solid transparent;
  border-top: 11px solid rgba(30, 34, 45, 0.96);
  filter: drop-shadow(0 1px 2px #05b6e460);
}

@media(max-width:600px) {
  #coachmark-download {
    font-size: 11.5px;
    min-width: 92px;
    max-width: 88vw;
    padding: 7px 5px;
  }

  #coachmark-download .coachmark-arrow {
    width: 11px;
    height: 10px;
    bottom: -4px;
  }

  #coachmark-download .coachmark-arrow::after {
    border-left: 5.5px solid transparent;
    border-right: 5.5px solid transparent;
    border-top: 6px solid rgba(30, 34, 45, 0.96);
  }
}

/* === MODERN FOOTER (neon-glass, simetris) === */
.footer-modern {
  border: none;
  border-top: 1.3px solid #22d3ee44;
  background: linear-gradient(135deg, #18182d 65%, #23234a 100%) !important;
  padding-top: 0px !important;
  box-shadow: 0 14px 50px #0ea5e91a;
}

.glass-footer {
  background: rgba(14, 21, 31, 0.15);
  backdrop-filter: blur(11px) saturate(125%);
  border-radius: 1.2rem;
  border: 1px solid #818cf820;
  box-shadow: 0 2px 18px #06b6d425, 0 0 1.5px #818cf888;
}

.footer-modern .icon-img {
  display: inline-block;
  vertical-align: middle;
  border-radius: 7px;
  background: rgba(33, 42, 56, 0.14);
  box-shadow: 0 0 7px #0ea5e92c;
  width: 1.7em;
  height: 1.7em;
  max-width: 36px;
  max-height: 36px;
}

.footer-modern .footer-social {
  transition: transform .21s cubic-bezier(.49, 1.7, .51, 1), filter .28s;
  box-shadow: 0 0 9px #818cf855, 0 4px 22px #06b6d412;
  outline: none;
  min-width: 42px;
  min-height: 42px;
}

.footer-modern .footer-social:focus,
.footer-modern .footer-social:hover {
  filter: brightness(1.16) saturate(1.12);
  transform: scale(1.12) rotate(-3deg);
  box-shadow: 0 0 19px #818cf888, 0 4px 16px #06b6d499;
}

.footer-modern .visitor-count {
  font-family: 'Orbitron', 'Space Grotesk', monospace;
  color: #fff;
  text-shadow: 0 1px 6px #06b6d49a, 0 0 15px #818cf888;
  font-weight: 800;
  letter-spacing: 0.045em;
}

.footer-modern .neon-icon {
  color: #22d3ee;
  filter: drop-shadow(0 2px 9px #06b6d4ec);
  font-size: 1.41em;
  margin-bottom: 1px;
}

.footer-modern .footer-fallback-text {
  font-size: .88em !important;
  color: #818cf8ee;
}

@media (max-width:900px) {
  .footer-modern .glass-footer {
    padding: 2.5rem 1.1rem;
  }
}

@media (max-width:650px) {
  .footer-modern .glass-footer {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    padding: .9rem !important;
    border-radius: .67rem;
  }

  .footer-modern .footer-social {
    min-width: 36px;
    min-height: 36px;
  }

  .footer-modern .icon-img {
    width: 1.3em;
    height: 1.3em;
  }

  .footer-modern .footer-visitor-counter {
    font-size: .95em;
  }
}

.footer-modern .footer-visitor-counter {
  background: rgba(19, 28, 45, .21);
  border-radius: 1em;
  border: 1.1px solid #22d3ee44;
  padding: 7px 17px 7px 13px;
  margin: 0 0 0 auto;
  box-shadow: 0 2px 14px #06b6d466;
  display: flex;
  align-items: center;
  gap: 7px;
  user-select: none;
}

/* === MODERN FOOTER (neon-glass, simetris) === */
.footer-modern {
  border: none;
  border-top: 1.3px solid #22d3ee44;
  background: linear-gradient(135deg, #18182d 65%, #23234a 100%) !important;
  padding-top: 0px !important;
  box-shadow: 0 14px 50px #0ea5e91a;
}

.glass-footer {
  background: rgba(14, 21, 31, 0.15);
  backdrop-filter: blur(11px) saturate(125%);
  border-radius: 1.2rem;
  border: 1px solid #818cf820;
  box-shadow: 0 2px 18px #06b6d425, 0 0 1.5px #818cf888;
}

.footer-modern .icon-img {
  display: inline-block;
  vertical-align: middle;
  border-radius: 7px;
  background: rgba(33, 42, 56, 0.14);
  box-shadow: 0 0 7px #0ea5e92c;
  width: 1.7em;
  height: 1.7em;
  max-width: 36px;
  max-height: 36px;
}

.footer-modern .footer-social {
  transition: transform .21s cubic-bezier(.49, 1.7, .51, 1), filter .28s;
  box-shadow: 0 0 9px #818cf855, 0 4px 22px #06b6d412;
  outline: none;
  min-width: 42px;
  min-height: 42px;
}

.footer-modern .footer-social:focus,
.footer-modern .footer-social:hover {
  filter: brightness(1.16) saturate(1.12);
  transform: scale(1.12) rotate(-3deg);
  box-shadow: 0 0 19px #818cf888, 0 4px 16px #06b6d499;
}

.footer-modern .visitor-count {
  font-family: 'Orbitron', 'Space Grotesk', monospace;
  color: #fff;
  text-shadow: 0 1px 6px #06b6d49a, 0 0 15px #818cf888;
  font-weight: 800;
  letter-spacing: 0.045em;
}

.footer-modern .neon-icon {
  color: #22d3ee;
  filter: drop-shadow(0 2px 9px #06b6d4ec);
  font-size: 1.41em;
  margin-bottom: 1px;
}

.footer-modern .footer-fallback-text {
  font-size: .88em !important;
  color: #818cf8ee;
}

@media (max-width:900px) {
  .footer-modern .glass-footer {
    padding: 2.5rem 1.1rem;
  }
}

@media (max-width:650px) {
  .footer-modern .glass-footer {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    padding: .9rem !important;
    border-radius: .67rem;
  }

  .footer-modern .footer-social {
    min-width: 36px;
    min-height: 36px;
  }

  .footer-modern .icon-img {
    width: 1.3em;
    height: 1.3em;
  }

  .footer-modern .footer-visitor-counter {
    font-size: .95em;
  }
}

.footer-modern .footer-visitor-counter {
  background: rgba(19, 28, 45, .21);
  border-radius: 1em;
  border: 1.1px solid #22d3ee44;
  padding: 7px 17px 7px 13px;
  margin: 0 0 0 auto;
  box-shadow: 0 2px 14px #06b6d466;
  display: flex;
  align-items: center;
  gap: 7px;
  user-select: none;
}

.scanline {
  pointer-events: none !important;
}

/* === Feedback Modal Overlay (Always Center) === */
#feedback-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  /* kalau butuh transparan */
  display: flex;
  align-items: center;
  justify-content: center;

  pointer-events: auto !important;
  z-index: 999999 !important;
}

/* === Modal Container === */
#feedback-modal {
  position: relative;
  /* jangan fixed */
  z-index: 1000000 !important;

  max-width: 400px;
  width: 97vw;

  /* No need for left/top/transform */
  pointer-events: auto !important;
}

/* === GLASS NEON FEEDBACK CARD V2025 === */
.glass-neon-card-2025 {
  border-radius: 1.8em;
  background: rgba(22, 32, 61, .17);
  backdrop-filter: blur(18px) saturate(170%);
  border: 1.8px solid #67e8f9bb;
  box-shadow: 0 8px 48px #0ea5e92e, 0 2px 18px #818cf833, 0 0.5px 2px #818cf899;
  transition: box-shadow 0.3s cubic-bezier(.48, 1.69, .51, .93), transform .27s;
  overflow: hidden;
}

.glass-neon-card-2025:hover {
  box-shadow: 0 10px 64px #06b6d433,
    0 4px 22px #9333ea44,
    0 0 23px #818cf899;
  transform: translateY(-2.5px) scale(1.025) rotate3d(0.7, 0.6, 0.25, 2deg);
}

.fade-in-cyber {
  animation: fadeInCard2025 .81s cubic-bezier(.46, 1.4, .39, 1.01) both;
}

@keyframes fadeInCard2025 {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.97);
  }

  66% {
    opacity: 1;
    transform: translateY(-2px) scale(1.025);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.feedback-card {
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
  padding: 1.4rem 1.35rem;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  gap: 0.9rem;

  background: rgba(18, 26, 49, 0.55);
  border-radius: 1.65rem;
  border: 1.5px solid rgba(34, 211, 238, 0.22);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  box-shadow:
    0 6px 28px rgba(41, 255, 246, 0.4),
    0 2px 18px rgba(129, 140, 248, 0.18),
    0 0.5px 2px rgba(129, 140, 248, 0.35);

  transition: 0.25s ease;
}

/* BARIS ATAS: stars + score + date */
.feedback-card .top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Stars kiri */
.feedback-card .stars {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

/* Score (angka besar) */
.feedback-card .score {
  font-size: 1.25rem;
  font-weight: 600;
  color: #e8faff;
}

/* Date */
.feedback-card .date {
  text-align: right;
  font-size: 0.82rem;
  line-height: 1.1rem;
  color: #d0eaffaa;
  min-width: 52px;
}

/* TEXT deskripsi */
.feedback-card .message {
  margin-top: 0.3rem;
  font-size: 1.05rem;
  line-height: 1.55rem;
  color: #f3f9ff;
  word-break: break-word;
}

@media (max-width: 700px) {
  .feedback-card {
    max-width: 100%;
    padding: 1.15rem 1.05rem;
    gap: 0.65rem;
  }

  .feedback-card .score {
    font-size: 1.15rem;
  }

  .feedback-card .message {
    font-size: 1rem;
  }
}

.feedback-date {
  font-size: 0.65rem;
  /* kecil tapi tetap kebaca */
  line-height: 1rem;
  /* biar gak makan tinggi */
  opacity: 0.75;
  /* sedikit lebih halus */
  white-space: nowrap;
  /* supaya "24 Nov 2025" tidak turun baris */
  letter-spacing: 0.3px;
  /* tampilan lebih rapih */
}

/* PATCH: Style reviewer mini-card */
.reviewer-list-card {
  background: rgba(28, 37, 67, 0.78);
  border: 1px solid #38bdf822;
  border-radius: 0.85rem;
  box-shadow: 0 2px 12px #818cf81d, 0 0.5px 3px #06b6d422;
  padding: 0.73rem 1rem 0.55rem 1rem;
  margin-bottom: 5px;
  transition: box-shadow .22s;
}

.reviewer-list-card:hover {
  box-shadow: 0 8px 21px #818cf84a;
  border-color: #38bdf899;
}

.reviewer-list-card .fa-star {
  margin-right: 1.5px;
}

@media (max-width: 700px) {
  .reviewer-list-card {
    padding: 0.66rem 0.7rem 0.48rem 0.7rem;
    font-size: 11px;
  }
}

/* Fade + pop cyberpunk untuk modal feedback */
#feedback-modal {
  opacity: 0;
  transform: scale(0.86) translateY(42px);
  transition: opacity .39s cubic-bezier(.49, 1.32, .39, 1.03), transform .43s cubic-bezier(.46, 1.54, .44, .92);
  box-shadow: 0 4px 24px #06b6d4cc, 0 0 12px #818cf8c4, 0 0 0px 2.2px #0ea5e98c;
  border-radius: 1.32rem;
  border-width: 2.5px;
  border-style: solid;
  /* Border-image for cyberpunk look: multiple neon color stops */
  border-image: linear-gradient(112deg, #38bdf8 12%, #818cf8 47%, #a855f7 98%) 1;
  background-clip: padding-box, border-box;
  background-origin: border-box;
  position: relative;
}

#feedback-modal.modal-animate-pop {
  opacity: 1;
  transform: scale(1) translateY(0);
  box-shadow: 0 9px 50px 0 #818cf866, 0 1px 23px #38bdf87d, 0 0 40px 5px #a855f799, 0 0 8px 3px #06b6d422;
}

#feedback-modal:after {
  content: '';
  display: block;
  pointer-events: none;
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  z-index: 3;
  box-shadow: 0 0 17px 10px #818cf83d, 0 0 12px 8px #38bdf855, 0 0 8px 3px #a855f749;
}

/* Fix progress bar: bar width 0% = hilang total */
.neon-gradient-bar>.absolute {
  min-width: 0 !important;
  width: 0;
  transition: width .46s cubic-bezier(.48, 1.6, .26, 1.03);
  pointer-events: none;
}

/* Efek highlight grow ketika 100%/full*/
.neon-gradient-bar>.absolute[style*="width: 100%"] {
  box-shadow: 0 1px 23px #38bdf8c7, 0 4px 20px #818cf866;
}

/* Visitor counter tooltip */
.visitor-tooltip {
  opacity: 0;
  pointer-events: none;
  transition: all .26s cubic-bezier(.49, 1.6, .33, 1.02);
  z-index: 99;
}

.footer-visitor-counter:hover .visitor-tooltip,
.footer-visitor-counter:focus-within .visitor-tooltip,
.footer-visitor-counter:focus .visitor-tooltip {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -7px) scale(1.07);
}

@media (max-width:700px) {
  .visitor-tooltip {
    font-size: 11px;
  }
}

/* Download Modal Pop up fade in */
@keyframes download-fadein {
  0% {
    opacity: 0;
    transform: scale(.95) translateY(38px);
  }

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

.animate-downloadfadein {
  animation: download-fadein .54s cubic-bezier(.47, 1.6, .45, .93) both;
}

@keyframes fadein-modal-child {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

.animate-fadein {
  animation: fadein-modal-child .65s cubic-bezier(.58, 1.2, .41, 1.01) both;
}

.animate-fadein[style*="animation-delay"] {
  animation-delay: var(--fadein-delay, .11s) !important;
}

#download-app-modal.show {
  display: flex !important;
  opacity: 1;
}

#download-app-modal.hidden {
  display: none !important;
  opacity: 0;
}

#download-app-modal {
  transition: opacity .28s;
  background: rgba(0, 0, 0, 0.6);
  z-index: 110200;
  align-items: center;
  justify-content: center;
}

#download-app-modal .fa-exclamation-triangle {
  font-size: 2.8rem;
  filter: drop-shadow(0 0 13px #fde047cc);
  margin-bottom: 0.33em;
}

#download-app-modal .text-lg {
  font-size: 1.18rem;
}

@media (max-width:480px) {
  #download-app-modal .p-7 {
    padding: 1.44em 0.7em !important;
  }

  #download-app-modal .text-lg {
    font-size: 1rem;
  }
}

#download-win-btn {
  margin-top: 13px;
}

/* Glowing Download Button - CodePen Inspired */
.glow-btn {
  position: relative;
  display: inline-block;
  padding: 18px 34px 18px 34px;
  margin: 0;
  color: #03e9f4;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  overflow: hidden;
  border-radius: 9px;
  transition: background .31s, color .3s, box-shadow .32s;
}

.glow-btn span {
  position: absolute;
  display: block;
  pointer-events: none;
}

.glow-btn span:nth-child(1) {
  top: 0;
  left: 0;
  width: 100%;
  height: 2.3px;
  background: linear-gradient(90deg, transparent, #03e9f4);
  animation: animate1 1.04s linear infinite;
}

.glow-btn span:nth-child(2) {
  top: -100%;
  right: 0;
  width: 2.3px;
  height: 100%;
  background: linear-gradient(180deg, transparent, #03e9f4);
  animation: animate2 1.04s linear infinite;
  animation-delay: 0.26s;
}

.glow-btn span:nth-child(3) {
  bottom: 0;
  right: 0;
  width: 100%;
  height: 2.3px;
  background: linear-gradient(270deg, transparent, #03e9f4);
  animation: animate3 1.04s linear infinite;
  animation-delay: 0.52s;
}

.glow-btn span:nth-child(4) {
  bottom: -100%;
  left: 0;
  width: 2.3px;
  height: 100%;
  background: linear-gradient(360deg, transparent, #03e9f4);
  animation: animate4 1.04s linear infinite;
  animation-delay: 0.78s;
}

@keyframes animate1 {
  0% {
    left: -110%;
  }

  60%,
  100% {
    left: 110%;
  }
}

@keyframes animate2 {
  0% {
    top: -110%;
  }

  60%,
  100% {
    top: 110%;
  }
}

@keyframes animate3 {
  0% {
    right: -110%;
  }

  60%,
  100% {
    right: 110%;
  }
}

@keyframes animate4 {
  0% {
    bottom: -110%;
  }

  60%,
  100% {
    bottom: 110%;
  }
}

.glow-btn:hover,
.glow-btn:focus {
  background: #03e9f4;
  color: #050801;
  box-shadow: 0 0 7px #03e9f4, 0 0 30px #03e9f4, 0 0 40px #03e9f4, 0 0 160px #03e9f4;
  text-shadow: 0 2px 10px #03e9f488;
}

.glow-btn-cyan {
  filter: none;
  color: #03e9f4;
}

.glow-btn-pink {
  filter: hue-rotate(135deg);
  color: #c903f4;
}

.glow-btn:active {
  transform: scale(.98);
}

@media(max-width:520px) {
  .glow-btn {
    padding: 11px 11vw;
    font-size: 0.97rem;
  }
}

/* Layout wrapper for download button group */
.download-btn-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.close-modal-btn {
  z-index: 1050 !important;
  position: absolute !important;
  top: 1rem;
  right: 1rem;
  pointer-events: auto !important;
  cursor: pointer;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #bbb;
  transition: color .2s;
}

.close-modal-btn:hover,
.close-modal-btn:focus {
  color: #fff;
  outline: none;
}

/* === SKILL DETAIL PANEL NEON CARD === */
.neon-skill-card {
  background: rgba(21, 29, 47, 0.86);
  border: 1.95px solid rgba(6, 182, 212, 0.28);
  border-radius: 1.1rem;
  box-shadow: 0 8px 40px #06b6d430, 0 1px 12px #a855f753;
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  transition: box-shadow .35s cubic-bezier(.45, 1.49, .41, 1.04), transform .22s;
  padding: 2.2rem 2.25rem 1.8rem 2.25rem;
  margin-top: 0.6rem;
  margin-bottom: 1.1rem;
  animation: fadeInCard2025 .9s cubic-bezier(.46, 1.4, .39, 1.01) both;
}

@media(max-width:700px) {
  .neon-skill-card {
    padding: 1.15rem 0.8rem 1rem 0.8rem;
  }
}

/* BADGE STYLING: Level & Years */
.skill-badge,
.neon-skill-card .skill-badge {
  display: inline-block;
  font-size: .69rem;
  font-weight: 600;
  background: linear-gradient(90deg, #06b6d4 50%, #a855f7 100%);
  color: #fff;
  border-radius: 1rem;
  padding: 0.25rem 0.70rem;
  margin-right: 0.3rem;
  box-shadow: 0 0 7px #05d9e876;
  border: 1px solid rgba(6, 182, 212, .22);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 6px #818cf880;
}

.skill-years,
.neon-skill-card .skill-years {
  display: inline-block;
  background: linear-gradient(90deg, #d946ef 60%, #a855f7 100%);
  color: #fff;
  font-size: .65rem;
  font-weight: 500;
  border-radius: 1rem;
  padding: 0.23rem 0.6rem;
  margin-left: 0.4rem;
  border: 1px solid #a855f755;
  letter-spacing: 0.01em;
  box-shadow: 0 0 6px #a855f766, 0 1px 2px #fff1;
  text-shadow: 0 1px 7px #e6a2fd66;
}

.neon-skill-card .text-cyan-200 {
  color: #a1fefa !important;
  font-style: italic;
  letter-spacing: .01em;
  filter: drop-shadow(0 0 8px #06b6d4cc);
}

.neon-skill-card img {
  background: rgba(255, 255, 255, 0.07);
  border: 1.2px solid #06b6d440;
  border-radius: 0.5rem;
  box-shadow: 0 2px 18px #6ee7b740;
  transition: filter .28s, box-shadow .22s;
}

/* Skill stacks/tools (logo bar) */
.skill-stacks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.40rem 0.33rem;
  margin-top: 4px;
}

.skill-stack-badge {
  display: flex;
  align-items: center;
  gap: 0.22rem;
  padding: 0.23rem 0.7rem 0.23rem 0.35rem;
  background: linear-gradient(90deg, #0e7490 70%, #818cf8dd);
  color: #dffafd;
  font-size: .87em;
  border-radius: 999px;
  border: 1px solid #0ea5e9cc;
  box-shadow: 0 0 8px #06b6d422, 0 1px 4px #a855f711;
  transition: box-shadow .26s, filter .26s;
  cursor: pointer;
}

.skill-stack-badge img {
  width: 20px;
  height: 20px;
  margin-right: 4px;
  border-radius: 4px;
  box-shadow: 0 0 2px 1px #818cf888;
  background: #f1f9ff13;
  border: 1px solid #818cf833;
}

.skill-stack-badge:hover {
  box-shadow: 0 0 16px #a855f7cc, 0 4px 12px #06b6d488;
  filter: brightness(1.18) saturate(1.27);
}

/* Animasi fadein masuk panel skill */
#skill-detail-panel {
  transition: box-shadow 0.25s, opacity 0.3s, transform 0.3s;
}

#skill-detail-panel:not(.changing) .neon-skill-card {
  animation: fadeInCard2025 .81s cubic-bezier(.46, 1.4, .39, 1.01) both;
}

#skill-detail-panel.changing .neon-skill-card {
  opacity: 0.24;
  transform: translateY(20px) scale(.98);
  transition: opacity 0.23s, transform 0.27s;
}

/* === SKILL NAVIGATION PATCH 2025 === */
.skill-nav-card {
  display: flex;
  align-items: center;
  gap: 0.65em;
  background: rgba(6, 182, 212, .08);
  border-radius: 1.3em;
  margin-bottom: 0.6em;
  padding: 0.45em 0.9em 0.45em 0.7em;
  box-shadow: 0 2px 10px #06b6d414;
  border: 1px solid #818cf813;
  font-size: 1.05em;
  font-weight: 600;
}

.cat-icon-nav {
  width: 1.6em;
  height: 1.6em;
  border-radius: 7px;
  background: #11a1c712;
  filter: drop-shadow(0 0 7px #0891b2cc);
  margin-right: 0.1em;
}

.cat-label-nav {
  letter-spacing: 0.03em;
  color: #a5f3fc;
  font-family: 'Orbitron', 'Space Grotesk', monospace;
  text-shadow: 0 1px 6px #06b6d43b;
  font-weight: 600;
}

.skill-nav-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7em 0.9em;
  margin-left: 8px;
  margin-bottom: 1em;
}

.skill-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  padding: 0.20em;
  background: linear-gradient(125deg, rgba(21, 30, 47, 0.78) 70%, #06b6d41c 100%);
  border: 1.4px solid #818cf83a;
  border-radius: 50%;
  box-shadow: 0 2px 11px #06b6d414;
  color: #dbeafe;
  font-size: .91em;
  font-family: 'Space Grotesk', monospace;
  margin-bottom: 0.15em;
  margin-top: 0.15em;
  cursor: pointer;
  transition: box-shadow .24s, border .22s, background .19s, color .19s, transform .20s;
  opacity: 0;
  transform: translateY(16px);
  animation: skillNavFadeIn2025 .56s cubic-bezier(.46, 1.16, .39, 1.06) forwards;
}

.skill-nav-btn:nth-child(1) {
  animation-delay: .02s;
}

.skill-nav-btn:nth-child(2) {
  animation-delay: .12s;
}

.skill-nav-btn:nth-child(3) {
  animation-delay: .22s;
}

.skill-nav-btn:nth-child(4) {
  animation-delay: .32s;
}

.skill-nav-btn.active,
.skill-nav-btn:focus {
  background: linear-gradient(115deg, #06b6d4 58%, #a855f7 105%);
  border-color: #818cf8ea;
  color: #fff;
  box-shadow: 0 0 22px #06b6d4dd, 0 1px 12px #a855f7bb;
  outline: 0;
  transform: scale(1.09);
}

.skill-nav-btn:hover {
  background: linear-gradient(105deg, #818cf844 20%, #06b6d4 80%);
  color: #a5f3fc;
  border-color: #06b6d4cc;
  box-shadow: 0 0 14px #06b6d4cc;
  transform: scale(1.06) translateY(-1px);
}

.skill-nav-logo {
  width: 2.1em;
  height: 2.1em;
  margin-bottom: 2px;
  border-radius: 9px;
  background: #11a1c726;
  box-shadow: 0 0 8px #0891b215;
  border: 1px solid #0891b211;
}

@media (max-width:700px) {
  .skill-nav-btn-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.6em 0em;
    margin-right: -1em;
    padding-bottom: 1px;
  }

  .skill-nav-btn {
    width: 48px;
    height: 48px;
    font-size: .87em;
    margin-right: 0em;
  }
}

@keyframes skillNavFadeIn2025 {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(.98);
  }

  60% {
    opacity: 1;
    transform: translateY(-3px) scale(1.04);
  }

  100% {
    opacity: 1;
    transform: none;
  }
}

/* === REBUILT: Skills Modal V2 Styles === */
#skills-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000 !important;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#skills-modal-container {
  position: fixed;
  inset: 0;
  z-index: 100001 !important;
  pointer-events: none;
}

#skills-modal-content {
  box-shadow: 0 0 50px rgba(6, 182, 212, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  pointer-events: auto;
}

/* Custom Scrollbar for Modal */
.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(17, 24, 39, 0.5);
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(75, 85, 99, 0.5);
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(6, 182, 212, 0.5);
}

/* Animations */
.modal-open-animation {
  animation: modalScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-close-animation {
  animation: modalScaleOut 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalScaleIn {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }

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

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

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

/* === CHAT AI BUTTON COACHMARK ANIMATION === */
.chat-ai-float {
  position: fixed;
  /* Ensure it stays fixed as defined previously */
  z-index: 9999;
}

.chat-ai-float::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(rgba(0, 200, 255, 0.45),
      rgba(0, 150, 255, 0.05) 70%);
  animation: coachPulse 2.4s ease-in-out infinite;
  opacity: 0.9;
  pointer-events: none;
  z-index: -1;
  /* Place behind the button */
}

@keyframes coachPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.55;
  }

  50% {
    transform: scale(1.15);
    opacity: 0.9;
  }

  100% {}
}

@media (max-width: 450px) {
  .chat-ai-float::after {
    inset: -8px;
  }
}

@media (max-width: 480px) {
  .chat-ai-float {
    width: 56px !important;
    height: 56px !important;
    bottom: 16px !important;
    right: 16px !important;
    padding: 0 !important;
  }

  .chat-ai-float svg {
    width: 28px;
    height: 28px;
  }

  .chat-ai-float::after {
    inset: -8px;
  }

  /* TASK 2C: Typography & Spacing */
  #chatContainer .chat-body {
    font-size: 0.9rem;
    padding: 12px;
  }

  #chatContainer .chat-body p,
  #chatContainer .chat-body label,
  #chatContainer .chat-body span {
    font-size: 0.9rem;
  }

  #chatContainer .chat-header {
    padding: 12px 16px;
    font-size: 1rem;
  }

  #chatContainer .chat-footer {
    padding: 10px 12px;
  }

  #chatContainer .chat-input {
    height: 44px;
    font-size: 0.95rem;
  }

  /* TASK 2D: Safe Area & Scroll */
  #chatContainer {
    padding-bottom: env(safe-area-inset-bottom, 12px);
    overflow: hidden;
    /* Prevent horizontal overflow */
  }

  .chat-body {
    -webkit-overflow-scrolling: touch;
    /* Smooth scroll on iOS */
    scroll-behavior: smooth;
  }
}

/* Prevent body scroll when modal is open (if class is toggled via JS) */
body.body-modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* TASK 3A: Chat Modal Animations */
@keyframes chatModalEnter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }

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

@keyframes chatModalExit {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
}

/* TASK 3B: Animation Classes */
.chat-ai-modal-enter {
  animation: chatModalEnter 0.45s ease-out forwards;
}

.chat-ai-modal-exit {
  animation: chatModalExit 0.35s ease-in forwards;
}