@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;500;600&display=swap');

:root {
  --cyan: #00f0ff;
  --magenta: #ff00aa;
  --purple: #7b2ff7;
  --dark-bg: #07070d;
  --surface: #0e0e18;
  --surface-hover: #16162a;
  --border: #1a1a2e;
  --text: #c8c8d4;
  --text-bright: #eeeef4;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background-color: var(--dark-bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

::selection {
  background: var(--magenta);
  color: #fff;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--dark-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--cyan);
  border-radius: 3px;
}

/* Grid background */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Gradient orbs */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(0, 240, 255, 0.07);
  top: -100px;
  right: -100px;
}
.orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(255, 0, 170, 0.06);
  bottom: 20%;
  left: -100px;
}
.orb-3 {
  width: 300px;
  height: 300px;
  background: rgba(123, 47, 247, 0.06);
  top: 50%;
  right: 10%;
}

/* Section titles */
.section-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  border-radius: 2px;
}

/* Neon card */
.neon-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.neon-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, transparent 40%, var(--cyan) 50%, transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.neon-card:hover::before {
  opacity: 1;
}
.neon-card:hover {
  border-color: rgba(0, 240, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 240, 255, 0.1), 0 0 0 1px rgba(0, 240, 255, 0.05);
}

/* Tech tag */
.tech-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0, 240, 255, 0.08);
  color: var(--cyan);
  border: 1px solid rgba(0, 240, 255, 0.15);
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}
.tech-tag:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: rgba(0, 240, 255, 0.4);
}

/* CTA button */
.cta-btn {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 28px;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cta-btn:hover {
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2), inset 0 0 20px rgba(0, 240, 255, 0.05);
  transform: translateY(-2px);
}
.cta-btn-magenta {
  border-color: var(--magenta);
  color: var(--magenta);
}
.cta-btn-magenta:hover {
  background: rgba(255, 0, 170, 0.1);
  box-shadow: 0 0 20px rgba(255, 0, 170, 0.2), inset 0 0 20px rgba(255, 0, 170, 0.05);
}

/* Glitch text effect */
@keyframes glitch {
  0%, 100% { text-shadow: 2px 0 var(--cyan), -2px 0 var(--magenta); }
  25% { text-shadow: -2px 0 var(--cyan), 2px 0 var(--magenta); }
  50% { text-shadow: 2px -2px var(--cyan), -2px 2px var(--magenta); }
  75% { text-shadow: -2px 2px var(--cyan), 2px -2px var(--magenta); }
}

.glitch-hover:hover {
  animation: glitch 0.3s ease-in-out;
}

/* Subtle scan line */
.scanline-overlay {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 240, 255, 0.015) 2px,
    rgba(0, 240, 255, 0.015) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* Fade in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.8s ease forwards;
}

/* Pulse glow */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 240, 255, 0.2); }
  50% { box-shadow: 0 0 40px rgba(0, 240, 255, 0.4); }
}

/* Project image */
.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: all 0.4s ease;
}
.neon-card:hover .project-image {
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.1);
}

/* Skill card */
.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  cursor: default;
}
.skill-card:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.1);
}
.skill-card i {
  font-size: 1.75rem;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}
.skill-card:hover i {
  filter: brightness(1.3);
}
.skill-card span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text);
  letter-spacing: 0.5px;
}

/* Contact link */
.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
  width: 100%;
}
.contact-link:hover {
  border-color: var(--cyan);
  background: var(--surface-hover);
  transform: translateX(4px);
}
.contact-link i {
  font-size: 1.25rem;
  color: var(--cyan);
  width: 24px;
  text-align: center;
}

/* Language toggle */
#lang-toggle:hover {
  background: rgba(255, 0, 170, 0.15);
  box-shadow: 0 0 15px rgba(255, 0, 170, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.4rem;
  }
}
