:root {
  --bg: #cbd5e1;
  --text: #0f172a;
  --muted: #475569;
  --primary: #5b7fff;
  --primary-rgb: 91, 127, 255;
  --primary-contrast: #ffffff;
  --surface: #ffffff;
  --border: #cbd5e1;
  --accent: #00d4ff;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --motion-fast: 250ms;
  --motion-medium: 600ms;
  --motion-slow: 1200ms;
}

/* Global Image Reset */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

@font-face {
  font-family: 'Rabar_038';
  src: url('../Rabar_038/Rabar_038.eot');
  src: url('../Rabar_038/Rabar_038.eot?#iefix') format('embedded-opentype'),
       url('../Rabar_038/Rabar_038.woff') format('woff'),
       url('../Rabar_038/Rabar_038.ttf') format('truetype'),
       url('../Rabar_038/Rabar_038.svg#Rabar_038') format('svg');
  font-weight: normal;
  font-style: normal;
}

:lang(ku), :lang(ku) *,
:lang(ar), :lang(ar) * {
  font-family: 'Rabar_038', ui-sans-serif, system-ui, -apple-system, sans-serif !important;
}

/* Language Specific Adjustments */
:root[lang="ku"] .brand,
:root[lang="ar"] .brand {
  font-size: 1rem;
}

.ltr-text {
  direction: ltr !important;
  unicode-bidi: embed;
  display: inline-block;
}

:root.theme-dark {
  --bg: #0b1220;
  --text: #e5e7eb;
  --muted: #a1a1aa;
  --primary: #7aa2ff;
  --primary-contrast: #0b1220;
  --surface: #0f172a;
  --border: #1f2937;
  --accent: #00e5ff;
}
* {
  box-sizing: border-box;
}
html, body {
  height: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  transition: background 300ms ease, color 300ms ease;
}
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  transform: translateY(0);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
:root.theme-dark .site-header {
  background: rgba(11, 18, 32, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}
body.has-fixed-header main.container {
  padding-top: var(--header-height);
}
.site-header.header-hidden {
  transform: translateY(-100%);
}
.site-header.header-scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
:root.theme-dark .site-header.header-scrolled {
  background: rgba(11, 18, 32, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.5rem;
  text-decoration: none;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
  position: relative;
  z-index: 10;
  transition: opacity 0.3s ease;
  animation: slideInDown 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.brand-logo {
  height: 84px;
  width: auto;
  border-radius: 10px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  background: color-mix(in oklab, var(--surface) 60%, transparent);
  padding: 8px 10px;
  border-radius: 99px;
  border: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
}

.nav-link {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: 99px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.nav-link:hover {
  color: var(--text);
  background: color-mix(in oklab, var(--surface) 80%, transparent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.nav-link.active {
  color: var(--primary-contrast);
  background: var(--primary);
  box-shadow: 0 4px 12px color-mix(in oklab, var(--primary) 40%, transparent);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), color-mix(in oklab, var(--accent) 60%, var(--primary)));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease, opacity 200ms ease;
  opacity: 0.6;
}
.nav-link:hover::after {
  transform: scaleX(1);
}
.nav-link.active::after {
  transform: scaleX(1);
  opacity: 1;
}
:root.theme-dark .nav {
  background: color-mix(in oklab, var(--surface) 40%, transparent);
  border-color: color-mix(in oklab, var(--border) 40%, transparent);
  box-shadow: 0 8px 22px rgba(0,0,0,0.24);
}

.controls {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
  animation-delay: 0.4s;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 4px 8px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

:root.theme-dark .controls {
  background: rgba(15, 23, 42, 0.5);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.controls:hover {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

:root.theme-dark .controls:hover {
  background: rgba(30, 41, 59, 0.8);
}

.icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.5);
  color: var(--primary);
  transform: rotate(15deg);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

:root.theme-dark .icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.menu-btn {
  display: none;
}

/* Mobile Menu Button Animation */
.menu-btn .menu-line-1, 
.menu-btn .menu-line-2, 
.menu-btn .menu-line-3 {
  transition: all var(--motion-fast) ease;
  transform-origin: center;
}

.menu-btn[aria-expanded="true"] .menu-line-2 {
  opacity: 0;
  transform: translateX(10px);
}

.menu-btn[aria-expanded="true"] .menu-line-1 {
  transform: translateY(6px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] .menu-line-3 {
  transform: translateY(-6px) rotate(-45deg);
}

.lang-select {
  height: 40px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  padding: 0 16px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2364748b%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 12px top 50%;
  background-size: 10px auto;
  padding-right: 32px;
}

.lang-select:hover, .lang-select:focus {
  border-color: var(--primary);
  background-color: var(--surface);
}

/* Custom Language Dropdown */
.lang-dropdown {
  position: relative;
  z-index: 50;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Mobile Menu Overlay Styles */
#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  /* Enhanced Glassmorphism */
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  transform: translateX(100%);
  transition: transform var(--motion-fast) cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear var(--motion-fast);
  visibility: hidden; /* Hide when closed to prevent clicking */
  border-left: 1px solid rgba(255, 255, 255, 0.4);
}

#mobile-menu.translate-x-0 {
  transform: translateX(0);
  visibility: visible;
  transition: transform var(--motion-fast) cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
}

:root.theme-dark #mobile-menu {
  background: rgba(11, 18, 32, 0.85);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.3);
}

#mobile-menu a {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  position: relative;
  letter-spacing: -0.02em;
}

/* Staggered Animation */
@keyframes menuSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#mobile-menu.translate-x-0 a {
  animation: menuSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

#mobile-menu.translate-x-0 a:nth-child(1) { animation-delay: 0.1s; }
#mobile-menu.translate-x-0 a:nth-child(2) { animation-delay: 0.15s; }
#mobile-menu.translate-x-0 a:nth-child(3) { animation-delay: 0.2s; }
#mobile-menu.translate-x-0 a:nth-child(4) { animation-delay: 0.25s; }
#mobile-menu.translate-x-0 a:nth-child(5) { animation-delay: 0.3s; }

#mobile-menu a:hover {
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  background-image: linear-gradient(135deg, var(--primary), var(--accent));
  transform: scale(1.05);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .nav {
    display: none;
  }
  
  .logo-img, .brand-logo {
    height: 40px;
  }
  
  .header-inner {
    padding: 12px 16px;
  }
  
  .lang-btn {
    height: 32px;
    padding: 0;
    width: 32px;
    justify-content: center;
    border-color: transparent;
  }
  
  .lang-btn .current-lang-label {
    display: none;
  }
  
  .lang-btn .chevron {
    display: none;
  }
  
  .controls {
    padding: 2px 2px;
    gap: 2px;
  }
  
  .icon-btn {
    width: 32px;
    height: 32px;
  }
}

.lang-btn:hover, .lang-btn.active {
  background: var(--surface);
  border-color: var(--primary);
  color: var(--primary);
}

.lang-btn .chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
  opacity: 0.6;
}

.lang-btn.active .chevron {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 160px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.96);
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

:root.theme-dark .lang-menu {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.lang-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.lang-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lang-item:hover {
  background: var(--surface);
  color: var(--primary);
}

.lang-item.selected {
  background: color-mix(in oklab, var(--primary) 10%, transparent);
  color: var(--primary);
}

.lang-item .check-icon {
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
  color: var(--primary);
}

.lang-item.selected .check-icon {
  opacity: 1;
  transform: scale(1);
}

/* RTL Adjustments for Dropdown */
:lang(ar) .lang-menu, :lang(ku) .lang-menu {
  right: auto;
  left: 0;
  text-align: right;
}

:lang(ar) .lang-item, :lang(ku) .lang-item {
  text-align: right;
  flex-direction: row-reverse;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(120vh - var(--header-height, 80px));
  display: flex;
  align-items: center;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 120px 0 80px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.25) 40%, rgba(0,0,0,0.55)),
    radial-gradient(600px 300px at 10% 10%, color-mix(in oklab, var(--primary) 12%, transparent), transparent 70%);
  opacity: 0.9;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: left;
  color: #fff;
  max-width: 900px;
}
.hero h1::after {
  content: "";
  display: block;
  width: 140px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff, color-mix(in oklab, var(--accent) 70%, #fff));
  margin-top: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}
.lead {
  color: rgba(255,255,255,0.85);
  font-size: 1.3rem;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  margin-top: 16px;
}
.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 7vw, 5rem);
  line-height: 1.1;
  margin: 0 0 12px;
  color: #fff;
  letter-spacing: -0.5px;
  text-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 12px 18px;
  text-decoration: none;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}
.btn.primary {
  background: transparent;
  color: #fff;
  border-radius: 0;
  padding: 0;
  font-weight: 800;
  letter-spacing: 0.03em;
  border-bottom: 2px solid color-mix(in oklab, var(--accent) 60%, var(--primary));
  box-shadow: none;
}
.btn.primary:hover {
  transform: translateY(-1px);
  color: color-mix(in oklab, #fff 80%, var(--accent));
  border-bottom-color: color-mix(in oklab, var(--accent) 80%, var(--primary));
}
.btn.ghost {
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  background: rgba(255,255,255,0.1);
}
.btn.ghost:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.2);
}
.hero-panel {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 24px;
  padding: 36px 24px 28px;
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.45);
  animation: heroIn 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transition: backdrop-filter 400ms ease, -webkit-backdrop-filter 400ms ease, transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 400ms ease, background 400ms ease, border-color 400ms ease;
}
.hero-panel:hover,
.hero-panel:focus-within {
  backdrop-filter: blur(18px) saturate(160%) brightness(1.05);
  -webkit-backdrop-filter: blur(18px) saturate(160%) brightness(1.05);
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.28);
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.55);
}
@media (max-width: 768px) {
  .header-inner {
    padding: 12px 16px;
  }
  
  .logo {
    gap: 8px;
  }

  .logo-text {
    font-size: 0.65rem;
  }
  .logo-img {
    height: 80px;
  }
  .brand-logo {
    height: 80px;
  }
  .controls {
    gap: 8px;
  }
  .menu-btn {
    display: grid;
  }
  .nav {
    position: fixed;
    top: calc(var(--header-height, 72px) + 8px);
    left: 12px;
    right: 12px;
    z-index: 120;
    display: none;
    flex-direction: column;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    padding: 12px;
    gap: 6px;
  }
  :root.theme-dark .nav {
    background: rgba(15,23,42,0.95);
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.45);
  }
  .nav-link {
    padding: 12px 14px;
    font-size: 1rem;
  }
  body.menu-open .nav {
    display: flex;
  }
  body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 110;
  }
  .hero {
    min-height: calc(100vh - var(--header-height, 80px));
    padding: 100px 0 60px;
  }
  .hero h1 {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }
  .lead {
    font-size: 1rem;
  }
  .hero-panel {
    padding: 24px;
  }
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.hero-badges {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06));
  position: relative;
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
  transition: transform 250ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 250ms ease, background 250ms ease;
}
.chip::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  background: conic-gradient(from 180deg,
    color-mix(in oklab, var(--primary) 30%, transparent),
    color-mix(in oklab, var(--accent) 30%, transparent),
    color-mix(in oklab, var(--primary) 30%, transparent)
  );
  filter: blur(12px);
  opacity: 0.35;
  z-index: -1;
  transition: opacity 250ms ease, transform 250ms ease;
}
.chip::after {
  content: "";
  position: absolute;
  left: -20%;
  top: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.35), rgba(255,255,255,0));
  transform: translateX(-100%);
  opacity: 0;
}
.chip:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 28px rgba(0,0,0,0.35);
  background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08));
}
.chip:hover::before {
  opacity: 0.55;
  transform: scale(1.04);
}
.chip:hover::after {
  animation: badgeShine 1.1s ease;
  opacity: 1;
}
.hero .lead {
  opacity: 0;
  transform: translateY(10px);
  animation: revealUp var(--motion-medium) var(--ease-out) forwards;
  animation-delay: 150ms;
}
.hero .hero-actions {
  opacity: 0;
  transform: translateY(12px);
  animation: revealUp var(--motion-medium) var(--ease-out) forwards;
  animation-delay: 300ms;
}
@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .hero::after { display: none; }
}
.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 20px;
  opacity: 0.8;
}
.scroll-indicator::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 10px;
  width: 4px;
  height: 10px;
  background: #fff;
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { transform: translate(-50%, 0); opacity: 1; }
  80% { transform: translate(-50%, 14px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 0; }
}
.features .cards, .cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.features {
  padding: 36px 0;
}
.activity {
  padding: 36px 0;
}
.activity > h2,
.activity > p.lead {
  padding-left: 16px;
}
.site-footer .container {
  padding-left: 40px;
}

/* RTL language adjustments */
:lang(ar) .hero h1,
:lang(ku) .hero h1,
[dir="rtl"] .hero h1 {
  direction: rtl;
  text-align: right;
}
:lang(ar) .hero .lead,
:lang(ku) .hero .lead,
[dir="rtl"] .hero .lead {
  direction: rtl;
  text-align: right;
}
:lang(ar) .activity > h2,
:lang(ku) .activity > h2,
[dir="rtl"] .activity > h2,
:lang(ar) .activity > p.lead,
:lang(ku) .activity > p.lead,
[dir="rtl"] .activity > p.lead {
  padding-right: 16px;
  padding-left: 0;
}
:lang(ar) .site-footer .container,
:lang(ku) .site-footer .container,
[dir="rtl"] .site-footer .container {
  padding-right: 40px;
  padding-left: 0;
}
:lang(ar) .footer-col h3,
:lang(ku) .footer-col h3,
[dir="rtl"] .footer-col h3 {
  text-align: right;
}
:lang(ar) .footer-col h3::after,
:lang(ku) .footer-col h3::after,
[dir="rtl"] .footer-col h3::after {
  left: auto;
  right: 0;
}
.activity-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: color-mix(in oklab, var(--surface) 90%, transparent);
  box-shadow: 0 12px 24px color-mix(in oklab, var(--accent) 10%, transparent);
  margin-bottom: 16px;
}
.activity-slider .slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 500ms ease;
}
.activity-slider .slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
}
.activity-slider .slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.slider-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  opacity: 0.7;
}
.slider-dots .dot.active {
  background: var(--primary);
  opacity: 1;
}
.card {
  background: color-mix(in oklab, var(--surface) 95%, transparent);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px color-mix(in oklab, var(--accent) 12%, transparent);
  border-color: color-mix(in oklab, var(--primary) 40%, var(--border));
}
.card {
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px color-mix(in oklab, var(--primary) 6%, transparent);
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 200px at 0% 0%, color-mix(in oklab, var(--primary) 8%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity 300ms ease;
  z-index: -1;
}
.card:hover::before {
  opacity: 1;
}
.card-icon {
  font-size: 24px;
}
.card.pro .card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  background: color-mix(in oklab, var(--surface) 80%, transparent);
  border: 1px solid var(--border);
  box-shadow: 0 10px 20px color-mix(in oklab, var(--accent) 12%, transparent);
  margin-bottom: 10px;
}
.card.pro:hover .card-icon {
  transform: translateY(-2px);
}
.card-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  background: color-mix(in oklab, var(--surface) 90%, transparent);
}
.card-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease, filter 300ms ease;
}
.card:hover .card-cover img {
  transform: scale(1.04);
}
.cover-slider { position: relative; width: 100%; height: 100%; }
.cover-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 250ms ease; }
.cover-slide.active { opacity: 1; }
.cover-nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  pointer-events: none;
}
.cover-btn {
  pointer-events: auto;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 80%, transparent);
  color: var(--text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}
.photo-count {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: color-mix(in oklab, var(--surface) 80%, transparent);
  border: 1px solid var(--border);
  color: var(--text);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
[dir="rtl"] .photo-count { right: auto; left: 8px; }
.feature-card .card-cover {
  aspect-ratio: 4 / 3;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}
.card-body {
  display: grid;
  gap: 10px;
}
.card-title {
  margin: 0;
  font-size: 1.1rem;
}
.sep {
  color: var(--border);
}
.activity-card {
  display: flex;
  flex-direction: column;
}
.activity-card .card-cover {
  aspect-ratio: 16 / 9;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}
.card-footer .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.activity-card .card-body {
  flex-grow: 1;
}

/* Home — Client Feedback */
.feedback-grid {
  display: block; /* Changed from grid to block for marquee */
  width: 100%;
  margin: 20px 0 60px;
  overflow: hidden; /* Ensure no scrollbars on the grid container */
}

.feedback-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  /* Fade mask for smooth edges */
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

#feedback-cards-container {
  opacity: 0;
  animation: fadeScaleIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fadeScaleIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.feedback-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: feedbackScroll 40s linear infinite;
  padding: 20px 0; /* Space for shadows/hover */
}

.feedback-track:hover {
  animation-play-state: paused;
}

@keyframes feedbackScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

[dir="rtl"] .feedback-track {
  animation-name: feedbackScrollRTL;
}

@keyframes feedbackScrollRTL {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}

.testimonial-card {
  width: clamp(280px, 80vw, 380px);
  flex-shrink: 0;
  padding: 32px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 
    0 10px 40px -10px rgba(0, 0, 0, 0.05),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  transition: all 400ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  /* Reset entrance animations as they conflict with marquee */
  opacity: 1;
  transform: none;
  animation: none;
}

/* Dark mode support */
:where(.dark) .testimonial-card {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 10px 40px -10px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

/* Decorative Quote Icon Background */
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  right: 20px;
  font-family: serif;
  font-size: 140px;
  line-height: 1;
  color: var(--primary);
  opacity: 0.08;
  pointer-events: none;
  transition: transform 500ms ease;
  transform: rotate(10deg);
}

.testimonial-card:hover::before {
  transform: rotate(0deg) scale(1.1) translateY(10px);
  opacity: 0.12;
}

.testimonial-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 
    0 20px 60px -15px rgba(var(--primary-rgb, 91, 127, 255), 0.2),
    0 0 0 2px rgba(var(--primary-rgb, 91, 127, 255), 0.1);
  z-index: 10;
}

:where(.dark) .testimonial-card:hover {
  background: rgba(30, 41, 59, 0.9);
}

.testimonial-header {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--surface), var(--bg));
  border: 2px solid white;
  box-shadow: 0 8px 16px -4px rgba(0,0,0,0.1);
  position: relative;
  color: var(--primary);
}

.avatar::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  z-index: -1;
  opacity: 0.3;
}

.person {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.person .name {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.2;
}

.person .role {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rating {
  grid-column: 1 / -1;
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.rating svg {
  width: 100px;
  height: 18px;
  color: #fbbf24; /* Amber-400 */
  filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3));
}

.quote {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  font-style: italic;
  position: relative;
  z-index: 2;
}



/* Updated Tag/Badge Styles with Animation & Effects */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid transparent;
}
/* Shine Effect */
.tag::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: 0.5s;
    z-index: -1;
}
/* Hover Interactions */
.card:hover .tag {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.card:hover .tag::after {
    left: 100%;
    transition: 0.6s ease-in-out;
}
/* Initial Animation */
.tag {
    animation: tag-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) backwards;
}
@keyframes tag-pop {
    from { opacity: 0; transform: scale(0.8) translateY(5px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--surface) 80%, transparent);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.85rem;
}
.page-header {
  padding: 40px 0 10px;
}


/* Professional Footer */
.site-footer {
  margin-top: 80px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 80px 0 30px;
  position: relative;
  overflow: hidden;
}
.site-footer .container {
  padding-left: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 28px;
  color: var(--text);
  letter-spacing: -0.01em;
  position: relative;
  display: inline-block;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 32px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
}

.footer-brand span {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.footer-desc {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 300px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  transition: all 0.2s ease;
}

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

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
  font-weight: 500;
  position: relative;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(6px);
  text-shadow: 0 0 15px color-mix(in oklab, var(--primary) 30%, transparent);
}

[dir="rtl"] .footer-links a:hover {
  transform: translateX(-4px);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--muted);
  align-items: center;
}

.contact-list .icon {
  color: var(--primary);
  font-size: 1.1rem;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
  font-weight: 500;
  opacity: 0.8;
}

.powered-by {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
  opacity: 0.9;
}

.safeclicks-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  padding: 6px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: all 0.2s;
}

.safeclicks-brand:hover {
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 5%, var(--bg));
  color: var(--accent);
}

.sc-logo-img {
  height: 24px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

.fade-up {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeInUp 600ms ease forwards;
}
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: 0 12px 24px color-mix(in oklab, var(--accent) 12%, transparent);
  min-width: 240px;
  text-align: center;
  display: none;
}
@media (max-width: 900px) {
  .features .cards, .cards, .grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .features .cards, .cards, .grid {
    grid-template-columns: 1fr;
  }
}

/* About Page styles moved to about.css */

/* Footer Bottom Links Layout */
.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-legal-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
  opacity: 0.8;
}

.footer-legal-links a:hover {
  color: var(--primary);
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-legal-links .separator {
  color: var(--border);
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .footer-bottom-left {
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    width: 100%;
    text-align: center;
  }
}
