:root {
  --neon-green: #00ff9c;
  --neon-blue: #00b7ff;
  --neon-purple: #a855f7;
  --bg-dark: #050608;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --blur: blur(12px);
  --text-color: #e6fff6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Vazirmatn", sans-serif;
  background: radial-gradient(circle at top, #0b141a, #050608);
  color: var(--text-color);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ---------- هدر ---------- */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 8%;
  background: rgba(5, 6, 8, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 255, 156, 0.1);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-glow {
  font-family: "Orbitron", sans-serif;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--neon-green);
  text-shadow: 0 0 10px rgba(0, 255, 156, 0.5);
  text-decoration: none;
}

nav a {
  color: var(--text-color);
  text-decoration: none;
  margin-right: 25px;
  font-size: 0.9rem;
  transition: 0.3s;
  opacity: 0.8;
}

nav a:hover {
  color: var(--neon-green);
  opacity: 1;
  text-shadow: 0 0 8px var(--neon-green);
}

/* ---------- بخش‌های اصلی ---------- */
section {
  padding: 120px 8% 60px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

h2 {
  font-size: 2.5rem;
  color: var(--neon-green);
  margin-bottom: 50px;
  text-shadow: 0 0 15px rgba(0, 255, 156, 0.4);
  position: relative;
  display: inline-block;
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  transition: 0.4s ease;
}

.glass:hover {
  border-color: var(--neon-green);
  box-shadow: 0 0 20px rgba(0, 255, 156, 0.1);
}

/* ---------- هیرو (اصلاح شده برای حرف آ) ---------- */
#hero {
  text-align: center;
  align-items: center;
  display: flex;
  justify-content: center;
}

#hero h1 {
  font-size: 4.5rem;
  /* اضافه کردن پدینگ برای جلوگیری از بریدگی حروف نئونی */
  padding: 0 20px;
  margin-bottom: 15px;
  line-height: 1.4;
  background: linear-gradient(to right, #fff, var(--neon-green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* فیلتر برای درخشش بهتر بدون بریدگی */
  filter: drop-shadow(0 0 15px rgba(0, 255, 156, 0.3));
}

.hero-btn {
  margin-top: 30px;
  padding: 12px 35px;
  background: transparent;
  border: 1px solid var(--neon-green);
  color: var(--neon-green);
  border-radius: 50px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
  text-decoration: none;
  display: inline-block;
}

.hero-btn:hover {
  background: var(--neon-green);
  color: #000;
  box-shadow: 0 0 25px var(--neon-green);
}

/* ---------- مهارت‌ها ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
}

.skill-card {
  text-align: center;
}

.circle-wrap {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--neon-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-weight: bold;
  box-shadow: inset 0 0 10px rgba(0, 255, 156, 0.2);
}

/* ---------- پروژه‌ها ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.project-card {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: bold;
  font-size: 1.2rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(0, 255, 156, 0.1));
  transition: 0.3s;
}

.project-card:hover::before {
  background: rgba(0, 255, 156, 0.2);
}

/* ---------- ترمینال ---------- */
.terminal {
  background: #000;
  color: var(--neon-green);
  font-family: "Courier New", monospace;
  padding: 20px;
  border-radius: 10px;
  border-left: 4px solid var(--neon-green);
  min-height: 150px;
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ---------- فرم تماس ---------- */
.contact-form {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input {
  width: 100%;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff;
  outline: none;
  font-family: inherit;
}
textarea {
  min-height: 80px;
  field-sizing: content;
  width: 100%;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff;
  outline: none;
  font-family: inherit;
}

input:focus,
textarea:focus {
  border-color: var(--neon-green);
}

.submit-btn {
  padding: 15px;
  background: var(--neon-green);
  color: #000;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
}

/* ---------- مودال رزومه ---------- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.modal-content {
  width: 90%;
  max-width: 400px;
  text-align: center;
}

/* ---------- انیمیشن Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.8s all ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  #hero h1 {
    font-size: 2.8rem;
    padding: 0 10px;
  }
  nav {
    display: none;
  }
}
/* ---------- فوتر جدید ---------- */
.cyber-footer {
  background: rgba(11, 20, 26, 0.95);
  padding: 60px 8% 20px;
  border-top: 1px solid rgba(0, 255, 156, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  color: var(--neon-green);
  margin-bottom: 20px;
  font-size: 1.2rem;
  text-shadow: 0 0 10px rgba(0, 255, 156, 0.3);
}

.footer-section p {
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.3s;
}

.footer-links a:hover {
  color: var(--neon-green);
  padding-right: 5px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-link {
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 8px 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: 0.3s;
}

.social-link:hover {
  border-color: var(--neon-green);
  color: var(--neon-green);
  box-shadow: 0 0 15px rgba(0, 255, 156, 0.2);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  opacity: 0.5;
}
/* ---------- مهارت‌ها (بخش جدید دایره‌ای) ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.skill-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.progress-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  /* ساخت دایره پر شونده با گرادینت */
  background: conic-gradient(
    var(--neon-green) var(--percent),
    rgba(255, 255, 255, 0.05) 0deg
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 0 15px rgba(0, 255, 156, 0.1);
}

.inner-circle {
  width: 100px;
  height: 100px;
  background: #0d1117; /* رنگ پس‌زمینه داخلی برای ایجاد ظاهر حلقه */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-green);
}

.inner-circle svg {
  filter: drop-shadow(0 0 5px var(--neon-green));
}

.skill-card h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: #fff;
}

.skill-desc {
  font-size: 0.85rem;
  opacity: 0.6;
  line-height: 1.5;
}

/* ---------- پروژه‌ها ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.project-card {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: bold;
  font-size: 1.2rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
/* ===== NEON SCROLLBAR ===== */

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--neon-green) #050608;
}

/* WebKit (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: linear-gradient(180deg, #050608, #0b0f14);
  box-shadow: inset 0 0 10px rgba(0, 255, 156, 0.15);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    var(--neon-green),
    var(--neon-blue),
    var(--neon-purple)
  );
  border-radius: 20px;
  box-shadow:
    0 0 10px rgba(0, 255, 156, 0.8),
    0 0 20px rgba(0, 183, 255, 0.6),
    0 0 30px rgba(168, 85, 247, 0.5);
  border: 1px solid rgba(0, 255, 156, 0.6);
}

::-webkit-scrollbar-thumb:hover {
  box-shadow:
    0 0 15px rgba(0, 255, 156, 1),
    0 0 30px rgba(0, 183, 255, 0.9),
    0 0 45px rgba(168, 85, 247, 0.8);
}

/* Optional: subtle pulsing glow */
::-webkit-scrollbar-thumb {
  animation: scrollbarPulse 3s infinite alternate;
}

@keyframes scrollbarPulse {
  from {
    box-shadow:
      0 0 8px rgba(0, 255, 156, 0.6),
      0 0 16px rgba(0, 183, 255, 0.4);
  }
  to {
    box-shadow:
      0 0 14px rgba(0, 255, 156, 1),
      0 0 30px rgba(168, 85, 247, 0.8);
  }
}
/* ===== Theme ===== */
:root {
  /* Neon core */
  --neon-green: #00ff9c;
  --neon-blue: #00b7ff;
  --neon-purple: #a855f7;

  /* Dark Theme (default) */
  --bg-main: #050608;
  --bg-gradient: radial-gradient(circle at top, #0b0f14, #050608);
  --text-main: #e6fff6;
  --glass-bg: rgba(255, 255, 255, 0.06);
  --border-glass: rgba(255, 255, 255, 0.08);
}
/* ===== CYBER LOADING SCREEN ===== */
#preloader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #05080f, #020308);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-core {
  text-align: center;
}

/* Neon ring */
.loader-ring {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid rgba(0, 255, 156, 0.15);
  border-top: 3px solid #00ff9c;
  box-shadow:
    0 0 15px rgba(0, 255, 156, 0.6),
    0 0 30px rgba(0, 183, 255, 0.4);
  animation: spin 1.2s linear infinite;
  margin: auto;
}

/* Text */
.loader-text {
  display: block;
  margin-top: 20px;
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: #9fffe0;
  text-shadow:
    0 0 6px rgba(0, 255, 156, 0.6),
    0 0 14px rgba(0, 183, 255, 0.4);
  animation: flicker 2.5s infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes flicker {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}
/* ===== CYBER LOADING SCREEN ===== */
#preloader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #05080f, #020308);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-core {
  text-align: center;
}

/* Neon ring */
.loader-ring {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid rgba(0, 255, 156, 0.15);
  border-top: 3px solid #00ff9c;
  box-shadow:
    0 0 15px rgba(0, 255, 156, 0.6),
    0 0 30px rgba(0, 183, 255, 0.4);
  animation: spin 1.2s linear infinite;
  margin: auto;
}

/* Text */
.loader-text {
  display: block;
  margin-top: 20px;
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: #9fffe0;
  text-shadow:
    0 0 6px rgba(0, 255, 156, 0.6),
    0 0 14px rgba(0, 183, 255, 0.4);
  animation: flicker 2.5s infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes flicker {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}
