/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: Arial, sans-serif;
  color: #fff;
  background: #0a192f;
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative; /* برای کنترل موقعیت منو */

}


/* Navbar */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: transparent;
  z-index: 1000;
  transition: padding 0.3s ease, background 0.3s ease;
  padding: 1.2rem 0;
}
.navbar.shrink {
  background: rgba(10,25,47,0.85);
  padding: 0.6rem 0;
}
.logo {
  float: left;
  font-size: 1.5rem;
  font-weight: bold;
  color: #64ffda;
  text-decoration: none;
  line-height: 40px; /* وسط‌چین عمودی */
}
.nav-links {
  float: right;
  margin-top: 4px; /* کمی پایین‌تر بیاد تا وسط لوگو باشه */
}

.nav-links a {
  color: #ccd6f6;
  text-decoration: none;
  font-weight: 500;
  margin-left: 1.5rem;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0%;
  height: 2px;
  background: #64ffda;
  transition: width 0.3s ease;
}
.nav-links a:hover::after {
  width: 100%;
}

/* دکمه منو موبایل */
.menu-toggle {
  position: absolute;
  right: 0;
  top: 0;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  display: none;
}

/* حالت موبایل */
@media (max-width: 768px) {
  .logo, .nav-links {
    float: none;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    background: rgba(10,25,47,0.95);
    position: absolute;
    top: 100%; right: 0;
    width: 200px;
    padding: 1rem;
  }
  .nav-links.open {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
}


/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero h1 span {
  color: #64ffda;
}
.hero p {
  color: #8892b0;
  margin-bottom: 3rem;
}
.cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.button {
  background: #64ffda;
  color: #0a192f;
  padding: 0.7rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
}
.button--ghost {
  background: transparent;
  border: 1px solid #64ffda;
  color: #64ffda;
}

/* Background blobs */
.bg-blobs {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(100,255,218,0.15), transparent 40%),
              radial-gradient(circle at 80% 20%, rgba(100,255,218,0.1), transparent 40%),
              radial-gradient(circle at 50% 80%, rgba(100,255,218,0.05), transparent 40%);
  z-index: 1;
}

/* Sections */
.section {
  padding: 100px 0;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 20px 0;
  background: rgba(10,25,47,0.85);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: rgba(10,25,47,0.95);
    position: absolute;
    top: 100%; right: 0;
    width: 200px;
    padding: 1rem;
  }
  .nav-links.open {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
}

/* --- Animations --- */
@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* حالت اولیه مخفی */
.navbar {
  opacity: 0;
  transform: translateY(-100%);
}
.hero-content > * {
  opacity: 0;
  transform: translateY(40px);
}

/* وقتی کلاس active اضافه شد */
.navbar.active {
  animation: slideDown 0.8s ease forwards;
}
.hero-content.active > * {
  animation: fadeUp 0.8s ease forwards;
}
.hero-content.active > *:nth-child(1) { animation-delay: 0.2s; }
.hero-content.active > *:nth-child(2) { animation-delay: 0.4s; }
.hero-content.active > *:nth-child(3) { animation-delay: 0.6s; }



/* CTA button in navbar */
.nav-links .nav-cta {
  background: #1e90ff; /* آبی */
  color: white;
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  transition: background 0.3s ease, transform 0.3s ease;
}
.nav-links .nav-cta:hover {
  background: #63b3ff;
  transform: translateY(-2px);
}

/* انیمیشن ورود جدا برای دکمه آخر */
@keyframes popIn {
  0% { transform: scale(0.8); opacity: 0; }
  60% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); }
}
.nav-links .nav-cta.animate {
  animation: popIn 0.6s ease forwards;
  animation-delay: 0.8s; /* بعد از بقیه لینک‌ها بیاد */
}


/* Hero Title Styling */
.hero-title {
  font-size: 3rem; /* بزرگ‌تر از قبل */
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.hero-title .first-name {
  color: #64ffda; /* سبز آبی */
}
.hero-title .last-name {
  color: #1e90ff; /* آبی */
}

/* Subtitle */
.hero-subtitle {
  font-size: 1.4rem;
  font-weight: 500;
  color: #ccd6f6;
  margin-bottom: 1rem;
}

/* Description */
.hero-desc {
  font-size: 1.1rem;
  color: #8892b0;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

/* Main CTA Button */
.main-cta {
  background: #1e90ff;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.3s ease;
}
.main-cta:hover {
  background: #63b3ff;
  transform: translateY(-2px);
}

/* Social Buttons */
.hero-buttons {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}
/* Social Buttons smaller, same as background */

/* Change icon color on hover */


/* Icons */

.hero-status, .hero-status-fa, .hero-status-en {
  font-size: 0.95rem;
  color: #8892b0;
  margin: 0.2rem 0;
  line-height: 1.4;
  text-align: center;
}

/* Animations */
@keyframes fadeUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.hero-content > * {
  opacity: 0;
  transform: translateY(40px);
}
.hero-content.active > * {
  animation: fadeUp 0.8s ease forwards;
}
.hero-content.active > *:nth-child(1) { animation-delay: 0.2s; }
.hero-content.active > *:nth-child(2) { animation-delay: 0.4s; }
.hero-content.active > *:nth-child(3) { animation-delay: 0.6s; }
.hero-content.active > *:nth-child(4) { animation-delay: 0.8s; }
.hero-content.active > *:nth-child(5) { animation-delay: 1s; }
.hero-content.active > *:nth-child(6) { animation-delay: 1.2s; }
.hero-content.active > *:nth-child(7) { animation-delay: 1.4s; }


/* Social Buttons - same as background, wave from center */
/* Social Buttons - same as background, wave from center */
/* Social Buttons - same as background, wave from center */
.social-btn {
  width: 30px;
  height: 30px;
  display: inline-block;
  background-size: 16px;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  /* آیکون همرنگ بک‌گراند (محو) */
  filter: brightness(0) saturate(100%) invert(6%) sepia(12%) saturate(900%) hue-rotate(176deg) brightness(95%) contrast(90%);
  transition: filter 0.3s ease;
}

/* موج از مرکز با تاخیر */
.social-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0%;
  height: 0%;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.social-btn:hover::after {
  animation: wave-center 2.4s ease forwards;
  animation-delay: 0.8s; /* کمی دیرتر شروع بشه */
}
@keyframes wave-center {
  to {
    width: 200%;
    height: 200%;
    opacity: 0;
  }
}

/* روی هاور آیکون سفید میشه */
.social-btn:hover {
  background-color: #fff;
  transition: 1s;
}

/* آیکون‌ها بدون فیلتر سبز */
.social-btn.linkedin { background-image: url('https://cdn.jsdelivr.net/gh/simple-icons/simple-icons/icons/linkedin.svg'); filter: invert(80%) sepia(20%) saturate(300%) hue-rotate(120deg); }
.social-btn.github { background-image: url('https://cdn.jsdelivr.net/gh/simple-icons/simple-icons/icons/github.svg'); filter: invert(80%) sepia(20%) saturate(300%) hue-rotate(120deg); }
.social-btn.website { background-image: url('https://cdn.jsdelivr.net/gh/simple-icons/simple-icons/icons/telegram.svg'); filter: invert(80%) sepia(20%) saturate(300%) hue-rotate(120deg); }
/* Status Lines */


.hero-title {
  line-height: 1.4; /* فاصله بیشتر بین دو خط اسم */
}

.hero-subtitle {
  line-height: 1.6; /* زیرتیتر کمی بازتر */
  margin-bottom: 1.5rem; /* فاصله بیشتر از بعدی */
}

.hero-desc {
  line-height: 1.9; /* متن توضیحات کشیده‌تر */
  margin-bottom: 2rem; /* فاصله بیشتر از دکمه‌ها */
}

.hero-status,
.hero-status-fa,
.hero-status-en {
  line-height: 1.8; /* فاصله بیشتر بین خطوط وضعیت تحصیل */
  margin-top: 0.8rem; /* کمی فاصله از دکمه‌ها */
}


.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column; /* تا بتونیم فاصله‌ها رو کنترل کنیم */
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 4rem 0; /* کمی فضای بالا و پایین اضافه */
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 2rem; /* فاصله بیشتر از زیرتیتر */
  line-height: 1.6; /* فاصله بین دو خط اسم */
}

.hero-subtitle {
  font-size: 1.6rem;
  font-weight: 500;
  color: #ccd6f6;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-desc {
  font-size: 1.15rem;
  color: #8892b0;
  max-width: 700px;
  margin: 0 auto 3rem; /* فاصله زیادتر از دکمه‌ها */
  line-height: 2; /* متن کشیده‌تر */
}

.hero-buttons {
  margin-bottom: 3rem; /* فاصله زیادتر از وضعیت تحصیل */
}

.hero-status,
.hero-status-fa,
.hero-status-en {
  font-size: 1rem;
  color: #8892b0;
  margin: 0.8rem 0;
  line-height: 2; /* فاصله زیاد بین خطوط وضعیت تحصیل */
}

.skills-bars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.skill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(100, 255, 218, 0.15);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  backdrop-filter: blur(4px);
}

.skill-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-name {
  color: #e6f1ff;
  font-weight: 600;
}

.skill-status {
  font-size: 0.85rem;
  font-weight: 500;
}

.skill.learned .skill-status {
  color: #64ffda; /* سبز آموخته شده */
}

.skill.learning .skill-status {
  color: #00ff88; /* سبز روشن در حال آموزش */
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.skill-percent {
  color: #64ffda;
  font-size: 0.95rem;
}

.progress {
  width: 100%;
  height: 10px;
  background: rgba(136, 146, 176, 0.25);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #64ffda, #1e90ff);
  box-shadow: 0 0 12px rgba(100, 255, 218, 0.35);
  border-radius: 999px;
  transition: width 1.2s ease;
}

.progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    45deg,
    rgba(255,255,255,0.15) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255,255,255,0.15) 50%,
    rgba(255,255,255,0.15) 75%,
    transparent 75%,
    transparent
  );
  background-size: 24px 24px;
  mix-blend-mode: screen;
  animation: progress-stripes 1s linear infinite;
  opacity: 0.6;
}

@keyframes progress-stripes {
  from { background-position: 0 0; }
  to   { background-position: 24px 0; }
}

@media (min-width: 640px) {
  .skills-bars {
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }
}

.skill-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 999px; /* گرد کامل */
  background-color: rgba(34, 197, 94, 0.15); /* سبز ملایم پس‌زمینه */
  color: #22c55e; /* سبز پررنگ متن و آیکون */
  line-height: 1;
}

.skill.learned .skill-status {
  background-color: rgba(34, 197, 94, 0.15); /* سبز ملایم */
  color: #22c55e; /* سبز پررنگ */
}

.skill.learning .skill-status {
  background-color: rgba(16, 185, 129, 0.15); /* سبز فیروزه‌ای ملایم */
  color: #10b981; /* سبز فیروزه‌ای پررنگ */
  animation: pulse 1.5s infinite;
}
/* آبی کردن کلمه Skills داخل تیتر */
#skills h2 span {
  color: #38bdf8; /* آبی هایلایت */
}
.tr {
  margin-left: 38%;
  font-size: 2rem;
}
/* استایل توضیح زیر تیتر */
#skills .skills-subtitle {
  color: #8892b0;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 780px;
  margin: 0.3rem auto 1.2rem; /* فاصله‌ی ظریف با تیتر و شبکه مهارت‌ها */
  text-align: center;
  margin-top: 35px;
}

/* کمی فاصله‌ی زنده بین هدر و نوارها (اختیاری اگر فاصله کم بود) */
#skills .skills-bars {
  margin-top: 1rem; /* می‌تونه 1.2rem هم باشه اگر خواستی هوا بده */
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.projects-section {
  background: rgba(255,255,255,0.02);
}

.section-title {
  font-size: 2rem;
  color: #ccd6f6;
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-title span {
  font-weight: bold;
}
.section-subtitle {
  text-align: center;
  color: #8892b0;
  margin-bottom: 0.3rem;
}

.section-hint {
  text-align: center;
  color: #64ffda;
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

/* دو ستون برای دسکتاپ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* کارت سوم بیاد ردیف دوم و وسط */
.projects-grid .project-card:nth-child(3) {
  grid-column: 1 / -1;       /* بیاد ردیف بعد */
  justify-self: center;      /* وسط‌چین افقی */
  max-width: 520px;          /* عرض محدود */
  width: 100%;
}

/* موبایل: تک‌ستونه و طبیعی */
@media (max-width: 640px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .projects-grid .project-card:nth-child(3) {
    grid-column: auto;
    justify-self: stretch;
    max-width: none;
  }
}
html {
  scroll-behavior: smooth;
}
.project-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(100,255,218,0.15);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(100,255,218,0.15);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.project-category {
  font-size: 0.8rem;
  color: #64ffda;
  background: rgba(100,255,218,0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.project-status {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.project-status.completed {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

.project-status.in-progress {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
  box-shadow: 0 0 6px rgba(234, 179, 8, 0.5);
}

.project-title {
  color: #e6f1ff;
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.project-meta {
  font-size: 0.8rem;
  color: #8892b0;
  margin-bottom: 0.8rem;
  display: flex;
  gap: 0.8rem;
}

.project-desc {
  color: #8892b0;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.project-btn {
  align-self: flex-start;
  padding: 0.4rem 0.8rem;
  background: #64ffda;
  color: #0a192f;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
}

.project-btn:hover {
  background: #1e90ff;
  color: white;
}

.more-projects {
  margin-top: 8rem; /* فاصله بیشتر از بخش بالا */
  text-align: center;
  background: linear-gradient(135deg, rgba(100,255,218,0.15) 0%, rgba(30,144,255,0.15) 100%);
  border: 1px solid rgba(100,255,218,0.25);
  border-radius: 12px;
  padding: 2.5rem 1rem;
  box-shadow: 0 0 20px rgba(100,255,218,0.2);
}

.more-title {
  font-size: 1.5rem;
  color: #38bdf8; /* آبی روشن تیتر */
  margin-bottom: 0.5rem;
}

.more-subtitle {
  color: #e6f1ff;
  font-size: 0.95rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #64ffda;
  color: #0a192f;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.more-btn:hover {
  background: #1e90ff;
  color: #fff;
  transform: translateY(-2px);
}

.more-btn svg {
  flex-shrink: 0;
  fill: currentColor; /* رنگ آیکون مثل متن */

}
.education-section {
  background: transparent;
}

.section-title {
  font-size: 2rem;
  color: #ccd6f6;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: #8892b0;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.education-card {
  background: #0a0a0a; /* حالت عادی سیاه */
  border: 1px solid rgba(100,255,218,0.15);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.4s ease;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}

.education-card:hover {
  background: linear-gradient(135deg, rgba(100,255,218,0.15) 0%, rgba(30,144,255,0.15) 100%);
  border-color: rgba(100,255,218,0.4);
  box-shadow: 0 8px 25px rgba(100,255,218,0.2);
  transform: translateY(-5px);
}

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.edu-category {
  font-size: 0.75rem;
  color: #64ffda;
  background: rgba(100,255,218,0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.edu-duration {
  font-size: 0.8rem;
  color: #8892b0;
}

.edu-degree {
  color: #e6f1ff;
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.edu-institute {
  display: block;
  color: #64ffda;
  font-size: 0.95rem;
}

.edu-location {
  display: block;
  color: #8892b0;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.edu-desc {
  color: #8892b0;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.edu-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.edu-tags span {
  font-size: 0.75rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(100,255,218,0.2);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: #64ffda;
  transition: background 0.3s ease, transform 0.2s ease;
}

.edu-tags span:hover {
  background: rgba(100,255,218,0.2);
  transform: scale(1.05);
}
.contact-section {
  padding: 4rem 1rem;
  background-color: rgba(255,255,255,0.02);

}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.contact-info, .contact-form {
  background: #0a0a0a;
  border: 1px solid rgba(100,255,218,0.15);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.4s ease;
  position: relative;
}

/* Glow Animation on Hover */
.contact-info:hover, .contact-form:hover {
  border-color: rgba(100,255,218,0.5);
  box-shadow: 0 0 15px rgba(100,255,218,0.3),
              0 0 30px rgba(30,144,255,0.2);
  transform: translateY(-4px);
}

.contact-title {
  font-size: 1.6rem;
  color: #38bdf8;
  margin-bottom: 0.5rem;
}

.contact-subtitle {
  color: #8892b0;
  margin-bottom: 1.5rem;
}

.contact-details {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.contact-details li {
  margin-bottom: 0.5rem;
  color: #e6f1ff;
}

.contact-details a {
  color: #64ffda;
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

.contact-availability {
  color: #8892b0;
  font-size: 0.9rem;
  margin-top: 13%;
}

/* Form Styles */
.contact-form h3 {
  color: #38bdf8;
  margin-bottom: 1rem;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(100,255,218,0.2);
  border-radius: 6px;
  padding: 0.7rem;
  color: #e6f1ff;
  font-size: 0.9rem;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #64ffda;
  box-shadow: 0 0 8px rgba(100,255,218,0.3);
  outline: none;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.send-btn {
  background: #64ffda;
  color: #0a192f;
  padding: 0.7rem 1rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  margin-top: 148px;
}

.send-btn:hover {
  background: #1e90ff;
  color: #fff;
  transform: translateY(-2px);
}
.contact-details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.icon-circle {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  background: rgba(100,255,218,0.1);
  border: 1px solid rgba(100,255,218,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64ffda;
  transition: all 0.3s ease;
}

.icon-circle svg {
  fill: currentColor;
}

.contact-details li:hover .icon-circle {
  background: linear-gradient(135deg, rgba(100,255,218,0.25), rgba(30,144,255,0.25));
  border-color: rgba(100,255,218,0.6);
  box-shadow: 0 0 10px rgba(100,255,218,0.4);
  transform: scale(1.05);
}

.contact-details a {
  color: #64ffda;
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}
.contact-details-vertical {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}

.contact-details-vertical li {
  background: #0a0a0a;
  border: 1px solid rgba(100,255,218,0.15);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  transition: all 0.4s ease;
}

.contact-details-vertical li:hover {
  border-color: rgba(100,255,218,0.5);
  box-shadow: 0 0 15px rgba(100,255,218,0.3),
              0 0 30px rgba(30,144,255,0.2);
  transform: translateY(-4px);
}

.icon-circle {
  width: 50px;
  height: 50px;
  background: rgba(100,255,218,0.1);
  border: 1px solid rgba(100,255,218,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64ffda;
  margin: 0 auto 0.8rem;
  transition: all 0.3s ease;
}

.contact-details-vertical li:hover .icon-circle {
  background: linear-gradient(135deg, rgba(100,255,218,0.25), rgba(30,144,255,0.25));
  border-color: rgba(100,255,218,0.6);
  box-shadow: 0 0 10px rgba(100,255,218,0.4);
  transform: scale(1.05);
}

.contact-details-vertical h4 {
  color: #e6f1ff;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.contact-details-vertical p {
  color: #8892b0;
  font-size: 0.9rem;
  margin: 0;
}

.contact-details-vertical a {
  color: #64ffda;
  text-decoration: none;
}

.contact-details-vertical a:hover {
  text-decoration: underline;
}
.contact-header {
  text-align: center;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.contact-header h2 {
  font-size: 2rem;
  color: #e6f1ff;
  margin-bottom: 0.5rem;
}

.contact-header h2 span {
  color: #38bdf8; /* آبی هایلایت */
}

.container .section-title  span {
  color: #38bdf8; /* آبی هایلایت */
}


.contact-header p {
  color: #8892b0;
  font-size: 1rem;
  line-height: 1.6;
}

/* Under-contact header */
.under-contact-header {
  text-align: center;
  margin: 3rem auto 1.5rem;
  max-width: 820px;
}

.uc-name {
  margin: 0;
  font-size: 1.6rem;
  color: #e6f1ff;
  letter-spacing: 0.2px;
}

.uc-role {
  margin: 0.3rem 0 1.2rem;
  color: #8892b0;
  font-size: 1rem;
}

/* Social circles */
.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0 1.2rem;
}

.social-circle {
  width: 45px;
  height: 45px;
  background: rgba(100,255,218,0.08);
  border: 1px solid rgba(100,255,218,0.28);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64ffda;
  transition: transform 0.25s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.social-circle svg { display: block; }

.social-circle:hover {
  background: linear-gradient(135deg, rgba(100,255,218,0.22), rgba(30,144,255,0.22));
  border-color: rgba(100,255,218,0.6);
  box-shadow: 0 8px 28px rgba(100,255,218,0.25), 0 4px 18px rgba(30,144,255,0.18);
  transform: translateY(-2px) scale(1.08);
}

/* Secondary nav */
.footer-nav { margin-top: 0.5rem; }

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #8892b0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s ease;
}

.footer-nav a:hover { color: #64ffda; }


/* حالت اولیه: مخفی و کمی جابه‌جا */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

/* وقتی فعال شد */
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* جهت‌های مختلف */
.reveal.fade-up    { transform: translateY(30px); }
.reveal.fade-down  { transform: translateY(-30px); }
.reveal.fade-left  { transform: translateX(-30px); }
.reveal.fade-right { transform: translateX(30px); }

.reveal.active.fade-up,
.reveal.active.fade-down,
.reveal.active.fade-left,
.reveal.active.fade-right {
  transform: translate(0,0);
}
.swal2-popup {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  border-radius: 15px !important;
  padding: 25px !important;
  background: linear-gradient(145deg, #ffffff, #f0f0f0) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2) !important;
  color: #333 !important;
  animation: popupFade 0.5s ease-out;
}

.swal2-title {
  font-size: 24px !important;
  font-weight: 600 !important;
  color: #4CAF50 !important;
  margin-bottom: 15px;
  text-align: center;
}

.swal2-content {
  font-size: 16px !important;
  color: #555 !important;
  text-align: center;
  margin-bottom: 20px;
}

.swal2-icon {
  width: 80px !important;
  height: 80px !important;
}

.swal2-success .swal2-success-ring,
.swal2-error .swal2-icon {
  box-shadow: 0 0 15px rgba(76, 175, 80, 0.5) !important;
}

.swal2-confirm {
  background: linear-gradient(135deg, #4CAF50, #45a049) !important;
  color: #fff !important;
  font-size: 16px !important;
  padding: 10px 25px !important;
  border-radius: 10px !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, background 0.3s ease;
}

.swal2-confirm:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #45a049, #4CAF50) !important;
}

.swal2-confirm:active {
  transform: translateY(1px);
}

/* Popup animation */
@keyframes popupFade {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}



/* --- Mobile Responsive Fixes --- */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  /* Navbar */
  .navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: rgba(10,25,47,0.95);
    padding: 1rem 0;
    text-align: center;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    margin: 0.8rem 0;
    font-size: 1.1rem;
  }

  .menu-toggle {
    display: block;
    font-size: 2rem;
    cursor: pointer;
  }

  /* Titles */
  .tr {
    margin-left: 0;
    text-align: center;
    font-size: 1.5rem;
  }

  /* Hero section */
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1.2rem;
  }
  .hero-desc {
    font-size: 1rem;
    padding: 0 1rem;
  }

  /* Skills grid */
  .skills-bars {
    grid-template-columns: 1fr;
  }

  /* Projects grid */
  .projects-grid {
    grid-template-columns: 1fr;
  }
}
/* حذف کامل نوبار در موبایل */
@media (max-width: 768px) {
  .nav-links,
  .menu-toggle {
    display: none !important;
  }
}
@media (max-width: 768px) {
  .skill-name {
    font-size: 0.9rem;
  }
}
.skill-info {
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* سه ستون */
  align-items: center;
  text-align: center;
}

.skill-name {
  justify-self: start; /* سمت چپ */
}

.skill-status {
  justify-self: center; /* همیشه وسط */
}

.skill-percent {
  justify-self: end; /* سمت راست */
}

@media (max-width: 768px) {
  /* فاصله و فونت اسم (Hero Title) */
  .hero-title {
    margin-top: 5rem;       /* فاصله از بالا */
    font-size: 2.2rem;      /* اندازه فونت شبیه الگو */
    font-weight: 700;       /* ضخامت */
    line-height: 1.4;       /* فاصله بین خطوط */
    text-align: center;     /* وسط‌چین */
  }

  /* زیرتیتر */
  .hero-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 0.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
  }

  /* توضیحات */
  .hero-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 0 1rem;
    margin-bottom: 2rem;
    text-align: center;
  }

  /* چینش دکمه‌ها */
  .hero-buttons {
    display: flex;
    flex-direction: column;   /* زیر هم */
    align-items: center;      /* وسط‌چین */
    gap: 0.8rem;              /* فاصله بین دکمه‌ها */
    margin-bottom: 2rem;
  }

  .hero-buttons a {
    width: 80%;               /* دکمه‌ها عریض‌تر بشن */
    max-width: 280px;         /* ولی خیلی بزرگ نشن */
    text-align: center;
  }

  /* --- اضافه برای سوشال‌ها --- */
  /* دکمه اصلی (main-cta) همچنان ستونی بمونه */
  .hero-buttons .main-cta {
    margin-bottom: 1rem; /* فاصله از سوشال‌ها */
  }

  /* سوشال‌ها افقی کنار هم */
  .hero-buttons .social-btn {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    margin: 0 0.4rem; /* فاصله افقی بین آیکون‌ها */
  }

  /* یک ردیف افقی جدا برای سوشال‌ها */
  .hero-buttons {
    flex-wrap: wrap; /* اجازه بده سوشال‌ها برن خط بعد */
  }

  /* مطمئن بشیم سوشال‌ها وسط چین میشن */
  .hero-buttons .social-btn:first-of-type {
    margin-left: 0;
  }
  .hero-buttons .social-btn:last-of-type {
    margin-right: 0;
  }
  
  .hero-buttons {
    display: grid !important;
    grid-template-columns: repeat(3, auto); /* سه ستون برای سوشال‌ها */
    justify-content: center;
    align-items: center;
    row-gap: 1rem;   /* فاصله بین ردیف CTA و ردیف سوشال‌ها */
    column-gap: 0.6rem; /* فاصله افقی بین آیکون‌ها */
    margin-bottom: 2rem;
  }

  /* دکمه اصلی: یک ردیف کامل بالایی */
  .hero-buttons .main-cta {
    grid-column: 1 / -1;     /* کل عرض را بگیرد */
    width: 80% !important;   /* طبق استایل خودت */
    max-width: 280px !important;
    text-align: center !important;
  }

  /* آیکون‌های سوشال: افقی کنار هم در ردیف دوم */
  .hero-buttons .social-btn {
    width: 40px !important;
    height: 40px !important;
    max-width: none !important;
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    margin: 0 !important;     /* ریست فاصله‌های قبلی */
  }

  /* جلوگیری از کش آمدن همه لینک‌ها (فقط روی سوشال‌ها بی‌اثر می‌ماند) */
  .hero-buttons a:not(.main-cta) {
    width: auto !important;
    max-width: none !important;
    text-align: center;
  }

  
  
}


@media (max-width: 768px) {
  .main-cta {
    grid-column: 1 / -1;        /* کل عرض Grid رو بگیره */
    justify-self: center;       /* وسط‌چین بشه */
    width: 95% ;      /* عرض ثابت مثل قبل */
    max-width: 80% ;
    text-align: center;
    margin-bottom: 1rem;        /* فاصله از سوشال‌ها */
  }
}
@media (max-width: 768px) {
  .main-cta {
    width: calc(100% - 2rem) !important;   /* تقریباً کل عرض موبایل */
    max-width: none !important;            /* غیرفعال کردن محدودیت قبلی */
    text-align: center;
    font-size: 1.1rem;                     /* کمی بزرگ‌تر */
    padding: 0.8rem 1rem;                  /* فضای بیشتر عمودی */
    margin: 0 auto 1rem;                   /* مرکزچین و فاصله از سوشال‌ها */
  }
}

@media (max-width: 768px) {
  /* Force “View My Projects” to span almost the full width on mobile */
  #home .hero-buttons .main-cta {
    display: block !important;
    width: 100% !important;            /* پر کردن عرض درون کانتینر */
    box-sizing: border-box !important; /* در نظر گرفتن padding در عرض */
    margin: 0 0 1.2rem !important;      /* فقط فاصله‌ی پایین */
    padding: 1rem !important;           /* فضای داخلی بزرگ‌تر */
    font-size: 1.2rem !important;       /* کمی بزرگ‌تر */
    text-align: center !important;      /* وسط‌چین */
    background: #1e90ff !important;     /* رنگ آبی قالب الگویی */
    color: #fff !important;             /* متن سفید */
    text-decoration: none !important;   /* حذف هر underline */
    border-radius: 8px !important;      /* گردی گوشه */
  }
}