/* ===== SITE STYLES (Tailwind supplement) ===== */
body {
  overflow-x: clip;
}

:root {
  /* Modern Color Palette */
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary-color: #10b981;
  --accent-color: #f59e0b;
  --accent-pink: #ec4899;
  --accent-purple: #8b5cf6;

  /* Neutral Colors */
  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --neutral-300: #d4d4d4;
  --neutral-400: #a3a3a3;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;

  /* Dark Mode Colors */
  --dark-bg: #0a0a0a;
  --dark-surface: #1a1a1a;
  --dark-border: #2a2a2a;

  /* Gradients */
  --gradient-primary: linear-gradient(
    135deg,
    #6366f1 0%,
    #8b5cf6 50%,
    #ec4899 100%
  );
  --gradient-secondary: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gradient-dark: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  --gradient-glass: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );

  /* Typography */
  --heading-font: "Cairo", -apple-system, BlinkMacSystemFont, sans-serif;
  --body-font: "Cairo", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono-font: "JetBrains Mono", "Fira Code", monospace;

  /* Font sizes */
  --h1-font-size: clamp(2.5rem, 5vw, 4rem);
  --h2-font-size: clamp(2rem, 4vw, 3rem);
  --h3-font-size: clamp(1.5rem, 3vw, 2rem);
  --normal-font-size: 1rem;
  --small-font-size: 0.875rem;

  /* Font weights */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* Spacing */
  --header-height: 5rem;
  --section-padding: 6rem 0;
  --container-padding: 0 1.5rem;

  /* Border radius */
  --border-radius: 0.75rem;
  --border-radius-lg: 1.5rem;
  --border-radius-xl: 2rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
  --shadow-glow-lg: 0 0 40px rgba(99, 102, 241, 0.4);

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);

  /* Animations */
  --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
}

.glow-hover:hover {
  box-shadow: 0 0 20px rgba(201, 191, 255, 0.15);
}

/* UAE currency symbol */
@font-face {
  font-family: "UAESymbol";
  src: url("/static/fonts/uae-dirham.ttf") format("truetype");
}

.uae-symbol,
.currency-symbol {
  font-family: "UAESymbol", var(--body-font), system-ui, -apple-system, Segoe UI,
    Roboto, Arial, sans-serif !important;
  font-weight: var(--font-regular) !important;
  margin-right: 5px;
  color: var(--text-color);
}

/* ===== CURRENCY DROPDOWN ===== */
.currency-dropdown {
  position: relative;
  display: inline-block;
  min-width: 100px;
}

.currency-dropdown__button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  min-width: 90px;
  padding: 0.5rem 0.875rem;
  background: rgba(30, 31, 38, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.25rem;
  color: #e2e2eb;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.currency-dropdown__button:hover,
.currency-dropdown__button[aria-expanded="true"] {
  border-color: #c9bfff;
  box-shadow: 0 0 12px rgba(201, 191, 255, 0.15);
}

.currency-dropdown__caret {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid #c9c4d6;
  border-bottom: 2px solid #c9c4d6;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.currency-dropdown__button[aria-expanded="true"] .currency-dropdown__caret {
  transform: rotate(-135deg);
}

.currency-dropdown__list {
  position: absolute;
  z-index: 60;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  width: max-content;
  background: #1e1f26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.25rem;
  padding: 0.25rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  display: none;
}

.currency-dropdown.is-open .currency-dropdown__list {
  display: block;
}

.currency-dropdown__option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.125rem;
  cursor: pointer;
  color: #c9c4d6;
  transition: background 0.15s ease;
}

.currency-dropdown__option:hover,
.currency-dropdown__option.is-active,
.currency-dropdown__option[aria-selected="true"] {
  background: rgba(201, 191, 255, 0.1);
  color: #e2e2eb;
}

.currency-text {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.currency-code {
  font-weight: 600;
}

/* ===== MOBILE NAV ===== */
#nav-menu {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 767px) {
  #nav-menu {
    position: fixed;
    inset: 0;
    top: 0;
    z-index: 60;
    background: rgba(12, 14, 20, 0.98);
    backdrop-filter: blur(20px);
    padding: 5rem 1.5rem 2rem;
    overflow-y: auto;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }

  [dir="rtl"] #nav-menu {
    transform: translateX(-100%);
  }

  #nav-menu.show-menu {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }
}

#header.scroll-header nav {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* ===== FLOATING BUTTONS ===== */
.floating-buttons {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

[dir="rtl"] .floating-buttons {
  right: auto;
  left: 1.5rem;
}

.scrollup,
.whatsapp-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.25rem;
  background: rgba(30, 31, 38, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #c9bfff;
  font-size: 1.25rem;
  transition: all 0.2s ease;
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(1rem);
}

.scrollup.show-scroll,
.whatsapp-button {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.whatsapp-button {
  background: #25d366;
  color: #fff;
  border-color: rgba(37, 211, 102, 0.3);
}

.scrollup:hover,
.whatsapp-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(201, 191, 255, 0.2);
}

.whatsapp-button:hover {
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.3);
}

/* ===== FAQ DETAILS ===== */
details.faq-details > summary {
  list-style: none;
}

details.faq-details > summary::-webkit-details-marker {
  display: none;
}

details.faq-details[open] summary .faq-chevron {
  transform: rotate(180deg);
}

.faq-chevron {
  transition: transform 0.2s ease;
}

/* ===== FILTER BUTTONS ===== */
.template-filter-btn,
.blog-category-btn {
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(26, 29, 38, 0.6);
  color: #c9c4d6;
  cursor: pointer;
}

.template-filter-btn:hover,
.blog-category-btn:hover {
  border-color: rgba(201, 191, 255, 0.3);
  color: #e2e2eb;
}

.template-filter-btn.active,
.blog-category-btn.active {
  background: #c9bfff;
  color: #2f009c;
  border-color: #c9bfff;
}

/* ===== FORM STYLES ===== */
.form__input,
.form__textarea,
.form__select,
.newsletter__input {
  width: 100%;
  background: #191b22;
  border: 1px solid #484554;
  border-radius: 0.25rem;
  padding: 0.875rem 1rem;
  color: #000;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus,
.newsletter__input:focus {
  outline: none;
  border-color: #c9bfff;
  box-shadow: 0 0 0 2px rgba(201, 191, 255, 0.1);
}

.form__input.error,
.form__textarea.error {
  border-color: #ffb4ab;
}

.form__label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #938ea0;
}

.form__group {
  margin-bottom: 1.25rem;
}

.form__checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: #c9c4d6;
}

.form__checkbox {
  accent-color: #c9bfff;
}

.form__honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.required {
  color: #ffb4ab;
}

/* ===== MESSAGES ===== */
.messages-container {
  padding: 1rem 0;
}

.message {
  margin-bottom: 0.75rem;
  border-radius: 0.25rem;
  overflow: hidden;
}

.message__content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
}

.message--success .message__content {
  background: rgba(0, 163, 146, 0.15);
  border: 1px solid rgba(61, 221, 199, 0.3);
  color: #3cddc7;
}

.message--error .message__content {
  background: rgba(147, 0, 10, 0.2);
  border: 1px solid rgba(255, 180, 171, 0.3);
  color: #ffb4ab;
}

.message--warning .message__content {
  background: rgba(201, 191, 255, 0.1);
  border: 1px solid rgba(201, 191, 255, 0.2);
  color: #c9bfff;
}

.message--info .message__content {
  background: rgba(30, 31, 38, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #c9c4d6;
}

.message__close {
  margin-left: auto;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  opacity: 0.7;
}

.message__close:hover {
  opacity: 1;
}

/* ===== ORDER FORM ===== */
.order__package-card:has(.order__package-radio:checked),
.order__addon-card:has(.order__addon-checkbox:checked),
.order__template-card:has(.order__template-radio:checked) {
  border-color: #c9bfff !important;
  box-shadow: 0 0 15px rgba(201, 191, 255, 0.15);
}

.order__package-radio,
.order__addon-checkbox,
.order__template-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.order__summary-column {
  align-self: flex-start;
}

@media (min-width: 1024px) {
  .order__summary-column {
    position: sticky;
    top: 6rem;
    z-index: 20;
    max-height: calc(100vh - 7rem);
  }

  .order__summary-column .order__summary {
    max-height: inherit;
    overflow-y: auto;
  }
}

/* ===== ARTICLE CONTENT ===== */
.article-content {
  color: #c9c4d6;
  line-height: 1.8;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  color: #e2e2eb;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-family: "Geist", sans-serif;
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content a {
  color: #c9bfff;
  text-decoration: underline;
}

.article-content pre,
.article-content code {
  font-family: "JetBrains Mono", monospace;
  background: #191b22;
  border-radius: 0.25rem;
}

.article-content pre {
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.article-content code {
  padding: 0.125rem 0.375rem;
  font-size: 0.875em;
}

.article-content img {
  max-width: 100%;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

[dir="rtl"] .article-content ul,
[dir="rtl"] .article-content ol {
  padding-left: 0;
  padding-right: 1.5rem;
}

/* ===== PORTFOLIO DETAIL CONTENT ===== */
.portfolio-detail-content__body {
  color: #c9c4d6;
  line-height: 1.8;
}

.portfolio-detail-content__body h2,
.portfolio-detail-content__body h3 {
  color: #e2e2eb;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.portfolio-detail-content__body p {
  margin-bottom: 1.25rem;
}

/* ===== SPLIDE OVERRIDES ===== */
.package-splide .splide__slide {
  overflow: visible;
}

.package-splide .splide__list {
  align-items: stretch;
}

.splide__pagination__page {
  background: #484554 !important;
  opacity: 0.6;
}

.splide__pagination__page.is-active {
  background: #c9bfff !important;
  opacity: 1;
}

.splide__arrow {
  background: rgba(30, 31, 38, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.splide__arrow svg {
  fill: #c9bfff !important;
}


/* ===== RTL SUPPORT ===== */
[dir="rtl"] .currency-dropdown__list {
  left: auto;
  right: 0;
}

[dir="rtl"] .currency-dropdown__button {
  flex-direction: row-reverse;
}

[dir="rtl"] .message__close {
  margin-left: 0;
  margin-right: auto;
}

[dir="rtl"] .team-splide {
  direction: rtl;
}

[dir="rtl"] .team-splide .splide__slide {
  direction: rtl;
}

/* ===== UTILITIES ===== */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fadeIn 0.4s ease-out forwards;
}

@keyframes slideOutUp {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-100%); }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Portfolio grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

.download-input {
  color: #000 !important;
}