:root {
  --bg: #0a0a0c;
  --bg-2: #0f0f14;
  --cyan: #00f2ff;
  --purple: #7000ff;
  --purple-soft: #9d4edd;
  --glass-bg: rgba(15, 17, 26, 0.55);
  --glass-border: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(at 20% 0%, rgba(112, 0, 255, 0.08) 0%, transparent 50%),
    radial-gradient(at 80% 100%, rgba(0, 242, 255, 0.06) 0%, transparent 50%);
  overflow-x: hidden;
  position: relative;
}

#particle-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}

.ambient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
  animation: float 18s ease-in-out infinite;
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
  top: -10%; left: -10%;
}
.orb-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--purple) 0%, transparent 70%);
  bottom: -20%; right: -15%;
  animation-delay: -9s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.1); }
}

.font-mono, pre, code { font-family: 'JetBrains Mono', monospace; }

.gradient-text {
  background: linear-gradient(135deg, #00f2ff 0%, #7000ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-glass {
  background: rgba(10, 10, 12, 0.75);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link {
  position: relative;
  transition: color 0.2s;
}
.nav-link:hover { color: #00f2ff; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: linear-gradient(90deg, #00f2ff, #7000ff);
  transition: width 0.3s;
}
.nav-link:hover::after { width: 100%; }

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s, box-shadow 0.4s;
  position: relative;
}
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 242, 255, 0) 0%, rgba(0, 242, 255, 0) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: background 0.5s;
  pointer-events: none;
}
.glass-card:hover::before {
  background: linear-gradient(135deg, rgba(0, 242, 255, 0.5) 0%, rgba(112, 0, 255, 0.5) 100%);
}
.glass-card:hover {
  border-color: rgba(0, 242, 255, 0.25);
  box-shadow: 0 20px 60px rgba(0, 242, 255, 0.08), 0 0 0 1px rgba(0, 242, 255, 0.1);
}

.glass-pill {
  background: rgba(0, 242, 255, 0.06);
  border: 1px solid rgba(0, 242, 255, 0.2);
  backdrop-filter: blur(10px);
}

.glowing-border {
  position: relative;
  border: 1px solid rgba(0, 242, 255, 0.3);
  box-shadow: 0 0 30px rgba(0, 242, 255, 0.08), inset 0 0 20px rgba(0, 242, 255, 0.04);
  transition: all 0.4s ease;
}
.glowing-border:hover {
  border-color: rgba(0, 242, 255, 0.7);
  box-shadow: 0 0 40px rgba(0, 242, 255, 0.25), 0 0 80px rgba(112, 0, 255, 0.1), inset 0 0 25px rgba(0, 242, 255, 0.08);
}

.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 242, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 242, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
  animation: grid-drift 30s linear infinite;
}
@keyframes grid-drift {
  from { background-position: 0 0; }
  to { background-position: 60px 60px; }
}

.hero-glow {
  position: absolute;
  top: 20%; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(0, 242, 255, 0.14) 0%, rgba(112, 0, 255, 0.08) 30%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.hero-logo-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.hero-logo {
  width: 56px; height: 56px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 242, 255, 0.3);
  position: relative;
}
.hero-logo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.logo-glow {
  position: relative;
}
.logo-glow::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, #00f2ff, #7000ff);
  z-index: -1;
  filter: blur(10px);
  opacity: 0.5;
  transition: opacity 0.4s;
}
.logo-glow:hover::after {
  opacity: 0.85;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #00f2ff 0%, #00b8c4 100%);
  color: #0a0a0c;
  box-shadow: 0 0 0 1px rgba(0, 242, 255, 0.4), 0 8px 30px rgba(0, 242, 255, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px #00f2ff, 0 12px 40px rgba(0, 242, 255, 0.4), 0 0 60px rgba(112, 0, 255, 0.25);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.btn-secondary:hover {
  border-color: rgba(0, 242, 255, 0.5);
  color: #00f2ff;
  background: rgba(0, 242, 255, 0.05);
  transform: translateY(-2px);
}

.pulse-cta {
  animation: pulse-glow 2.5s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 242, 255, 0.5), 0 8px 30px rgba(0, 242, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(0, 242, 255, 0), 0 8px 40px rgba(0, 242, 255, 0.35);
  }
}

.social-icon {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s;
}
.social-icon:hover {
  color: #00f2ff;
  border-color: rgba(0, 242, 255, 0.5);
  background: rgba(0, 242, 255, 0.06);
  transform: translateY(-2px);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #00f2ff;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.section-title-sm {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.code-key { color: #c084fc; }
.code-var { color: #00f2ff; }
.code-prop { color: #94a3b8; }
.code-str { color: #86efac; }
.code-num { color: #fbbf24; }

.role-chip {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  font-size: 14px;
  color: #cbd5e1;
  transition: all 0.3s;
  font-weight: 500;
}
.role-chip:hover {
  border-color: rgba(0, 242, 255, 0.5);
  color: #00f2ff;
  background: rgba(0, 242, 255, 0.05);
  transform: translateY(-2px);
}

.skill-card {
  padding: 28px;
  position: relative;
}
.skill-card .skill-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(0, 242, 255, 0.12), rgba(112, 0, 255, 0.1));
  border: 1px solid rgba(0, 242, 255, 0.2);
  margin-bottom: 18px;
  transition: transform 0.4s;
}
.skill-card:hover .skill-icon {
  transform: scale(1.08) rotate(-3deg);
}
.skill-card h3 { color: #fff; font-weight: 700; font-size: 1.1rem; }
.skill-card .badges {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px;
}
.badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 5px 10px;
  background: rgba(0, 242, 255, 0.08);
  border: 1px solid rgba(0, 242, 255, 0.2);
  color: #7dd3fc;
  border-radius: 6px;
}

.project-card {
  position: relative;
  overflow: hidden;
}
.project-card .project-img {
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: linear-gradient(135deg, #0a0e1a 0%, #1a0a2e 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.project-card .project-img::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0, 242, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 242, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
}
.project-card .project-img::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(0, 242, 255, 0.15), transparent 60%),
              radial-gradient(circle at 70% 70%, rgba(112, 0, 255, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
}
.project-card:hover .project-img::after { opacity: 1; }
.project-card .project-img .project-icon {
  position: relative;
  z-index: 1;
  font-size: 3rem;
  background: linear-gradient(135deg, #00f2ff, #7000ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.5s;
}
.project-card:hover .project-img .project-icon {
  transform: scale(1.1);
}

.project-card .live-pill {
  position: absolute;
  top: 16px; right: 16px;
  padding: 5px 10px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #4ade80;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}
.project-card .live-pill .dot {
  width: 6px; height: 6px; border-radius: 50%; background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

.project-card .ps-block { margin-top: 14px; }
.project-card .ps-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #00f2ff;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.value-card {
  padding: 30px;
  position: relative;
  overflow: hidden;
}
.value-card .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(0, 242, 255, 0.6);
  letter-spacing: 0.2em;
}
.value-card .ico {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(0, 242, 255, 0.15), rgba(112, 0, 255, 0.12));
  border: 1px solid rgba(0, 242, 255, 0.25);
  margin: 16px 0 18px;
  transition: transform 0.4s;
}
.value-card:hover .ico {
  transform: scale(1.08) rotate(3deg);
}

.contact-glow {
  background: radial-gradient(circle at center, rgba(0, 242, 255, 0.12) 0%, rgba(112, 0, 255, 0.06) 40%, transparent 70%);
}

.logo-mark { display: inline-flex; }

.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .glass-card { backdrop-filter: blur(8px); }
  .hero-glow { width: 400px; height: 400px; }
  .ambient-orb { filter: blur(80px); opacity: 0.25; }
  .orb-1 { width: 300px; height: 300px; }
  .orb-2 { width: 350px; height: 350px; }
  .tilt-card { transform: none !important; }
  #particle-bg { opacity: 0.4; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* DedaByte Labs portfolio polish */
.project-preview {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255,255,255,0.03);
}
.browser-bar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: rgba(4, 8, 18, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.browser-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  opacity: 0.85;
}
.browser-dot.red { background: #ff5f57; }
.browser-dot.yellow { background: #ffbd2e; }
.browser-dot.green { background: #28c840; }
.browser-url {
  margin-left: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-card .live-preview-frame {
  border-radius: 0;
  border: 0;
  background: linear-gradient(135deg, #07111e 0%, #160a26 100%);
}
.project-card .live-preview-frame::before {
  z-index: 0;
  opacity: 0.18;
}
.project-card .live-preview-frame iframe {
  position: absolute;
  inset: 0;
  width: 1440px;
  height: 810px;
  border: 0;
  transform: scale(0.45);
  transform-origin: top left;
  pointer-events: none;
  background: #0a0a0c;
  z-index: 1;
}
.project-card .preview-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.72), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.project-card:hover .preview-overlay { opacity: 1; }
.preview-overlay span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  color: #081014;
  background: linear-gradient(135deg, #00f2ff 0%, #00b8c4 100%);
  font-weight: 800;
  font-size: 12px;
  box-shadow: 0 10px 32px rgba(0, 242, 255, 0.28);
}
.project-card .live-pill.planning {
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(251, 191, 36, 0.35);
  color: #fbbf24;
}
.project-card .live-pill.planning .dot {
  background: #fbbf24;
  box-shadow: 0 0 8px #fbbf24;
}
.preview-fallback {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  color: #00f2ff;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.16em;
  font-size: 11px;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .project-card .live-preview-frame iframe {
    transform: scale(0.32);
  }
}

/* v6 contact/icon fixes */
a[href], button { position: relative; z-index: 20; }
.btn-primary, .btn-secondary, .social-icon, .footer-social { pointer-events: auto; text-decoration: none; }
.brand-svg {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 auto;
  overflow: visible;
}
.social-icon .brand-svg { width: 20px; height: 20px; }
.footer-social {
  color: rgb(100 116 139);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  transition: all .25s ease;
}
.footer-social:hover {
  color: #00f2ff;
  background: rgba(0,242,255,.06);
}
