:root {
  --bg-primary: #030712;
  --bg-secondary: rgba(15, 23, 42, 0.7);
  --bg-tertiary: rgba(30, 41, 59, 0.5);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-primary: #06b6d4;
  --accent-secondary: #3b82f6;
  --accent-tertiary: #f59e0b;
  --accent-gradient: linear-gradient(135deg, #06b6d4, #3b82f6, #8b5cf6);
  --card-bg: rgba(15, 23, 42, 0.6);
  --card-border: rgba(6, 182, 212, 0.15);
  --glow-primary: 0 0 40px rgba(6, 182, 212, 0.25);
  --transition-speed: 0.4s;
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: rgba(255, 255, 255, 0.8);
  --bg-tertiary: rgba(241, 245, 249, 0.9);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --card-bg: rgba(255, 255, 255, 0.9);
  --card-border: rgba(6, 182, 212, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  transition:
    background-color var(--transition-speed) ease,
    color var(--transition-speed) ease;
  cursor: none;
}

@media (max-width: 768px) {
  body {
    cursor: auto;
  }
}

::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--accent-gradient);
  border-radius: 4px;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition:
    background 0.3s;
  mix-blend-mode: difference;
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(6, 182, 212, 0.5);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99997;
  transform: translate(-50%, -50%);
  transition:
    width 0.3s,
    height 0.3s,
    border-color 0.3s;
}

.cursor-dot.hovering {
  transform: translate(-50%, -50%) scale(2.5);
  background: var(--accent-tertiary);
}

.cursor-ring.hovering {
  width: 60px;
  height: 60px;
  border-color: var(--accent-tertiary);
}

@media (max-width: 768px) {

  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

.trail-particle {
  position: fixed;
  pointer-events: none;
  z-index: 99996;
  border-radius: 50%;
  opacity: 0;
  animation: trail-fade 0.8s ease forwards;
}

@keyframes trail-fade {
  0% {
    opacity: 0.8;
    transform: scale(1);
  }

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

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent-gradient);
  z-index: 10001;
  transition: width 0.1s linear;
  box-shadow:
    0 0 10px var(--accent-primary),
    0 0 20px var(--accent-secondary);
}

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

[data-theme="light"] .noise-overlay {
  opacity: 0.015;
}

.matrix-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.06;
}

[data-theme="light"] .matrix-canvas {
  opacity: 0.02;
}

.bg-effects {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent-primary);
  border-radius: 50%;
  opacity: 0.4;
  animation: float-particle 25s infinite linear;
}

@keyframes float-particle {
  0% {
    transform: translateY(100vh) rotate(0);
    opacity: 0;
  }

  10% {
    opacity: 0.4;
  }

  90% {
    opacity: 0.4;
  }

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

.aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.aurora-beam {
  position: absolute;
  width: 200%;
  height: 60%;
  opacity: 0.07;
  filter: blur(100px);
  animation: aurora-move 15s ease-in-out infinite;
}

.aurora-beam:nth-child(1) {
  background: linear-gradient(90deg,
      transparent,
      #06b6d4,
      #3b82f6,
      transparent);
  top: -20%;
  left: -50%;
}

.aurora-beam:nth-child(2) {
  background: linear-gradient(90deg,
      transparent,
      #8b5cf6,
      #ec4899,
      transparent);
  top: 30%;
  left: -30%;
  animation-delay: -5s;
  animation-duration: 20s;
}

.aurora-beam:nth-child(3) {
  background: linear-gradient(90deg,
      transparent,
      #f59e0b,
      #ef4444,
      transparent);
  top: 60%;
  left: -70%;
  animation-delay: -10s;
  animation-duration: 18s;
}

@keyframes aurora-move {

  0%,
  100% {
    transform: translateX(-10%) rotate(-5deg) scaleY(1);
  }

  33% {
    transform: translateX(20%) rotate(3deg) scaleY(1.3);
  }

  66% {
    transform: translateX(-15%) rotate(-2deg) scaleY(0.8);
  }
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  animation: float-shape 30s ease-in-out infinite;
}

.shape-1 {
  width: 600px;
  height: 600px;
  background: var(--accent-primary);
  top: -10%;
  left: -10%;
}

.shape-2 {
  width: 500px;
  height: 500px;
  background: var(--accent-secondary);
  top: 40%;
  right: -15%;
  animation-delay: -10s;
}

.shape-3 {
  width: 450px;
  height: 450px;
  background: var(--accent-tertiary);
  bottom: -10%;
  left: 20%;
  animation-delay: -20s;
}

@keyframes float-shape {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(80px, -80px) scale(1.1);
  }

  50% {
    transform: translate(-50px, 50px) scale(0.9);
  }

  75% {
    transform: translate(50px, 80px) scale(1.05);
  }
}

.network-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.15;
}

[data-theme="light"] .network-canvas {
  opacity: 0.08;
}

.header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 98%;
  max-width: 1400px;
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.header.scrolled {
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  top: 15px;
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .header {
  background: rgba(248, 250, 252, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .header.scrolled {
  background: rgba(248, 250, 252, 0.8);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

@media (max-width: 900px) {
  .navbar-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(3, 7, 18, 0.97);
    backdrop-filter: blur(30px);
    flex-direction: column;
    padding: 20px;
    gap: 5px;
    transform: translateY(-150%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid var(--card-border);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }

  .navbar-links.active {
    transform: translateY(0);
    opacity: 1;
  }

  [data-theme="light"] .navbar-links {
    background: rgba(248, 250, 252, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
}

[data-theme="light"] .hamburger span {
  background: var(--text-primary);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  transition: color var(--transition-speed);
}

.logo-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--accent-gradient);
  padding: 2px;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-box:hover {
  transform: rotate(360deg) scale(1.1);
  box-shadow: var(--glow-primary);
}

.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.logo-name {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 400;
}

.logo-name strong {
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.navbar-links {
  display: flex;
  gap: 4px;
}

.nav-link {
  padding: 10px 14px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-primary);
  background: rgba(6, 182, 212, 0.1);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: calc(100% - 28px);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.toggles-wrapper {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 30px;
}

.theme-toggle,
.music-toggle,
.terminal-toggle,
.palette-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.theme-toggle:hover,
.music-toggle:hover,
.terminal-toggle:hover,
.palette-toggle:hover {
  background: var(--accent-gradient);
  color: #fff;
  transform: scale(1.05);
}

.music-toggle.playing {
  color: var(--accent-primary);
  animation: pulse 1s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@media (max-width: 1200px) {
  .navbar-links {
    gap: 2px;
  }

  .nav-link {
    padding: 8px 10px;
    font-size: 0.8rem;
  }
}

@media (max-width: 1024px) {
  .header {
    padding: 12px 25px;
  }
}

@media (max-width: 900px) {
  .header {
    padding: 10px 20px;
  }

  .hamburger {
    display: flex;
  }

  .toggles-wrapper {
    background: transparent;
    border: none;
    padding: 0;
    gap: 8px;
  }

  .theme-toggle,
  .music-toggle,
  .terminal-toggle,
  .palette-toggle {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
  }
}

@media (max-width: 480px) {
  .header {
    padding: 10px 15px;
  }

  .theme-toggle,
  .music-toggle,
  .terminal-toggle,
  .palette-toggle {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  section {
    padding: 60px 0;
  }

  .section-wrap {
    padding: 0 16px;
  }
}

section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.section-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-label {
  font-family: "Space Mono", monospace;
  font-size: 0.85rem;
  color: var(--accent-primary);
  margin-bottom: 10px;
  letter-spacing: 2px;
  display: inline-block;
}

.section-title {
  font-family: "Poppins", sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
  position: relative;
}

.grad-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.grad-text2 {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-sub {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 50px;
  max-width: 600px;
}

.wave-divider {
  position: relative;
  height: 80px;
  overflow: hidden;
  z-index: 1;
}

.wave-divider svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.wave-divider .wave-path {
  fill: var(--bg-primary);
  transition: fill 0.4s;
}

.wave-divider .wave-path-2 {
  fill: var(--accent-primary);
  opacity: 0.05;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--accent-gradient);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 14px;
  transition: all 0.3s ease;
  border: none;
  cursor: none;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}

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

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: transparent;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  border-radius: 14px;
  border: 2px solid var(--card-border);
  transition: all 0.3s ease;
  cursor: none;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-3px);
}

.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple-anim 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-anim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

@media (max-width: 768px) {

  .btn-primary,
  .btn-outline {
    cursor: pointer;
  }
}

.glitch-wrapper {
  position: relative;
  display: inline-block;
}

.glitch-text {
  position: relative;
  animation: glitch-skew 4s infinite linear alternate-reverse;
}

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

.glitch-text::before {
  color: #ff00ff;
  animation: glitch-effect 3s infinite linear alternate-reverse;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
  transform: translate(-3px, -2px);
  opacity: 0.7;
}

.glitch-text::after {
  color: #00ffff;
  animation: glitch-effect 2s infinite linear alternate-reverse;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
  transform: translate(3px, 2px);
  opacity: 0.7;
}

@keyframes glitch-effect {
  0% {
    transform: translate(0);
  }

  20% {
    transform: translate(-3px, 3px);
  }

  40% {
    transform: translate(-3px, -3px);
  }

  60% {
    transform: translate(3px, 3px);
  }

  80% {
    transform: translate(3px, -3px);
  }

  100% {
    transform: translate(0);
  }
}

@keyframes glitch-skew {
  0% {
    transform: skew(0);
  }

  20% {
    transform: skew(-0.5deg);
  }

  40% {
    transform: skew(0.5deg);
  }

  60% {
    transform: skew(-0.3deg);
  }

  80% {
    transform: skew(0.3deg);
  }

  100% {
    transform: skew(0);
  }
}

.glitch-wrapper:hover .glitch-text::before {
  animation: glitch-hover 0.3s linear;
}

.glitch-wrapper:hover .glitch-text::after {
  animation: glitch-hover 0.3s linear reverse;
}

@keyframes glitch-hover {
  0% {
    transform: translate(0);
  }

  25% {
    transform: translate(-5px, 5px);
  }

  50% {
    transform: translate(5px, -5px);
  }

  75% {
    transform: translate(-3px, -3px);
  }

  100% {
    transform: translate(0);
  }
}

@media (max-width: 768px) {

  .glitch-text::before,
  .glitch-text::after {
    display: none;
  }
}

.gradient-border {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.gradient-border::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: 20px;
  background: conic-gradient(from var(--border-angle, 0deg),
      transparent 40%,
      var(--accent-primary),
      var(--accent-secondary),
      var(--accent-tertiary),
      transparent 60%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: border-rotate 4s linear infinite;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gradient-border:hover::before {
  opacity: 1;
}

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

@property --border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(6, 182, 212, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(60px, 60px);
  }
}

/* Global Glass Orbs */
.global-glass-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.9;
  animation: orb-float 20s infinite alternate ease-in-out;
  will-change: transform;
}

.orb-1 {
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.3) 0%, rgba(6, 182, 212, 0) 70%);
  top: -10%;
  left: -10%;
}

.orb-2 {
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0) 70%);
  bottom: -10%;
  right: -10%;
  animation-delay: -5s;
}

.orb-3 {
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.3) 0%, rgba(139, 92, 246, 0) 70%);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -10s;
}

@keyframes orb-float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(100px, 50px) scale(1.2); }
  100% { transform: translate(-50px, 100px) scale(0.9); }
}

/* Glass Hero Container */
.glass-hero-container {
  position: relative;
  width: 98%;
  max-width: 1400px;
  margin: 40px auto;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 32px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  z-index: 2;
}

.glass-hero-content {
  flex: 1.2;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.glass-hero-visual {
  flex: 0.8;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  height: 650px;
}

/* Fading Portrait Mask - Fixes the "missing legs" look */
.fading-portrait {
  width: auto;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
  -webkit-mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
  transform: scale(1.1);
  transform-origin: bottom;
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

.glass-hero-visual:hover .fading-portrait {
  filter: drop-shadow(4px 0 0 rgba(6, 182, 212, 0.7)) drop-shadow(-4px 0 0 rgba(236, 72, 153, 0.7)) drop-shadow(0 20px 30px rgba(0,0,0,0.5));
  transform: scale(1.12);
}

.cyber-scanner {
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 2px;
  background: var(--accent-primary);
  box-shadow: 0 0 15px 3px var(--accent-primary);
  opacity: 0.6;
  z-index: 3;
  animation: scanline 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes scanline {
  0% { top: 10%; opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { top: 90%; opacity: 0; }
}

.hud-crosshair {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(6, 182, 212, 0.4);
  z-index: 1;
  transition: all 0.3s ease;
  pointer-events: none;
}

.hud-crosshair.top-left { top: 10%; left: 10%; border-right: none; border-bottom: none; }
.hud-crosshair.top-right { top: 10%; right: 10%; border-left: none; border-bottom: none; }
.hud-crosshair.bottom-left { bottom: 20%; left: 10%; border-right: none; border-top: none; }
.hud-crosshair.bottom-right { bottom: 20%; right: 10%; border-left: none; border-top: none; }

.glass-hero-visual:hover .hud-crosshair {
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.3) inset;
}
.glass-hero-visual:hover .hud-crosshair.top-left { transform: translate(-10px, -10px); }
.glass-hero-visual:hover .hud-crosshair.top-right { transform: translate(10px, -10px); }
.glass-hero-visual:hover .hud-crosshair.bottom-left { transform: translate(-10px, 10px); }
.glass-hero-visual:hover .hud-crosshair.bottom-right { transform: translate(10px, 10px); }

.glass-hero-actions {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.btn-glass-primary {
  padding: 14px 30px;
  border-radius: 14px;
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-glass-primary:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow-primary);
  opacity: 1;
}

.btn-glass-outline {
  padding: 14px 30px;
  border-radius: 14px;
  background: rgba(128, 128, 128, 0.05);
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-glass-outline:hover {
  background: rgba(128, 128, 128, 0.15);
  border-color: var(--text-muted);
  transform: translateY(-4px);
}

/* Floating Glass Badges */
.glass-badge {
  position: absolute;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 12px 24px;
  border-radius: 30px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  z-index: 10;
  pointer-events: none;
}

.badge-1 {
  top: 25%;
  left: 5%;
  animation: float-badge 4s ease-in-out infinite alternate;
}

.badge-2 {
  bottom: 25%;
  right: 15%;
  animation: float-badge 5s ease-in-out infinite alternate-reverse;
}

@keyframes float-badge {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-20px) rotate(3deg); }
}

/* Glass Socials Row */
.glass-socials-row {
  display: flex;
  gap: 15px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.glass-social {
  position: relative;
  width: 45px;
  height: 45px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.glass-social:hover {
  transform: translateY(-5px) scale(1.15);
  color: #fff;
}

/* Glassmorphic custom tooltip */
.glass-social::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  padding: 6px 12px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), var(--glow-primary);
  z-index: 100;
}

.glass-social::after {
  content: "";
  position: absolute;
  bottom: 118%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(15, 23, 42, 0.9) transparent transparent transparent;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 100;
}

.glass-social:hover::before,
.glass-social:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.glass-social.linkedin:hover {
  background: #0077b5;
  border-color: #0077b5;
  box-shadow: 0 10px 25px rgba(0, 119, 181, 0.5);
}
.glass-social.linkedin:hover::before {
  border-color: rgba(0, 119, 181, 0.6);
  box-shadow: 0 4px 15px rgba(0, 119, 181, 0.3), 0 0 10px rgba(0, 119, 181, 0.4);
}

.glass-social.github:hover {
  background: #333;
  border-color: #333;
  box-shadow: 0 10px 25px rgba(51, 51, 51, 0.5);
}
.glass-social.github:hover::before {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 255, 255, 0.1);
}

.glass-social.facebook:hover {
  background: #1877F2;
  border-color: #1877F2;
  box-shadow: 0 10px 25px rgba(24, 119, 242, 0.5);
}
.glass-social.facebook:hover::before {
  border-color: rgba(24, 119, 242, 0.6);
  box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3), 0 0 10px rgba(24, 119, 242, 0.4);
}

.glass-social.youtube:hover {
  background: #FF0000;
  border-color: #FF0000;
  box-shadow: 0 10px 25px rgba(255, 0, 0, 0.5);
}
.glass-social.youtube:hover::before {
  border-color: rgba(255, 0, 0, 0.6);
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3), 0 0 10px rgba(255, 0, 0, 0.4);
}

.glass-social.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: #e6683c;
  box-shadow: 0 10px 25px rgba(220, 39, 67, 0.5);
}
.glass-social.instagram:hover::before {
  border-color: rgba(220, 39, 67, 0.6);
  box-shadow: 0 4px 15px rgba(220, 39, 67, 0.3), 0 0 10px rgba(220, 39, 67, 0.4);
}

.glass-social.twitter:hover {
  background: #000;
  border-color: #333;
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}
.glass-social.twitter:hover::before {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15), 0 0 10px rgba(255, 255, 255, 0.2);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 30px;
  font-size: 0.85rem;
  color: var(--accent-primary);
  margin-bottom: 25px;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-tag::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer-sweep 3s infinite;
}

@keyframes shimmer-sweep {
  0% { left: -100%; }
  50% { left: 200%; }
  100% { left: 200%; }
}

.tag-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-primary);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.5);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(6, 182, 212, 0);
  }
}

.hero-name {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.8rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 15px;
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
  letter-spacing: 1px;
}

.name-gradient {
  background: linear-gradient(90deg,
      #06b6d4,
      #3b82f6,
      #8b5cf6,
      #ec4899,
      #f59e0b,
      #06b6d4);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-flow 4s linear infinite;
}

@keyframes gradient-flow {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 300% center;
  }
}

.hero-role {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

@media (max-width: 480px) {
  .hero-role {
    font-size: 1rem;
  }
}

.role-text {
  color: var(--accent-secondary);
  font-weight: 600;
}

.cursor-blink {
  animation: blink 0.8s infinite;
  color: var(--accent-primary);
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 30px;
  animation: fadeInUp 0.8s ease 0.6s forwards;
  opacity: 0;
}

.hero-socials {
  display: flex;
  gap: 15px;
  animation: fadeInUp 0.8s ease 0.8s forwards;
  opacity: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.hsoc {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
  cursor: none;
}

.hsoc:hover {
  border-color: transparent;
  transform: translateY(-5px);
  color: #fff;
}

.hsoc.linkedin:hover {
  background: #0a66c2;
}

.hsoc.github:hover {
  background: #181717;
}

.hsoc.facebook:hover {
  background: #1877f2;
}

.hsoc.youtube:hover {
  background: #ff0000;
}

.hsoc.instagram:hover {
  background: linear-gradient(45deg,
      #f09433,
      #e6683c,
      #dc2743,
      #cc2366,
      #bc1888);
}

.hsoc.twitter:hover {
  background: #000;
}

.hsoc::after {
  content: attr(data-name);
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  font-size: 0.7rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  color: var(--text-primary);
  pointer-events: none;
}

.hsoc:hover::after {
  opacity: 1;
  visibility: visible;
}

.hero-btns {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 1s forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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



.hero-photo-wrap {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1/1;
  animation: fadeInRight 1s ease 0.5s forwards;
  opacity: 0;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

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

.photo-ring-outer {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box,
    var(--accent-gradient) border-box;
  animation: ring-rotate 12s linear infinite;
}

.photo-ring-outer::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(6, 182, 212, 0.4);
  border-radius: 50%;
  animation: ring-rotate 20s linear infinite reverse;
}

.photo-ring-middle {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 3px solid transparent;
  background:
    linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box,
    linear-gradient(135deg, var(--accent-primary), transparent) border-box;
  animation: ring-rotate 8s linear infinite reverse;
}

.ring-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow:
    0 0 15px var(--accent-primary),
    0 0 30px var(--accent-primary);
  animation: ring-dot-pulse 2s ease-in-out infinite;
}

.ring-dot:nth-child(1) {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.ring-dot:nth-child(2) {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  animation-delay: 0.5s;
}

.ring-dot:nth-child(3) {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 1s;
}

.ring-dot:nth-child(4) {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  animation-delay: 1.5s;
}

@keyframes ring-dot-pulse {

  0%,
  100% {
    box-shadow:
      0 0 10px var(--accent-primary),
      0 0 20px var(--accent-primary);
    transform: translateX(-50%) scale(1);
  }

  50% {
    box-shadow:
      0 0 20px var(--accent-primary),
      0 0 40px var(--accent-secondary);
    transform: translateX(-50%) scale(1.3);
  }
}

.ring-dot:nth-child(2),
.ring-dot:nth-child(4) {
  animation-name: ring-dot-pulse-y;
}

@keyframes ring-dot-pulse-y {

  0%,
  100% {
    box-shadow:
      0 0 10px var(--accent-primary),
      0 0 20px var(--accent-primary);
    transform: translateY(-50%) scale(1);
  }

  50% {
    box-shadow:
      0 0 20px var(--accent-primary),
      0 0 40px var(--accent-secondary);
    transform: translateY(-50%) scale(1.3);
  }
}

@keyframes ring-rotate {
  from {
    transform: rotate(0);
  }

  to {
    transform: rotate(360deg);
  }
}

.hero-photo {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(90deg,
      rgba(2, 0, 36, 1) 0%,
      rgba(9, 9, 121, 1) 35%,
      rgba(0, 212, 255, 1) 100%);
  padding: 3px;
  box-shadow: 0 0 50px rgba(6, 182, 212, 0.3);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-photo-wrap:hover .hero-photo {
  box-shadow:
    0 0 80px rgba(6, 182, 212, 0.6),
    0 0 120px rgba(139, 92, 246, 0.4);
  transform: scale(1.02);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  object-position: center 20%;
  transform: scale(1.1);
}

.photo-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  background: var(--bg-secondary);
  border-radius: 50%;
}

.orbital-container {
  position: absolute;
  inset: -60px;
  animation: ring-rotate 20s linear infinite;
  pointer-events: none;
}

.orbital-icon {
  position: absolute;
  width: 50px;
  height: 50px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--accent-primary);
  backdrop-filter: blur(10px);
  z-index: 10;
  pointer-events: auto;
  transition: all 0.3s;
  animation: ring-rotate 20s linear infinite reverse;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.orbital-icon:hover {
  transform: scale(1.3) !important;
  box-shadow: var(--glow-primary);
  border-color: var(--accent-primary);
  background: rgba(6, 182, 212, 0.2);
}

.orbital-icon:nth-child(1) {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.orbital-icon:nth-child(2) {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.orbital-icon:nth-child(3) {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.orbital-icon:nth-child(4) {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.orbital-icon:nth-child(5) {
  top: 15%;
  right: 5%;
}

.orbital-icon:nth-child(6) {
  bottom: 15%;
  left: 5%;
}

.hero-stats {
  display: flex;
  gap: 30px;
  animation: fadeInUp 1s ease 1.2s forwards;
  opacity: 0;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.hstat {
  text-align: center;
  padding: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  min-width: 100px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.hstat:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: var(--glow-primary);
}

.hstat-num {
  display: block;
  font-family: "Orbitron", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hstat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: max-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: fadeIn 1.5s ease 2s forwards;
  opacity: 0;
  z-index: 10;
}

.mouse {
  width: 26px;
  height: 40px;
  border: 2px solid var(--text-muted);
  border-radius: 15px;
  position: relative;
  display: flex;
  justify-content: center;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 2px;
  margin-top: 6px;
  animation: scroll-wheel 1.5s ease infinite;
}

.scroll-indicator span {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-right: -2px; /* Compensate for letter-spacing to optically center the text */
}

@keyframes scroll-wheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(15px); opacity: 0; }
}

@media (max-width: 1024px) {
  .cinematic-subject {
    right: 5%;
    height: 75%;
  }

  .bg-text-filled, .bg-text-stroke {
    font-size: 20vw;
  }

  .cinematic-content {
    padding: 30px 5%;
  }

  .cinematic-top-name {
    margin-top: 8vh;
  }
}

@media (max-width: 768px) {
  .cinematic-subject {
    right: 50%;
    transform: translateX(50%);
    height: 60%;
    bottom: 5%;
  }

  @keyframes float-subject {
    0%, 100% { transform: translateX(50%) translateY(0px); }
    50% { transform: translateX(50%) translateY(-10px); }
  }

  .cinematic-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
  }

  .cinematic-bio {
    max-width: 100%;
  }

  .cinematic-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-stats {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-photo-wrap {
    width: 230px;
    height: 230px;
  }

  .orbital-container {
    inset: -40px;
  }

  .orbital-icon {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
    border-radius: 8px;
  }

  .hero-stats {
    gap: 12px;
    margin-top: 35px;
  }

  .hstat {
    min-width: 85px;
    padding: 15px 10px;
  }

  .hstat-num {
    font-size: 1.5rem;
  }
}

@media (max-width: 360px) {
  .hero-photo-wrap {
    width: 200px;
    height: 200px;
  }

  .orbital-container {
    inset: -35px;
  }

  .orbital-icon {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }
}

#about {
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 70px;
  align-items: start;
}

.about-photo-col {
  position: relative;
}

.about-photo-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--accent-gradient);
  padding: 3px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-photo-frame:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 60px rgba(6, 182, 212, 0.3);
}

.about-photo-frame img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 21px;
  display: block;
  object-position: center 20%;
  transition: transform 0.5s ease;
}

.about-photo-frame:hover img {
  transform: scale(1.05);
}

.photo-placeholder {
  display: none;
  width: 100%;
  height: 420px;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  background: var(--bg-tertiary);
  border-radius: 21px;
}

.about-photo-overlay {
  position: absolute;
  inset: 3px;
  border-radius: 21px;
  background: linear-gradient(to top, rgba(3, 7, 18, 0.8), transparent 50%);
}

.about-deco-box {
  position: absolute;
  width: 180px;
  height: 180px;
  border: 2px solid var(--accent-primary);
  border-radius: 20px;
  bottom: -25px;
  right: -25px;
  z-index: -1;
  opacity: 0.3;
  animation: deco-spin 20s linear infinite;
}

@keyframes deco-spin {
  to {
    transform: rotate(360deg);
  }
}

.about-badge-card {
  position: absolute;
  bottom: 25px;
  left: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(3, 7, 18, 0.95);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.about-badge-card:hover {
  transform: translateX(5px);
  border-color: var(--accent-primary);
}

[data-theme="light"] .about-badge-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.badge-icon {
  font-size: 1.3rem;
}

.about-badge-card span:last-child {
  font-weight: 600;
  font-size: 0.85rem;
}

.about-text-col h3 {
  font-family: "Poppins", sans-serif;
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--accent-secondary);
}

@media (max-width: 480px) {
  .about-text-col h3 {
    font-size: 1.1rem;
  }
}

.about-bio {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 30px;
}

.about-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 30px;
}

.detail-card {
  padding: 16px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.detail-card:hover {
  border-color: var(--accent-primary);
  transform: translateX(5px);
  box-shadow: 0 5px 20px rgba(6, 182, 212, 0.15);
}

.detail-card.full {
  grid-column: span 2;
}

.dc-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.dc-val {
  font-weight: 500;
  font-size: 0.9rem;
}

.about-action-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about-photo-col {
    max-width: 380px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .about-details-grid {
    grid-template-columns: 1fr;
  }

  .detail-card.full {
    grid-column: span 1;
  }

  .about-photo-frame img,
  .photo-placeholder {
    height: 350px;
  }
}

@media (max-width: 360px) {

  .about-photo-frame img,
  .photo-placeholder {
    height: 300px;
  }
}

#services {
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.service-card {
  padding: 35px 28px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), var(--glow-primary) !important;
}

.service-card:hover::before {
  opacity: 0.05;
}

.service-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 24px;
  background: rgba(6, 182, 212, 0.06);
  border: 2px solid rgba(6, 182, 212, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--accent-primary);
  position: relative;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: inset 0 0 10px rgba(6, 182, 212, 0.1);
}

.service-card:hover .service-icon {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  transform: scale(1.1) translateY(-4px) rotate(15deg);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.6);
}

.service-card h3 {
  font-family: "Poppins", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.service-card:hover h3 {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.service-card:hover p {
  color: var(--text-primary);
}

.service-card a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  background: rgba(6, 182, 212, 0.05);
  border: 1px dashed rgba(6, 182, 212, 0.3);
  border-radius: 6px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  vertical-align: middle;
}

.service-card a::after {
  content: "\f08e"; /* FontAwesome external link icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.service-card a:hover {
  color: #fff;
  background: var(--accent-gradient);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
  text-decoration: none;
  transform: translateY(-1px);
}

.service-card a:hover::after {
  transform: translate(2px, -2px);
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

#skills {
  position: relative;
}

.skills-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.skill-tab-btn {
  padding: 12px 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 30px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.skill-tab-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

.skill-tab-btn.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--glow-primary);
}

.skills-content {
  display: none;
}

.skills-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

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

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

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.skill-card {
  padding: 25px 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.skill-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-primary);
  box-shadow: var(--glow-primary);
}

.skill-icon-wrap {
  width: 60px;
  height: 60px;
  margin: 0 auto 12px;
  background: var(--bg-tertiary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.skill-card:hover .skill-icon-wrap {
  transform: scale(1.1) rotate(5deg);
}

.skill-icon-wrap img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.skill-emoji {
  font-size: 1.8rem;
}

.skill-name {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 0.92rem;
}

.skill-percentage {
  font-family: "Orbitron", sans-serif;
  font-size: 0.82rem;
  color: var(--accent-primary);
  margin-bottom: 8px;
  font-weight: 600;
}

.skill-bar {
  height: 5px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.skill-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 3px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.skill-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.4),
      transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

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

@media (max-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .skill-card {
    padding: 18px 14px;
  }
}

#experience {
  position: relative;
}

.exp-timeline {
  position: relative;
  padding-left: 50px;
}

.exp-timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom,
      var(--accent-primary),
      var(--accent-secondary),
      var(--accent-tertiary));
}

.exp-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 35px;
}

.exp-dot {
  position: absolute;
  left: -38px;
  top: 5px;
  width: 18px;
  height: 18px;
  background: var(--bg-primary);
  border: 3px solid var(--accent-primary);
  border-radius: 50%;
  box-shadow: var(--glow-primary);
  transition: all 0.3s ease;
}

.exp-item:hover .exp-dot {
  transform: scale(1.3);
  box-shadow:
    0 0 20px var(--accent-primary),
    0 0 40px var(--accent-primary);
}

.exp-dot::before {
  content: "";
  position: absolute;
  inset: -6px;
  border: 2px dashed var(--accent-secondary);
  border-radius: 50%;
  opacity: 0.5;
  animation: rotate-dash 10s linear infinite;
}

@keyframes rotate-dash {
  from {
    transform: rotate(0);
  }

  to {
    transform: rotate(360deg);
  }
}

.exp-card {
  padding: 25px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.exp-card:hover {
  transform: translateX(10px);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.15);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.exp-year {
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
  color: var(--accent-primary);
  background: rgba(6, 182, 212, 0.1);
  padding: 5px 12px;
  border-radius: 20px;
}

.exp-title {
  font-family: "Poppins", sans-serif;
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.exp-company {
  color: var(--accent-secondary);
  font-weight: 500;
  margin-bottom: 12px;
  font-size: 0.92rem;
}

.exp-desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.exp-tag {
  padding: 4px 10px;
  background: var(--bg-tertiary);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.exp-tag:hover {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-primary);
}

@media (max-width: 600px) {
  .exp-timeline {
    padding-left: 25px;
  }

  .exp-timeline::before {
    left: 8px;
  }

  .exp-item {
    padding-left: 15px;
  }

  .exp-dot {
    left: -20px;
    width: 14px;
    height: 14px;
  }
}

#education {
  position: relative;
}

.timeline {
  position: relative;
  display: grid;
  gap: 30px;
}

.tl-item {
  display: flex;
  gap: 25px;
  align-items: flex-start;
  position: relative;
}

.tl-dot {
  width: 20px;
  height: 20px;
  background: var(--accent-gradient);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 18px;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 15px var(--accent-primary);
  transition: transform 0.3s ease;
}

.tl-item:hover .tl-dot {
  transform: scale(1.3);
}

.tl-line {
  position: absolute;
  left: 9px;
  top: 38px;
  width: 2px;
  height: calc(100% - 10px);
  background: linear-gradient(to bottom,
      var(--accent-primary),
      var(--accent-secondary),
      transparent);
  z-index: 1;
}

.tl-item:last-child .tl-line {
  display: none;
}

.tl-card {
  flex: 1;
  padding: 25px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.tl-card:hover {
  transform: translateX(10px);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.15);
}

.tl-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.tl-logo {
  width: 45px;
  height: 45px;
  object-fit: contain;
  border-radius: 10px;
}

.tl-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tl-year {
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.tl-badge {
  padding: 4px 10px;
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-primary);
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
}

.active-badge {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-tertiary);
  animation: badge-glow 2s ease-in-out infinite;
}

@keyframes badge-glow {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.3);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
  }
}

.tl-org {
  font-family: "Poppins", sans-serif;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.tl-desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .tl-item {
    flex-direction: column;
    gap: 12px;
  }

  .tl-dot {
    margin-top: 0;
  }

  .tl-line {
    display: none !important;
  }
}

#projects {
  position: relative;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.proj-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.proj-card:hover {
  transform: translateY(-12px);
  border-color: var(--accent-primary);
  box-shadow: 0 25px 50px rgba(6, 182, 212, 0.2);
}

.proj-thumb {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.proj-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.proj-card:hover .proj-thumb img {
  transform: scale(1.15);
}

.proj-thumb-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: var(--bg-tertiary);
}

.proj-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.proj-card:hover .proj-thumb-overlay {
  opacity: 1;
}

.view-src-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-gradient);
  color: #fff;
  padding: 10px 22px;
  border-radius: 30px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.4);
}

.proj-card:hover .view-src-btn {
  transform: translateY(0);
}

.view-src-btn i {
  font-size: 1.1rem;
}

.proj-body {
  padding: 22px;
}

.proj-type {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-secondary);
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.proj-name {
  font-family: "Poppins", sans-serif;
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.proj-desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  cursor: none;
}

.proj-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.proj-card-link:hover .proj-card {
  transform: translateY(-12px);
  border-color: var(--accent-primary);
  box-shadow: 0 25px 50px rgba(6, 182, 212, 0.2);
}

.proj-link:hover {
  gap: 14px;
}

@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .proj-thumb {
    height: 200px;
  }
}

#assignments {
  position: relative;
}

.assign-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.assign-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.assign-card:hover {
  border-color: var(--accent-tertiary);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.15);
}

.assign-num {
  font-family: "Orbitron", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-tertiary), #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  flex-shrink: 0;
}

.assign-name {
  flex: 1;
  font-weight: 500;
  font-size: 0.85rem;
}

.assign-card a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.assign-card a:hover {
  background: var(--accent-gradient);
  color: #fff;
  transform: scale(1.1);
}

@media (max-width: 1024px) {
  .assign-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .assign-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .assign-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .assign-card {
    padding: 14px;
    gap: 8px;
  }

  .assign-num {
    font-size: 1.1rem;
  }

  .assign-name {
    font-size: 0.78rem;
  }
}

#gallery {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gallery-container {
  position: relative;
  width: 100%;
  height: 500px;
  margin-top: 40px;
}

.gallery-carousel {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
}

.gallery-slide {
  position: absolute;
  width: 575px;
  height: 480px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  z-index: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 2px solid transparent;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-slide .gal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #fff;
  font-size: 1.5rem;
}

.gallery-slide:hover .gal-overlay {
  opacity: 1;
}

.gallery-slide.active {
  transform: translate(-50%, -50%) scale(1.1);
  z-index: 3;
  opacity: 1;
  filter: blur(0);
  border-color: var(--accent-primary);
  box-shadow: 0 20px 50px rgba(6, 182, 212, 0.4);
}

.gallery-slide.prev {
  transform: translate(-140%, -50%) scale(0.85);
  z-index: 2;
  opacity: 0.6;
  filter: blur(4px);
}

.gallery-slide.next {
  transform: translate(40%, -50%) scale(0.85);
  z-index: 2;
  opacity: 0.6;
  filter: blur(4px);
}

.gallery-slide.prev-hidden {
  transform: translate(-250%, -50%) scale(0.6);
  opacity: 0;
  filter: blur(8px);
}

.gallery-slide.next-hidden {
  transform: translate(150%, -50%) scale(0.6);
  opacity: 0;
  filter: blur(8px);
}

.gallery-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.gal-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.gal-btn:hover {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
  transform: scale(1.15);
  box-shadow: var(--glow-primary);
}

@media (max-width: 768px) {
  .gallery-container {
    height: 400px;
  }

  .gallery-slide {
    width: 300px;
    height: 320px;
  }

  .gallery-slide.prev {
    transform: translate(-130%, -50%) scale(0.8);
  }

  .gallery-slide.next {
    transform: translate(30%, -50%) scale(0.8);
  }
}

@media (max-width: 480px) {
  .gallery-container {
    height: 350px;
  }

  .gallery-slide {
    width: 250px;
    height: 280px;
  }

  .gallery-slide.prev {
    transform: translate(-120%, -50%) scale(0.75);
  }

  .gallery-slide.next {
    transform: translate(20%, -50%) scale(0.75);
  }
}

@media (max-width: 360px) {
  .gallery-container {
    height: 300px;
  }

  .gallery-slide {
    width: 220px;
    height: 240px;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 10px;
  object-fit: contain;
}

.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 10px;
  transition: all 0.3s ease;
}

.lb-close {
  top: 30px;
  right: 30px;
}

.lb-prev {
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.lb-next {
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.lb-close:hover,
.lb-prev:hover,
.lb-next:hover {
  color: var(--accent-primary);
}

#contact {
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-cta {
  font-family: "Poppins", sans-serif;
  font-size: 1.7rem;
  margin-bottom: 18px;
}

@media (max-width: 480px) {
  .contact-cta {
    font-size: 1.3rem;
  }
}

.contact-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 25px;
  line-height: 1.7;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
}

.citem {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  cursor: none;
}

.citem:hover {
  border-color: var(--accent-primary);
  transform: translateX(10px);
  box-shadow: 0 5px 20px rgba(6, 182, 212, 0.15);
}

.citem-icon {
  width: 42px;
  height: 42px;
  background: var(--accent-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
}

.citem span {
  font-size: 0.9rem;
}

@media (max-width: 480px) {
  .citem span {
    font-size: 0.82rem;
  }
}

.social-row {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.soc-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  cursor: none;
}

.soc-btn:hover {
  border-color: transparent;
  transform: translateY(-5px);
  color: #fff;
}

.soc-btn.linkedin:hover {
  background: #0a66c2;
}

.soc-btn.github:hover {
  background: #181717;
}

.soc-btn.facebook:hover {
  background: #1877f2;
}

.soc-btn.youtube:hover {
  background: #ff0000;
}

.soc-btn.instagram:hover {
  background: linear-gradient(45deg,
      #f09433,
      #e6683c,
      #dc2743,
      #cc2366,
      #bc1888);
}

.soc-btn.twitter:hover {
  background: #000;
}

.soc-btn::after {
  content: attr(data-name);
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  font-size: 0.65rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  color: var(--text-primary);
  pointer-events: none;
}

.soc-btn:hover::after {
  opacity: 1;
  visibility: visible;
}

.map-wrap {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  transition: all 0.3s ease;
}

.map-wrap:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--glow-primary);
}

.map-wrap iframe {
  width: 100%;
  height: 320px;
  border: none;
  display: block;
}

.form-card {
  padding: 35px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.form-card:hover {
  border-color: rgba(6, 182, 212, 0.3);
}

.form-group {
  margin-bottom: 18px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.85rem;
  transition: color 0.3s;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-tertiary);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.92rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.btn-submit {
  width: 100%;
  padding: 15px;
  background: var(--accent-gradient);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.form-note {
  text-align: center;
  margin-top: 15px;
  font-size: 0.85rem;
}

.form-note.success {
  color: var(--accent-primary);
}

.form-note.error {
  color: #ef4444;
}

@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .map-wrap iframe {
    height: 260px;
  }

  .form-card {
    padding: 25px;
  }
}

footer {
  background: var(--bg-primary);
  padding: 40px;
  border-top: 1px solid var(--card-border);
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-family: "Orbitron", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.footer-copy {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
}

.back-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 48px;
  height: 48px;
  background: var(--accent-gradient);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-size: 1.1rem;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(6, 182, 212, 0.3);
}

.back-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.5);
}

.chatbot-toggle {
  position: fixed;
  bottom: 90px;
  right: 25px;
  width: 55px;
  height: 55px;
  background: var(--accent-gradient);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-size: 1.4rem;
  z-index: 1000;
  box-shadow: var(--glow-primary);
  transition: all 0.3s ease;
}

.chatbot-toggle:hover {
  transform: scale(1.1);
}

.chatbot-window {
  position: fixed;
  bottom: 160px;
  right: 25px;
  width: 360px;
  height: 500px;
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  z-index: 1000;
  overflow: hidden;
  transform: scale(0) translateY(20px);
  opacity: 0;
  transform-origin: bottom right;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(20px);
}

.chatbot-window.active {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.chatbot-header {
  padding: 18px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.chatbot-avatar {
  width: 42px;
  height: 42px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.chatbot-info h4 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 2px;
}

.chatbot-info span {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.8);
}

.chatbot-close {
  margin-left: auto;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 5px;
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  max-width: 85%;
  padding: 12px 15px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.5;
  word-wrap: break-word;
  white-space: pre-line;
}

.chat-msg.bot {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg.user {
  background: var(--accent-gradient);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chatbot-input {
  padding: 12px 18px;
  border-top: 1px solid var(--card-border);
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.chatbot-input input {
  flex: 1;
  padding: 12px 15px;
  background: var(--bg-tertiary);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.88rem;
}

.chatbot-input input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.chatbot-input button {
  width: 42px;
  height: 42px;
  background: var(--accent-gradient);
  border: none;
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.chatbot-input button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chatbot-branding {
  padding: 10px;
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  border-top: 1px solid var(--card-border);
  flex-shrink: 0;
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 15px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  align-self: flex-start;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 50%;
  animation: typing 1s infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }
}

@media (max-width: 450px) {
  .chatbot-window {
    width: calc(100vw - 30px);
    height: 70vh;
    right: 15px;
    bottom: 80px;
    border-radius: 18px;
  }

  .chatbot-toggle {
    bottom: 75px;
    right: 15px;
    width: 50px;
    height: 50px;
  }
}

/* ===== CHATBOT API KEY OVERLAY & SETTINGS ===== */
.chatbot-header-btns {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-key-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, transform 0.2s;
}

.chatbot-key-btn:hover {
  opacity: 0.8;
  transform: scale(1.1);
}

.chatbot-key-overlay {
  position: absolute;
  top: 78px;
  left: 0;
  width: 100%;
  height: calc(100% - 78px);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  transform: translateY(15px);
}

.chatbot-key-overlay.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.key-overlay-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
}

.key-icon {
  width: 48px;
  height: 48px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 1.3rem;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.1);
}

.key-overlay-content h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: 0.5px;
}

.key-overlay-content p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

.key-link {
  font-size: 0.72rem;
  color: var(--accent-primary);
  text-decoration: none;
  font-family: "Space Mono", monospace;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-bottom: 1px dashed var(--accent-primary);
  padding-bottom: 2px;
}

.key-link:hover {
  color: #fff;
  border-color: #fff;
}

.key-input-group {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
}

.key-input-group input {
  width: 100%;
  padding: 12px 40px 12px 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.85rem;
  transition: border-color 0.2s;
}

.key-input-group input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.key-toggle-visible {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.key-toggle-visible:hover {
  color: var(--text-primary);
}

.key-buttons {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 5px;
}

.key-buttons button {
  flex: 1;
  padding: 11px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.key-buttons .btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
}

.key-buttons .btn-primary:hover {
  box-shadow: var(--glow-primary);
  transform: translateY(-1px);
}

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

.key-buttons .btn-outline:hover {
  border-color: var(--accent-primary);
  color: #fff;
  transform: translateY(-1px);
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(1) {
  transition-delay: 0ms;
}

.reveal:nth-child(2) {
  transition-delay: 80ms;
}

.reveal:nth-child(3) {
  transition-delay: 160ms;
}

.reveal:nth-child(4) {
  transition-delay: 240ms;
}

.reveal:nth-child(5) {
  transition-delay: 320ms;
}

.reveal:nth-child(6) {
  transition-delay: 400ms;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 768px) {
  footer {
    padding: 25px 20px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .back-top {
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
  }
}

/* ===== BACKGROUND CANVAS ===== */
.bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

/* ===== FX CONTROL PANEL ===== */
.fx-panel {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 9999;
}

.fx-panel-toggle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 5px 20px rgba(6, 182, 212, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fx-panel-toggle:hover {
  transform: rotate(45deg) scale(1.1);
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.5);
}

.fx-panel-content {
  position: absolute;
  bottom: 60px;
  left: 0;
  width: 300px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transform: scale(0) translateY(20px);
  transform-origin: bottom left;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fx-panel.active .fx-panel-content {
  transform: scale(1) translateY(0);
  opacity: 1;
  visibility: visible;
}

.fx-panel-title {
  font-family: "Orbitron", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
  margin-bottom: 4px;
}

.fx-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fx-section-label {
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.fx-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fx-opt-btn {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--text-secondary);
  font-family: "DM Sans", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  transition: all 0.2s ease;
}

.fx-opt-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}

.fx-opt-btn.active {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}

.fx-colors {
  display: flex;
  gap: 10px;
}

.fx-color-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.fx-color-btn:hover {
  transform: scale(1.15);
}

.fx-color-btn.active {
  border-color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 10px var(--accent-primary);
}

.fx-toggles {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fx-switch {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.switch-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.fx-switch input {
  display: none;
}

.switch-slider {
  position: relative;
  width: 36px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  transition: 0.3s;
}

.switch-slider::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}

.fx-switch input:checked+.switch-slider {
  background: var(--accent-primary);
}

.fx-switch input:checked+.switch-slider::before {
  transform: translateX(16px);
}

@media (max-width: 768px) {
  .fx-panel {
    bottom: 15px;
    left: 15px;
  }

  .fx-panel-toggle {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .fx-panel-content {
    width: 280px;
    bottom: 50px;
    padding: 15px;
  }
}

/* Color Accent Overrides */
:root[data-accent="cyan"] {
  --accent-primary: #06b6d4;
  --accent-secondary: #3b82f6;
  --accent-gradient: linear-gradient(135deg, #06b6d4, #3b82f6, #8b5cf6);
  --card-border: rgba(6, 182, 212, 0.15);
  --glow-primary: 0 0 40px rgba(6, 182, 212, 0.25);
}

:root[data-accent="purple"] {
  --accent-primary: #a855f7;
  --accent-secondary: #ec4899;
  --accent-gradient: linear-gradient(135deg, #a855f7, #ec4899, #8b5cf6);
  --card-border: rgba(168, 85, 247, 0.15);
  --glow-primary: 0 0 40px rgba(168, 85, 247, 0.25);
}

:root[data-accent="emerald"] {
  --accent-primary: #10b981;
  --accent-secondary: #06b6d4;
  --accent-gradient: linear-gradient(135deg, #10b981, #059669, #06b6d4);
  --card-border: rgba(16, 185, 129, 0.15);
  --glow-primary: 0 0 40px rgba(16, 185, 129, 0.25);
}

:root[data-accent="crimson"] {
  --accent-primary: #f43f5e;
  --accent-secondary: #d946ef;
  --accent-gradient: linear-gradient(135deg, #f43f5e, #e11d48, #d946ef);
  --card-border: rgba(244, 63, 94, 0.15);
  --glow-primary: 0 0 40px rgba(244, 63, 94, 0.25);
}

:root[data-accent="amber"] {
  --accent-primary: #f59e0b;
  --accent-secondary: #ef4444;
  --accent-gradient: linear-gradient(135deg, #f59e0b, #d97706, #ef4444);
  --card-border: rgba(245, 158, 11, 0.15);
  --glow-primary: 0 0 40px rgba(245, 158, 11, 0.25);
}

/* Card Glassmorphic & Glowing upgrades */
.service-card,
.proj-card,
.skill-card,
.detail-card,
.hstat,
.exp-card,
.tl-card {
  background: var(--card-bg) !important;
  border: 1px solid var(--card-border) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    border-color 0.4s ease,
    box-shadow 0.4s ease !important;
  position: relative;
  overflow: hidden;
}

/* Hover glowing background inside card using custom properties updated by JS */
.service-card::before,
.proj-card::before,
.skill-card::before,
.detail-card::before,
.hstat::before,
.exp-card::before,
.tl-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(250px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(255, 255, 255, 0.06),
      transparent 40%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Specular reflection holographic glare overlay */
.service-card::after,
.proj-card::after,
.skill-card::after,
.detail-card::after,
.hstat::after,
.exp-card::after,
.tl-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.02) 20%,
      rgba(255, 255, 255, 0.12) 50%,
      rgba(255, 255, 255, 0.02) 80%,
      rgba(255, 255, 255, 0) 100%);
  background-size: 250% 250%;
  background-position: calc(var(--mouse-x-percent, 50%) * 1.5 - 25%) calc(var(--mouse-y-percent, 50%) * 1.5 - 25%);
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  mix-blend-mode: overlay;
}

.service-card:hover::before,
.proj-card:hover::before,
.skill-card:hover::before,
.detail-card:hover::before,
.hstat:hover::before,
.exp-card:hover::before,
.tl-card:hover::before,
.service-card:hover::after,
.proj-card:hover::after,
.skill-card:hover::after,
.detail-card:hover::after,
.hstat:hover::after,
.exp-card:hover::after,
.tl-card:hover::after {
  opacity: 1;
}

.service-card:hover,
.proj-card:hover,
.skill-card:hover,
.detail-card:hover,
.hstat:hover,
.exp-card:hover,
.tl-card:hover {
  border-color: rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), var(--glow-primary) !important;
}

/* ===== 3D SKILLS SPHERE LAYOUT ===== */
.skills-layout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  margin-top: 40px;
}

.skills-sphere-col {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.skills-sphere-canvas {
  width: 100%;
  height: 100%;
  cursor: grab;
}

.skills-sphere-canvas:active {
  cursor: grabbing;
}

@media (max-width: 992px) {
  .skills-layout-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .skills-sphere-col {
    order: -1;
    max-width: 300px;
  }
}

/* ===== PROJECT DETAILS MODAL ===== */
.proj-modal {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.proj-modal.active {
  opacity: 1;
  visibility: visible;
}

.proj-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.proj-modal-container {
  position: relative;
  width: 100%;
  max-width: 950px;
  max-height: 90vh;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  padding: 0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  z-index: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.proj-modal.active .proj-modal-container {
  transform: scale(1) translateY(0);
}

.proj-modal-close {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 1.1rem;
}

.proj-modal-close:hover {
  background: rgba(128, 128, 128, 0.2);
  color: var(--text-primary);
  transform: rotate(90deg);
}

.proj-modal-body {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  padding: 40px;
  overflow-y: auto;
  flex: 1;
}

.proj-modal-gallery {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  position: relative;
  background: rgba(0, 0, 0, 0.2);
}

.proj-modal-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proj-modal-gallery-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: var(--bg-tertiary);
  color: var(--text-muted);
}

.proj-modal-type {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.proj-modal-title {
  font-family: "Poppins", sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  margin: 6px 0 15px;
  color: var(--text-primary);
}

.proj-modal-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.proj-modal-features,
.proj-modal-tech {
  margin-bottom: 20px;
}

.proj-modal-features h4,
.proj-modal-tech h4 {
  font-family: "Orbitron", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.proj-modal-features ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.proj-modal-features li {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.proj-modal-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-badge {
  padding: 6px 12px;
  background: rgba(128, 128, 128, 0.1);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-family: "Space Mono", monospace;
  font-weight: 500;
}

.proj-modal-actions {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.proj-modal-actions .btn-primary,
.proj-modal-actions .btn-outline {
  padding: 10px 20px;
  font-size: 0.85rem;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .proj-modal-body {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 30px 20px 20px;
  }

  .proj-modal-container {
    padding: 0;
  }

  .proj-modal-title {
    font-size: 1.4rem;
  }
}

/* ===== LIVE STATUS CARD ===== */
.live-status-card {
  padding: 18px 24px !important;
}

.live-status-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  gap: 20px;
  flex-wrap: wrap;
}

.live-status-time {
  font-family: "Orbitron", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-primary);
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.live-status-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.status-dot-pulse {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

@media (max-width: 576px) {
  .live-status-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ===== GITHUB STATS CARD ===== */
.github-stats-card {
  padding: 18px 24px !important;
}

.github-stats-card .dc-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gh-stats-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 12px;
  width: 100%;
}

.gh-stat-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.gh-stat-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.gh-stat-val {
  font-family: "Orbitron", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-primary);
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.gh-stat-lbl {
  font-family: "Space Mono", monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 4px;
}

@media (max-width: 576px) {
  .gh-stats-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* ===== CHATBOT API KEY DRAWER ===== */
.chatbot-header-btns {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-api-toggle {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-size: 0.95rem;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
}

.chat-api-toggle:hover {
  color: #fff;
}

.chat-api-drawer {
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--card-border);
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-api-drawer.active {
  max-height: 120px;
  opacity: 1;
}

.api-drawer-lbl {
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.api-input-wrap {
  display: flex;
  gap: 8px;
}

.api-input-wrap input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 6px 12px;
  color: #fff;
  font-size: 0.8rem;
  font-family: monospace;
}

.api-input-wrap input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.api-input-wrap button {
  background: var(--accent-gradient);
  border: none;
  border-radius: 8px;
  color: #fff;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.api-input-wrap button:active {
  transform: scale(0.9);
}

.api-drawer-note {
  font-size: 0.62rem;
  color: var(--text-muted);
}

/* ===== RETRO HACKER TERMINAL CONSOLE ===== */
.terminal-overlay {
  position: fixed;
  inset: 0;
  background: #050d0a;
  z-index: 10005;
  display: flex;
  flex-direction: column;
  padding: 25px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  font-family: "Space Mono", monospace;
  color: #39ff14;
}

.terminal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.terminal-scanlines {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%,
      rgba(0, 0, 0, 0.25) 50%),
    linear-gradient(90deg,
      rgba(255, 0, 0, 0.06),
      rgba(0, 255, 0, 0.02),
      rgba(0, 0, 255, 0.06));
  background-size: 100% 4px, 6px 100%;
  pointer-events: none;
  z-index: 2;
}

.terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid rgba(57, 255, 20, 0.3);
  padding-bottom: 12px;
  z-index: 1;
}

.term-title {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 0 5px rgba(57, 255, 20, 0.5);
}

.term-close {
  background: transparent;
  border: 1px solid rgba(57, 255, 20, 0.5);
  border-radius: 4px;
  color: #39ff14;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.term-close:hover {
  background: rgba(57, 255, 20, 0.2);
  color: #fff;
  border-color: #fff;
}

.terminal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  overflow: hidden;
  margin-top: 15px;
  z-index: 1;
}

.terminal-output {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 10px;
  font-size: 0.88rem;
}

.term-line {
  line-height: 1.5;
  white-space: pre-wrap;
  text-shadow: 0 0 4px rgba(57, 255, 20, 0.4);
}

.term-line.welcome {
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.term-line.system {
  color: #ff3939;
  text-shadow: 0 0 5px rgba(255, 57, 57, 0.5);
}

.term-line.success {
  color: #06b6d4;
  text-shadow: 0 0 5px rgba(6, 182, 212, 0.5);
}

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px dashed rgba(57, 255, 20, 0.2);
  padding-top: 12px;
}

.term-prompt {
  font-weight: 700;
  text-shadow: 0 0 4px rgba(57, 255, 20, 0.4);
}

.terminal-input-row input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-family: "Space Mono", monospace;
  font-size: 0.9rem;
  font-weight: 700;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.6);
}

.terminal-input-row input:focus {
  outline: none;
}

/* ===== SYSTEM DESTRUCT ALERTS ===== */
.destruct-alert-overlay {
  position: fixed;
  inset: 0;
  background: rgba(185, 28, 28, 0.9);
  z-index: 10010;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  font-family: "Orbitron", sans-serif;
  color: #fff;
  pointer-events: none;
}

.destruct-alert-overlay.active {
  opacity: 1;
  visibility: visible;
  animation: destruct-flash 0.5s infinite alternate;
}

.destruct-alert-box {
  text-align: center;
  padding: 30px;
  border: 4px solid #fff;
  border-radius: 16px;
  background: #000;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

.alert-icon {
  font-size: 5rem;
  animation: hud-pulse 0.5s infinite alternate;
}

.destruct-alert-box h2 {
  font-size: 2rem;
  margin: 15px 0 10px;
  font-weight: 900;
}

.destruct-alert-box p {
  font-family: "Space Mono", monospace;
  color: #ef4444;
  font-size: 0.9rem;
}

/* Screen Shake Animation */
.screen-shake {
  animation: shake-anim 0.1s infinite;
}

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

  20% {
    transform: translate(-8px, 5px) rotate(-1deg);
  }

  40% {
    transform: translate(6px, -6px) rotate(1deg);
  }

  60% {
    transform: translate(-5px, 6px) rotate(0deg);
  }

  80% {
    transform: translate(7px, 5px) rotate(1deg);
  }

  100% {
    transform: translate(-6px, -5px) rotate(-1deg);
  }
}

@keyframes destruct-flash {
  from {
    background: rgba(185, 28, 28, 0.85);
  }

  to {
    background: rgba(0, 0, 0, 0.95);
  }
}

/* ===== CURSOR HUD COORDINATES VISOR ===== */
.cursor-visor-coords {
  position: absolute;
  top: 15px;
  left: 15px;
  font-family: "Space Mono", monospace;
  font-size: 0.6rem;
  color: var(--accent-primary);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  white-space: nowrap;
}

.cursor-ring.hovering .cursor-visor-coords {
  opacity: 0.8;
}

.cursor-ring::before,
.cursor-ring::after {
  content: "";
  position: absolute;
  background: var(--accent-primary);
  opacity: 0;
  transition: opacity 0.3s;
}

.cursor-ring::before {
  top: 50%;
  left: -20px;
  right: -20px;
  height: 1px;
  transform: translateY(-50%);
}

.cursor-ring::after {
  left: 50%;
  top: -20px;
  bottom: -20px;
  width: 1px;
  transform: translateX(-50%);
}

.cursor-ring.hovering::before,
.cursor-ring.hovering::after {
  opacity: 0.3;
}

/* ===== LIGHT MODE FX PANEL & CHAT KEY OVERRIDES ===== */
[data-theme="light"] .fx-panel-content {
  background: rgba(248, 250, 252, 0.9);
  border-color: rgba(6, 182, 212, 0.2);
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.15);
}

[data-theme="light"] .fx-panel-title {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .fx-opt-btn {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .fx-opt-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .fx-opt-btn.active {
  background: rgba(6, 182, 212, 0.1);
  border-color: var(--accent-primary);
}

[data-theme="light"] .switch-slider {
  background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .chat-api-drawer {
  background: rgba(248, 250, 252, 0.95);
}

[data-theme="light"] .api-input-wrap input {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
  color: #0f172a;
}

/* ===== COMMAND PALETTE MODAL ===== */
.palette-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10006;
  /* right above terminal overlay */
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 10vh;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.palette-overlay.active {
  opacity: 1;
  visibility: visible;
}

.palette-modal {
  width: 100%;
  max-width: 600px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(6, 182, 212, 0.15);
  overflow: hidden;
  transform: scale(0.95) translateY(-10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.palette-overlay.active .palette-modal {
  transform: scale(1) translateY(0);
}

.palette-header {
  display: flex;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.palette-search-icon {
  color: var(--accent-primary);
  font-size: 1.1rem;
  margin-right: 15px;
  text-shadow: 0 0 8px rgba(6, 182, 212, 0.3);
}

#paletteInput {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.05rem;
  outline: none;
  font-family: inherit;
}

.palette-esc-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 0.65rem;
  font-family: "Space Mono", monospace;
  color: var(--text-secondary);
}

.palette-body {
  max-height: 320px;
  overflow-y: auto;
  padding: 12px;
}

.palette-results {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.palette-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-radius: 10px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.palette-item-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.palette-item-icon {
  font-size: 0.95rem;
  width: 20px;
  text-align: center;
  color: var(--text-muted);
  transition: color 0.2s;
}

.palette-item-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.palette-item-shortcut {
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.palette-item:hover,
.palette-item.selected {
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-primary);
}

.palette-item:hover .palette-item-icon,
.palette-item.selected .palette-item-icon {
  color: var(--accent-primary);
  text-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
}

.palette-item:hover .palette-item-shortcut,
.palette-item.selected .palette-item-shortcut {
  color: var(--accent-primary);
  border-color: rgba(6, 182, 212, 0.2);
}

.palette-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: "Space Mono", monospace;
}

.palette-footer span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.palette-footer i {
  font-size: 0.75rem;
}

[data-theme="light"] .palette-modal {
  background: rgba(248, 250, 252, 0.95);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15), 0 0 40px rgba(6, 182, 212, 0.05);
}

[data-theme="light"] .palette-header {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .palette-esc-badge {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text-secondary);
}

[data-theme="light"] .palette-item-shortcut {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.05);
  color: var(--text-muted);
}

[data-theme="light"] .palette-item:hover,
[data-theme="light"] .palette-item.selected {
  background: rgba(6, 182, 212, 0.08);
}

[data-theme="light"] .palette-footer {
  background: rgba(0, 0, 0, 0.02);
  border-top-color: rgba(0, 0, 0, 0.04);
}

/* ===== CHATBOT QUICK-PROMPT PILLS ===== */
.chatbot-pills {
  display: flex;
  gap: 8px;
  padding: 8px 15px;
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  scrollbar-width: none;
  /* Firefox */
}

.chatbot-pills::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.chat-pill {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  color: var(--text-secondary);
  padding: 6px 12px;
  font-size: 0.75rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.chat-pill:hover {
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

.chat-pill:active {
  transform: translateY(0);
}

[data-theme="light"] .chatbot-pills {
  background: rgba(0, 0, 0, 0.02);
  border-top-color: rgba(0, 0, 0, 0.04);
  border-bottom-color: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .chat-pill {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
  color: var(--text-secondary);
}

[data-theme="light"] .chat-pill:hover {
  background: rgba(6, 182, 212, 0.08);
}

/* =========================================
   FLOATING QUICK CONNECT WIDGET
   ========================================= */
.quick-connect-widget {
  position: fixed;
  bottom: 90px;
  left: 17px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.quick-connect-widget.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.qc-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.qc-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.qc-item {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.qc-item:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: scale(1.15);
  box-shadow: 0 5px 20px rgba(6, 182, 212, 0.6);
  color: #fff;
}

.qc-toggle {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.4);
  transition: all 0.3s ease;
  animation: float-qc 4s ease-in-out infinite alternate;
}

.qc-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.6);
}

.qc-toggle i {
  transition: transform 0.3s ease;
}

.qc-toggle.active i {
  transform: rotate(45deg);
}

@keyframes float-qc {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

/* Globals & Typography for Smaller Screens */
@media (max-width: 1200px) {
  .glass-hero-container {
    max-width: 95%;
  }
}

@media (max-width: 1024px) {
  .section-wrap {
    padding: 60px 20px;
  }
  
  /* Hero Section */
  .glass-hero-container {
    flex-direction: column-reverse;
    align-items: stretch;
    text-align: center;
    border-radius: 20px;
    padding: 0;
  }
  
  .glass-hero-content {
    width: 100%;
    padding: 40px 20px;
    align-items: center;
  }
  
  .glass-hero-visual {
    width: 100%;
    padding: 20px;
    height: 350px;
    min-height: auto;
  }
  
  .glass-hero-visual .fading-portrait {
    max-width: 100%;
    height: 100%;
  }
  
  .glass-socials-row {
    justify-content: center;
  }

  /* About Grid */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-photo-col {
    max-width: 300px;
    margin: 0 auto;
  }
  
  /* Grids fallback */
  .services-grid, .skills-grid, .projects-grid, .assign-grid, .gallery-grid, .gallery-wrapper {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Skills Layout */
  .skills-layout-grid {
    grid-template-columns: 1fr;
  }
  
  /* Timeline */
  .tl-card {
    width: 100%;
  }
}

@media (max-width: 768px) {
  /* Navbar tweaks */
  .header-right {
    gap: 10px;
  }
  .toggles-wrapper button {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  .navbar-links {
    flex-direction: column;
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
  }

  /* Hero Section */
  .hero-name .glitch-text {
    font-size: 2.5rem;
  }
  .hero-desc {
    font-size: 0.95rem;
  }
  
  .glass-hero-actions {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }
  
  .glass-hero-actions a {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  
  /* About Details Grid */
  .about-details-grid {
    grid-template-columns: 1fr !important;
  }
  .detail-card {
    padding: 15px;
  }
  
  /* Grids fallback */
  .services-grid, .skills-grid, .projects-grid, .assign-grid, .gallery-grid, .gallery-wrapper, .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  /* Timelines */
  .exp-timeline, .timeline {
    padding-left: 10px;
  }
  .exp-dot, .tl-dot {
    left: -15px;
  }
  .tl-line {
    left: -11px;
  }
  
  /* Skills Tabs */
  .skills-tabs {
    flex-wrap: wrap;
    justify-content: center;
  }
  .skill-tab-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  /* Globals */
  .section-wrap {
    padding: 40px 15px;
  }
  .service-card {
    padding: 25px 20px;
  }
  .section-title {
    font-size: 2rem;
  }
  
  /* Header */
  .header-right {
    gap: 5px;
  }
  .toggles-wrapper {
    display: flex;
    gap: 2px;
  }
  .toggles-wrapper button {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
  .hamburger {
    display: flex;
  }
  
  /* Hero */
  .hero-name .glitch-text {
    font-size: 2rem;
  }
  .hero-desc {
    font-size: 0.9rem;
  }
  .glass-hero-content {
    padding: 30px 15px;
  }
  .glass-hero-visual {
    height: 280px;
  }
  .glass-socials-row {
    flex-wrap: wrap;
    gap: 10px;
  }
  .glass-social {
    width: 40px;
    height: 40px;
  }

  /* Stats cards */
  .gh-stats-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .live-status-time {
    font-size: 1.2rem;
  }

  /* Timelines */
  .exp-card, .tl-card {
    padding: 15px;
  }
  .exp-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  /* Forms */
  .input-group input, .input-group textarea {
    padding: 12px;
  }
  
  /* Wave divider */
  .wave-divider {
    height: 40px;
  }
}

@media (max-width: 360px) {
  .hero-name .glitch-text {
    font-size: 1.6rem;
  }
  .about-photo-col {
    max-width: 100%;
  }
}