/* ========================================
   qSa3ed Website - Gaming Portfolio
   Minecraft + Lunar Client Inspired
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Press+Start+2P&display=swap');

:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.8);
  --bg-card-hover: rgba(30, 41, 59, 0.9);
  --text-primary: #f0f4ff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-cyan: #00f0ff;
  --accent-blue: #3b82f6;
  --accent-purple: #a855f7;
  --accent-orange: #ff6b35;
  --accent-gold: #ffd700;
  --accent-green: #44b37f;
  --accent-red: #ff4444;
  --accent-pink: #ff4d94;
  --gradient-main: linear-gradient(135deg, #00f0ff, #3b82f6, #a855f7);
  --gradient-warm: linear-gradient(135deg, #ff6b35, #ffd700);
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  --shadow-glow-cyan: 0 0 20px rgba(0, 240, 255, 0.3);
  --shadow-glow-warm: 0 0 20px rgba(255, 107, 53, 0.3);
  --shadow-glow-purple: 0 0 20px rgba(168, 85, 247, 0.3);
  --border-glow: 1px solid rgba(0, 240, 255, 0.15);
  --border-pixel: 2px solid rgba(0, 240, 255, 0.2);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-pixel: 'Press Start 2P', monospace;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --max-width: 1200px;
  --nav-height: 72px;
}

[dir="rtl"] {
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  cursor: none;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

/* ========================================
   SCROLLBAR
   ======================================== */

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: var(--accent-cyan);
  border-radius: 4px;
  box-shadow: var(--shadow-glow-cyan);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-blue); }

/* ========================================
   CUSTOM CURSOR (FALLBACK)
   ======================================== */

body:not(.cursor-loaded) * {
  cursor: auto !important;
}

/* ========================================
   CURSOR STYLES
   ======================================== */

#custom-cursor {
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  transition: width var(--transition-smooth), height var(--transition-smooth);
}

#cursor-trail {
  position: fixed;
  pointer-events: none;
  z-index: 99998;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.cursor-pixel {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent-cyan);
  box-shadow: 0 0 6px var(--accent-cyan);
  border-radius: 1px;
  transition: all 0.1s ease;
}

.cursor-diamond {
  width: 100%;
  height: 100%;
  position: relative;
}

.cursor-diamond::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  background: var(--accent-cyan);
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow:
    0 0 10px var(--accent-cyan),
    0 0 20px rgba(0, 240, 255, 0.3),
    inset 0 0 8px rgba(255,255,255,0.3);
  border-radius: 2px;
  transition: all var(--transition-smooth);
}

.cursor-diamond::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,0.8);
  transform: translate(-50%, -50%) rotate(45deg);
  border-radius: 1px;
}

#custom-cursor.hovering .cursor-diamond::before {
  width: 24px;
  height: 24px;
  background: var(--accent-gold);
  box-shadow:
    0 0 20px var(--accent-gold),
    0 0 40px rgba(255, 215, 0, 0.4);
}

#custom-cursor.clicking .cursor-diamond::before {
  width: 12px;
  height: 12px;
  background: var(--accent-orange);
  box-shadow:
    0 0 30px var(--accent-orange),
    0 0 60px rgba(255, 107, 53, 0.5);
}

#cursor-glow {
  position: fixed;
  pointer-events: none;
  z-index: 99997;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.08), transparent 70%);
  transform: translate(-50%, -50%);
  transition: width var(--transition-smooth), height var(--transition-smooth);
}

#cursor-glow.hovering {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.12), transparent 70%);
}

/* ========================================
   NAVIGATION
   ======================================== */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(10, 14, 26, 0.8);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: var(--border-glow);
  transition: background var(--transition-smooth);
}

nav.scrolled {
  background: rgba(10, 14, 26, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: none;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-main);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-pixel);
  font-size: 10px;
  color: white;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.nav-logo-icon::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.nav-logo-text {
  font-family: var(--font-pixel);
  font-size: 14px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  transition: all var(--transition-smooth);
  position: relative;
  cursor: none;
}

.nav-links a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-main);
  transform: translateX(-50%);
  transition: width var(--transition-smooth);
  border-radius: 1px;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(0, 240, 255, 0.05);
}

.nav-links a:hover::before {
  width: 60%;
}

.nav-links a.active {
  color: var(--accent-cyan);
}

.nav-links a.active::before {
  width: 60%;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  border: var(--border-pixel);
}

.lang-btn {
  padding: 6px 12px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: none;
  transition: all var(--transition-smooth);
}

.lang-btn.active {
  background: var(--gradient-main);
  color: white;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-smooth);
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========================================
   AUTH BUTTON
   ======================================== */

.auth-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--gradient-main);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: none;
  transition: all var(--transition-smooth);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
}

.auth-btn .discord-icon {
  width: 18px;
  height: 18px;
  fill: white;
}

.auth-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 4px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  border: var(--border-pixel);
  cursor: none;
  transition: all var(--transition-smooth);
}

.auth-user:hover {
  background: rgba(255,255,255,0.1);
}

.auth-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.auth-username {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ========================================
   SECTIONS
   ======================================== */

section {
  position: relative;
  padding: 100px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--accent-cyan);
  letter-spacing: 2px;
  margin-bottom: 12px;
  padding: 6px 16px;
  border: var(--border-pixel);
  border-radius: var(--radius-sm);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
  animation: pixelPulse 2s ease-in-out infinite;
}

@keyframes pixelPulse {
  0%, 100% { box-shadow: 0 0 5px rgba(0,240,255,0.2); }
  50% { box-shadow: 0 0 20px rgba(0,240,255,0.4); }
}

.section-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ========================================
   HERO SECTION
   ======================================== */

#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 50% 50%, rgba(0, 240, 255, 0.03) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 20%, rgba(168, 85, 247, 0.03) 0%, transparent 50%),
              radial-gradient(ellipse at 20% 80%, rgba(255, 107, 53, 0.02) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(2%, 2%) rotate(3deg); }
}

.hero-grid-bg {
  position: absolute;
  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;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(0, 240, 255, 0.08);
  border: var(--border-pixel);
  border-radius: var(--radius-md);
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--accent-cyan);
  margin-bottom: 24px;
  animation: float 3s ease-in-out infinite;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-greeting {
  font-size: clamp(16px, 2vw, 22px);
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 8px;
}

.hero-name {
  font-size: clamp(48px, 10vw, 120px);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heroNameFloat 4s ease-in-out infinite;
  position: relative;
  display: inline-block;
  filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.2));
}

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

.hero-role {
  font-size: clamp(18px, 3vw, 32px);
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-role-text {
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(14px, 1.5vw, 18px);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: none;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

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

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: var(--gradient-main);
  color: white;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.5);
  transform: translateY(-3px);
}

.btn-secondary {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  border: var(--border-pixel);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.btn-gold {
  background: var(--gradient-warm);
  color: #1a1a2e;
  box-shadow: 0 0 25px rgba(255, 107, 53, 0.3);
}

.btn-gold:hover {
  box-shadow: 0 0 40px rgba(255, 107, 53, 0.5);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-family: var(--font-pixel);
  animation: float 2s ease-in-out infinite;
  cursor: none;
}

.hero-scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--accent-cyan);
  border-bottom: 2px solid var(--accent-cyan);
  transform: rotate(45deg);
  animation: scrollArrow 1.5s ease-in-out infinite;
}

@keyframes scrollArrow {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 1; }
  50% { transform: rotate(45deg) translate(5px, 5px); opacity: 0.5; }
}

/* ========================================
   FLOATING PIXEL ELEMENTS
   ======================================== */

.floating-pixel {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  opacity: 0.15;
  border-radius: 1px;
  animation: floatPixel var(--duration, 6s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes floatPixel {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  25% { transform: translateY(-20px) rotate(90deg) scale(1.2); }
  50% { transform: translateY(-40px) rotate(180deg) scale(0.8); }
  75% { transform: translateY(-20px) rotate(270deg) scale(1.1); }
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-avatar-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-avatar-frame {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.15), inset 0 0 30px rgba(0, 240, 255, 0.05);
}

.about-avatar-frame::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--gradient-main);
  border-radius: var(--radius-lg);
  z-index: -1;
  animation: borderRotate 4s linear infinite;
}

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

.about-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
  font-weight: 900;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: var(--accent-cyan);
  text-shadow: 0 0 40px rgba(0, 240, 255, 0.3);
  font-family: var(--font-pixel);
  font-size: 60px;
}

.about-avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-info h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.about-info h2 span {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-info p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

.about-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.about-badge {
  padding: 10px 20px;
  background: rgba(255,255,255,0.03);
  border: var(--border-pixel);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--transition-smooth);
  min-width: 120px;
}

.about-badge:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
  transform: translateY(-2px);
}

.about-badge-value {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}

.about-badge-label {
  font-size: 11px;
  color: var(--text-muted);
}

/* ========================================
   SKILLS SECTION
   ======================================== */

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

.skill-card {
  padding: 28px 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: var(--border-glow);
  backdrop-filter: blur(10px);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  cursor: none;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-main);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-smooth);
}

.skill-card:hover::before {
  transform: scaleX(1);
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), var(--shadow-glow-cyan);
  background: var(--bg-card-hover);
}

.skill-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
  position: relative;
}

.skill-card-icon.cyan { background: rgba(0, 240, 255, 0.1); color: var(--accent-cyan); }
.skill-card-icon.purple { background: rgba(168, 85, 247, 0.1); color: var(--accent-purple); }
.skill-card-icon.orange { background: rgba(255, 107, 53, 0.1); color: var(--accent-orange); }
.skill-card-icon.gold { background: rgba(255, 215, 0, 0.1); color: var(--accent-gold); }
.skill-card-icon.green { background: rgba(68, 179, 127, 0.1); color: var(--accent-green); }
.skill-card-icon.pink { background: rgba(255, 77, 148, 0.1); color: var(--accent-pink); }
.skill-card-icon.blue { background: rgba(59, 130, 246, 0.1); color: var(--accent-blue); }

.skill-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.skill-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========================================
   PROJECTS SECTION
   ======================================== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: var(--border-glow);
  overflow: hidden;
  transition: all var(--transition-smooth);
  cursor: none;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), var(--shadow-glow-cyan);
}

.project-card-image {
  height: 180px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg-card) 0%, transparent 50%);
}

.project-card-image-text {
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--accent-cyan);
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px;
  opacity: 0.6;
}

.project-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.project-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  flex: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.project-tech-tag {
  padding: 4px 12px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: var(--accent-cyan);
  font-weight: 500;
}

.project-actions {
  display: flex;
  gap: 10px;
}

.project-actions .btn {
  padding: 10px 20px;
  font-size: 13px;
}

/* ========================================
   STATS SECTION
   ======================================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.stat-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: var(--border-glow);
  transition: all var(--transition-smooth);
  cursor: none;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.05), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

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

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.stat-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.stat-number {
  font-family: var(--font-pixel);
  font-size: 28px;
  color: var(--accent-cyan);
  margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ========================================
   DISCORD SECTION
   ======================================== */

#discord {
  text-align: center;
}

.discord-card {
  max-width: 500px;
  margin: 0 auto;
  padding: 48px 36px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 2px solid rgba(88, 101, 242, 0.3);
  box-shadow: 0 0 40px rgba(88, 101, 242, 0.1);
  position: relative;
  overflow: hidden;
}

.discord-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(88, 101, 242, 0.05), transparent, rgba(0, 240, 255, 0.05), transparent);
  animation: discordRotate 10s linear infinite;
}

@keyframes discordRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.discord-card-content {
  position: relative;
  z-index: 1;
}

.discord-icon-large {
  width: 64px;
  height: 64px;
  fill: #5865F2;
  margin-bottom: 20px;
}

.discord-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.discord-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.7;
}

.discord-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  background: #5865F2;
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  cursor: none;
  transition: all var(--transition-smooth);
  box-shadow: 0 0 20px rgba(88, 101, 242, 0.3);
}

.discord-login-btn:hover {
  background: #4752C4;
  transform: translateY(-3px);
  box-shadow: 0 0 35px rgba(88, 101, 242, 0.5);
}

.discord-user-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-lg);
  border: var(--border-glow);
  margin-bottom: 20px;
  text-align: left;
}

.discord-user-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.discord-user-info h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.discord-user-info p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ========================================
   SOCIALS SECTION
   ======================================== */

.socials-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 32px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: var(--border-glow);
  transition: all var(--transition-smooth);
  cursor: none;
  min-width: 120px;
}

.social-link:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), var(--shadow-glow-cyan);
}

.social-link-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.social-link-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.social-link:hover .social-link-label {
  color: var(--accent-cyan);
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.contact-info h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.contact-info p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.03);
  border: var(--border-glow);
  border-radius: var(--radius-md);
  transition: all var(--transition-smooth);
  cursor: none;
}

.contact-method:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(0, 240, 255, 0.3);
  transform: translateX(4px);
}

[dir="rtl"] .contact-method:hover {
  transform: translateX(-4px);
}

.contact-method-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-method-icon.email { background: rgba(0, 240, 255, 0.1); color: var(--accent-cyan); }
.contact-method-icon.discord { background: rgba(88, 101, 242, 0.1); color: #5865F2; }

.contact-method-text {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

.contact-method-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}

.contact-form {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: var(--border-glow);
  padding: 32px;
}

.contact-form h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.form-group {
  margin-bottom: 16px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: var(--border-pixel);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  transition: all var(--transition-smooth);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
  background: rgba(255,255,255,0.05);
}

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

/* ========================================
   OWNER DASHBOARD
   ======================================== */

.owner-dashboard {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.owner-dashboard.open {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.dashboard-panel {
  width: 100%;
  max-width: 700px;
  max-height: 80vh;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.2);
  overflow: hidden;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  background: rgba(0, 240, 255, 0.05);
  border-bottom: var(--border-glow);
}

.dashboard-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: none;
  transition: color var(--transition-fast);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.dashboard-close:hover {
  color: var(--accent-red);
  background: rgba(255, 68, 68, 0.1);
}

.dashboard-body {
  padding: 28px;
  overflow-y: auto;
  max-height: calc(80vh - 80px);
}

.dashboard-section {
  margin-bottom: 24px;
}

.dashboard-section:last-child {
  margin-bottom: 0;
}

.dashboard-section h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dashboard-field {
  margin-bottom: 12px;
}

.dashboard-field label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.dashboard-field input,
.dashboard-field textarea,
.dashboard-field select {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 13px;
  transition: all var(--transition-fast);
  outline: none;
}

.dashboard-field input:focus,
.dashboard-field textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.dashboard-save-btn {
  width: 100%;
  padding: 14px;
  background: var(--gradient-main);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: none;
  transition: all var(--transition-smooth);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.dashboard-save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
}

/* ========================================
   FOOTER
   ======================================== */

footer {
  text-align: center;
  padding: 40px 24px;
  border-top: var(--border-glow);
  margin-top: 40px;
}

footer p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

footer .brand {
  color: var(--accent-cyan);
  font-weight: 500;
}

/* ========================================
   PARTICLE CANVAS
   ======================================== */

#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ========================================
   REVEAL ANIMATIONS
   ======================================== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ========================================
   TOAST NOTIFICATION
   ======================================== */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  animation: toastIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
}

.toast.success {
  background: rgba(68, 179, 127, 0.9);
  color: white;
}

.toast.error {
  background: rgba(255, 68, 68, 0.9);
  color: white;
}

.toast.info {
  background: rgba(0, 240, 255, 0.9);
  color: #0a0e1a;
}

@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ========================================
   RESPONSIVE
   ======================================== */

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

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

@media (max-width: 768px) {
  section {
    padding: 60px 20px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10, 14, 26, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    border-bottom: var(--border-glow);
    gap: 4px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 14px 16px;
    text-align: center;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .hero-name {
    font-size: clamp(36px, 12vw, 60px);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .about-badge {
    min-width: 100px;
    padding: 8px 14px;
  }

  .about-badge-value {
    font-size: 10px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .discord-card {
    padding: 32px 24px;
  }

  .social-link {
    min-width: 100px;
    padding: 18px 20px;
  }

  .owner-dashboard {
    padding: 12px;
  }

  .dashboard-panel {
    max-height: 90vh;
  }

  .dashboard-body {
    padding: 20px;
  }

  .about-avatar-frame {
    width: 200px;
    height: 200px;
  }

  .about-avatar-placeholder {
    font-size: 40px;
  }
}

@media (max-width: 480px) {
  section {
    padding: 40px 16px;
  }

  .hero-greeting {
    font-size: 14px;
  }

  .hero-subtitle {
    font-size: 13px;
  }

  .section-title {
    font-size: 24px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-number {
    font-size: 22px;
  }

  .nav-logo-text {
    font-size: 11px;
  }

  .auth-btn span {
    display: none;
  }

  .discord-login-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px rgba(0, 240, 255, 0.2); }
  50% { box-shadow: 0 0 25px rgba(0, 240, 255, 0.5); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-float { animation: float 3s ease-in-out infinite; }
.animate-glow { animation: glow 2s ease-in-out infinite; }

/* Pixel decorative border effect */
.pixel-border {
  position: relative;
}

.pixel-border::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border: 2px solid var(--accent-cyan);
  border-radius: inherit;
  opacity: 0.3;
  clip-path: polygon(
    0% 0%, 100% 0%, 100% 100%, 0% 100%,
    4px 4px, calc(100% - 4px) 4px, calc(100% - 4px) calc(100% - 4px), 4px calc(100% - 4px)
  );
}

/* Loading screen */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-pixel {
  width: 32px;
  height: 32px;
  background: var(--gradient-main);
  animation: loadingBounce 0.8s ease-in-out infinite;
  border-radius: 4px;
  margin-bottom: 24px;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
}

@keyframes loadingBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.1); }
}

.loading-text {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--accent-cyan);
  letter-spacing: 2px;
  animation: blink 1s ease-in-out infinite;
}

/* Minecraft block decoration */
.minecraft-block {
  position: absolute;
  width: 32px;
  height: 32px;
  opacity: 0.06;
  pointer-events: none;
  image-rendering: pixelated;
  border: 1px solid rgba(255,255,255,0.05);
  background: linear-gradient(135deg, #8B8B8B, #5a5a5a);
}
