/* ===================================
   CYBERPUNK/FUTURISTIC TECH STYLE
   Professional IT Profile Website
   =================================== */

:root {
  /* Cyberpunk Color Palette */
  --cyber-black: #0a0a0f;
  --cyber-dark: #0f0f1e;
  --cyber-cyan: #00f0ff;
  --cyber-magenta: #ff006e;
  --cyber-purple: #7b2cbf;
  --cyber-blue: #00b4d8;
  
  /* Text Colors */
  --text-primary: #e8f5ff;
  --text-secondary: #a8b2d1;
  --text-muted: #6b7a99;
  
  /* Neon Glows */
  --glow-cyan: 0 0 10px rgba(0, 240, 255, 0.5),
               0 0 20px rgba(0, 240, 255, 0.3),
               0 0 30px rgba(0, 240, 255, 0.1);
  --glow-magenta: 0 0 10px rgba(255, 0, 110, 0.5),
                  0 0 20px rgba(255, 0, 110, 0.3);
  --glow-purple: 0 0 10px rgba(123, 44, 191, 0.4);
  
  /* Legacy variables for compatibility */
  --bg: var(--cyber-black);
  --bg-soft: rgba(15, 15, 30, 0.85);
  --accent: var(--cyber-cyan);
  --accent-soft: rgba(0, 240, 255, 0.25);
  --text-main: var(--text-primary);
  --text-sub: var(--text-secondary);
  --radius-xl: 16px;
  --transition-fast: 120ms ease-out;
  
  /* Typography */
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  --font-sans: 'Inter', 'Space Grotesk', system-ui, sans-serif;
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  cursor: none;
}

a, button, input, textarea {
  cursor: none;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background-color: var(--cyber-black);
  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),
    url("assets/images/bg.jpg");
  background-size: 50px 50px, 50px 50px, cover;
  background-position: 0 0, 0 0, center;
  background-repeat: repeat, repeat, no-repeat;
  background-attachment: scroll, scroll, fixed;
  animation: gridMove 30s linear infinite;
}

@keyframes gridMove {
  0% { background-position: 0 0, 0 0, center; }
  100% { background-position: 50px 50px, 50px 50px, center; }
}

/* Cyberpunk gradient overlay */
body::before {
  content: "";
  position: fixed;
  inset: -30%;
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 240, 255, 0.15), transparent 50%),
    radial-gradient(circle at 100% 0%, rgba(123, 44, 191, 0.18), transparent 50%),
    radial-gradient(circle at 10% 100%, rgba(255, 0, 110, 0.12), transparent 50%),
    radial-gradient(circle at 90% 100%, rgba(0, 180, 216, 0.15), transparent 50%);
  filter: blur(60px);
  opacity: 0.6;
  z-index: -3;
  pointer-events: none;
  animation: cyberGlow 20s ease-in-out infinite alternate;
}

@keyframes cyberGlow {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.6; }
  50% { transform: translate3d(-3%, 3%, 0) scale(1.1); opacity: 0.8; }
  100% { transform: translate3d(2%, -2%, 0) scale(1.05); opacity: 0.6; }
}

/* Scanline effect + vignette */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: 
    repeating-linear-gradient(
      0deg,
      rgba(0, 240, 255, 0.03),
      rgba(0, 240, 255, 0.03) 1px,
      transparent 1px,
      transparent 2px
    ),
    radial-gradient(ellipse at center, transparent 40%, rgba(10, 10, 15, 0.8) 100%);
  z-index: -1;
  pointer-events: none;
  animation: scanline 8s linear infinite;
}

@keyframes scanline {
  0% { transform: translateY(0); }
  100% { transform: translateY(10px); }
}

/* Canvas particles */
#snow-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  pointer-events: none;
}

/* Layout */
.page {
  height: 100vh;
  max-width: 1320px;
  margin: 0 auto;
  padding: 32px 32px 64px;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.logo {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--cyber-cyan);
  text-shadow: var(--glow-cyan);
  transition: all 0.3s ease;
}

.logo:hover {
  text-shadow: var(--glow-cyan), 0 0 40px rgba(0, 240, 255, 0.4);
}

.pill {
  border-radius: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(0, 240, 255, 0.3);
  font-size: 11px;
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  backdrop-filter: blur(12px);
  background: rgba(15, 15, 30, 0.8);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
  animation: pulseBorder 3s ease-in-out infinite;
}

@keyframes pulseBorder {
  0%, 100% { border-color: rgba(0, 240, 255, 0.3); box-shadow: 0 0 10px rgba(0, 240, 255, 0.1); }
  50% { border-color: rgba(0, 240, 255, 0.6); box-shadow: 0 0 15px rgba(0, 240, 255, 0.3); }
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--cyber-cyan);
  box-shadow: 0 0 8px var(--cyber-cyan);
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.9); }
}

main {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
}

@media (max-width: 768px) {
  main {
    grid-template-columns: 1fr;
    align-items: flex-start;
    padding: 20px;
    overflow: auto;
  }
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* Card base - Cyberpunk Glassmorphism */
.card {
  position: relative;
  background: rgba(15, 15, 30, 0.7);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0, 240, 255, 0.2);
  backdrop-filter: blur(12px) saturate(150%);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(0, 240, 255, 0.1);
  padding: 20px 22px;
  overflow: hidden;
  opacity: 0;
  transform: perspective(900px) translateY(18px) scale(0.98);
  transform-style: preserve-3d;
  transition:
    transform 120ms ease-out,
    border-color 120ms ease-out,
    box-shadow 120ms ease-out,
    background-color 120ms ease-out;
  will-change: transform;
}

.card.card-enter {
  animation: cardEnter 600ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: perspective(900px) translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: perspective(900px) translateY(0) scale(1);
  }
}

.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(
      circle at var(--mouse-x, 50%) var(--mouse-y, 0%),
      rgba(0, 240, 255, 0.3),
      rgba(255, 0, 110, 0.2) 40%,
      transparent 70%
    );
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease-out;
  z-index: -1;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(0, 240, 255, 0.2),
    inset 0 1px 0 rgba(0, 240, 255, 0.2);
}

.card:hover::before {
  opacity: 1;
}

.card-title {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--cyber-cyan);
  margin-bottom: 12px;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.card.hero-card {
  background-color: rgba(255, 255, 255, 0);
  backdrop-filter: none !important;
  border: none;
  box-shadow: none;
}

/* Hero Section */
.hero-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-bottom: 22px;
}

.avatar {
  width: 100px;
  height: 100px;
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
  border: 2px solid var(--cyber-cyan);
  overflow: hidden;
  background: rgba(15, 15, 30, 0.8);
  position: relative;
  box-shadow: 
    0 0 20px rgba(0, 240, 255, 0.4),
    inset 0 0 20px rgba(0, 240, 255, 0.1);
  animation: avatarRotate 8s linear infinite;
  transition: all 0.3s ease;
}

@keyframes avatarRotate {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

.avatar:hover {
  transform: scale(1.05);
  box-shadow: 
    0 0 30px rgba(0, 240, 255, 0.6),
    0 0 50px rgba(255, 0, 110, 0.3),
    inset 0 0 20px rgba(0, 240, 255, 0.2);
}

.avatar-inner {
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  background-size: cover;
  background-position: center;
  background-image: url("assets/images/avatar.jpg");
  filter: saturate(1.1);
}

.hero-heading {
  font-family: var(--font-mono);
  font-size: 42px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--cyber-cyan), var(--cyber-purple), var(--cyber-magenta));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite, glitchText 5s infinite;
  position: relative;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes glitchText {
  0%, 90%, 100% { transform: translate(0); }
  91% { transform: translate(-2px, 2px); }
  92% { transform: translate(2px, -2px); }
  93% { transform: translate(-2px, -2px); }
  94% { transform: translate(2px, 2px); }
  95% { transform: translate(0); }
}

.hero-sub {
  font-size: 15px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  margin-bottom: 10px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.hero-sub::after {
  content: '█';
  animation: cursorBlink 1s step-end infinite;
  color: var(--cyber-cyan);
}

@keyframes cursorBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  border-radius: 4px;
  border: 1px solid rgba(0, 240, 255, 0.4);
  padding: 5px 12px;
  font-size: 10px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  background: rgba(15, 15, 30, 0.9);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tag::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--cyber-cyan), var(--cyber-magenta));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tag:hover {
  border-color: var(--cyber-cyan);
  color: var(--text-primary);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
  transform: translateY(-2px);
}

.tag:hover::before {
  opacity: 0.1;
}

/* About & Content */
.about-text {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.6;
  margin-top: 4px;
}

/* Social Links */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.social-btn {
  border-radius: 12px;
  padding: 12px 15px;
  border: 1px solid rgba(0, 240, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  color: var(--text-primary);
  background: rgba(15, 15, 30, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(0, 240, 255, 0.1));
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.social-btn:hover::before {
  transform: translateX(0);
}

.social-btn:hover {
  transform: translateX(5px) translateY(-2px);
  border-color: var(--cyber-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
  background: rgba(15, 15, 30, 0.95);
}

.social-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 15, 0.9);
  font-size: 18px;
  transition: all 0.3s ease;
}

.social-logo.discord {
  border-color: #5865f2;
  color: #5865f2;
}

.social-btn:hover .social-logo.discord {
  background: rgba(88, 101, 242, 0.2);
  box-shadow: 0 0 15px rgba(88, 101, 242, 0.5);
}

.social-logo.github {
  border-color: #e5e7eb;
  color: #e5e7eb;
}

.social-btn:hover .social-logo.github {
  background: rgba(229, 231, 235, 0.2);
  box-shadow: 0 0 15px rgba(229, 231, 235, 0.5);
}

.social-logo.steam {
  border-color: #0ea5e9;
  color: #0ea5e9;
}

.social-btn:hover .social-logo.steam {
  background: rgba(14, 165, 233, 0.2);
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.5);
}

.social-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.social-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
}

.social-text span {
  font-size: 12px;
  color: var(--text-sub);
}

/* Stack & Tech */
.stack-card {
  margin-bottom: 18px;
}

.stack-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.chip {
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 11px;
  font-family: var(--font-mono);
  background: rgba(15, 15, 30, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.chip:hover {
  border-color: var(--cyber-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
  transform: translateY(-2px);
}

.chip strong {
  color: var(--cyber-cyan);
  font-weight: 600;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

/* Gear Grid */
.gear-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

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

.gear-item {
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 240, 255, 0.25);
  background: rgba(15, 15, 30, 0.9);
  font-size: 13px;
  transition: all 0.3s ease;
}

.gear-item:hover {
  border-color: var(--cyber-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
  transform: translateY(-2px);
}

.gear-label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 9px;
  color: var(--cyber-cyan);
  margin-bottom: 6px;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

.gear-name {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.5;
}

/* Now List */
.now-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--text-sub);
}

.now-list li::marker {
  color: var(--accent);
}

/* Footer */
footer {
  margin-top: 26px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-sub);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

a.mail-link {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.3s ease;
}

a.mail-link:hover {
  text-decoration: underline;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* Custom Cursor */
.cursor-fx {
  position: fixed;
  width: 22px;
  height: 22px;
  border: 2px solid var(--cyber-cyan);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 80ms ease-out;
  z-index: 10001;
  box-shadow: 
    0 0 10px rgba(0, 240, 255, 0.5),
    inset 0 0 10px rgba(0, 240, 255, 0.3);
}

/* Intro Overlay */
#intro-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 1;
  transition: opacity 300ms ease-out;
}

.intro-text {
  font-family: var(--font-mono);
  color: var(--cyber-cyan);
  font-size: 16px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  text-shadow: 
    0 0 10px rgba(0, 240, 255, 0.8),
    0 0 20px rgba(0, 240, 255, 0.5),
    0 0 30px rgba(0, 240, 255, 0.3);
  animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.02); }
}

body.entered #intro-overlay {
  opacity: 0;
  pointer-events: none;
}
