/* CSS Variables & Reset */
:root {
  --bg: #0a0a0a;
  --bg-light: #121212;
  --bg-lighter: #1a1a1a;
  --text: #ffffff;
  --text-secondary: #a0a0a0;
  /* Purple/Green accents */
  --accent-purple: #9b5cff;
  --accent-green: #00ff88;
  --font-main: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Add shader container styles */
#shader-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background-color: #0a0a0a;
}

/* Overlay to darken the shader so text remains readable */
#shader-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.15); /* Reduced from 0.75 to 0.15 for max visibility */
  z-index: 1;
}

#shader-background canvas {
  position: relative;
  z-index: 0;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
  scroll-margin-top: 80px;
}

h2 {
  font-size: clamp(32px, 5vw, 42px);
  margin-bottom: 40px;
  font-weight: 700;
  letter-spacing: -1px;
  text-align: center;
}

.accent {
  color: var(--accent-purple);
}

.green-text {
  color: var(--accent-green);
}

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-green));
  z-index: 9999;
  box-shadow: 0 0 15px var(--accent-green), 0 0 5px var(--accent-purple);
  transition: width 0.1s ease-out;
  border-bottom-right-radius: 4px;
  border-top-right-radius: 4px;
}

/* Navbar (Glassmorphism & Floating) */
/* ========================================================
   NAVBAR (Responsive Capsule & Mobile Drawer)
   ======================================================== */
.navbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  max-width: 860px;
  background: rgba(14, 16, 22, 0.75);
  border: 1px solid transparent;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  border-radius: 999px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(155, 92, 255, 0.08);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--glow-angle), transparent 50%, var(--accent-purple) 80%, var(--accent-green) 100%);
  -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;
  animation: glow-spin 4s linear infinite;
  pointer-events: none;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 18px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: -0.2px;
  padding-left: 4px;
}

.brand-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-green);
  background: rgba(0, 255, 136, 0.12);
  border: 1px solid rgba(0, 255, 136, 0.3);
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  width: 38px;
  height: 38px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.hamburger-bar {
  width: 18px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.25s ease;
  font-size: 14px;
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-purple);
  box-shadow: 0 0 8px var(--accent-green);
  transition: width 0.25s ease;
  border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
}

.nav-cta-link {
  color: #fff !important;
  font-weight: 600 !important;
}

@media (max-width: 768px) {
  .navbar {
    top: 12px;
    left: 12px;
    right: 12px;
    transform: none;
    width: auto;
    max-width: none;
    border-radius: 16px;
    background: rgba(14, 16, 22, 0.92);
  }

  .nav-inner {
    padding: 10px 14px;
    flex-wrap: wrap;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-menu-btn.is-active .bar-1 {
    transform: translateY(6px) rotate(45deg);
  }

  .mobile-menu-btn.is-active .bar-2 {
    opacity: 0;
  }

  .mobile-menu-btn.is-active .bar-3 {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links.is-open {
    display: flex;
    animation: fadeIn 0.25s ease;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 15px;
    color: #cbd5e1;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
  }

  .nav-links a.nav-cta-link {
    background: var(--accent-green);
    color: #0a0a0a !important;
    font-weight: 700 !important;
    text-align: center;
    margin-top: 6px;
  }
}

/* Hero */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 140px;
  padding-bottom: 40px;
}

.hero-inner {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  width: 100%;
}

@media (max-width: 800px) {
  .hero {
    padding-top: 100px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }

  .hero-photo {
    max-width: 230px !important;
  }

  .hero-text {
    text-align: center !important;
  }

  .hero h1 {
    justify-content: center;
    font-size: clamp(36px, 9vw, 56px) !important;
  }

  .hero-actions {
    justify-content: center;
    width: 100%;
  }

  .hero-actions .btn-project,
  .hero-actions .btn-whatsapp {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-photo {
    max-width: 190px !important;
  }
}

.hero-photo {
  width: 100%;
  max-width: 650px;
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 8px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  border: 4px solid transparent;
  background-image: 
    linear-gradient(var(--bg-dark), var(--bg-dark)),
    conic-gradient(from var(--glow-angle), transparent 50%, var(--accent-purple) 80%, var(--accent-green) 100%);
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  animation: glow-spin 4s linear infinite;
}

.hero-photo::after {
  content: '';
  position: absolute;
  inset: -4px; 
  border-radius: 50%;
  background: conic-gradient(from var(--glow-angle), transparent 50%, var(--accent-purple) 80%, var(--accent-green) 100%);
  filter: blur(30px);
  z-index: -1;
  opacity: 0.6;
  animation: glow-spin 4s linear infinite;
  pointer-events: none;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.hero-text {
  text-align: left;
}

.hero h1 {
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 12px;
  line-height: 1.1;
}

/* Social Icons Dock */
.social-dock {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 16px;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.15);
  box-shadow: 0 0 20px rgba(155, 92, 255, 0.3);
}

.social-icon::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent-purple);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.social-icon:hover::after {
  width: 14px;
}

.social-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #fff;
  color: #0a0a0a;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.social-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #fff;
}

.social-icon:hover .social-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Waving animation */
.wave {
  animation: wave-animation 2.5s infinite;
  transform-origin: 70% 70%;
  display: inline-block;
}

@keyframes wave-animation {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
  60% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

/* Typing Effect */
.typing-container {
  font-size: clamp(20px, 3vw, 24px);
  color: var(--text-secondary);
  height: 35px;
}

.typing-text {
  border-right: 2px solid var(--accent-green);
  padding-right: 4px;
  animation: blink 0.75s step-end infinite;
}

@keyframes blink {
  50% { border-color: transparent; }
}

/* About */
.about p {
  max-width: 700px;
  margin: 0 auto;
  font-size: clamp(18px, 2.5vw, 22px);
  text-align: center;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ========================================================
   WHAT I DO (Services Section)
   ======================================================== */
.services-section {
  position: relative;
  padding: 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 580px;
  margin: -24px auto 0 auto;
  line-height: 1.6;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: stretch;
}

/* Service Card Container */
.service-card {
  background: linear-gradient(180deg, #13171f 0%, #0d0f12 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease,
              box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

/* Card Top bar */
.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

/* Icon wrap */
.service-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.service-card:hover .service-icon-wrap {
  transform: scale(1.06);
}

.icon-green {
  background: rgba(0, 255, 136, 0.08);
  color: var(--accent-green);
  border: 1px solid rgba(0, 255, 136, 0.22);
}

.icon-purple {
  background: rgba(155, 92, 255, 0.08);
  color: var(--accent-purple);
  border: 1px solid rgba(155, 92, 255, 0.22);
}

.icon-cyan {
  background: rgba(0, 242, 254, 0.08);
  color: #00f2fe;
  border: 1px solid rgba(0, 242, 254, 0.22);
}

.icon-music {
  background: rgba(244, 114, 182, 0.08);
  color: #f472b6;
  border: 1px solid rgba(244, 114, 182, 0.22);
}

/* Badges / Tags */
.service-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.tag-green {
  background: rgba(0, 255, 136, 0.12);
  color: var(--accent-green);
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.tag-purple {
  background: rgba(155, 92, 255, 0.12);
  color: var(--accent-purple);
  border: 1px solid rgba(155, 92, 255, 0.25);
}

.tag-cyan {
  background: rgba(0, 242, 254, 0.12);
  color: #00f2fe;
  border: 1px solid rgba(0, 242, 254, 0.25);
}

.tag-music {
  background: rgba(244, 114, 182, 0.12);
  color: #f472b6;
  border: 1px solid rgba(244, 114, 182, 0.25);
}

/* Content */
.service-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.service-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 20px;
  min-height: 42px;
}

/* Highlights */
.service-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #cbd5e1;
}

.service-highlights .check-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 2px;
}

[data-service="web-dev"] .check-icon { color: var(--accent-green); }
[data-service="discord-bot"] .check-icon { color: var(--accent-purple); }
[data-service="ai-creative"] .check-icon { color: #00f2fe; }
[data-service="music-production"] .check-icon { color: #f472b6; }

/* Pricing row */
.service-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-pricing {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.price-label {
  font-size: 11px;
  color: #8892b0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  flex-shrink: 0;
}

.price-value {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.1px;
  text-align: right;
}

.text-green { color: var(--accent-green); }
.text-purple { color: var(--accent-purple); }
.text-cyan { color: #00f2fe; }
.text-music { color: #f472b6; }

/* CTA Buttons */
.btn-service {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transition: all 0.2s ease;
}

.btn-service:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-service svg {
  transition: transform 0.2s ease;
}

.btn-service:hover svg {
  transform: translateX(3px);
}

/* Primary Button for Featured Service (Full Stack) */
.btn-service-primary {
  background: var(--accent-green);
  border: 1px solid var(--accent-green);
  color: #0a0a0a;
}

.btn-service-primary:hover {
  background: #1aff9b;
  border-color: #1aff9b;
  color: #0a0a0a;
  box-shadow: 0 0 16px rgba(0, 255, 136, 0.35);
  transform: translateY(-2px);
}

/* Featured Card Distinction (Web Dev) */
.service-card.featured {
  border-color: rgba(0, 255, 136, 0.28);
  box-shadow: 0 4px 24px rgba(0, 255, 136, 0.08);
}

.service-card.featured:hover {
  border-color: rgba(0, 255, 136, 0.55);
  box-shadow: 0 8px 32px rgba(0, 255, 136, 0.16);
}

/* Individual card hover effects */
.service-card[data-service="discord-bot"]:hover {
  border-color: rgba(155, 92, 255, 0.45);
  box-shadow: 0 8px 30px rgba(155, 92, 255, 0.14);
}

.service-card[data-service="ai-creative"]:hover {
  border-color: rgba(0, 242, 254, 0.45);
  box-shadow: 0 8px 30px rgba(0, 242, 254, 0.14);
}

.service-card[data-service="music-production"]:hover {
  border-color: rgba(244, 114, 182, 0.45);
  box-shadow: 0 8px 30px rgba(244, 114, 182, 0.14);
}

/* Accessible focus states */
.btn-service:focus-visible,
.service-card:focus-within {
  outline: 2px solid var(--accent-green);
  outline-offset: 2px;
}

/* Responsive Breakpoints for Services */
@media (max-width: 1080px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card {
    padding: 24px 18px;
  }

  .service-desc {
    min-height: auto;
  }
}

/* ========================================================
   NEON SKILL TREE SECTION
   ======================================================== */
.skill-tree-section {
  position: relative;
  overflow: visible;
  padding-bottom: 60px;
}

.skill-tree-subtitle {
  text-align: center;
  color: var(--text-secondary, #94a3b8);
  font-size: 15px;
  max-width: 600px;
  margin: -10px auto 35px;
  line-height: 1.6;
}

.skill-tree-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tree-ambient-backdrop {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 650px;
  background: radial-gradient(circle, rgba(155, 92, 255, 0.12) 0%, rgba(0, 242, 254, 0.08) 40%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.neon-tree-svg {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.8));
  overflow: visible !important;
}

/* Master Central Skills Core */
.master-skills-node {
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
}

.master-skills-node:hover {
  transform: translate(600px, 140px) scale(1.06);
  filter: drop-shadow(0 0 25px rgba(0, 242, 254, 0.8)) drop-shadow(0 0 40px rgba(155, 92, 255, 0.7));
}

/* Individual Hanging Skill Nodes (Orbs / Fruits) */
.skill-node {
  cursor: pointer;
  outline: none;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s ease;
}

.skill-node:hover,
.skill-node:focus-visible {
  filter: drop-shadow(0 0 16px rgba(0, 242, 254, 0.85)) drop-shadow(0 0 30px rgba(155, 92, 255, 0.75));
}

.skill-node .orb-ring {
  transition: stroke-width 0.25s, stroke 0.25s;
}

.skill-node:hover .orb-ring,
.skill-node:focus-visible .orb-ring {
  stroke-width: 4;
}

.skill-node .orb-aura {
  transition: opacity 0.3s, r 0.3s;
}

.skill-node:hover .orb-aura {
  opacity: 0.55;
  r: 48;
}

.skill-node .label-bg {
  fill: rgba(11, 15, 25, 0.88);
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1.2;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: fill 0.3s, stroke 0.3s, filter 0.3s;
}

.skill-node:hover .label-bg,
.skill-node:focus-visible .label-bg {
  fill: rgba(22, 14, 46, 0.96);
  stroke: #00f2fe;
  filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.5));
}

.skill-node .label-text {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  font-weight: 600;
  fill: #ffffff;
  letter-spacing: 0.3px;
  pointer-events: none;
  user-select: none;
}

/* Subtle organic sways on leaves and floating motes */
@keyframes leafSway {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(3deg); }
}

@keyframes particleFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.7; }
  50% { transform: translateY(-7px) scale(1.2); opacity: 1; }
}

.tree-leaves path {
  animation: leafSway 6s ease-in-out infinite;
  transform-origin: center;
}

.tree-particles circle {
  animation: particleFloat 4s ease-in-out infinite;
}

/* Skill Detail Panel (Interactive Popup Card) */
.skill-detail-panel {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  max-width: 400px;
  width: calc(100% - 40px);
  background: rgba(13, 16, 28, 0.94);
  border: 1px solid rgba(155, 92, 255, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(155, 92, 255, 0.3);
  transform: translateY(120px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-detail-panel.active {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.skill-panel-inner {
  padding: 24px;
  position: relative;
}

.skill-panel-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.skill-panel-close:hover {
  background: rgba(236, 72, 153, 0.5);
  transform: scale(1.1);
}

.skill-panel-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: rgba(155, 92, 255, 0.2);
  color: #00f2fe;
  border: 1px solid rgba(0, 242, 254, 0.35);
  margin-bottom: 12px;
}

.skill-panel-title {
  font-size: 21px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.skill-panel-desc {
  font-size: 14px;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.6;
  margin-bottom: 16px;
}

.skill-panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.skill-tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  color: #e2e8f0;
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  .tree-leaves path,
  .tree-particles circle {
    animation: none !important;
  }
  .skill-node,
  .master-skills-node,
  .service-card,
  .btn-service,
  .service-icon-wrap {
    transition: none !important;
    transform: none !important;
  }
}

/* Tablet & Mobile Responsiveness */
@media (max-width: 900px) {
  .neon-tree-svg {
    min-width: 750px;
  }
  .skill-tree-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 25px;
  }
}

@media (max-width: 600px) {
  .skill-detail-panel {
    bottom: 16px;
    right: 16px;
    left: 16px;
    width: auto;
    border-radius: 14px;
  }
  .skill-panel-inner {
    padding: 18px;
  }
  .skill-panel-title {
    font-size: 18px;
  }
}

/* Projects (Tabs) */
.tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.tab-btn {
  color: var(--text-secondary);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: transparent;
}

.tab-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg-light);
  z-index: -2;
  transition: all 0.3s;
  border-radius: inherit;
}

.tab-btn::after {
  content: "";
  position: absolute;
  bottom: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: var(--accent-purple);
  z-index: -1;
  transition: all 0.5s ease-out;
  transform: translate(-100%, 100%) rotate(-40deg);
}

.tab-btn:hover {
  color: #fff;
  border-color: var(--accent-purple);
  transform: translateY(-2px);
}

.tab-btn:hover::after {
  transform: translate(0, 0) rotate(-40deg);
}

.tab-btn.active {
  color: #fff;
  border-color: transparent;
}

.tab-btn.active::before {
  background: var(--accent-purple);
}

/* Sub-category filter buttons inside Websites Tab */
.website-category-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.category-btn {
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}

.category-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg-light);
  z-index: -2;
  transition: all 0.3s;
  border-radius: inherit;
}

.category-btn::after {
  content: "";
  position: absolute;
  bottom: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: var(--accent-purple);
  z-index: -1;
  transition: all 0.5s ease-out;
  transform: translate(-100%, 100%) rotate(-40deg);
}

.category-btn:hover {
  color: #fff;
  border-color: var(--accent-purple);
  transform: translateY(-2px);
}

.category-btn:hover::after {
  transform: translate(0, 0) rotate(-40deg);
}

.category-btn.active {
  color: #fff;
  border-color: transparent;
}

.category-btn.active::before {
  background: var(--accent-purple);
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--bg-light);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-thumb {
  height: 200px;
  background: var(--bg-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  position: relative;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-info {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-info h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.project-info p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 16px;
}

.badge {
  background: rgba(0, 255, 136, 0.1);
  color: var(--accent-green);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  margin-left: auto;
}

.badge + .badge {
  margin-left: 0;
}

.badge-purple {
  background: rgba(155, 92, 255, 0.1);
  color: var(--accent-purple);
}

.badge-offline {
  background: rgba(255, 60, 60, 0.1);
  color: #ff4444;
}

.badge-maintenance {
  background: rgba(255, 200, 50, 0.1);
  color: #ffc832;
}

.badge-online {
  background: rgba(0, 255, 136, 0.1);
  color: var(--accent-green);
}

.badge-public {
  background: rgba(80, 160, 255, 0.1);
  color: #50a0ff;
}

.badge-private {
  background: rgba(255, 160, 50, 0.1);
  color: #ffa032;
}

.btn-project {
  margin-top: auto;
  display: inline-block;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: transparent;
  transition: all 0.3s;
}

.btn-project::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.05);
  z-index: -2;
  transition: all 0.3s;
  border-radius: inherit;
}

.btn-project::after {
  content: "";
  position: absolute;
  bottom: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: var(--accent-purple);
  z-index: -1;
  transition: all 0.5s ease-out;
  transform: translate(-100%, 100%) rotate(-40deg);
}

.btn-project:hover {
  transform: translateY(-2px);
  border-color: var(--accent-purple);
  color: #fff;
}

.btn-project:hover::after {
  transform: translate(0, 0) rotate(-40deg);
}

.btn-playstore {
  margin-top: auto;
  display: inline-block;
  color: var(--accent-green);
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  border: 1px solid rgba(0, 255, 136, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: rgba(0, 255, 136, 0.05);
  transition: all 0.3s;
}

.btn-playstore::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: -2;
  transition: all 0.3s;
  border-radius: inherit;
}

.btn-playstore::after {
  content: "";
  position: absolute;
  bottom: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: var(--accent-green);
  z-index: -1;
  transition: all 0.5s ease-out;
  transform: translate(-100%, 100%) rotate(-40deg);
}

.btn-playstore:hover {
  transform: translateY(-2px);
  border-color: var(--accent-green);
  color: var(--bg); /* Dark text on green background */
}

.btn-playstore:hover::after {
  transform: translate(0, 0) rotate(-40deg);
}

/* Contact */
.contact-container {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-light);
  padding: 50px 30px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #000;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  padding: 18px 36px;
  border-radius: 12px;
  margin: 30px 0 16px;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: transparent;
  transition: transform 0.2s, color 0.2s;
}

.btn-whatsapp::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #25D366;
  z-index: -2;
  transition: all 0.3s;
  border-radius: inherit;
}

.btn-whatsapp::after {
  content: "";
  position: absolute;
  bottom: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: #0f8a5c; /* deep green for sweeping box */
  z-index: -1;
  transition: all 0.5s ease-out;
  transform: translate(-100%, 100%) rotate(-40deg);
}

.btn-whatsapp:hover {
  transform: scale(1.02);
  color: #fff;
}

.btn-whatsapp:hover::after {
  transform: translate(0, 0) rotate(-40deg);
}

.reply-text {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
}

/* Contact Form */
.contact-form-wrapper {
  margin-top: 40px;
  text-align: left;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group.row {
  display: flex;
  gap: 20px;
}

.input-wrap {
  flex: 1;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 16px 20px;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 15px rgba(155, 92, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.contact-form textarea {
  resize: vertical;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 5px;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent-purple);
  cursor: pointer;
  flex-shrink: 0;
}

.form-checkbox label {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  cursor: pointer;
}

.btn-submit {
  width: 100%;
  padding: 16px !important;
  font-size: 16px !important;
  cursor: pointer;
  border-radius: 8px;
  margin-top: 10px;
}

.policy-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  margin-top: 5px;
}

@media (max-width: 600px) {
  .form-group.row {
    flex-direction: column;
    gap: 20px;
  }
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 60px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
}

/* --- Glowing Shadow Border Animations --- */
@property --glow-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes glow-spin {
  from { --glow-angle: 0deg; }
  to { --glow-angle: 360deg; }
}

.project-card, .contact-container {
  position: relative;
  z-index: 1;
}

.project-card:hover, .contact-container:hover {
  transform: translateY(-5px);
  border: 1.5px solid transparent !important;
  background-image: 
    linear-gradient(var(--bg-light), var(--bg-light)),
    conic-gradient(from var(--glow-angle), transparent 50%, var(--accent-purple) 80%, var(--accent-green) 100%) !important;
  background-origin: padding-box, border-box !important;
  background-clip: padding-box, border-box !important;
  animation: glow-spin 4s linear infinite !important;
  box-shadow: 0 10px 30px -10px rgba(155, 92, 255, 0.45);
}

/* Sub-filters inside Websites Tab */
.website-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.website-filter-pill {
  background: var(--bg-lighter);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.website-filter-pill:hover {
  color: #fff;
  border-color: rgba(155, 92, 255, 0.4);
}

.website-filter-pill.active {
  background: var(--accent-purple);
  color: #fff;
  border-color: var(--accent-purple);
}

.project-card.card-enter {
  animation: cardEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cardEnter {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.project-card.is-hidden {
  display: none !important;
}
/* ========================================================
   SKILLS MOBILE HINT & CONTAINER FIXES
   ======================================================== */
.mobile-tree-hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  color: #cbd5e1;
  background: rgba(155, 92, 255, 0.12);
  border: 1px solid rgba(155, 92, 255, 0.25);
  padding: 8px 16px;
  border-radius: 999px;
  margin: -10px auto 20px auto;
  text-align: center;
  max-width: 92%;
}

@media (max-width: 900px) {
  .mobile-tree-hint {
    display: inline-flex;
  }
  .skill-tree-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 0 16px 20px 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(155, 92, 255, 0.4) transparent;
  }
  .skill-tree-wrapper::-webkit-scrollbar {
    height: 6px;
  }
  .skill-tree-wrapper::-webkit-scrollbar-thumb {
    background: rgba(155, 92, 255, 0.4);
    border-radius: 999px;
  }
  .tree-ambient-backdrop {
    max-width: 100vw;
    left: 0;
    transform: none;
  }
}

/* ========================================================
   FAQ SECTION (AEO, GEO & Client Conversion)
   ======================================================== */
.faq-section {
  position: relative;
  padding: 60px 0;
}

.faq-grid {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: linear-gradient(180deg, #13171f 0%, #0d0f12 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item:hover,
.faq-item[open] {
  border-color: rgba(0, 255, 136, 0.32);
  box-shadow: 0 4px 20px rgba(0, 255, 136, 0.06);
}

.faq-question {
  list-style: none;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  color: var(--accent-green);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px 20px 24px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  margin-top: 4px;
  padding-top: 14px;
}

.faq-answer strong {
  color: #ffffff;
}

@media (max-width: 640px) {
  .faq-question {
    padding: 16px 18px;
    font-size: 15px;
  }
  .faq-answer {
    padding: 12px 18px 16px 18px;
    font-size: 14px;
  }
}

/* ========================================================
   MOBILE FORM & TOUCH ACCESSIBILITY
   ======================================================== */
input[type="text"],
input[type="email"],
textarea {
  font-size: 16px !important; /* Prevents auto-zoom in iOS Safari */
}

@media (max-width: 640px) {
  .contact-container {
    padding: 28px 18px !important;
  }
  .form-group.row {
    flex-direction: column !important;
    gap: 12px !important;
  }
  .btn-submit {
    padding: 14px 20px !important;
    font-size: 16px !important;
  }
  .social-dock {
    flex-wrap: wrap;
    justify-content: center;
  }
}
