/* ==========================================================================
   Farhad3113 Personal Website — VibeFarsi Graphite & Cyber-Orange Design Tokens
   ========================================================================== */

:root {
  --bg-primary: #07080b;
  --bg-card: #0f1117;
  --bg-card-hover: #151821;
  --bg-subtle: #181b24;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #64748b;
  --border-line: rgba(255, 255, 255, 0.08);
  --border-active: rgba(249, 115, 22, 0.35);
  
  /* Cyber Orange / Graphite Accents */
  --accent-orange: #f97316;
  --accent-orange-glow: rgba(249, 115, 22, 0.18);
  --accent-orange-light: #fb923c;
  --accent-emerald: #10b981;
  --accent-cyan: #06b6d4;
  --accent-linkedin: #0a66c2;

  /* Typography & Geometries */
  --font-fa: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 160ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* CSS Reset & Baseline */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border-line);
}

html {
  font-family: var(--font-fa);
  background-color: var(--bg-primary);
  color: var(--text-main);
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html[lang="en"] {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(249, 115, 22, 0.07) 0%, transparent 60%),
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  line-height: 1.8;
}

/* Typography Overrides */
[dir="rtl"] {
  direction: rtl;
}

[dir="ltr"] {
  direction: ltr;
}

[dir="ltr"] .font-mono-en {
  font-family: var(--font-mono);
}

/* Glassmorphism & High-Tech Cards */
.glass-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  position: relative;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.glass-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  pointer-events: none;
}

.glass-panel:hover {
  border-color: var(--border-active);
  box-shadow: 0 10px 30px -10px var(--accent-orange-glow);
  transform: translateY(-2px);
}

/* Active Button Press Effect */
.btn-press {
  transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
}
.btn-press:active {
  transform: scale(0.97);
}

/* Live Pulse Indicator */
.pulse-indicator {
  position: relative;
  display: inline-flex;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
}

.pulse-indicator::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent-emerald);
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  opacity: 0;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }
  80%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* Micro Tag Badges */
.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: var(--bg-subtle);
  border: 1px solid var(--border-line);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.badge-tag:hover {
  color: var(--accent-orange-light);
  border-color: rgba(249, 115, 22, 0.3);
}

/* Code Preview Terminal */
.terminal-window {
  background: #0a0c10;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  overflow: hidden;
}

.terminal-header {
  background: #0e1117;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-line);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* Subtle glow effects */
.glow-orange {
  text-shadow: 0 0 20px rgba(249, 115, 22, 0.45);
}

/* Timeline & Career Milestones */
.timeline-track {
  position: relative;
  padding-inline-start: 2rem;
}

.timeline-track::before {
  content: '';
  position: absolute;
  inset-inline-start: 7px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-orange) 0%, rgba(255,255,255,0.08) 100%);
}

.timeline-node {
  position: absolute;
  inset-inline-start: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent-orange);
  box-shadow: 0 0 10px var(--accent-orange-glow);
}

/* LinkedIn Specialty Button */
.btn-linkedin {
  background: #0a66c2;
  color: #ffffff;
  transition: all var(--transition-fast);
}
.btn-linkedin:hover {
  background: #004182;
  box-shadow: 0 0 20px rgba(10, 102, 194, 0.35);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #232732;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3b4252;
}

/* Notification Toast */
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: #151821;
  color: #fff;
  border: 1px solid var(--accent-orange);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
#toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
