@font-face {
  font-family: 'Rudaw';
  src: url('../assets/fonts/rudaw.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   Corporate / Agency Portfolio Stylesheet (Kurdish RTL)
   Typography: Local Kurdish Font 'Rudaw'
   ========================================================================== */

/* ==========================================================================
   CSS Custom Properties (Variables)
   Default: Light Mode (Icy Blue-Gray & Deep Royal Blue)
   ========================================================================== */
:root {
  --font-main: 'Rudaw', sans-serif;
  --font-heading: 'Rudaw', sans-serif;
  --font-brand: 'Rudaw', sans-serif;

  /* Primary Brand Colors */
  --primary: #253ca7;
  --primary-color: #253ca7;
  --primary-hover: #1b2e88;
  --primary-light: rgba(37, 60, 167, 0.08);
  --primary-glow: rgba(37, 60, 167, 0.25);
  --secondary: #0ea5e9;

  /* Light Theme Colors (Default) */
  --bg-body: #f4f7f9;
  --bg-surface: #ffffff;
  --bg-alt: #edf2f7;
  --bg-input: #ffffff;
  --header-bg: rgba(244, 247, 249, 0.92);

  --border-color: #e2e8f0;
  --border-card: #e5eaf2;
  --border-hover: #253ca7;

  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-heading: #0f172a;
  --logo-color: #253ca7;
  --logo-wing-color: #253ca7;
  --logo-dynamic-color: #253ca7;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(37, 60, 167, 0.04);
  --shadow-md: 0 10px 30px rgba(37, 60, 167, 0.08);
  --shadow-lg: 0 20px 40px rgba(37, 60, 167, 0.12);
  --shadow-card: 0 12px 35px rgba(15, 23, 42, 0.06);
  --shadow-card-hover: 0 20px 45px rgba(37, 60, 167, 0.15);

  /* Dimensions & Radius */
  --max-width: 1200px;
  --header-height: 78px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Dark Theme Overrides
   ========================================================================== */
[data-theme="dark"] {
  --primary: #3b56d9;
  --primary-color: #3b56d9;
  --primary-hover: #4f68e8;
  --primary-light: rgba(59, 86, 217, 0.15);
  --primary-glow: rgba(59, 86, 217, 0.35);

  --bg-body: #0a0f1d;
  --bg-surface: #131b2e;
  --bg-alt: #0e1526;
  --bg-input: #1a233a;
  --header-bg: rgba(10, 15, 29, 0.92);

  --border-color: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-hover: #3b56d9;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-heading: #ffffff;
  --logo-color: #ffffff;
  --logo-wing-color: #ffffff;
  --logo-dynamic-color: #ffffff;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.55);
  --shadow-card: 0 12px 35px rgba(0, 0, 0, 0.35);
  --shadow-card-hover: 0 20px 45px rgba(59, 86, 217, 0.25);
}

/* ==========================================================================
   Reset & Base Foundation (RTL)
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  direction: rtl;
}

/* Accessibility: High-contrast focus rings for keyboard navigation (WCAG 2.1) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Dynamic Typography based on HTML lang attribute
   ========================================================================== */
/* Default Kurdish */
html[lang="ku"] body,
html[lang="ckb"] body {
  font-family: 'Rudaw', sans-serif;
}

/* Arabic */
html[lang="ar"] body {
  font-family: 'Cairo', sans-serif;
}

/* English */
html[lang="en"] body {
  font-family: 'Times New Roman', Times, serif;
}

/* Dynamic font variables for elements using --font-brand / --font-heading */
html[lang="ku"],
html[lang="ckb"] {
  --font-main: 'Rudaw', sans-serif;
  --font-heading: 'Rudaw', sans-serif;
  --font-brand: 'Rudaw', sans-serif;
}

html[lang="ar"] {
  --font-main: 'Cairo', sans-serif;
  --font-heading: 'Cairo', sans-serif;
  --font-brand: 'Cairo', sans-serif;
}

html[lang="en"] {
  --font-main: 'Times New Roman', Times, serif;
  --font-heading: 'Times New Roman', Times, serif;
  --font-brand: 'Times New Roman', Times, serif;
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--transition-base), color var(--transition-base);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

ul {
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.flip-rtl {
  transform: scaleX(-1);
}

/* ==========================================================================
   Layout Containers & Utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.35;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* Corporate Card Primitive */
.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 30px;
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-base);
  font-family: inherit;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 18px var(--primary-glow);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 8px 25px var(--primary-glow);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 9px 20px;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Header & Navbar (RTL Layout)
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--header-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Right Side: Logo */
.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.site-logo,
.site-logo-svg {
  height: 50px;
  max-height: 55px;
  width: auto;
  display: block;
  vertical-align: middle;
  filter: drop-shadow(0 2px 8px rgba(37, 60, 167, 0.12));
  transition: filter var(--transition-base);
}

.logo:hover .site-logo,
.logo:hover .site-logo-svg,
.site-logo:hover,
.site-logo-svg:hover {
  filter: drop-shadow(0 4px 14px rgba(37, 60, 167, 0.35));
}

.logo-adaptive-shape {
  fill: var(--logo-dynamic-color, var(--logo-wing-color));
  transition: fill var(--transition-base);
}

.logo-text {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-brand);
}

.logo-name {
  font-weight: 900;
}

.logo-accent {
  color: var(--primary);
}

/* Center: Navigation Links */
.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0%;
  height: 2.5px;
  background-color: var(--primary);
  transition: width var(--transition-base);
  border-radius: var(--radius-full);
}

.nav-link.active::after,
.nav-link:hover::after {
  width: 100%;
}

/* Left Side: Actions (CTA + Theme Toggle) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ==========================================================================
   Language Switcher Dropdown
   ========================================================================== */
.lang-switcher {
  position: relative;
}

.lang-toggle-btn {
  height: 42px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all var(--transition-base);
}

.lang-toggle-btn:hover,
.lang-switcher.open .lang-toggle-btn {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.lang-toggle-btn .icon-globe {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.lang-toggle-btn .chevron-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.lang-switcher.open .chevron-icon {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 145px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 1050;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-switcher.open .lang-dropdown-menu {
  display: flex;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  text-align: inherit;
  transition: all var(--transition-fast);
}

.lang-option:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

.lang-option.active {
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 800;
}

.lang-code-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-alt);
  color: var(--text-muted);
  letter-spacing: 0.05em;
  transition: all var(--transition-fast);
}

.lang-option.active .lang-code-pill,
.lang-option:hover .lang-code-pill {
  background: var(--primary);
  color: #ffffff;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.theme-toggle-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.theme-icon-sun,
.theme-icon-moon {
  position: absolute;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

[data-theme="dark"] .theme-icon-sun {
  opacity: 1;
  transform: translateY(0);
}
[data-theme="dark"] .theme-icon-moon {
  opacity: 0;
  transform: translateY(-20px);
}

:root:not([data-theme="dark"]) .theme-icon-sun {
  opacity: 0;
  transform: translateY(20px);
}
:root:not([data-theme="dark"]) .theme-icon-moon {
  opacity: 1;
  transform: translateY(0);
}

/* Navbar Main CTA Button */
.nav-cta {
  height: 42px;
  padding: 0 20px;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  line-height: 1;
}

/* Hamburger toggle (hidden on desktop) */
.hamburger,
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger span,
.menu-toggle .bar {
  display: block;
  height: 2.5px;
  width: 100%;
  background-color: var(--text-heading);
  border-radius: 3px;
  transition: all var(--transition-base);
  transform-origin: center;
}

/* ==========================================================================
   Hero Section (RTL: Text Right, Image Left)
   ========================================================================== */
.hero-section {
  padding-top: calc(var(--header-height) + 50px);
  padding-bottom: 90px;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, var(--bg-body) 0%, var(--bg-alt) 100%);
  position: relative;
  overflow: hidden;
}

/* Interactive Particle Network Background */
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: auto;
}

#particles-js canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Right Side: Text */
.hero-content {
  text-align: right;
  position: relative;
  z-index: 2;
}

.hero-greeting {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.hero-greeting-name {
  color: var(--text-heading);
  font-weight: 800;
}

.hero-title-massive {
  font-size: clamp(2.8rem, 5.5vw, 4.4rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin-bottom: 12px;
}

/* Typewriter Effect */
.typewriter-container {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 24px;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 2.4rem;
}

.typewriter-text {
  color: var(--primary-color);
  font-weight: 700;
  display: inline-block;
  min-width: 8px;
}

.typewriter-cursor {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 300;
  margin-inline-start: 2px;
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.hero-description {
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 560px;
  margin-bottom: 38px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

/* Left Side: Photo with Floating UI & Patterns */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* Abstract corporate background shapes behind photo */
.hero-photo-backdrop {
  position: absolute;
  bottom: 0;
  width: 380px;
  height: 420px;
  background: linear-gradient(135deg, var(--primary-light) 0%, rgba(37, 60, 167, 0.18) 100%);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  z-index: 1;
}

.hero-image {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.15));
}

/* Decorative Dotted Matrix */
.dot-pattern {
  position: absolute;
  top: 10px;
  right: -25px;
  width: 120px;
  height: 120px;
  background-image: radial-gradient(var(--primary) 2px, transparent 2px);
  background-size: 14px 14px;
  opacity: 0.35;
  z-index: 0;
}

/* Floating Review Badge ("20k+ Customer Review") */
.floating-review-badge {
  position: absolute;
  bottom: 35px;
  right: -25px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 3;
  animation: floatBadge 4s ease-in-out infinite alternate;
}

.review-stars {
  display: flex;
  gap: 3px;
  color: #f59e0b;
}

.review-count {
  font-family: var(--font-brand);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.2;
}

.review-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Floating Experience Badge */
.floating-exp-badge {
  position: absolute;
  top: 40px;
  left: -20px;
  background-color: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  box-shadow: 0 10px 25px var(--primary-glow);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
  animation: floatBadge 4.5s ease-in-out infinite alternate-reverse;
}

.exp-number {
  font-family: var(--font-brand);
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
}

.exp-label {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
}

@keyframes floatBadge {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

/* ==========================================================================
   About Me Section (Photo Left, Text & Progress Bars Right)
   ========================================================================== */
.about-section {
  background-color: var(--bg-surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

/* Left: Framed Photo */
.about-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-image-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--bg-alt);
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--bg-surface);
}

.about-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.about-backdrop-shape {
  position: absolute;
  inset: -12px;
  border: 2px dashed var(--primary);
  border-radius: calc(var(--radius-lg) + 8px);
  z-index: -1;
  opacity: 0.45;
}

/* Right: Bio & Animated Skills Progress Bars */
.about-content {
  text-align: right;
}

.about-lead-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.35;
  margin-bottom: 20px;
}

.about-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 30px;
}

/* Progress Bars */
.skills-progress-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skill-bar-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-heading);
}

.skill-percentage {
  font-family: var(--font-brand);
  color: var(--primary);
  font-weight: 800;
}

.progress-track {
  width: 100%;
  height: 9px;
  background-color: var(--bg-alt);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-full);
  width: 0%;
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Services Section ("خزمەتگوزارییەکانم")
   ========================================================================== */
.services-section {
  background-color: var(--bg-body);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.service-card {
  padding: 34px 26px;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  text-align: right;
  transform-style: preserve-3d;
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.service-card .service-icon-box,
.service-card h3,
.service-card .service-title,
.service-card p,
.service-card .service-desc,
.service-card .service-link {
  transform: translateZ(30px);
  transition: transform 0.3s ease;
}

.service-icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: all var(--transition-base);
}

.service-card:hover .service-icon-box {
  background-color: var(--primary);
  color: #ffffff;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 22px;
  flex: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: auto;
}

.service-link:hover {
  color: var(--primary-hover);
  transform: translateZ(30px) translateX(-4px);
}

/* ==========================================================================
   Portfolio Section ("کارەکانم")
   ========================================================================== */
.portfolio-section {
  background-color: var(--bg-surface);
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 9px 24px;
  border-radius: var(--radius-full);
  background-color: var(--bg-body);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: inherit;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.portfolio-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.portfolio-thumbnail {
  position: relative;
  height: 210px;
  background-color: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.portfolio-mockup {
  width: 85%;
  height: 130px;
  background-color: var(--bg-surface);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  direction: ltr;
}

.mockup-header {
  display: flex;
  gap: 5px;
}

.mockup-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--border-color);
}

.mockup-line {
  height: 6px;
  background-color: var(--bg-alt);
  border-radius: 3px;
}

.mockup-line.w-full { width: 90%; }
.mockup-line.w-half { width: 50%; }

.portfolio-tag-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  background-color: var(--primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.portfolio-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: right;
}

.portfolio-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 10px;
}

.portfolio-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 18px;
  flex: 1;
}

.portfolio-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  border: none;
  background: transparent;
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
  width: 100%;
  justify-content: flex-start;
  cursor: pointer;
  font-family: inherit;
}

.portfolio-link-btn:hover {
  color: var(--primary-hover);
  transform: translateX(-4px);
}

.portfolio-card {
  cursor: pointer;
  transform-style: preserve-3d;
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.portfolio-card .portfolio-thumbnail,
.portfolio-card .portfolio-tag-pill,
.portfolio-card h3,
.portfolio-card .portfolio-title,
.portfolio-card p,
.portfolio-card .portfolio-desc,
.portfolio-card .portfolio-link-btn {
  transform: translateZ(30px);
  transition: transform 0.3s ease;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-img {
  transform: scale(1.05);
}

/* VanillaTilt Glare */
.js-tilt-glare {
  border-radius: inherit;
}

/* ==========================================================================
   Project Modal / Lightbox
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  padding: 30px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
  text-align: right;
  direction: rtl;
}

html[dir="ltr"] .modal-content {
  text-align: left;
  direction: ltr;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.close-modal {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-alt);
  color: var(--text-heading);
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 10;
  padding: 0;
}

html[dir="ltr"] .close-modal {
  left: auto;
  right: 18px;
}

.close-modal:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: rotate(90deg);
}

#modal-img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-alt);
}

#modal-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 12px;
}

#modal-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* ==========================================================================
   Contact Section (Centered Info Cards Layout)
   ========================================================================== */
.contact-section {
  background-color: var(--bg-body);
}

.contact-cards-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1140px;
  margin: 0 auto;
}

.info-item-card {
  flex: 1 1 320px;
  max-width: 360px;
  min-width: 280px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px 24px;
  text-align: right;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
}

.info-item-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-card-hover);
}

.info-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.info-item-card:hover .info-icon-box {
  background-color: var(--primary);
  color: #ffffff;
  transform: scale(1.05);
}

.info-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}

.info-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
}

.info-value {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.5;
  word-break: break-word;
}

.info-value a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.info-value a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.info-value.phone-value a {
  direction: ltr;
  display: inline-block;
}

.info-value.address-value {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   Footer (Royal Dark Blue)
   ========================================================================== */
.footer {
  background-color: #0e1738;
  color: #ffffff;
  padding: 45px 0 35px;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  color: #ffffff;
}

.footer-copy {
  font-size: 0.9rem;
  color: #94a3b8;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.social-circles {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-circle-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.social-circle-btn:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.back-to-top-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
}

.back-to-top-btn:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-content {
    text-align: center;
  }

  .contact-cards-container {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  /* Page Padding & Spacing */
  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.95rem;
    line-height: 1.3;
  }

  .section-subtitle {
    font-size: 0.95rem;
    padding: 0 10px;
    margin-bottom: 35px;
  }

  .container {
    padding: 0 18px;
  }

  /* --------------------------------------------------------------------------
     1. Navbar & Mobile Hamburger Dropdown
     -------------------------------------------------------------------------- */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    z-index: 1002;
    order: 3;
  }

  .nav-actions {
    order: 2;
    gap: 10px;
  }

  .logo {
    order: 1;
  }

  /* Hamburger transform animation (transform into 'X') */
  .hamburger.toggle span:nth-child(1),
  .hamburger.open span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
  }

  .hamburger.toggle span:nth-child(2),
  .hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .hamburger.toggle span:nth-child(3),
  .hamburger.open span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
  }

  /* Navigation Links: Hidden by default, dropdown when .active or .open */
  .nav-links,
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--header-bg);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
    padding: 20px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    z-index: 1000;
  }

  .nav-links.active,
  .nav-menu.active,
  .nav-menu.open {
    display: flex;
    animation: mobileDropdownSlide 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes mobileDropdownSlide {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 8px;
    margin: 0;
    padding: 0;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 12px 18px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    border-radius: var(--radius-sm);
    text-align: right;
    transition: all var(--transition-fast);
  }

  html[dir="ltr"] .nav-link {
    text-align: left;
  }

  .nav-link:hover,
  .nav-link.active {
    background-color: var(--primary-light);
    color: var(--primary);
  }

  @media (max-width: 600px) {
    .nav-actions .nav-cta {
      display: none;
    }
  }

  /* --------------------------------------------------------------------------
     2. Hero Section Mobile Responsiveness
     -------------------------------------------------------------------------- */
  .hero-section {
    padding-top: calc(var(--header-height) + 25px);
    padding-bottom: 50px;
    min-height: auto;
  }

  #particles-js {
    display: none;
  }

  .hero-container {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    gap: 35px;
  }

  .hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .hero-title-massive {
    font-size: 2.5rem;
    line-height: 1.22;
    margin-bottom: 12px;
  }

  .typewriter-container {
    font-size: 1.25rem;
    justify-content: center;
    margin-top: 6px;
    margin-bottom: 18px;
    text-align: center;
  }

  .hero-greeting {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  .hero-description {
    font-size: 1rem;
    line-height: 1.75;
    max-width: 100%;
    margin: 0 auto 24px auto;
    text-align: center;
  }

  .hero-cta-group {
    justify-content: center;
    width: 100%;
    gap: 14px;
  }

  .hero-visual {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-image-wrapper {
    max-width: 300px;
  }

  .hero-photo-backdrop {
    width: 260px;
    height: 300px;
  }

  .hero-image {
    max-width: 260px;
  }

  .floating-review-badge {
    right: -10px;
    bottom: 5px;
    padding: 10px 14px;
    font-size: 0.85rem;
  }

  .floating-exp-badge {
    left: -10px;
    top: 5px;
    padding: 10px 14px;
    font-size: 0.85rem;
  }

  /* --------------------------------------------------------------------------
     3. About Section Mobile Responsiveness
     -------------------------------------------------------------------------- */
  .about-grid {
    display: flex;
    flex-direction: column;
    gap: 35px;
    align-items: center;
  }

  .about-image-wrapper {
    max-width: 300px;
    margin: 0 auto;
  }

  .about-content {
    text-align: center;
    width: 100%;
  }

  .about-lead-title {
    font-size: 1.75rem;
    line-height: 1.35;
    margin-bottom: 16px;
  }

  .about-text {
    font-size: 0.98rem;
    margin-bottom: 28px;
  }

  .skills-progress-list {
    text-align: right;
  }

  html[dir="ltr"] .skills-progress-list {
    text-align: left;
  }

  /* --------------------------------------------------------------------------
     4. Grids (Services, Portfolio, Contact) Single Column
     -------------------------------------------------------------------------- */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    padding: 26px 22px;
  }

  .portfolio-filters {
    gap: 8px;
    margin-bottom: 30px;
  }

  .filter-btn {
    padding: 7px 15px;
    font-size: 0.88rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .contact-cards-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
  }

  .info-item-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 20px 18px;
  }

  /* --------------------------------------------------------------------------
     5. Footer Mobile Responsiveness
     -------------------------------------------------------------------------- */
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 22px;
  }

  .footer-right {
    flex-direction: column;
    gap: 16px;
  }
}

/* ==========================================================================
   Google Translate Widget & Frame Suppression
   ========================================================================== */
body {
  top: 0px !important;
  position: static !important;
}

.goog-te-banner-frame,
.skiptranslate,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-te-menu-frame {
  display: none !important;
  visibility: hidden !important;
}

.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}

/* ==========================================================================
   LTR Layout Adaptations (When English is selected)
   ========================================================================== */
html[dir="ltr"] {
  direction: ltr;
}

html[dir="ltr"] .hero-content,
html[dir="ltr"] .about-content,
html[dir="ltr"] .experience-card,
html[dir="ltr"] .portfolio-info,
html[dir="ltr"] .testimonial-content,
html[dir="ltr"] .info-item-card,
html[dir="ltr"] .footer-copy,
html[dir="ltr"] .footer-left {
  text-align: left;
}

html[dir="ltr"] .nav-link::after {
  right: auto;
  left: 0;
}

html[dir="ltr"] .lang-dropdown-menu {
  left: auto;
  right: 0;
}

html[dir="ltr"] .dot-pattern {
  right: auto;
  left: -25px;
}

html[dir="ltr"] .floating-review-badge {
  right: auto;
  left: -25px;
}

html[dir="ltr"] .floating-exp-badge {
  left: auto;
  right: -20px;
}

/* ==========================================================================
   Modern Back to Top Button
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px var(--primary-glow);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 99;
  padding: 0;
}

.back-to-top svg {
  width: 22px;
  height: 22px;
  stroke: #ffffff;
  stroke-width: 2.5;
  transition: transform 0.25s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(37, 60, 167, 0.5);
  background: var(--primary-hover);
}

.back-to-top:hover svg {
  transform: translateY(-2px);
}

.back-to-top:active {
  transform: translateY(0);
}

html[dir="ltr"] .back-to-top {
  left: auto;
  right: 30px;
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    left: 20px;
    width: 42px;
    height: 42px;
  }

  html[dir="ltr"] .back-to-top {
    left: auto;
    right: 20px;
  }
}

/* ==========================================================================
   Scroll Progress Bar
   ========================================================================== */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), #3b82f6);
  background-color: var(--primary-color);
  z-index: 9999;
  border-radius: 0 2px 2px 0;
  transition: width 0.1s ease-out;
  pointer-events: none;
  box-shadow: 0 1px 8px var(--primary-glow);
}


