/* =============================================
   style.css — امین بکتاش پرتفولیو
   این فایل فقط موارد خاص و custom رو پوشش می‌ده
   کلاس‌های Tailwind از output.css میان (CLI build)
   ============================================= */

/* ---------- BASE ---------- */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* جلوگیری از انتخاب ناخواسته متن لوگو و دکمه‌ها */
.logo-text,
.scroll-hint {
  user-select: none;
}

/* ---------- NAVBAR ---------- */
/* blur محاسبه‌شده برای navbar */
#navbar {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* تم روشن — navbar */
body.light #navbar {
  background: rgba(250, 250, 249, 0.88);
}

/* ---------- LIGHT MODE OVERRIDES ---------- */
body.light {
  background-color: #fafaf9;
  color: #1a1a1a;
}

body.light .bg-dark-800 {
  background-color: #f5f4f2;
}
body.light .bg-dark-900 {
  background-color: #fafaf9;
}
body.light .bg-dark-700 {
  background-color: #ece9e6;
}
body.light .bg-dark-600 {
  background-color: #e5e0db;
}

body.light .border-dark-500 {
  border-color: #ddd8d3;
}

body.light .text-gray-100 {
  color: #1a1a1a;
}
body.light .text-gray-200 {
  color: #2a2a2a;
}
body.light .text-gray-300 {
  color: #3a3a3a;
}
body.light .text-gray-400 {
  color: #6b7280;
}
body.light .text-gray-500 {
  color: #9ca3af;
}

body.light .placeholder-gray-600::placeholder {
  color: #c4b8b0;
}

/* اینپوت‌ها در تم روشن */
body.light .form-input {
  background-color: #ece9e6;
  border-color: #ddd8d3;
  color: #1a1a1a;
}

body.light .form-input::placeholder {
  color: #b0a8a0;
}

body.light .form-input:focus {
  border-color: #ea580c;
}

/* کارت‌های پروژه در تم روشن */
body.light .project-card {
  background-color: #ffffff;
  border-color: #e5e0db;
}

body.light .project-card:hover {
  border-color: rgba(234, 88, 12, 0.4);
  box-shadow: 0 12px 32px rgba(234, 88, 12, 0.08);
}

/* تگ‌ها در تم روشن */
body.light .tag {
  background-color: #ece9e6;
  border-color: #ddd8d3;
  color: #6b7280;
}

/* social btn در تم روشن */
body.light .social-btn {
  background-color: #ece9e6;
  border-color: #ddd8d3;
}

/* دکمه theme در تم روشن — کره به چپ می‌ره */
body.light #themeIcon {
  right: auto;
  left: 0.25rem;
}

/* ---------- SKILL BARS ---------- */
/* انیمیشن progress bar هنگام scroll */
.skill-bar {
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- PROJECT CARDS ---------- */
.project-card {
  will-change: transform;
}

/* ---------- FORM ---------- */
/* خروجی select بومی در مرورگرها */
select.form-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
}

select.form-input option {
  background-color: #1a1a1a;
  color: #f5f5f5;
}

body.light select.form-input option {
  background-color: #ece9e6;
  color: #1a1a1a;
}

/* ---------- TAGS ---------- */
.tag {
  display: inline-block;
  background-color: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #9ca3af;
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 12px;
}

/* ---------- SCROLLBAR (دسکتاپ) ---------- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #f97316;
}

body.light ::-webkit-scrollbar-track {
  background: #fafaf9;
}
body.light ::-webkit-scrollbar-thumb {
  background: #ddd8d3;
}

/* ---------- FOCUS VISIBLE (دسترس‌پذیری) ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 2px;
}

/* ---------- RESPONSIVE UTILITIES ---------- */
@media (max-width: 640px) {
  #hero h1 {
    font-size: 2.4rem;
  }

  #hero .hero-btns {
    flex-direction: column;
  }
}

/* ---------- PRINT ---------- */
@media print {
  nav,
  #contact,
  footer {
    display: none;
  }
  section {
    padding: 20px 0;
  }
}
