/* ==========================================
   Global Styles & Reset
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  /* زیاده کردنی بۆشایی لە سەرەوە تا ناوەڕۆک نەچێتە ژێر باڕەکە */
  padding-top: 90px; /* دەتوانیت بەپێی بەرزایی باڕەکە 80px بۆ 100px دیاری بکەیت */
  font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
  background-color: #f0f7ff;
  color: #0f172a;
  line-height: 1.6;
}

.container {
  max-width: 850px;
  margin: 0 auto;
  padding: 20px 20px 60px 20px;
}

/* ==========================================
   Navigation Bar Styles
   ========================================== */
/* Styling layout & variables */
:root {
  --primary-color: #6366f1;
  --primary-hover: #4f46e5;
  --bg-glass: rgba(15, 23, 42, 0.75);
  --text-color: #f8fafc;
  --text-muted: #94a3b8;
  --border-glass: rgba(255, 255, 255, 0.1);
}

/* Navbar container */
.navbar {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
  padding: 12px 0;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo styling */
.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
}

.logo-accent {
  color: var(--primary-color);
  font-family: monospace;
  font-weight: bold;
}

/* Nav links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.2s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--text-color);
}

/* Hover effect line */
.nav-links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  right: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Action button styling */
.btn-primary {
  background: var(--primary-color);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
}
/* ==========================================
   Hero Section & Profile Image
   ========================================== */
.hero-section {
  text-align: center;
  padding-top: 25px;
  margin-bottom: 30px;
}

.profile-container {
  display: inline-block;
  margin-bottom: 20px;
}

.profile-img {
  width: 220px;
  height: 290px;
  border-radius: 18px;
  object-fit: cover;
  border: 4px solid #38bdf8;
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.28), 
              0 4px 10px rgba(15, 23, 42, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  cursor: pointer;
}

.profile-img:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(56, 189, 248, 0.45);
  border-color: #0284c7;
}

.main-name {
  font-size: 2.1rem;
  font-weight: 800;
  color: #0f2942;
  margin-bottom: 6px;
}

.job-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #0284c7;
  margin-bottom: 18px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: #e0f2fe;
  color: #0284c7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: #0284c7;
  color: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(2, 132, 199, 0.3);
}

/* ==========================================
   Personal Info Card
   ========================================== */
.info-section {
  margin-bottom: 35px;
}

.info-card {
  background-color: #edf7ff;
  border-radius: 18px;
  padding: 25px 25px;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.06);
  border: 1px solid #bae6fd;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: right;
  transition: all 0.3s ease;
}

.info-card:hover {
  background-color: #e2f2fe;
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(2, 132, 199, 0.12);
  border-color: #7dd3fc;
}

.info-item {
  display: flex;
  align-items: center;
  font-size: 1.05rem;
  padding-bottom: 12px;
  border-bottom: 1px dashed #cbd5e1;
}

.info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-icon {
  font-size: 1.2rem;
  color: #0284c7;
  width: 36px;
  height: 36px;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 15px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.info-label {
  font-weight: 700;
  color: #1e293b;
  margin-left: 10px;
}

.info-value {
  color: #475569;
  font-weight: 600;
}

.info-link {
  color: #0284c7;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.info-link:hover {
  color: #0369a1;
  text-decoration: underline;
}

.external-link-icon {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* ==========================================
   About Section
   ========================================== */
.about-section {
  margin-bottom: 45px;
  text-align: right;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f2942;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.title-icon {
  color: #0284c7;
}

.about-card {
  background-color: #edf7ff;
  border-radius: 18px;
  padding: 25px 30px;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.06);
  border: 1px solid #bae6fd;
  border-right: 6px solid #0284c7;
  transition: all 0.3s ease;
}

.about-card:hover {
  background-color: #e2f2fe;
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(2, 132, 199, 0.15);
  border-right-color: #0369a1;
}

.about-text {
  color: #1e293b;
  font-size: 1.05rem;
  line-height: 1.85;
  text-align: justify;
}

/* ==========================================
   Skills Section
   ========================================== */
.skills-section {
  text-align: right;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.skill-card {
  background-color: #edf7ff;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid #bae6fd;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.05);
  transition: all 0.3s ease;
}

.skill-card:hover {
  background-color: #ffffff;
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(56, 189, 248, 0.22);
  border-color: #38bdf8;
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.skill-icon {
  font-size: 1.4rem;
  color: #0284c7;
}

.skill-name {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.95rem;
  flex-grow: 1;
}

.skill-percent {
  font-size: 0.85rem;
  font-weight: 800;
  color: #0284c7;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: #bae6fd;
  border-radius: 10px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #0284c7);
  border-radius: 10px;
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 600px) {
  .main-name {
    font-size: 1.7rem;
  }
  
  .job-title {
    font-size: 1rem;
  }

  .info-card, .about-card {
    padding: 20px 16px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }
}
/* دیزاین و شادۆی سەردێڕی تۆڕە کۆمەڵایەتییەکان */
.social-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0284c7;
  background-color: #ffffff;
  padding: 6px 18px;
  border-radius: 20px;
  border: 1px solid #bae6fd;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

/* کاریگەری جوڵانەوە و شادۆ کاتێک ماوسەکە دەچێتە سەری */
.social-title:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.2);
  border-color: #38bdf8;
  color: #0369a1;
}

.social-title i {
  font-size: 0.95rem;
  animation: pulseIcon 2s infinite ease-in-out;
}

/* جوڵانەوەی ئایکۆنەکە */
@keyframes pulseIcon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}
/* ==========================================
   Modern Welcome Card Design
   ========================================== */
.welcome-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  border: 1px solid #bae6fd;
  border-radius: 20px;
  padding: 16px 24px;
  margin: 0 auto 25px auto;
  max-width: 480px;
  text-align: center;
  box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.1),
              0 8px 10px -6px rgba(2, 132, 199, 0.04);
  backdrop-filter: blur(8px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.welcome-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px -5px rgba(2, 132, 199, 0.18);
  border-color: #38bdf8;
}

.welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 6px 20px;
  border-radius: 30px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.welcome-badge i {
  font-size: 1.1rem;
  animation: floatIcon 2s infinite ease-in-out;
}

.welcome-subtext {
  color: #334155;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================
   Modern Header Actions (CV & Dark Mode)
   ========================================== */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* دیزاینی مۆدێرنی دوگمەی CV */
.cv-btn {
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.28);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cv-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 22px rgba(2, 132, 199, 0.45);
  color: #ffffff;
}

.cv-btn i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.cv-btn:hover i {
  transform: translateY(2px);
}

/* دیزاینی دوگمەی Dark Mode */
.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #bae6fd;
  background-color: #ffffff;
  color: #0284c7;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.08);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-toggle-btn:hover {
  background-color: #0284c7;
  color: #ffffff;
  transform: rotate(18deg) scale(1.08);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.3);
  border-color: #0284c7;
}

/* ==========================================
   Dark Mode Theme Customization
   ========================================== */
body.dark-mode {
  background-color: #0f172a;
  color: #f8fafc;
}

body.dark-mode .navbar {
  background-color: #1e293b;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .nav-links a {
  color: #cbd5e1;
}

body.dark-mode .nav-links a:hover {
  color: #38bdf8;
}

body.dark-mode .welcome-card,
body.dark-mode .info-card,
body.dark-mode .about-card,
body.dark-mode .skill-card {
  background-color: #1e293b;
  border-color: #334155;
  color: #f8fafc;
}

body.dark-mode .main-name,
body.dark-mode .section-title,
body.dark-mode .info-label,
body.dark-mode .skill-name {
  color: #f8fafc;
}

body.dark-mode .info-value,
body.dark-mode .about-text,
body.dark-mode .welcome-subtext {
  color: #94a3b8;
}

body.dark-mode .theme-toggle-btn {
  background-color: #334155;
  color: #fbbf24;
  border-color: #475569;
}
/* جوڵانەوەی هێواشی ئایکۆنەکە */
@keyframes floatIcon {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(8deg); }
}

/* ==========================================
   Dark Mode Styles
   ========================================== */
body.dark-mode {
  background-color: #0f172a !important;
  color: #f8fafc !important;
}

/* گۆڕینی ڕەنگی کاتێک داڕشتنەکە لەسەر Dark Mode دەبێت */
body.dark-mode header,
body.dark-mode nav,
body.dark-mode .welcome-card,
body.dark-mode div {
  background-color: #1e293b;
  color: #f8fafc;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode p,
body.dark-mode span,
body.dark-mode a {
  color: #f8fafc;
}

body.dark-mode .welcome-subtext {
  color: #cbd5e1 !important;
}

body.dark-mode .theme-toggle-btn {
  background-color: #334155 !important;
  color: #fbbf24 !important;
  border-color: #475569 !important;
}
/* ==========================================
   Improved Dark Mode with Elegant Dark Shadows
   ========================================== */
body.dark-mode {
  background-color: #0b132b !important;
  color: #f1f5f9 !important;
}

/* هەموو header و navbar لە دۆخی شەودا */
body.dark-mode header,
body.dark-mode nav,
body.dark-mode .navbar {
  background-color: #1c2541 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
  border-bottom: 1px solid #3a506b !important;
}

/* کارتەکان، کاردی بەخێرهاتن و لێواڕەکان */
body.dark-mode .welcome-card,
body.dark-mode .info-card,
body.dark-mode .about-card,
body.dark-mode .skill-card,
body.dark-mode .social-title {
  background: #1c2541 !important;
  border: 1px solid #3a506b !important;
  color: #f1f5f9 !important;
  /* شادۆی ڕەشی بەهێز و جوان */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 
              0 0 15px rgba(56, 189, 248, 0.08) !important;
}

/* دروستکردنی شادۆی ڕەش بۆ ئایکۆنەکانی سۆشیال میدیا */
body.dark-mode .social-links a {
  background-color: #1c2541 !important;
  color: #38bdf8 !important;
  border: 1px solid #3a506b !important;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5) !important;
}

/* کاتێک ماوس دەچێتە سەر ئایکۆنەکان لە دۆخی شەودا */
body.dark-mode .social-links a:hover {
  background-color: #38bdf8 !important;
  color: #0b132b !important;
  box-shadow: 0 8px 22px rgba(56, 189, 248, 0.4) !important;
  border-color: #38bdf8 !important;
}

/* دەقەکان و ناونیشانەکان */
body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3, 
body.dark-mode h4,
body.dark-mode .main-name {
  color: #ffffff !important;
}

body.dark-mode p, 
body.dark-mode span, 
body.dark-mode .welcome-subtext,
body.dark-mode .info-value {
  color: #cbd5e1 !important;
}

/* دوگمەی Toggle ئایکۆنی مانگ/خۆر */
body.dark-mode .theme-toggle-btn {
  background-color: #1c2541 !important;
  color: #fbbf24 !important;
  border-color: #3a506b !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
}
/* دیزاینی دوگمەی پرۆفێشناڵی گۆڕینی زمان */
.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  padding: 7px 16px;
  border-radius: 30px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.lang-btn .lang-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6366f1;
  transition: transform 0.4s ease, color 0.3s ease;
}

.lang-btn:hover {
  background: #6366f1;
  border-color: #6366f1;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
}

.lang-btn:hover .lang-icon {
  color: #ffffff;
  transform: rotate(180deg);
}

.lang-btn:active {
  transform: translateY(0);
}
/* Robot Container */
.robot-widget-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
/* Container Position & Centering */
.robot-widget-wrapper {
  position: fixed;
  bottom: 25px;
  right: 35px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center; /* ئاستەکردنی بڵقەکە و ڕۆبۆتەکە دروست لە ناوەڕاستی یەکتردا */
  width: 170px; /* دانانی پانایی جێگیر تا بڵقەکە تێکنەچێت */
}

/* Speech Bubble Centered */
.robot-speech-bubble {
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.4);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 4px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  animation: floatBubble 3s ease-in-out infinite;
}

.bubble-dot {
  width: 8px;
  height: 8px;
  background-color: #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 10px #38bdf8;
}

/* Robot Avatar Size & Alignment */
.cute-robot-avatar {
  width: 160px;
  height: 160px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cute-robot-avatar:hover {
  transform: scale(1.08);
}

.robot-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Animations & Waving Hand */
.robot-floating-group {
  animation: robotFloat 3s ease-in-out infinite;
}

.shadow-anim {
  animation: shadowScale 3s ease-in-out infinite;
  transform-origin: center;
}

.waving-arm-group {
  transform-origin: 320px 260px;
  animation: waveHand 2s ease-in-out infinite;
}

.core-pulse {
  animation: pulseGlow 2s infinite alternate;
}

@keyframes waveHand {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(18deg); }
}

@keyframes robotFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes shadowScale {
  0%, 100% { transform: scale(1); opacity: 0.2; }
  50% { transform: scale(0.7); opacity: 0.08; }
}

@keyframes pulseGlow {
  0% { opacity: 0.6; filter: drop-shadow(0 0 2px #38bdf8); }
  100% { opacity: 1; filter: drop-shadow(0 0 12px #38bdf8); }
}

@keyframes floatBubble {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Chat Box Window */
/* Chat Box Window - Adjusted Height & Position */
.ai-chat-window {
  display: none;
  position: absolute;
  bottom: 200px; /* دابەزاندنی شوێنەکەی بۆ خوارەوە */
  right: 0;
  width: 300px;  /* کەمکردنەوەی پانایی */
  height: 360px; /* کەمکردنەوەی بەرزی تا بە تەواوی دەربکەوێت */
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  flex-direction: column;
  overflow: hidden;
  z-index: 10000;
}

.ai-chat-window.active {
  display: flex;
  animation: chatPopup 0.3s ease-out forwards;
}

.ai-chat-header {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.online-indicator {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
}

.ai-profile h4 {
  margin: 0;
  color: #ffffff;
  font-size: 0.95rem;
}

.sub-text {
  font-size: 0.72rem;
  color: #94a3b8;
}

.close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  cursor: pointer;
}

/* کەمکردنەوەی قەبارەی فۆنت و درێژی خانەکان */
.ai-chat-body {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.msg {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.35;
}

.msg.bot {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  align-self: flex-start;
}

.msg.user {
  background: #0284c7;
  color: #ffffff;
  align-self: flex-end;
}

.ai-chat-footer {
  padding: 10px;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-chat-footer input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 12px;
  color: #fff;
  outline: none;
}

.ai-chat-footer button {
  background: #0284c7;
  border: none;
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
}

@keyframes chatPopup {
  from { opacity: 0; transform: translateY(15px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
/* Left Side Tech Alignment */
.tech-left-wrapper {
  position: absolute;
  left: 45px;
  top: 55%;
  transform: translateY(-50%);
  width: 180px;
  height: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
}


/* Responsive adjustment for small screens */
@media (max-width: 992px) {
  .tech-left-wrapper {
    display: none; /* شاردنەوە لە سەر مۆبایل تا شاشەکە تێنەنێ دەربچێت */
  }
}
/* Full-Height Left Cyber Sidebar Structure */
.left-tech-sidebar {
  position: fixed;
  top: 0;
  left: 30px;
  width: 90px;
  height: 100vh;
  pointer-events: none; /* تا ڕێگری لە کلک کردنی بەشەکانی تر نەکات */
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  overflow: hidden;
}

/* Vertical Glowing Cyber Line */
.glow-line-left {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, 
    transparent 0%, 
    rgba(56, 189, 248, 0.6) 30%, 
    rgba(168, 85, 247, 0.6) 70%, 
    transparent 100%);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
  transform: translateX(-50%);
}

/* Vertical Binary Code Rain */
.binary-column {
  position: absolute;
  top: -100px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(56, 189, 248, 0.45);
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
  letter-spacing: 2px;
  animation: binaryRain 12s linear infinite;
}

/* Floating Futuristic Badges */
.floating-tech-icons {
  display: flex;
  flex-direction: column;
  gap: 80px;
  z-index: 3;
}

.tech-badge {
  width: 42px;
  height: 42px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.3);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #38bdf8;
  font-family: monospace;
  font-weight: bold;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 0 8px rgba(56, 189, 248, 0.15);
  animation: floatBadges 4s ease-in-out infinite alternate;
}

.tech-badge:nth-child(2) { animation-delay: 1s; color: #a855f7; border-color: rgba(168, 85, 247, 0.3); }
.tech-badge:nth-child(3) { animation-delay: 2s; color: #38bdf8; }
.tech-badge:nth-child(4) { animation-delay: 3s; color: #6366f1; border-color: rgba(99, 102, 241, 0.3); }

/* Animation Keyframes */
@keyframes binaryRain {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

@keyframes floatBadges {
  0% { transform: translateY(0px) scale(0.95); opacity: 0.6; }
  100% { transform: translateY(-12px) scale(1.05); opacity: 1; }
}

/* Hide on mobile devices for better user experience */
@media (max-width: 1024px) {
  .left-tech-sidebar {
    display: none;
  }
}
/* Projects Section Styling */
.projects-section {
  padding: 60px 20px;
  direction: rtl;
  font-family: inherit;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  color: #0f172a;
  margin-bottom: 8px;
  font-weight: 700;
}

.section-subtitle {
  text-align: center;
  color: #64748b;
  margin-bottom: 40px;
  font-size: 1rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.12);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-header h3 {
  margin: 12px 0 16px 0;
  font-size: 1.35rem;
  color: #0f172a;
  font-weight: 700;
}

.badge {
  background: #e0f2fe;
  color: #0369a1;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.github-icon-btn {
  color: #334155;
  font-size: 1.4rem;
  transition: color 0.2s ease;
}

.github-icon-btn:hover {
  color: #000000;
}

/* Tabs Styling */
.workspace-tabs {
  display: flex;
  gap: 6px;
  background: #f1f5f9;
  padding: 5px;
  border-radius: 12px;
  margin-bottom: 15px;
}

.tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tab-btn.active {
  background: #ffffff;
  color: #0284c7;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Tab Panels */
.tab-panel {
  display: none;
  border-radius: 12px;
  overflow: hidden;
}

.tab-panel.active {
  display: block;
}

/* Mock Device Frame */
.mock-device {
  background: #0f172a;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #334155;
}

.mock-header {
  background: #1e293b;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  direction: ltr;
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.address-bar {
  margin-left: auto;
  background: #0f172a;
  color: #94a3b8;
  padding: 3px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  width: 70%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-body {
  height: 320px;
  background: #ffffff;
}

.interactive-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Code Editor Styling */
.code-editor {
  background: #0d1117;
  color: #c9d1d9;
  border-radius: 12px;
  padding: 14px;
  font-family: 'Consolas', 'Fira Code', monospace;
  direction: ltr;
  text-align: left;
  height: 320px;
  overflow-y: auto;
}

.editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #30363d;
  padding-bottom: 8px;
  margin-bottom: 12px;
  font-size: 0.82rem;
  color: #8b949e;
}

.copy-btn {
  background: #21262d;
  border: 1px solid #30363d;
  color: #c9d1d9;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: #30363d;
}

.code-editor .k { color: #ff7b72; }
.code-editor .nc { color: #ffa657; }
.code-editor .nf { color: #d2a8ff; }
.code-editor .s { color: #a5d6ff; }

/* Tech Stack */
.tech-stack {
  display: flex;
  gap: 8px;
  margin: 18px 0;
  flex-wrap: wrap;
}

.tech-stack span {
  background: #f1f5f9;
  color: #475569;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 500;
}

/* Footer Link */
.project-footer {
  margin-top: 15px;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}

.github-full-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  background: #0f172a;
  color: #ffffff;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.2s ease;
}

.github-full-link:hover {
  background: #1e293b;
}
/* Styling Certificates Section */
.certificates-section {
    padding: 60px 20px;
    text-align: center;
}

.section-title {
    font-size: 28px;
    margin-bottom: 40px;
    color: #333;
}

/* Grid Layout */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
}

/* Certificate Card Styling */
.cert-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid #eef2f5;
}

/* Image Container */
.cert-img-holder {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
    background-color: #f9f9f9;
}

.cert-img-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Effect when Hover (کاتێک ماوس دەبەیتە سەری) */
.cert-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 150, 255, 0.2);
}

.cert-card:hover .cert-img-holder img {
    transform: scale(1.12); /* گەورەبوونەوەی وێنەکە */
}

/* Text inside card */
.cert-info {
    padding: 15px;
    text-align: center;
}

.cert-info h3 {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 5px;
}

.cert-info p {
    font-size: 13px;
    color: #7f8c8d;
    margin: 0;
}
/* Styling Modal Overlay */
.cert-modal {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.75); /* پشتی تاریک */
    backdrop-filter: blur(8px); /* لێڵکردنی دواوە بۆ هەستێکی زۆر پرۆفیشناڵ */
    justify-content: center;
    align-items: center;
    cursor: pointer;
    animation: fadeIn 0.3s ease;
}

/* Modal Content Image */
.modal-content {
    max-width: 85%;
    max-height: 85%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    animation: zoomIn 0.3s ease forwards;
    cursor: default;
}

/* Close Button (X) */
.close-btn {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: #38ef7d;
}

/* Keyframes for smooth animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}
/* شاردمەوەی بەشی سەرەکی وێجێتی گووگڵ ترانسلێت */
#google_translate_element {
  display: none !important;
}

/* شاردمەوەی باڕ و چوارچێوەی دەستکاری گووگڵ لە سەرەوەی پەڕەکە */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame {
  display: none !important;
}

/* ڕێگری لە جوڵانی تەواوی پەڕەکە بەرەو خوارەوە کاتێک گووگڵ بار دەبێت */
body {
  top: 0px !important;
  position: static !important;
}

/* شاردمەوەی باڵۆن و ڕوونکردنەوەکانی گووگڵ کاتێک ماوس دەبەی سەر دەقەکان */
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-te-spinner-pos {
  display: none !important;
}

.goog-text-highlight {
  background-color: transparent !important;
  box-shadow: none !important;
}
/* 1. شاردمەوەی تەواوی فریم و باڕی گووگڵ لە سەرەوە */
.goog-te-banner-frame,
iframe.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
.VIpgJd-yA0fsb-OWX0bf-ns1pL {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
}

/* شاردمەوەی تەواوی فریم و باڕەکانی گووگڵ */
.goog-te-banner-frame,
iframe.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
.VIpgJd-yA0fsb-OWX0bf-ns1pL,
iframe[id=":1.container"],
iframe[id^=":"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
}

/* سەپاندنی شوێنی تەواوی body تاوەکو بە هیچ جۆرێک بەرەو خوار نەچێت */
body {
  top: 0px !important;
  position: static !important;
  margin-top: 0px !important;
}

/* شاردمەوەی هەر تۆپکە یان ڕوونکردنەوەیەکی سەرمووس */
#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
}

.goog-text-highlight {
  background-color: transparent !important;
  box-shadow: none !important;
}
/* شوێنی سەرەکی درۆپ داونەکە */
.lang-dropdown {
  position: relative;
  display: inline-block;
}

/* لیستی زمانەکان (سەرەتا شاراوەیە) */
.lang-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #2a2d34; /* ڕەنگی پاشبنەمای منووەکە بەپێی وێبسایتەکەت دەستکاری بکە */
  min-width: 130px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.3);
  border-radius: 8px;
  padding: 6px 0;
  margin: 4px 0 0 0;
  list-style: none;
  z-index: 1000;
}

/* کاتێک ماوس دەچێتە سەر کانتێنەرەکە لیستەکە دەربکەوێت */
.lang-dropdown:hover .lang-menu {
  display: block;
}

/* ستاپ بڕگەکانی ناو لیستەکە */
.lang-menu li {
  padding: 8px 14px;
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s ease;
}

/* گۆڕینی ڕەنگ کاتێک ماوس دەچێتە سەر هەر زمانێک */
.lang-menu li:hover {
  background-color: #3e424b;
}
/* =========================================================
   ١. کاتێک وێبسایتەکە لە ڕاستەوە بۆ چەپە (RTL - کوردی و عەرەبی)
   - ڕۆبۆتەکە دەچێتە لای ڕاست
   - بەشی لۆجیکەکە دەچێتە لای چەپ
   ========================================================= */
html[dir="rtl"] .robot-widget-wrapper {
  left: auto !important;
  right: 20px !important; /* ڕۆبۆت لە لای ڕاست */
}

html[dir="rtl"] .left-tech-sidebar {
  right: auto !important;
  left: 0 !important; /* لۆجیک لە لای چەپ */
}


/* =========================================================
   ٢. کاتێک وێبسایتەکە لە چەپەوە بۆ ڕاستە (LTR - ئینگلیزی و ئەڵمانی)
   - ڕۆبۆتەکە دەچێتە لای چەپ
   - بەشی لۆجیکەکە دەچێتە لای ڕاست
   ========================================================= */
html[dir="ltr"] .robot-widget-wrapper {
  right: auto !important;
  left: 20px !important; /* ڕۆبۆت لە لای چەپ */
}

html[dir="ltr"] .left-tech-sidebar {
  left: auto !important;
  right: 0 !important; /* لۆجیک لە لای ڕاست */
}
html {
  scroll-behavior: smooth;
}
#backToTop {
  position: fixed;
  bottom: 20px;
  inset-inline-end: 20px; /* لە RTL و LTRدا ئۆتۆماتیکی شوێنی دەگۆڕێت */
  padding: 10px 15px;
  font-size: 18px;
  background-color: #2a2d34;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none; /* سەرەتا شاراوەیە */
  z-index: 9999;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: opacity 0.3s ease;
}

#backToTop:hover {
  background-color: #3e424b;
}
body {
  position: relative;
}

#backToTop {
  position: fixed !important;
  bottom: 25px !important;
  inset-inline-end: 25px !important; /* لە LTR دەچێتە ڕاست و لە RTL دەچێتە چەپ */
  top: auto !important;
  inset-inline-start: auto !important;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: #2a2d34;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  z-index: 999999 !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

/* کاتێک سکڕۆڵ دەکرێتە خوارەوە دوگمەکە دەردەکەوێت */
#backToTop.show {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

#backToTop:hover {
  background-color: #3e424b;
  transform: translateY(-3px) !important;
}
/* =========================================================
   ١. کاتێک وێبسایتەکە لە ڕاستەوە بۆ چەپە (RTL - کوردی و عەرەبی)
   - ڕۆبۆتەکە لە لای ڕاستە، بۆیە چات بۆکسەکە لە لای ڕاستی شاشە بێت
   ========================================================= */
html[dir="rtl"] #aiChatWindow,
html[dir="rtl"] .ai-chat-window {
  left: auto !important;
  right: 20px !important; /* کەوتنە ناوەوەی چات بۆکسەکە لە لای ڕاست */
  transform: none !important;
}

/* =========================================================
   ٢. کاتێک وێبسایتەکە لە چەپەوە بۆ ڕاستە (LTR - ئینگلیزی و ئەڵمانی)
   - ڕۆبۆتەکە لە لای چەپە، بۆیە چات بۆکسەکە لە لای چەپی شاشە بێت
   ========================================================= */
html[dir="ltr"] #aiChatWindow,
html[dir="ltr"] .ai-chat-window {
  right: auto !important;
  left: 20px !important; /* کەوتنە ناوەوەی چات بۆکسەکە لە لای چەپ */
  transform: none !important;
}