/* ========================================================
   Apple-style smooth corners: shape only, radius sizes unchanged
   corner-shape works in current Chromium-based browsers (Chrome, Edge, Brave, Opera).
   Other browsers show the same normal rounded corners as before, so nothing breaks anywhere.
   ======================================================== */

@font-face {
  font-family: "Poppins";
  src: url("poppins/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("poppins/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("poppins/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("poppins/Poppins-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("poppins/Poppins-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Thmanyah Serif Display";
  src: url("fonts/thmanyah-serif-display/thmanyahserifdisplay-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Thmanyah Serif Display";
  src: url("fonts/thmanyah-serif-display/thmanyahserifdisplay-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Thmanyah Serif Display";
  src: url("fonts/thmanyah-serif-display/thmanyahserifdisplay-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Thmanyah Serif Display";
  src: url("fonts/thmanyah-serif-display/thmanyahserifdisplay-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Thmanyah Serif Display";
  src: url("fonts/thmanyah-serif-display/thmanyahserifdisplay-Black.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0d0d0d;
  --bg-alt: #252527;
  --bg-soft: #141414;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --primary: #ffffff;
  --text: #f5f5f5;
  --text-muted: rgba(255, 255, 255, 0.75);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --brand-red: #ffffff;
  --brand-blue: #0071E3;
  --font-body: "Poppins", "Segoe UI", sans-serif;
  --font-ar: "Thmanyah Serif Display", "Segoe UI", "Tahoma", "Arial", sans-serif;
  --font-en: "Poppins", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: var(--bg);
  font-family: var(--font-body);
  color: var(--text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  background: var(--bg);
}

/* ========================================================
   DYNAMIC WINDOW SCALING (SCALE DOWN PROPORTIONALLY ON RESIZE)
   Scales down the entire 1280px layout seamlessly whenever
   the browser window is resized smaller than 1280px.
   ======================================================== */
@media (min-width: 769px) and (max-width: 1280px) {
  html {
    overflow-x: hidden;
  }

  body {
    width: 1280px;
    min-width: 1280px;
    zoom: calc(100vw / 1280px);
    overflow-x: hidden;
  }
}

html[lang="ar"],
html[dir="rtl"],
body[lang="ar"],
body[dir="rtl"] {
  direction: rtl;
  font-family: var(--font-ar);
}

html[lang="ar"] body,
html[dir="rtl"] body,
body[lang="ar"],
body[dir="rtl"] {
  font-family: var(--font-ar);
}

html[lang="ar"] .main-nav,
html[dir="rtl"] .main-nav,
html[lang="ar"] .social-nav,
html[dir="rtl"] .social-nav,
html[lang="ar"] .portfolio-tabs,
html[dir="rtl"] .portfolio-tabs {
  direction: rtl;
}

html[lang="ar"] .headline,
html[dir="rtl"] .headline,
html[lang="ar"] .services-line,
html[dir="rtl"] .services-line,
html[lang="ar"] .intro-line,
html[dir="rtl"] .intro-line,
html[lang="ar"] .portfolio-header h2,
html[dir="rtl"] .portfolio-header h2,
html[lang="ar"] .portfolio-tab,
html[dir="rtl"] .portfolio-tab {
  font-family: var(--font-ar);
  letter-spacing: 0;
  line-height: 1.6;
  text-align: center;
}

html[lang="ar"] .portfolio-header,
html[dir="rtl"] .portfolio-header,
html[lang="ar"] .video-overlay,
html[dir="rtl"] .video-overlay {
  text-align: center;
}

.portfolio-header h2,
.portfolio-tab {
  font-family: var(--font-ar);
  line-height: 1.6;
  letter-spacing: 0;
}

.portfolio-header {
  text-align: center;
}

.hero {
  min-height: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: var(--bg);
  padding: 0;
  margin: 0;
}

.video-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 3440 / 1440;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: var(--bg);
  overflow: hidden;
  line-height: 0;
}


.learn-hero-image {
  width: 100%;
  height: 100%;
  max-height: none;
  background: var(--bg);
  display: block;
}

.hero-media-slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
}

.hero-media-slot > div {
  position: absolute !important;
  top: 50%;
  left: 50%;
  width: 100%;
  transform: translate(-50%, -50%);
}

.hero-media-slot iframe {
  width: 100% !important;
  height: 100% !important;
  pointer-events: none;
}

.topbar {
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 3;
  pointer-events: none;
  direction: inherit;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  pointer-events: auto;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-ar);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.brand-logo:hover,
.brand-logo:focus-visible {
  opacity: 0.92;
  transform: translateY(-1px);
  outline: none;
}

.brand-logo-text {
  color: inherit;
}

.main-nav,
.social-nav {
  display: flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
  white-space: nowrap;
  pointer-events: auto;
}

.main-nav {
  justify-content: center;
  gap: 16px;
}

.social-nav {
  justify-content: flex-end;
  gap: 14px;
}

.main-nav a,
.social-nav a,
.menu-toggle-btn {
  position: relative;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}

.menu-toggle-btn {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  corner-shape: squircle;
  line-height: 1;
  flex-shrink: 0;
}

.main-nav a {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.social-nav a:hover,
.social-nav a:focus-visible,
.menu-toggle-btn:hover,
.menu-toggle-btn:focus-visible {
  color: #ffffff;
  opacity: 1;
  transform: translateY(-2px);
  outline: none;
}

.social-nav a {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}

.social-nav img {
  width: 100%;
  height: 100%;
  display: block;
  filter: brightness(0) invert(1);
  transition: filter 0.25s ease, transform 0.25s ease;
}

.social-nav a:hover img,
.social-nav a:focus-visible img {
  filter: brightness(0) saturate(100%) invert(17%) sepia(83%) saturate(2070%) hue-rotate(348deg) brightness(93%) contrast(100%);
  transform: translateY(-2px) scale(1.08);
}

.video-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(90%, 1200px);
  text-align: center;
  color: #fff;
  pointer-events: none;
}

.intro-line {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.headline {
  margin: 0 auto;
  font-size: 46px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
  white-space: normal;
}

.headline-top,
.headline-bottom {
  display: block;
}

.headline-bottom {
  margin-top: 0.08em;
}

.services-line {
  margin: 22px auto 0;
  font-size: 19px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.stats-section {
  width: 100%;
  background: var(--bg);
  padding: 86px 0 80px;
}

.stats-wrap {
  width: min(90%, 1200px);
  margin: 0 auto;
}

.stats-header {
  margin-bottom: 32px;
  text-align: center;
}

.section-kicker {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}

.stats-header h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.1rem, 3vw, 3.4rem);
  line-height: 1.6;
  letter-spacing: -0.03em;
  font-weight: 600;
  max-width: 900px;
  margin-inline: auto;
}

/* About Me Horizontal Strips */
.stats-list-strip {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 30px;
}

.stats-list-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.stats-list-item:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.stats-list-value {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 8px;
}

.stats-list-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.software-list-strip {
  display: flex;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.strip-title {
  width: 150px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  margin: 0;
  flex-shrink: 0;
}

.strip-items {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  flex-grow: 1;
}

.strip-items span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.strip-divider {
  color: rgba(255, 255, 255, 0.1) !important;
  font-weight: 300;
}

.software-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.software-prof {
  color: rgba(255, 255, 255, 0.4) !important;
  font-size: 0.9rem !important;
}


.logo-band {
  position: relative;
  width: 100%;
  direction: ltr;
  background: var(--bg);
  overflow: hidden;
  padding: 28px 0;
}

.logo-track {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  overflow: hidden;
  width: max-content;
  -webkit-animation: logoScroll 36s linear infinite;
  animation: logoScroll 36s linear infinite;
  will-change: transform;
  height: 50px;
}

.logo-band:hover .logo-track {
  animation-play-state: paused;
}

.logo-group {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 32px;
  padding-right: 32px;
  flex-shrink: 0;
  height: 100%;
}

.logo-group img,
.logo-track img,
.logo-band img {
  width: 150px !important;
  max-width: 150px !important;
  flex-shrink: 0 !important;
  height: 50px;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  filter: brightness(1) contrast(1) saturate(0.88);
  opacity: 0.95;
  transition: transform 0.35s ease, opacity 0.35s ease, filter 0.35s ease;
  user-select: none;
  pointer-events: none;
}

.logo-group img:hover,
.logo-track img:hover,
.logo-band img:hover {
  opacity: 1;
  filter: brightness(1.1) contrast(1.05) saturate(1);
}

@-webkit-keyframes logoScroll {
  0% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }

  100% {
    -webkit-transform: translate3d(-50%, 0, 0);
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes logoScroll {
  0% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }

  100% {
    -webkit-transform: translate3d(-50%, 0, 0);
    transform: translate3d(-50%, 0, 0);
  }
}

@media (max-width: 768px) {
  .logo-band {
    padding: 16px 0;
  }

  .logo-track {
    height: 34px;
    animation-duration: 27s;
    -webkit-animation-duration: 27s;
  }

  .logo-group {
    gap: 18px;
    padding-right: 18px;
  }

  .logo-group img,
  .logo-track img,
  .logo-band img {
    width: 110px !important;
    max-width: 110px !important;
    height: 34px;
  }
}



.learn-content {
  width: 100%;
  background: var(--bg);
  border-top: none;
  padding: 42px 0 54px;
}

.learn-inner {
  width: min(90%, 1200px);
  margin: 0 auto;
}

.learn-intro-box {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 28px;
}

.learn-intro-box h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 600;
  font-family: var(--font-ar);
}

.learn-intro-box p:last-child {
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.8;
  font-size: 1rem;
  font-family: var(--font-ar);
}

.learn-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.learn-card {
  width: 100%;
}

.learn-media-frame {
  width: 100%;
  border-radius: 18px;
  corner-shape: squircle;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.learn-media-frame .media-slot-placeholder {
  border: 0;
  border-radius: inherit;
}

.learn-meta {
  padding-top: 12px;
}

.learn-tag {
  display: inline-block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  font-family: var(--font-ar);
}

.learn-meta h3 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
  font-weight: 500;
  font-family: var(--font-ar);
}

.learn-hero .video-shell {
  background: #0d0d0d;
}

.learn-hero-img {
  width: 100%;
  height: 100%;
  object-position: center;
  display: block;
  filter: brightness(0.68) contrast(1.08);
  transition: filter 0.5s ease;
}

.learn-hero .video-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(11, 11, 11, 0.25) 0%, rgba(11, 11, 11, 0.7) 100%),
    linear-gradient(180deg, rgba(11, 11, 11, 0.5) 0%, rgba(11, 11, 11, 0.15) 45%, rgba(11, 11, 11, 0.85) 100%);
  pointer-events: none;
  z-index: 1;
}

.learn-hero .learn-overlay {
  max-width: 980px;
  z-index: 2;
}

/* ========================================================
   EDITOR TOOLS PAGE STYLING
   ======================================================== */

.tools-content {
  width: 100%;
  background: var(--bg);
  border-top: none;
  padding: 50px 0 80px;
  position: relative;
}

.tools-inner {
  width: min(92%, 1240px);
  margin: 0 auto;
}

.tools-intro-box {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 40px;
}

.tools-intro-box h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
  font-family: var(--font-ar);
}

.tools-intro-box p:last-child {
  margin: 16px auto 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.8;
  font-size: 1.05rem;
  font-family: var(--font-ar);
}

.tools-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.tools-filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  padding: 10px 22px;
  border-radius: 9999px;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  font-family: var(--font-ar);
}

.tools-filter-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.tools-filter-btn.is-active {
  background: #0071E3;
  color: #ffffff;
  border-color: #0071E3;
  box-shadow: 0 4px 16px rgba(0, 113, 227, 0.4);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
}

.tools-grid-duo {
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  max-width: 1020px;
  margin: 0 auto;
  gap: 36px;
}

.tool-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  corner-shape: squircle;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 113, 227, 0.5);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24), 0 0 18px rgba(0, 113, 227, 0.07);
}

.tool-card.is-featured {
  border-color: rgba(0, 113, 227, 0.45);
  background: linear-gradient(180deg, rgba(0, 113, 227, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2), 0 0 16px rgba(0, 113, 227, 0.06);
}

.tool-card.is-featured:hover {
  border-color: rgba(0, 113, 227, 0.8);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28), 0 0 20px rgba(0, 113, 227, 0.1);
}

.tool-featured-badge {
  position: absolute;
  top: 18px;
  right: 22px;
  background: linear-gradient(135deg, #0071E3, #00c6ff);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 9999px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.35);
  font-family: var(--font-ar);
}

.tool-card-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.tool-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  corner-shape: squircle;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.16);
  position: relative;
  overflow: hidden;
}

.tool-icon-box svg {
  width: 34px;
  height: 34px;
  color: #fff;
}

.tool-icon-pro {
  background: linear-gradient(135deg, #0071E3 0%, #00c6ff 100%);
}

.tool-icon-caption {
  background: linear-gradient(135deg, #8a2387 0%, #e94057 50%, #f27121 100%);
}

.tool-icon-lut {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.tool-icon-render {
  background: linear-gradient(135deg, #f857a6 0%, #ff5858 100%);
}

.tool-icon-audio {
  background: linear-gradient(135deg, #4776e6 0%, #8e54e9 100%);
}

.tool-icon-sync {
  background: linear-gradient(135deg, #ff9900 0%, #ff5e62 100%);
}

.tool-title-wrap {
  flex-grow: 1;
}

.tool-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.tool-name {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.tool-version-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  corner-shape: squircle;
  color: rgba(255, 255, 255, 0.85);
}

.tool-category-badge {
  display: inline-block;
  font-size: 0.8rem;
  color: #0071E3;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.tool-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tool-desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.68;
  font-family: var(--font-ar);
}

.tool-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.tool-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  font-family: var(--font-ar);
}

.tool-features-list li svg {
  width: 16px;
  height: 16px;
  color: #38ef7d;
  flex-shrink: 0;
}

.tool-specs-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tool-spec-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.tool-spec-item svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.tool-card-footer {
  margin-top: 4px;
}

.tool-download-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  background: linear-gradient(135deg, #0071E3 0%, #0056b3 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 14px;
  corner-shape: squircle;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 22px rgba(0, 113, 227, 0.35);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--font-ar);
}

.tool-download-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #0a84ff 0%, #0066cc 100%);
  box-shadow: 0 12px 28px rgba(0, 113, 227, 0.55);
  filter: brightness(1.1);
  color: #fff;
}

.tool-download-btn:active {
  transform: translateY(0) scale(0.98);
}

.tool-download-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.tool-download-btn:hover svg {
  transform: translateY(2px);
}

/* Download Toast Notification */
.download-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  background: rgba(18, 18, 20, 0.95);
  border: 1px solid rgba(0, 113, 227, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 113, 227, 0.2);
  border-radius: 16px;
  corner-shape: squircle;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  font-family: var(--font-ar);
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.download-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.download-toast-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #38ef7d;
  color: #0b0b0b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.download-toast-icon svg {
  width: 20px;
  height: 20px;
}

.download-toast-text h4 {
  margin: 0 0 2px;
  font-size: 0.95rem;
  color: #fff;
}

.download-toast-text p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
}



.portfolio-section {
  width: 100%;
  background: var(--bg);
  padding: 86px 0 80px;
}

.connect-section {
  width: 100%;
  padding: 60px 0 72px;
  background: var(--bg);
}

.connect-inner {
  width: min(90%, 900px);
  margin: 0 auto;
  text-align: center;
}

.connect-kicker {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  font-family: var(--font-ar);
}

.connect-section h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 600;
  font-family: var(--font-ar);
}

/* Contact Form Styling */
.contact-form {
  max-width: 580px;
  margin: 36px auto 32px;
  width: 100%;
  text-align: left;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  display: block;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 14px;
  border-radius: 8px;
  corner-shape: squircle;
  width: 100%;
  margin-bottom: 16px;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.contact-form select:required:invalid {
  color: rgba(255, 255, 255, 0.5);
}

.contact-form input[type="text"]::placeholder,
.contact-form input[type="email"]::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.35);
  background-color: rgba(255, 255, 255, 0.08);
}

.contact-form select {
  cursor: pointer;
}

.contact-form select option {
  background-color: #161616;
  color: #ffffff;
}

.contact-form select option[disabled] {
  color: rgba(255, 255, 255, 0.5);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button[type="submit"] {
  display: block;
  width: 100%;
  padding: 14px 28px;
  border-radius: 8px;
  corner-shape: squircle;
  background: #ffffff;
  color: #000000;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: none !important;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.contact-form button[type="submit"]:hover {
  transform: translateY(-2px);
  background-color: var(--brand-blue, #0071E3);
  color: #ffffff;
}

.contact-form button[type="submit"]:active {
  transform: translateY(0);
}

.contact-form button[type="submit"]:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.contact-form-status {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  corner-shape: squircle;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
}

.contact-form-status.is-success {
  border-color: rgba(48, 209, 88, 0.35);
}

.contact-form-status.is-info {
  border-color: rgba(10, 132, 255, 0.35);
}

.contact-form-status.is-error {
  border-color: rgba(255, 69, 58, 0.35);
}

.connect-socials {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.connect-social-link {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.connect-social-link:hover,
.connect-social-link:focus-visible {
  opacity: 1;
  transform: translateY(-2px);
}

.connect-social-link img {
  width: 24px;
  height: 24px;
  display: block;
  filter: brightness(0) invert(1);
}

.connect-brand {
  margin: 32px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  font-weight: 500;
  font-family: var(--font-body);
  text-align: center;
}

.site-footer {
  width: 100%;
  padding: 42px 20px 48px;
  text-align: center;
  background: var(--bg);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  direction: inherit;
}

.site-footer-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.site-footer-brand,
.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  font-weight: 500;
  font-family: var(--font-body);
  text-align: center;
}

.site-footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer-social a {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  opacity: 0.7;
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
  text-decoration: none;
}

.site-footer-social a:hover,
.site-footer-social a:focus-visible {
  opacity: 1;
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.06);
}

.site-footer-social img {
  width: 18px;
  height: 18px;
  display: block;
  filter: brightness(0) invert(1);
  transition: filter 0.25s ease, transform 0.25s ease;
}

.portfolio-header {
  width: min(90%, 1200px);
  margin: 0 auto 12px;
  text-align: center;
}

.portfolio-header h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.05rem, 3vw, 3rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: none;
  text-align: center;
  font-family: var(--font-ar);
}

.portfolio-description {
  max-width: 700px;
  margin: 10px auto 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.portfolio-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin-top: 12px;
}

.portfolio-tab {
  position: relative;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.25s ease, opacity 0.25s ease;
  opacity: 0.5;
  font-family: var(--font-ar);
}

.portfolio-tab:hover,
.portfolio-tab:focus-visible {
  color: rgba(255, 255, 255, 1);
  opacity: 1;
}

.portfolio-tab.is-active {
  color: var(--text);
  opacity: 1;
}

.portfolio-panel {
  display: none;
}

.portfolio-panel.is-active {
  display: block;
}

/* ========================================================
   YOUTUBE-STYLE PROJECTS SECTION (Desktop & Base)
   ======================================================== */
.youtube-tab-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin: 18px auto 36px;
  width: min(92%, 1180px);
}

.youtube-tab {
  position: relative;
  background: transparent;
  border: none;
  padding: 10px 18px 14px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.58);
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font-ar), inherit;
  transition: color 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

.youtube-tab:hover,
.youtube-tab:focus-visible {
  color: #ffffff;
}

.youtube-tab.is-active {
  color: #ffffff;
  font-weight: 600;
}

.youtube-tab.is-active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2.5px;
  background: #ffffff;
  border-radius: 2px 2px 0 0;
  corner-shape: squircle;
}

.youtube-grid {
  width: min(92%, 1180px);
  margin: 0 auto;
}

@keyframes mediaSlotFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* "More" Button */
.projects-more-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 36px;
}

.projects-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 32px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
  outline: none;
}

.projects-more-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-2px);
}

.projects-more-chevron {
  transition: transform 0.25s ease;
}

.projects-expanded .projects-more-chevron {
  transform: rotate(180deg);
}

/* ========================================================
   SERVICES SECTION (Desktop & Base)
   ======================================================== */
.services-section {
  width: 100%;
  background: var(--bg);
  padding: 84px 0 76px;
  position: relative;
}

.services-inner {
  width: min(92%, 1200px);
  margin: 0 auto;
}

.services-header {
  text-align: center;
  margin-bottom: 48px;
}

.services-header .section-kicker {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.services-title {
  margin: 0 0 14px;
  color: var(--text);
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  font-weight: 600;
  line-height: 1.3;
  font-family: var(--font-ar);
}

.services-subtitle {
  margin: 0 auto;
  max-width: 680px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-ar);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.service-card {
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  corner-shape: squircle;
  padding: 26px 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.13);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
  position: relative;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 11px 24px rgba(0, 0, 0, 0.2);
}

/* Apple-Style Dark Glassmorphism Gradients */
/* Card 1: Subtle Blue rgba(10, 132, 255, 0.08) */
.service-card:nth-child(1),
.service-card-1 {
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.08), rgba(0, 0, 0, 0) 80%);
}
.service-card:nth-child(1):hover,
.service-card-1:hover {
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.14), rgba(0, 0, 0, 0) 80%);
  border-color: rgba(10, 132, 255, 0.22);
}

/* Card 2: Subtle Purple rgba(94, 92, 230, 0.08) */
.service-card:nth-child(2),
.service-card-2 {
  background: linear-gradient(135deg, rgba(94, 92, 230, 0.08), rgba(0, 0, 0, 0) 80%);
}
.service-card:nth-child(2):hover,
.service-card-2:hover {
  background: linear-gradient(135deg, rgba(94, 92, 230, 0.14), rgba(0, 0, 0, 0) 80%);
  border-color: rgba(94, 92, 230, 0.22);
}

/* Card 3: Subtle Indigo/Teal rgba(100, 210, 255, 0.08) */
.service-card:nth-child(3),
.service-card-3 {
  background: linear-gradient(135deg, rgba(100, 210, 255, 0.08), rgba(0, 0, 0, 0) 80%);
}
.service-card:nth-child(3):hover,
.service-card-3:hover {
  background: linear-gradient(135deg, rgba(100, 210, 255, 0.14), rgba(0, 0, 0, 0) 80%);
  border-color: rgba(100, 210, 255, 0.22);
}

/* Card 4: Subtle Warm Orange rgba(255, 159, 10, 0.08) */
.service-card:nth-child(4),
.service-card-4 {
  background: linear-gradient(135deg, rgba(255, 159, 10, 0.08), rgba(0, 0, 0, 0) 80%);
}
.service-card:nth-child(4):hover,
.service-card-4:hover {
  background: linear-gradient(135deg, rgba(255, 159, 10, 0.14), rgba(0, 0, 0, 0) 80%);
  border-color: rgba(255, 159, 10, 0.22);
}

/* Card 5: Subtle Rose/Pink rgba(255, 55, 95, 0.08) */
.service-card:nth-child(5),
.service-card-5 {
  background: linear-gradient(135deg, rgba(255, 55, 95, 0.08), rgba(0, 0, 0, 0) 80%);
}
.service-card:nth-child(5):hover,
.service-card-5:hover {
  background: linear-gradient(135deg, rgba(255, 55, 95, 0.14), rgba(0, 0, 0, 0) 80%);
  border-color: rgba(255, 55, 95, 0.22);
}

/* Card 6: Subtle Silver/Gray rgba(142, 142, 147, 0.08) */
.service-card:nth-child(6),
.service-card-6,
.service-card-collab {
  background: linear-gradient(135deg, rgba(142, 142, 147, 0.08), rgba(0, 0, 0, 0) 80%);
}
.service-card:nth-child(6):hover,
.service-card-6:hover,
.service-card-collab:hover {
  background: linear-gradient(135deg, rgba(142, 142, 147, 0.14), rgba(0, 0, 0, 0) 80%);
  border-color: rgba(142, 142, 147, 0.22);
}

/* Inline Header */
.service-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.service-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  corner-shape: squircle;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  flex-shrink: 0;
  color: #ffffff;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.service-card:hover .service-icon-wrap {
  transform: scale(1.06);
  background: rgba(255, 255, 255, 0.09);
}

.service-name {
  font-size: 1.14rem;
  font-weight: 600;
  line-height: 1.35;
  color: #ffffff;
  margin: 0;
  font-family: var(--font-ar);
}

.service-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  font-family: var(--font-ar);
}

/* Collaboration Banner */
.services-collab-banner {
  margin-top: 36px;
  padding: 30px 34px;
  border-radius: 20px;
  corner-shape: squircle;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.015) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

.collab-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.collab-banner-title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
  color: #ffffff;
  font-family: var(--font-ar);
}

.collab-banner-desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-ar);
}

.collab-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 9999px;
  background: #ffffff;
  color: #000000;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none !important;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
  flex-shrink: 0;
}

.collab-banner-btn:hover,
.collab-banner-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: none !important;
  background: var(--brand-blue, #0071E3);
  color: #ffffff;
}

.collab-banner-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: none !important;
  background: var(--brand-blue, #0071E3);
  color: #ffffff;
}

.collab-banner-btn svg {
  transition: transform 0.25s ease;
}

.collab-banner-btn:hover svg {
  transform: translateX(3px);
}

/* Language toggles for bilingual titles & Google Translate compatibility */
html[dir="rtl"]:not([class*="translated-"]):not(.translated-ltr):not(.translated-rtl) .title-en {
  display: none !important;
}

html:not([dir="rtl"]) .title-ar,
html[class*="translated-"] .title-ar,
html.translated-ltr .title-ar,
html.translated-rtl .title-ar {
  display: none !important;
}

html[dir="ltr"] .title-en,
html:not([dir="rtl"]) .title-en,
html[class*="translated-"] .title-en,
html.translated-ltr .title-en,
html.translated-rtl .title-en {
  display: revert !important;
}

/* Google Translate DOM injection compatibility */
font[style] {
  vertical-align: inherit !important;
  font-family: inherit !important;
  color: inherit !important;
}

.translated-ltr font,
.translated-rtl font {
  display: inline !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}


/* Alternating Section Backgrounds */
.hero {
  background-color: var(--bg-alt) !important;
}

.portfolio-section {
  background-color: var(--bg) !important;
}

.stats-section {
  background-color: var(--bg-alt) !important;
}

.connect-section {
  background-color: var(--bg) !important;
}


/* Pill Buttons & Hover Accent: #0071E3 */
.portfolio-tab {
  border-radius: 9999px !important;
  padding: 8px 24px !important;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease !important;
}

.portfolio-tab:hover,
.portfolio-tab:focus-visible {
  color: #0071E3 !important;
  background: rgba(0, 113, 227, 0.1) !important;
}

.portfolio-tab.is-active {
  background-color: #0071E3 !important;
  color: #ffffff !important;
}

/* Nav links hover */
.main-nav a:hover,
.main-nav a:focus-visible,
.menu-toggle-btn:hover,
.menu-toggle-btn:focus-visible {
  color: #0071E3 !important;
}

/* Social links hover */
.social-nav a:hover img,
.social-nav a:focus-visible img,
.connect-social-link:hover img,
.connect-social-link:focus-visible img,
.site-footer-social a:hover img,
.site-footer-social a:focus-visible img {
  filter: brightness(0) saturate(100%) invert(28%) sepia(85%) saturate(3065%) hue-rotate(195deg) brightness(98%) contrast(106%) !important;
}

/* Nav arrows hover */
.nav-arrow:hover,
.nav-arrow:focus-visible {
  background-color: #0071E3 !important;
  border-color: #0071E3 !important;
}

.nav-arrow:hover svg,
.nav-arrow:focus-visible svg {
  filter: brightness(0) invert(1) !important;
}

/* Nav dots active */
.nav-dot.is-active {
  background-color: #0071E3 !important;
}

/* Reel controls hover */
.reel-control:hover,
.reel-control:focus-visible {
  background-color: #0071E3 !important;
  border-color: #0071E3 !important;
}

/* Play button hover */
.reel-play-button:hover,
.reel-play-button:focus-visible {
  background-color: #0071E3 !important;
  border-color: #0071E3 !important;
}

/* Make sure circular buttons stay circular (pill shape with 1:1 aspect ratio) */
.nav-arrow,
.reel-play-button,
.reel-control,
.nav-dot {
  border-radius: 9999px !important;
}

/* Software and Equipment Marquee Wrapper */
.software-and-equipment-wrapper {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: flex;
  justify-content: center;
  /* Center normally if it fits */
}

.software-and-equipment-wrapper.is-marquee {
  justify-content: flex-start;
  /* Align left if marquee */
}

.marquee-content,
.marquee-duplicate {
  display: flex;
  align-items: center;
  width: max-content;
  flex-shrink: 0;
  padding: 0 30px;
  /* Buffer space */
}

.combined-strip {
  display: flex;
  align-items: center;
  padding: 30px 0;
  gap: 15px;
  border: none !important;
  /* Remove individual strip border */
}

/* Remove border-bottom from individual software strip inside the wrapper */
.marquee-content .software-list-strip {
  border-bottom: none;
}



/* Divider Fixes for Software & Equipment Area */

/* 1. Remove the short container-width border above the area */
.stats-list-strip {
  border-bottom: none !important;
  margin-bottom: 0 !important;
  /* Remove the gap that created the double line appearance */
}

/* 2. The full-width top and bottom borders are handled by the wrapper */
.software-and-equipment-wrapper {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  margin-top: 30px;
  /* Restore the visual spacing between stats and software */
}

/* 3. Remove ANY remaining borders from the internal strips to prevent double lines */
.combined-strip {
  border-top: none !important;
  border-bottom: none !important;
}

.software-list-strip:not(.software-and-equipment-wrapper) {
  border-bottom: none !important;
  border-top: none !important;
}

/* Full-Width Top Divider Above Statistics */
.stats-top-divider {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Remove internal borders from stats-list-strip */
.stats-list-strip {
  border-top: none !important;
  border-bottom: none !important;
  margin-bottom: 0 !important;
}

/* Fix About Me Alignment */
/* The stats row contains 5 items now, ensure they space properly */
.stats-list-strip {
  justify-content: space-between !important;
  gap: 0 !important;
}

/* 2. Align Software and Equipment to match the stats container width */
.combined-strip {
  width: min(88%, 1180px);
  justify-content: flex-start;
}

/* Remove side padding from marquee content so it aligns perfectly with the 88% wrapper */
.marquee-content,
.marquee-duplicate {
  padding: 0 !important;
}

/* Adjust the divider spacing slightly for balance */
.combined-strip .main-divider {
  margin: 0 40px !important;
}

/* ========================================================
   ABOUT ME REDESIGN - NO HORIZONTAL LINES & MARQUEE 
   ======================================================== */

/* Remove ALL horizontal lines from the entire About Me section */
.stats-section,
.stats-list-strip,
.software-list-strip,
.software-and-equipment-wrapper,
.stats-list-item,
.tech-stack-area,
.marquee-container {
  border-top: none !important;
  border-bottom: none !important;
}

.stats-list-item:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Static Minimalist Text List for Software & Equipment (Single Horizontal Line) */
.tech-stack-static {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: nowrap;
  white-space: nowrap;
  padding: 10px 10px 20px;
  margin-top: 10px;
}

.tech-category {
  display: inline-flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 14px;
  white-space: nowrap;
}

.tech-category-title {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #ffffff;
  text-transform: uppercase;
  margin: 0;
  opacity: 0.95;
  white-space: nowrap;
}

.tech-text-list {
  display: inline-flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 12px;
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
}

.tech-item {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease;
}

.tech-item:hover {
  color: #ffffff;
}

.tech-separator {
  color: rgba(255, 255, 255, 0.3);
  user-select: none;
}



/* ========================================================
   ABOUT ME PREMIUM TEXT SHINE
   ======================================================== */

.premium-shine-title {
  position: relative;
  display: block;
}

.premium-shine-title .base-text {
  opacity: 0.9;
  display: block;
}

.premium-shine-title .shine-line,
.premium-shine-title .shine-line-1,
.premium-shine-title .shine-line-2 {
  display: inline-block;
  white-space: nowrap;
  line-height: inherit;
  vertical-align: top;
}

.premium-shine-title .shine-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 1;
  line-height: inherit;
  /* Bright white highlight */
}

/* 
  Using fixed pixel mask-size and calc() for mask-position guarantees 
  a smooth, bug-free animation across all browsers (Chrome, Safari, Firefox).
*/
.premium-shine-title .shine-line-1,
.premium-shine-title .shine-line-2 {
  -webkit-mask-image: linear-gradient(75deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.8) 50%,
      rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(75deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.8) 50%,
      rgba(0, 0, 0, 0) 100%);
  -webkit-mask-size: 150px 100%;
  mask-size: 150px 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;

  /* Start completely off-screen left */
  -webkit-mask-position: -200px 0;
  mask-position: -200px 0;
}

@keyframes textShineLine1 {
  0% {
    -webkit-mask-position: -200px 0;
    mask-position: -200px 0;
  }

  40% {
    -webkit-mask-position: calc(100% + 200px) 0;
    mask-position: calc(100% + 200px) 0;
  }

  50% {
    -webkit-mask-position: calc(100% + 200px) 0;
    mask-position: calc(100% + 200px) 0;
  }

  50.001% {
    -webkit-mask-position: -200px 0;
    mask-position: -200px 0;
  }

  100% {
    -webkit-mask-position: -200px 0;
    mask-position: -200px 0;
  }
}

@keyframes textShineLine2 {
  0% {
    -webkit-mask-position: -200px 0;
    mask-position: -200px 0;
  }

  50% {
    -webkit-mask-position: -200px 0;
    mask-position: -200px 0;
  }

  90% {
    -webkit-mask-position: calc(100% + 200px) 0;
    mask-position: calc(100% + 200px) 0;
  }

  100% {
    -webkit-mask-position: calc(100% + 200px) 0;
    mask-position: calc(100% + 200px) 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .premium-shine-title .shine-line-1 {
    animation: textShineLine1 6s infinite ease-in-out;
  }

  .premium-shine-title .shine-line-2 {
    animation: textShineLine2 6s infinite ease-in-out;
  }
}

@media (prefers-reduced-motion: reduce) {
  .premium-shine-title .shine-text {
    display: none;
  }
}

/* ========================================================
   STANDALONE TOPBAR (PAGES WITHOUT HERO VIDEO)
   ======================================================== */

.standalone-topbar {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px min(4vw, 40px);
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 10;
  direction: inherit;
}

.standalone-topbar .main-nav,
.standalone-topbar .social-nav {
  pointer-events: auto;
}

/* ========================================================
   CLEAN MINIMALIST EDITOR TOOLS & DETAILS PAGE STYLING (LTR)
   ======================================================== */

.tools-hero-clean {
  width: 100%;
  padding: 65px 20px 35px;
  text-align: center;
}

.tools-hero-clean-inner {
  width: min(94%, 1050px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tools-clean-desc {
  font-size: clamp(19px, 2.15vw, 25px);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.55;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 auto;
  max-width: 980px;
  width: 100%;
  font-family: var(--font-en);
  text-align: center;
}

.tools-hero-line {
  display: block;
}

@media (min-width: 880px) {
  .tools-hero-line {
    white-space: nowrap;
  }
}

/* ========================================================
   APP STORE STYLE - 4x3 GRID (12 ITEMS WITH SKELETON LOADERS)
   ======================================================== */

.tools-appstore-section {
  width: min(95%, 1380px);
  margin: 40px auto 95px;
  direction: ltr;
  text-align: left;
}

.tools-section-header {
  margin-bottom: 30px;
}

.tools-section-title {
  margin: 0 0 6px;
  font-size: clamp(1.4rem, 2.4vw, 1.95rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  font-family: var(--font-en);
}

.tools-section-subtitle {
  margin: 0;
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.44);
  line-height: 1.55;
  font-family: var(--font-en);
}

/* 4-Column Grid Layout (4x3 = 12 Items) */
.tools-appstore-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 26px;
  align-items: center;
}

/* App Store Item Row - Completely Transparent, No Cards, No Borders, No Shadows */
.appstore-tool-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 6px 0 !important;
  transition: transform 0.2s ease;
  min-width: 0;
}

.appstore-tool-row:not(.appstore-tool-skeleton):hover {
  transform: translateY(-1px);
}

.appstore-icon-link {
  text-decoration: none;
  display: flex;
  flex-shrink: 0;
}

.appstore-app-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  corner-shape: squircle;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s ease;
}

.appstore-tool-row:hover .appstore-app-icon {
  transform: scale(1.04);
}

.appstore-app-icon svg {
  width: 24px;
  height: 24px;
  color: #ffffff;
}

.appstore-tool-info {
  flex: 1;
  margin: 0 12px;
  min-width: 0;
}

/* Real App Typography - Bold White Title */
.appstore-tool-title {
  margin: 0 0 3px;
  font-size: 0.96rem;
  font-weight: 700;
  /* Bold */
  color: #ffffff;
  letter-spacing: -0.01em;
  font-family: var(--font-en);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.appstore-tool-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.appstore-tool-title a:hover {
  color: #2997ff;
}

/* Real App Typography - Light Small Faded Grey Tagline */
.appstore-tool-tagline {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 300;
  /* Light */
  color: rgba(255, 255, 255, 0.45);
  /* Faded / muted grey */
  font-family: var(--font-en);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
}

.appstore-action-wrap {
  flex-shrink: 0;
}

.appstore-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 16px;
  background: rgba(255, 255, 255, 0.08);
  color: #2997ff;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  font-family: var(--font-en);
  border: none;
  box-shadow: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.appstore-view-btn:hover {
  background: #0071E3;
  color: #ffffff;
  transform: scale(1.04);
}

/* ========================================================
   STATIC PLACEHOLDERS (RESERVED UPCOMING APP SLOTS)
   ======================================================== */

.appstore-tool-skeleton {
  pointer-events: none;
  user-select: none;
  opacity: 0.55;
  animation: none !important;
}

.skeleton-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  corner-shape: squircle;
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
  animation: none !important;
}

.skeleton-info {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
  min-width: 0;
  margin: 0 12px;
}

.skeleton-title {
  height: 13px;
  border-radius: 4px;
  corner-shape: squircle;
  background: rgba(255, 255, 255, 0.08);
  animation: none !important;
}

.skeleton-desc {
  height: 9px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  animation: none !important;
}

.skeleton-btn {
  width: 52px;
  height: 26px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.045);
  flex-shrink: 0;
  animation: none !important;
}



.tools-horizontal-list {
  width: min(92%, 1050px);
  margin: 30px auto 85px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tool-horizontal-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.025);
  border: none;
  border-radius: 16px;
  corner-shape: squircle;
  padding: 16px 26px;
  height: 86px;
  min-height: 86px;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease, transform 0.2s ease;
  gap: 20px;
}

.tool-horizontal-item:hover {
  background: rgba(255, 255, 255, 0.045);
  transform: translateY(-1px);
}

.tool-item-info {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.tool-item-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  corner-shape: squircle;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: none;
}

.tool-item-icon svg {
  width: 26px;
  height: 26px;
  color: #ffffff;
}

.tool-item-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tool-item-name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
  font-family: var(--font-en);
}

.tool-title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.tool-title-link:hover {
  color: #2997ff;
}

.tool-item-icon-link {
  text-decoration: none;
  display: flex;
}

.tool-item-badge {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-en);
  display: inline-flex;
  align-items: center;
}

.tool-item-action {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Minimalist Transparent Green Download Counter */
.tool-download-stat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 6px;
  background: transparent;
  border: none;
  box-shadow: none;
  color: #30d158;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-en);
  user-select: none;
  white-space: nowrap;
  position: relative;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tool-download-stat:hover {
  background: transparent;
  border: none;
  box-shadow: none;
  opacity: 0.9;
}

.tool-stat-icon {
  width: 16px;
  height: 16px;
  color: #30d158;
  /* Green arrow */
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.tool-download-stat:hover .tool-stat-icon {
  transform: translateY(1px);
}

.stat-count {
  font-weight: 700;
  font-size: 0.98rem;
  color: #30d158;
  /* Green count */
  letter-spacing: -0.01em;
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Micro-animation when clicked (+1 bump) */
.stat-count.stat-bump {
  transform: scale(1.3);
  color: #30d158 !important;
}

.tool-download-stat.just-incremented {
  border: none;
  background: transparent;
  box-shadow: none;
  transform: translateY(-1px);
}

/* Floating +1 Particle Badge */
.download-plus-one {
  position: absolute;
  top: -14px;
  right: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #30d158;
  pointer-events: none;
  animation: floatUpFade 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes floatUpFade {
  0% {
    opacity: 0;
    transform: translateY(6px) scale(0.7);
  }

  30% {
    opacity: 1;
    transform: translateY(-3px) scale(1.2);
  }

  100% {
    opacity: 0;
    transform: translateY(-24px) scale(0.95);
  }
}

/* Details & Download Button - No Glow, Solid White Hover */
.tool-details-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: #0071E3;
  color: #ffffff;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  box-shadow: none;
  text-shadow: none;
  outline: none;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-en);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tool-details-btn svg {
  width: 16px;
  height: 16px;
  color: inherit;
  transition: transform 0.2s ease, color 0.2s ease;
}

.tool-details-btn:hover {
  background: #ffffff !important;
  color: #000000 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transform: translateY(-1px);
}

.tool-details-btn:hover svg {
  color: #000000 !important;
  transform: translateX(3px);
}

.tool-horizontal-item:hover .tool-details-btn {
  box-shadow: none;
  text-shadow: none;
}

/* Toast Notification for Download Feedback */
.download-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 20px;
  background: rgba(18, 18, 22, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  corner-shape: squircle;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-family: var(--font-en);
  font-size: 0.9rem;
  transform: translateY(40px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  max-width: 440px;
}

.download-toast.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(48, 209, 88, 0.15);
  border: 1px solid rgba(48, 209, 88, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-icon-wrap svg {
  width: 16px;
  height: 16px;
  color: #30d158;
}

.toast-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toast-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
}

.toast-meta {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
}

.toast-link {
  color: #2997ff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.82rem;
  padding: 5px 12px;
  border-radius: 8px;
  corner-shape: squircle;
  background: rgba(41, 151, 255, 0.12);
  border: 1px solid rgba(41, 151, 255, 0.28);
  transition: background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.toast-link:hover {
  background: rgba(41, 151, 255, 0.24);
  border-color: rgba(41, 151, 255, 0.45);
}



/* ========================================================
   APP STORE STYLE - PROGRAM DETAILS PAGE
   ======================================================== */

.appstore-detail-container {
  width: min(92%, 960px);
  margin: 30px auto 90px;
  direction: ltr;
  text-align: left;
}

.appstore-back-bar {
  margin-bottom: 22px;
}

.appstore-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-en);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.appstore-back-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.appstore-back-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(-3px);
}

/* 1. Hero Card: Banner + Floating Header */
.appstore-hero-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 28px;
  corner-shape: squircle;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.appstore-banner {
  height: 160px;
  width: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
}

.appstore-banner-pro {
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.45) 0%, rgba(10, 14, 28, 0.95) 100%);
}

.appstore-banner-caption {
  background: linear-gradient(135deg, rgba(138, 35, 135, 0.5) 0%, rgba(233, 64, 87, 0.35) 50%, rgba(20, 15, 30, 0.95) 100%);
}

.appstore-banner-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 40%, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
}

.appstore-hero-content {
  padding: 0 32px 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: -46px;
  position: relative;
  z-index: 2;
}

.appstore-hero-left {
  display: flex;
  align-items: flex-end;
  gap: 22px;
}

.appstore-hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  corner-shape: squircle;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.24);
  border: 3px solid rgba(255, 255, 255, 0.14);
}

.appstore-hero-icon svg {
  width: 48px;
  height: 48px;
  color: #ffffff;
}

.appstore-hero-meta {
  padding-bottom: 4px;
}

.appstore-hero-title {
  margin: 0 0 6px;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  font-family: var(--font-en);
}

.appstore-hero-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-en);
}

.appstore-hero-action {
  padding-bottom: 6px;
  flex-shrink: 0;
}

.appstore-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 34px;
  background: #0071E3;
  color: #ffffff;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  font-family: var(--font-en);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.appstore-download-btn svg {
  width: 18px;
  height: 18px;
  color: inherit;
}

.appstore-download-btn:hover {
  background: #ffffff;
  color: #000000;
  transform: translateY(-1px);
}

/* 2. Quick Stats Ribbon */
.appstore-stats-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  corner-shape: squircle;
  padding: 16px 20px;
  margin-bottom: 30px;
  overflow-x: auto;
}

.appstore-stat-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  text-align: center;
  min-width: 90px;
}

.appstore-stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  font-family: var(--font-en);
}

.appstore-stat-val {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-en);
  white-space: nowrap;
}

.appstore-stat-val.text-green {
  color: #30d158;
}

.appstore-stat-val.text-green svg {
  width: 16px;
  height: 16px;
  color: #30d158;
}

.appstore-stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

/* 3. Media Gallery (Screenshots / Walkthrough) */
.appstore-gallery-section {
  margin-bottom: 32px;
}

.appstore-section-heading {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
  font-family: var(--font-en);
}

.appstore-gallery-scroll {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.appstore-gallery-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  corner-shape: squircle;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.appstore-gallery-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #0b0b0b;
}

.appstore-gallery-caption {
  display: block;
  padding: 10px 14px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-en);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* 4. Description & Capabilities Section */
.appstore-detail-desc-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  corner-shape: squircle;
  padding: 32px;
  margin-bottom: 40px;
}

.appstore-desc-body p {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 24px;
  font-family: var(--font-en);
}

.appstore-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.appstore-feature-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  corner-shape: squircle;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.appstore-feature-card:hover {
  background: rgba(255, 255, 255, 0.035);
  transform: translateY(-2px);
}

.appstore-feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  corner-shape: squircle;
  background: rgba(41, 151, 255, 0.12);
  color: #2997ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.appstore-feature-icon svg {
  width: 20px;
  height: 20px;
}

.appstore-feature-card h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-en);
}

.appstore-feature-card p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-en);
}



/* ========================================================
   LEGACY / ADDITIONAL PROGRAM DETAILS PAGE STYLING
   ======================================================== */

.tool-detail-page {
  width: min(92%, 1020px);
  margin: 35px auto 90px;
  direction: ltr;
  text-align: left;
}

.tool-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 28px;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-en);
}

.tool-back-link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}

.tool-back-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateX(-3px);
}

.tool-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tool-detail-header-main {
  display: flex;
  align-items: center;
  gap: 20px;
}

.tool-detail-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  corner-shape: squircle;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-detail-icon svg {
  width: 36px;
  height: 36px;
  color: #ffffff;
}

.tool-detail-title-wrap h1 {
  margin: 0 0 6px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  font-family: var(--font-en);
}

.tool-detail-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tool-detail-header-action {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.tool-direct-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 32px;
  background: #0071E3;
  color: #ffffff;
  border-radius: 12px;
  corner-shape: squircle;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  font-family: var(--font-en);
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

.tool-direct-download-btn svg {
  width: 18px;
  height: 18px;
}

.tool-direct-download-btn:hover {
  background: #0077ED;
  transform: translateY(-1px);
  color: #ffffff;
}

.tool-detail-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  corner-shape: squircle;
  padding: 30px 32px;
  margin-bottom: 24px;
}

.tool-section-title {
  margin: 0 0 16px;
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  letter-spacing: -0.01em;
}

.tool-section-title svg {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.85);
}

.tool-detail-desc {
  font-size: 0.98rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 20px;
  font-family: var(--font-en);
}

.tool-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.tool-feature-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  corner-shape: squircle;
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.tool-feature-box svg {
  width: 20px;
  height: 20px;
  color: #38ef7d;
  flex-shrink: 0;
  margin-top: 2px;
}

.tool-feature-box h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  font-family: var(--font-en);
}

.tool-feature-box p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-en);
}

/* ========================================================
   RESTORED VIBRANT PROGRAM APP ICONS (NO GLOW / NO BLUE BORDER)
   ======================================================== */

.tool-item-icon.tool-icon-pro,
.tool-detail-icon.tool-icon-pro {
  background: linear-gradient(135deg, #0071E3 0%, #00c6ff 100%);
  border: none;
}

.tool-item-icon.tool-icon-caption,
.tool-detail-icon.tool-icon-caption {
  background: linear-gradient(135deg, #8a2387 0%, #e94057 50%, #f27121 100%);
  border: none;
}

/* ========================================================
   SUPPORT BANNER BUTTON
   ======================================================== */

.tools-support-action {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.support-banner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 540px;
  padding: 15px 30px;
  background: #0071E3;
  color: #ffffff;
  border-radius: 9999px;
  font-size: 1.02rem;
  font-weight: 600;
  text-decoration: none;
  font-family: var(--font-en);
  transition: background 0.2s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.support-banner-btn:hover {
  background: #0077ED;
  transform: translateY(-2px);
  color: #ffffff;
}

/* ========================================================
   SUPPORT PAGE STYLING (CLEAN MINIMALIST LTR)
   ======================================================== */

.support-page {
  width: min(92%, 960px);
  margin: 35px auto 90px;
  direction: ltr;
  text-align: left;
}

.support-header {
  margin-bottom: 36px;
}

.support-title {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
  font-family: var(--font-en);
  letter-spacing: -0.02em;
}

.support-subtitle {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  max-width: 760px;
  font-family: var(--font-en);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 20px;
}

.support-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  corner-shape: squircle;
  padding: 24px 28px;
  transition: background 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.support-card:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.16);
}

.support-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.support-card-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.support-method-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  corner-shape: squircle;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.support-method-icon svg {
  width: 22px;
  height: 22px;
  color: #ffffff;
}

.support-method-icon svg.riyal-svg {
  width: 27px;
  height: 27px;
}

.support-card-name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  font-family: var(--font-en);
}

.support-card-badge {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 6px;
  corner-shape: squircle;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-en);
}

.support-number-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  corner-shape: squircle;
  padding: 12px 16px;
}

.support-number-value {
  font-family: 'SF Mono', Monaco, Menlo, Consolas, monospace;
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.9);
  user-select: all;
  letter-spacing: 0.02em;
  word-break: break-all;
}

.support-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  corner-shape: squircle;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: var(--font-en);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
}

.support-copy-btn svg {
  width: 14px;
  height: 14px;
}

.support-copy-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
}

.support-copy-btn.copied {
  background: #38ef7d;
  border-color: #38ef7d;
  color: #000;
  font-weight: 600;
}



/* ========================================================
   INSTAGRAM STYLE COMMENTS SECTION (CLEAN MINIMALIST)
   ======================================================== */

.comments-section {
  width: min(92%, 1050px);
  margin: 10px auto 95px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  corner-shape: squircle;
  padding: 30px 32px;
  direction: ltr;
  text-align: left;
}

.comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.comments-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.comments-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-en);
  letter-spacing: -0.01em;
}

.comments-count-badge {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-en);
}

/* Comment Form */
.comment-form-wrap {
  display: flex;
  gap: 14px;
  margin-bottom: 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.comment-author-avatar-default {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.7);
}

.comment-author-avatar-default svg {
  width: 20px;
  height: 20px;
}

.comment-form {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment-inputs-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.comment-input-author {
  width: 220px;
  max-width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  corner-shape: squircle;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: #ffffff;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.comment-input-author:focus {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.5);
}

.comment-textarea-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  corner-shape: squircle;
  padding: 8px 12px 8px 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.comment-textarea-wrap:focus-within {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.5);
}

.comment-input-text {
  flex-grow: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.92rem;
  line-height: 1.5;
  outline: none;
  resize: none;
  font-family: inherit;
  min-height: 24px;
  max-height: 120px;
}

.comment-post-btn {
  background: transparent;
  border: none;
  color: #0071E3;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 6px 12px;
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
  font-family: var(--font-en);
  flex-shrink: 0;
  opacity: 0.5;
  pointer-events: none;
}

.comment-post-btn.active {
  opacity: 1;
  pointer-events: auto;
}

.comment-post-btn.active:hover {
  color: #0a84ff;
  transform: scale(1.04);
}

/* Comments List */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comment-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  animation: commentFadeIn 0.3s ease;
}

@keyframes commentFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.comment-item-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 600;
  font-size: 0.85rem;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.comment-item-avatar svg {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.7);
}

.comment-item-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.comment-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-item-user {
  font-weight: 600;
  font-size: 0.92rem;
  color: #ffffff;
  font-family: inherit;
}

.comment-item-time {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-en);
}

.comment-item-body {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  word-break: break-word;
  white-space: pre-wrap;
  font-family: inherit;
}

/* Instagram Style Like Button */
.comment-like-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  padding-top: 4px;
}

.comment-like-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.4);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, transform 0.15s ease;
}

.comment-like-btn svg {
  width: 14px;
  height: 14px;
}

.comment-like-btn:hover {
  color: rgba(255, 255, 255, 0.8);
  transform: scale(1.15);
}

.comment-like-btn.liked {
  color: #ff3040;
}

.comment-like-btn.liked svg {
  fill: #ff3040;
  color: #ff3040;
}

.comment-like-count {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-en);
}

/* ========================================================
   OFF-CANVAS SIDEBAR NAVIGATION MENU (MINIMALIST DARK)
   ======================================================== */

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

.sidebar-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sidebar-menu {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  bottom: 0;
  width: 310px;
  max-width: 85vw;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: rgba(14, 14, 16, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-right: none;
  box-shadow: -12px 0 45px rgba(0, 0, 0, 0.7);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 24px 20px;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
  overflow-y: auto;
  overflow-x: hidden;
  direction: rtl;
  text-align: right;
}

.sidebar-menu.is-open {
  transform: translateX(0);
  visibility: visible;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand {
  font-family: var(--font-ar);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.72);
}

.sidebar-close-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  corner-shape: squircle;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sidebar-close-btn:hover,
.sidebar-close-btn:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  transform: rotate(90deg);
  outline: none;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  corner-shape: squircle;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-family: var(--font-ar);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sidebar-link:hover,
.sidebar-link:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  transform: translateX(-4px);
  outline: none;
}

.sidebar-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.sidebar-link:hover .sidebar-link-icon,
.sidebar-link:focus-visible .sidebar-link-icon {
  color: #0071E3;
}

.sidebar-link-icon svg,
.sidebar-link-icon img {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
}

.sidebar-link-text {
  flex-grow: 1;
}

body.sidebar-open {
  overflow: hidden;
}



/* ========================================================
   PHASE 1: MOBILE BASE RESPONSIVENESS (<= 768px)
   ======================================================== */
@media (max-width: 768px) {

  /* 1. Base Setup: Native mobile scaling */
  html {
    overflow-x: hidden;
  }

  body {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    zoom: 1 !important;
    overflow-x: hidden;
  }

  /* 2. Mobile Navigation: Hamburger icon + studio logo & hide horizontal desktop links */
  .standalone-topbar {
    padding: 10px 14px !important;
  }

  .topbar {
    top: 8px !important;
    padding: 0 14px !important;
  }

  .topbar .menu-toggle-btn {
    width: 30px !important;
    height: 30px !important;
  }

  .topbar .topbar-left {
    gap: 8px !important;
  }

  .topbar .brand-logo {
    gap: 6px !important;
    font-size: 11.5px !important;
  }

  .topbar .brand-logo-icon {
    width: 17px !important;
    height: 17px !important;
  }

  .topbar-left {
    gap: 10px !important;
  }

  .brand-logo {
    gap: 7px !important;
    font-size: 13px !important;
  }

  .brand-logo-icon {
    width: 21px !important;
    height: 21px !important;
  }

  .main-nav {
    display: none !important;
  }

  .social-nav {
    display: none !important;
  }

  .menu-toggle-btn {
    display: inline-flex !important;
    width: 38px !important;
    height: 38px !important;
    pointer-events: auto !important;
    z-index: 10 !important;
  }

  /* ========================================================
     STEP 1: HERO SECTION (Mobile Responsiveness)
     Preserve exact original ultrawide aspect ratio (3440/1440)
     with proportionally scaled centered typography
     ======================================================== */
  .hero {
    min-height: 0 !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .video-shell {
    width: 100% !important;
    aspect-ratio: 3440 / 1440 !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    position: relative !important;
  }

  .learn-hero-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }

  .video-overlay {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 92% !important;
    max-width: 95% !important;
    text-align: center !important;
    pointer-events: none !important;
    padding: 0 4px !important;
    box-sizing: border-box !important;
  }

  .intro-line {
    font-size: clamp(9px, 2.7vw, 13px) !important;
    margin: 0 0 3px !important;
    letter-spacing: 0.04em !important;
  }

  .headline {
    font-size: clamp(13px, 3.8vw, 19px) !important;
    line-height: 1.15 !important;
    letter-spacing: 0.01em !important;
    margin: 0 auto !important;
  }

  .headline-top,
  .headline-bottom {
    display: block !important;
  }

  .headline-bottom {
    margin-top: 1px !important;
  }

  .services-line {
    font-size: clamp(7.5px, 2.1vw, 10px) !important;
    line-height: 1.3 !important;
    letter-spacing: 0.02em !important;
    margin: 4px auto 0 !important;
    max-width: 95% !important;
  }

  /* ========================================================
     STEP 2: PROJECTS SECTION (YouTube Style Mobile Layout)
     ======================================================== */
  .portfolio-section {
    padding: 44px 0 38px !important;
  }

  .portfolio-header h2 {
    font-size: 24px !important;
  }

  .youtube-tab-bar {
    gap: 24px !important;
    margin: 14px auto 24px !important;
    width: 92% !important;
  }

  .youtube-tab {
    font-size: 14.5px !important;
    padding: 8px 14px 12px !important;
  }

  .projects-more-container {
    margin-top: 26px !important;
  }

  .projects-more-btn {
    padding: 9px 24px !important;
    font-size: 13px !important;
  }

  /* Services Section Mobile */
  .services-section {
    padding: 50px 0 44px !important;
  }

  .services-header {
    margin-bottom: 28px !important;
  }

  .services-title {
    font-size: 21px !important;
  }

  .services-subtitle {
    font-size: 0.85rem !important;
    padding: 0 8px !important;
  }

  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .service-card {
    padding: 22px 20px !important;
    border-radius: 16px !important;
    corner-shape: squircle !important;
  }

  .service-card-header {
    gap: 12px !important;
    margin-bottom: 10px !important;
  }

  .service-icon-wrap {
    width: 42px !important;
    height: 42px !important;
    border-radius: 11px !important;
    corner-shape: squircle !important;
    margin-bottom: 0 !important;
  }

  .service-icon-wrap svg {
    width: 22px !important;
    height: 22px !important;
  }

  .service-name {
    font-size: 1.05rem !important;
  }

  .service-desc {
    font-size: 0.84rem !important;
    line-height: 1.55 !important;
  }

  .services-collab-banner {
    margin-top: 24px !important;
    padding: 22px 18px !important;
    border-radius: 16px !important;
    corner-shape: squircle !important;
  }

  .collab-banner-content {
    flex-direction: column !important;
    text-align: center !important;
    gap: 18px !important;
  }

  .collab-banner-title {
    font-size: 1.02rem !important;
    margin-bottom: 8px !important;
  }

  .collab-banner-desc {
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
  }

  .collab-banner-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 11px 22px !important;
    font-size: 13.5px !important;
  }

  /* ========================================================
     STEP 3: ABOUT ME SECTION (Mobile Responsiveness)
     ======================================================== */
  .stats-section {
    padding: 48px 0 44px !important;
  }

  .stats-wrap {
    width: 92% !important;
  }

  .stats-header {
    margin-bottom: 24px !important;
  }

  .section-kicker {
    font-size: 0.72rem !important;
    letter-spacing: 0.16em !important;
    margin: 0 0 10px !important;
  }

  .stats-header h2,
  .premium-shine-title {
    font-size: clamp(16.5px, 4.7vw, 22px) !important;
    line-height: 1.6 !important;
    max-width: 100% !important;
  }

  .premium-shine-title .shine-line,
  .premium-shine-title .shine-line-1,
  .premium-shine-title .shine-line-2 {
    white-space: normal !important;
    max-width: 100% !important;
  }

  .stats-list-strip {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    padding: 8px 0 24px !important;
    margin-bottom: 0 !important;
  }

  .stats-list-item,
  .stats-list-item:not(:last-child) {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 14px !important;
    corner-shape: squircle !important;
    padding: 18px 12px !important;
    justify-content: center !important;
    min-width: 0 !important;
  }

  .stats-list-item:last-child:nth-child(odd) {
    grid-column: 1 / -1 !important;
  }

  .stats-list-value {
    font-size: 1.65rem !important;
    margin-bottom: 6px !important;
  }

  .stats-list-label {
    font-size: 0.72rem !important;
    line-height: 1.35 !important;
    letter-spacing: 0.05em !important;
  }

  .tech-stack-static {
    flex-direction: column !important;
    align-items: center !important;
    gap: 18px !important;
    flex-wrap: wrap !important;
    white-space: normal !important;
    padding: 6px 0 10px !important;
    margin-top: 6px !important;
  }

  .tech-category {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: normal !important;
    width: 100% !important;
    text-align: center !important;
  }

  .tech-category-title {
    font-size: 0.72rem !important;
    letter-spacing: 0.16em !important;
    color: rgba(255, 255, 255, 0.55) !important;
  }

  .tech-text-list {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: normal !important;
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
  }

  .tech-separator {
    display: none !important;
  }

  .tech-item {
    display: inline-flex !important;
    align-items: center !important;
    padding: 5px 12px !important;
    border-radius: 9999px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.88) !important;
  }

  /* Contact Form Mobile */
  .contact-form {
    margin: 28px auto 26px !important;
    padding: 0 4px !important;
  }

  .contact-form-row {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  /* Learn Page Grid Mobile */
  .learn-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* ========================================================
     STEP 4: EDITOR TOOLS & APP DETAILS (Mobile Responsiveness)
     ======================================================== */
  .tools-hero-clean {
    padding: 32px 16px 22px !important;
  }

  .tools-hero-clean-inner {
    width: 94% !important;
  }

  .tools-clean-desc {
    font-size: clamp(16px, 4.4vw, 19px) !important;
    line-height: 1.5 !important;
  }

  .tools-support-action {
    margin-top: 22px !important;
  }

  .support-banner-btn {
    padding: 13px 18px !important;
    font-size: clamp(13px, 3.7vw, 15px) !important;
    white-space: nowrap !important;
    max-width: 100% !important;
  }

  .tools-appstore-section {
    width: 92% !important;
    margin: 26px auto 44px !important;
  }

  .tools-section-header {
    margin-bottom: 16px !important;
  }

  .tools-section-title {
    font-size: 1.35rem !important;
  }

  .tools-section-subtitle {
    font-size: 0.84rem !important;
  }

  .tools-appstore-grid {
    grid-template-columns: 1fr !important;
    column-gap: 0 !important;
    row-gap: 6px !important;
  }

  .appstore-tool-row {
    padding: 10px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  }

  .appstore-tool-row:last-child {
    border-bottom: none !important;
  }

  .tools-appstore-grid .appstore-tool-skeleton:nth-child(n+5) {
    display: none !important;
  }

  .appstore-tool-info {
    margin: 0 12px !important;
  }

  .appstore-tool-title {
    font-size: 0.94rem !important;
  }

  .appstore-tool-tagline {
    font-size: 0.78rem !important;
    white-space: normal !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  /* Editor Tools Comments Section Mobile */
  .comments-section {
    width: 92% !important;
    margin: 10px auto 52px !important;
    padding: 20px 16px !important;
    border-radius: 16px !important;
    corner-shape: squircle !important;
  }

  .comments-header {
    margin-bottom: 18px !important;
    padding-bottom: 14px !important;
  }

  .comment-form-wrap {
    gap: 10px !important;
    margin-bottom: 22px !important;
    padding-bottom: 20px !important;
  }

  .comment-author-avatar-default,
  .comment-item-avatar {
    width: 34px !important;
    height: 34px !important;
    font-size: 0.76rem !important;
  }

  .comment-author-avatar-default svg,
  .comment-item-avatar svg {
    width: 17px !important;
    height: 17px !important;
  }

  .comment-input-author {
    width: 100% !important;
    font-size: 0.88rem !important;
    padding: 9px 12px !important;
  }

  .comment-textarea-wrap {
    padding: 6px 8px 6px 12px !important;
  }

  .comment-input-text {
    font-size: 0.88rem !important;
  }

  .comment-item {
    gap: 10px !important;
  }

  .comment-item-user,
  .comment-item-body {
    font-size: 0.88rem !important;
  }

  /* App Details Page (tool-pro-download.html) Mobile */
  .appstore-detail-container {
    width: 92% !important;
    margin: 20px auto 54px !important;
  }

  .appstore-banner {
    height: 110px !important;
  }

  .appstore-hero-content {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 0 18px 22px !important;
    margin-top: -36px !important;
    gap: 16px !important;
  }

  .appstore-hero-left {
    align-items: flex-end !important;
    gap: 14px !important;
  }

  .appstore-hero-icon {
    width: 72px !important;
    height: 72px !important;
    border-radius: 18px !important;
    corner-shape: squircle !important;
  }

  .appstore-hero-icon svg {
    width: 36px !important;
    height: 36px !important;
  }

  .appstore-hero-title {
    font-size: 1.45rem !important;
  }

  .appstore-hero-subtitle {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
  }

  .appstore-hero-action {
    width: 100% !important;
    padding-bottom: 0 !important;
  }

  .appstore-download-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 24px !important;
  }

  .appstore-stats-ribbon {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px 10px !important;
    padding: 16px 14px !important;
    overflow-x: visible !important;
    border-radius: 16px !important;
    corner-shape: squircle !important;
  }

  .appstore-stat-col {
    padding: 2px 4px !important;
    min-width: 0 !important;
  }

  .appstore-stat-val {
    font-size: 0.88rem !important;
    white-space: normal !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .appstore-stat-divider {
    display: none !important;
  }

  .appstore-gallery-scroll {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .appstore-detail-desc-card {
    padding: 22px 18px !important;
    border-radius: 18px !important;
    corner-shape: squircle !important;
  }

  .appstore-features-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* ========================================================
     STEP 5: SUPPORT, LEARN, CONNECT & FOOTER (Mobile Responsiveness)
     ======================================================== */
  .support-page {
    width: 92% !important;
    margin: 22px auto 54px !important;
  }

  .support-header {
    margin-bottom: 24px !important;
  }

  .support-title {
    font-size: clamp(1.55rem, 6vw, 2rem) !important;
  }

  .support-subtitle {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
  }

  .support-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .support-card {
    padding: 18px 16px !important;
    border-radius: 16px !important;
    corner-shape: squircle !important;
    gap: 12px !important;
  }

  .support-number-box {
    padding: 10px 12px !important;
    gap: 10px !important;
  }

  .support-number-value {
    font-size: 0.85rem !important;
  }

  .support-copy-btn {
    padding: 6px 12px !important;
    font-size: 0.76rem !important;
  }

  .download-toast {
    left: 16px !important;
    right: 16px !important;
    bottom: 16px !important;
    max-width: none !important;
  }

  .learn-content {
    padding: 28px 0 42px !important;
  }

  .learn-inner {
    width: 92% !important;
  }

  .connect-section {
    padding: 48px 0 54px !important;
  }

  .connect-inner {
    width: 92% !important;
  }

  .connect-section h2 {
    font-size: clamp(1.9rem, 7vw, 2.5rem) !important;
  }

  .connect-socials {
    gap: 12px !important;
    margin-top: 22px !important;
  }

  .connect-social-link {
    width: 42px !important;
    height: 42px !important;
  }

  .connect-brand {
    margin-top: 22px !important;
    font-size: 0.88rem !important;
  }

  .site-footer {
    padding: 32px 16px 38px !important;
  }

  .site-footer-brand,
  .site-footer p {
    font-size: 0.88rem !important;
  }

  .site-footer-social {
    gap: 12px !important;
  }

  .site-footer-social a {
    width: 38px !important;
    height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Homepage Teaser Grid Mobile Overrides */
  .teaser-block {
    width: 92% !important;
    margin-top: 22px !important;
  }

  .teaser-shorts-block {
    margin-top: 32px !important;
  }

  .teaser-subheading {
    font-size: 16px !important;
  }

  .teaser-videos-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    width: 100% !important;
  }

  /* Step 2 Requirement: 3 vertical Shorts columns kept side-by-side on mobile */
  .teaser-shorts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
  }

  /* Standalone Projects Page Mobile Overrides */
  .projects-page-main {
    padding: 28px 0 54px !important;
  }

  .projects-page-shell {
    width: 92% !important;
  }

  .projects-page-title {
    font-size: 26px !important;
  }

  .projects-videos-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Step 5 Requirement: 3 columns for Shorts on Mobile */
  .projects-shorts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

}

@media (min-width: 769px) and (max-width: 1024px) {
  .learn-grid,
  .tools-appstore-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }
}

/* ========================================================
   PROJECTS GRID LAYOUT (INDEX TEASER + PROJECTS.HTML)
   ======================================================== */
.teaser-block {
  width: min(92%, 1180px);
  margin: 28px auto 0;
}

.teaser-shorts-block {
  margin-top: 48px;
}

.teaser-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.teaser-subheading {
  margin: 0;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.01em;
}

.teaser-videos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
}

.teaser-shorts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
}

a.projects-more-btn {
  text-decoration: none;
}

/* Standalone projects.html Page */
.projects-page-main {
  min-height: calc(100vh - 210px);
  padding: 50px 0 84px;
  background: var(--bg);
}

.projects-page-shell {
  width: min(92%, 1240px);
  margin: 0 auto;
}

.projects-page-header {
  margin-bottom: 10px;
}

.projects-page-title {
  margin: 0;
  font-size: clamp(2.1rem, 3.2vw, 3rem);
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  letter-spacing: 0.02em;
}

.projects-page-tabs {
  margin: 16px auto 34px;
}

.projects-page-panel {
  display: none;
}

.projects-page-panel.is-active {
  display: block;
  animation: mediaSlotFadeIn 0.25s ease forwards;
}

.projects-videos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.projects-shorts-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.media-slot-placeholder {
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.teaser-shorts-grid .media-slot-placeholder,
.projects-shorts-grid .media-slot-placeholder {
  aspect-ratio: 9 / 16;
  border-radius: 14px;
}

.appstore-media-slot {
  width: 100%;
  aspect-ratio: 16 / 9;
}
/* ========================================================
   SPLASH SCREEN (1000ms Fade Out)
   ======================================================== */
.studio-splash {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
  color: var(--text);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.42s ease;
}

.studio-splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  animation: splashRise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.studio-splash-kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #0071E3;
  text-transform: uppercase;
}

.studio-splash-title {
  margin: 0;
  font-family: var(--font-ar);
  font-size: clamp(1.9rem, 4.4vw, 3.35rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.studio-splash-line {
  width: 56px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, #0071E3, transparent);
}

.studio-splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes splashRise {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ========================================================
   TOPBAR ACTIONS & THEME TOGGLE BUTTON
   ======================================================== */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  pointer-events: auto;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  pointer-events: auto;
  flex-shrink: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.theme-toggle-btn:hover,
.theme-toggle-btn:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.34);
  transform: scale(1.06);
  outline: none;
}

.theme-toggle-btn svg {
  width: 17px;
  height: 17px;
  display: block;
}

/* In dark mode (default): show Sun icon to switch to Light mode */
.theme-toggle-btn .theme-icon-moon {
  display: none;
}

/* In light mode: show Moon icon to switch back to Dark mode */
html[data-theme="light"] .theme-toggle-btn .theme-icon-sun {
  display: none;
}

html[data-theme="light"] .theme-toggle-btn .theme-icon-moon {
  display: block;
}

@media (max-width: 768px) {
  .topbar .theme-toggle-btn {
    width: 28px !important;
    height: 28px !important;
  }

  .topbar .theme-toggle-btn svg {
    width: 14px !important;
    height: 14px !important;
  }

  .standalone-topbar .theme-toggle-btn {
    width: 34px !important;
    height: 34px !important;
  }
}

/* ========================================================
   LIGHT MODE THEME VARIABLES & SURFACE OVERRIDES
   ======================================================== */
html[data-theme="light"] {
  --bg: #f6f7f9;
  --bg-alt: #eceff4;
  --bg-soft: #ffffff;
  --bg-card: rgba(15, 23, 42, 0.035);
  --bg-card-hover: rgba(15, 23, 42, 0.065);
  --primary: #0f172a;
  --text: #111827;
  --text-muted: rgba(17, 24, 39, 0.68);
  --border-subtle: rgba(15, 23, 42, 0.1);
}

/* Keep Hero & Marquee strip dark-toned for crisp video/logo legibility */
html[data-theme="light"] .hero {
  background-color: #0d0d0d !important;
}

html[data-theme="light"] .logo-band {
  background: #141417;
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .hero .topbar .brand-logo,
html[data-theme="light"] .hero .topbar .main-nav a,
html[data-theme="light"] .hero .topbar .menu-toggle-btn,
html[data-theme="light"] .hero .topbar .theme-toggle-btn {
  color: #ffffff;
}

/* Standalone Topbar (non-hero pages) adapts cleanly to Light Mode */
html[data-theme="light"] .standalone-topbar {
  background: rgba(246, 247, 249, 0.9);
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .standalone-topbar .brand-logo,
html[data-theme="light"] .standalone-topbar .brand-logo-text,
html[data-theme="light"] .standalone-topbar .main-nav a,
html[data-theme="light"] .standalone-topbar .menu-toggle-btn {
  color: #111827;
}

html[data-theme="light"] .standalone-topbar .main-nav a.is-active {
  color: #0071E3;
}

html[data-theme="light"] .standalone-topbar .theme-toggle-btn {
  color: #111827;
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.14);
}

html[data-theme="light"] .standalone-topbar .theme-toggle-btn:hover {
  background: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .standalone-topbar .social-nav img,
html[data-theme="light"] .connect-social-link img,
html[data-theme="light"] .site-footer-social img {
  filter: brightness(0);
}

html[data-theme="light"] .standalone-topbar .social-nav a:hover img,
html[data-theme="light"] .connect-social-link:hover img,
html[data-theme="light"] .site-footer-social a:hover img {
  filter: brightness(0) saturate(100%) invert(28%) sepia(98%) saturate(2100%) hue-rotate(199deg) brightness(95%) contrast(98%);
}

/* General Light Typography & Borders */
html[data-theme="light"] .section-kicker,
html[data-theme="light"] .services-header .section-kicker,
html[data-theme="light"] .services-subtitle,
html[data-theme="light"] .stats-list-label,
html[data-theme="light"] .tech-category-title,
html[data-theme="light"] .connect-header p,
html[data-theme="light"] .projects-page-sub,
html[data-theme="light"] .projects-grid-label,
html[data-theme="light"] .tools-section-subtitle,
html[data-theme="light"] .support-subtitle,
html[data-theme="light"] .learn-intro-box p:last-child,
html[data-theme="light"] .learn-tag,
html[data-theme="light"] .site-footer p,
html[data-theme="light"] .site-footer-brand,
html[data-theme="light"] .site-footer-credit {
  color: rgba(17, 24, 39, 0.68);
}

html[data-theme="light"] .services-title,
html[data-theme="light"] .stats-header h2,
html[data-theme="light"] .stats-list-value,
html[data-theme="light"] .premium-shine-title,
html[data-theme="light"] .service-name,
html[data-theme="light"] .collab-banner-title,
html[data-theme="light"] .connect-header h2,
html[data-theme="light"] .teaser-group-title,
html[data-theme="light"] .projects-page-title,
html[data-theme="light"] .tools-clean-desc,
html[data-theme="light"] .tools-section-title,
html[data-theme="light"] .appstore-tool-title,
html[data-theme="light"] .appstore-tool-title a,
html[data-theme="light"] .appstore-hero-title,
html[data-theme="light"] .appstore-stat-val,
html[data-theme="light"] .appstore-detail-desc-card h2,
html[data-theme="light"] .appstore-detail-desc-card h3,
html[data-theme="light"] .appstore-section-heading,
html[data-theme="light"] .appstore-feature-card h3,
html[data-theme="light"] .support-title,
html[data-theme="light"] .support-card-name,
html[data-theme="light"] .learn-intro-box h2,
html[data-theme="light"] .learn-meta h3,
html[data-theme="light"] .comments-title,
html[data-theme="light"] .comment-item-user {
  color: #111827;
}

html[data-theme="light"] .service-desc,
html[data-theme="light"] .collab-banner-desc,
html[data-theme="light"] .appstore-tool-tagline,
html[data-theme="light"] .appstore-hero-subtitle,
html[data-theme="light"] .appstore-stat-label,
html[data-theme="light"] .appstore-detail-desc-card p,
html[data-theme="light"] .appstore-desc-body p,
html[data-theme="light"] .appstore-feature-card p,
html[data-theme="light"] .appstore-gallery-caption,
html[data-theme="light"] .support-card-badge,
html[data-theme="light"] .comment-item-body,
html[data-theme="light"] .comment-item-time,
html[data-theme="light"] .comment-like-count {
  color: rgba(17, 24, 39, 0.72);
}

html[data-theme="light"] .comments-title-wrap svg {
  color: #111827 !important;
}

html[data-theme="light"] .premium-shine-title {
  background: linear-gradient(120deg, #111827 25%, #0071E3 50%, #111827 75%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

html[data-theme="light"] .stats-list-strip {
  border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .tech-item {
  background: rgba(15, 23, 42, 0.05) !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #111827 !important;
}

/* Service & Teaser Cards in Light Mode */
html[data-theme="light"] .service-card,
html[data-theme="light"] .media-slot-placeholder,
html[data-theme="light"] .learn-media-frame,
html[data-theme="light"] .support-card,
html[data-theme="light"] .appstore-detail-desc-card,
html[data-theme="light"] .appstore-feature-card,
html[data-theme="light"] .comments-section {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .service-icon-wrap {
  background: rgba(0, 113, 227, 0.09);
  border-color: rgba(0, 113, 227, 0.18);
  color: #0071E3;
}

html[data-theme="light"] .services-collab-banner {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .collab-banner-btn {
  background: #111827;
  color: #ffffff;
}

html[data-theme="light"] .projects-more-btn,
html[data-theme="light"] .appstore-back-link,
html[data-theme="light"] .tool-back-link,
html[data-theme="light"] .projects-back-link,
html[data-theme="light"] .support-banner-btn {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.14);
  color: #111827;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .projects-more-btn:hover,
html[data-theme="light"] .appstore-back-link:hover,
html[data-theme="light"] .tool-back-link:hover,
html[data-theme="light"] .projects-back-link:hover,
html[data-theme="light"] .support-banner-btn:hover {
  background: #0071E3;
  border-color: #0071E3;
  color: #ffffff;
}

/* Contact Form & Inputs in Light Mode */
html[data-theme="light"] .contact-form input,
html[data-theme="light"] .contact-form select,
html[data-theme="light"] .contact-form textarea,
html[data-theme="light"] .comment-input-author,
html[data-theme="light"] .comment-textarea-wrap {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.14);
  color: #111827;
}

html[data-theme="light"] .comment-input-text {
  color: #111827;
}

html[data-theme="light"] .contact-form input::placeholder,
html[data-theme="light"] .contact-form textarea::placeholder,
html[data-theme="light"] .comment-input-author::placeholder,
html[data-theme="light"] .comment-input-text::placeholder {
  color: rgba(17, 24, 39, 0.45);
}

html[data-theme="light"] .contact-form button[type="submit"] {
  background: #0071E3;
  color: #ffffff;
}

html[data-theme="light"] .contact-form select option {
  background: #ffffff;
  color: #111827;
}

/* Tools AppStore List & Specs in Light Mode */
html[data-theme="light"] .appstore-tool-row {
  border-bottom-color: rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .appstore-tool-row:hover {
  background: rgba(15, 23, 42, 0.03);
}

html[data-theme="light"] .appstore-tool-icon,
html[data-theme="light"] .skeleton-icon,
html[data-theme="light"] .skeleton-title,
html[data-theme="light"] .skeleton-desc,
html[data-theme="light"] .skeleton-btn,
html[data-theme="light"] .skeleton-line-title,
html[data-theme="light"] .skeleton-line-tag,
html[data-theme="light"] .skeleton-btn-ghost {
  background: rgba(15, 23, 42, 0.07);
}

html[data-theme="light"] .appstore-view-btn {
  background: rgba(0, 113, 227, 0.1);
  color: #0071E3;
}

html[data-theme="light"] .appstore-view-btn:hover {
  background: #0071E3;
  color: #ffffff;
}

html[data-theme="light"] .appstore-hero-icon {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  color: #0071E3;
}

html[data-theme="light"] .appstore-stats-ribbon {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .appstore-stat-divider {
  background: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .support-number-box {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .support-number-value {
  color: #0f172a;
}

html[data-theme="light"] .comment-item-avatar {
  background: rgba(0, 113, 227, 0.12);
  border-color: rgba(0, 113, 227, 0.24);
  color: #0071E3;
}

html[data-theme="light"] .comment-item-avatar svg {
  color: #0071E3;
}

html[data-theme="light"] .comments-count-badge {
  background: rgba(0, 113, 227, 0.12);
  color: #0071E3;
}

/* Sidebar Drawer & Footer in Light Mode */
html[data-theme="light"] .sidebar-menu {
  background: rgba(255, 255, 255, 0.96);
  border-left-color: rgba(15, 23, 42, 0.1);
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.14);
}

html[data-theme="light"] .sidebar-header {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .sidebar-brand {
  color: #111827;
}

html[data-theme="light"] .sidebar-close-btn {
  border-color: rgba(15, 23, 42, 0.14);
  color: #111827;
}

html[data-theme="light"] .sidebar-link {
  color: rgba(17, 24, 39, 0.85);
}

html[data-theme="light"] .sidebar-link:hover,
html[data-theme="light"] .sidebar-link:focus-visible {
  background: rgba(15, 23, 42, 0.06);
  color: #0071E3;
}

html[data-theme="light"] .site-footer {
  background: var(--bg);
  border-top-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .portfolio-tab {
  color: rgba(17, 24, 39, 0.72) !important;
  background: rgba(15, 23, 42, 0.06) !important;
}

html[data-theme="light"] .portfolio-tab.is-active {
  background-color: #0071E3 !important;
  color: #ffffff !important;
}

/* Light Mode Contrast Refinements & Hero Scrim */
.hero:not(.learn-hero) .video-shell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 96px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.48) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

@media (max-width: 768px) {
  .hero:not(.learn-hero) .video-overlay {
    top: 56%;
  }

  .hero:not(.learn-hero) .intro-line {
    font-size: 11px !important;
    margin-bottom: 4px !important;
  }
}

html[data-theme="light"] .teaser-subheading,
html[data-theme="light"] .connect-brand {
  color: #111827;
}

html[data-theme="light"] .connect-kicker {
  color: rgba(17, 24, 39, 0.68);
}

html[data-theme="light"] .youtube-tab-bar {
  border-bottom-color: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .youtube-tab {
  color: #64748b;
}

html[data-theme="light"] .youtube-tab:hover,
html[data-theme="light"] .youtube-tab:focus-visible {
  color: #111827;
}

html[data-theme="light"] .youtube-tab.is-active {
  color: #0071E3;
  font-weight: 700;
}

html[data-theme="light"] .youtube-tab.is-active::after {
  background: #0071E3;
}

html[data-theme="light"] .support-method-icon {
  background: rgba(0, 113, 227, 0.08);
  border-color: rgba(0, 113, 227, 0.22);
  color: #0071E3;
}

html[data-theme="light"] .support-method-icon svg {
  color: #0071E3;
}

html[data-theme="light"] .support-card-badge {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.1);
  color: #475569;
}

html[data-theme="light"] .support-copy-btn {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.16);
  color: #111827;
}

html[data-theme="light"] .support-copy-btn:hover {
  background: #f1f5f9;
  border-color: #0071E3;
  color: #0071E3;
}

html[data-theme="light"] .support-copy-btn.copied {
  background: #38ef7d;
  border-color: #38ef7d;
  color: #000000;
}

html[data-theme="light"] .contact-form select:required:invalid {
  color: rgba(17, 24, 39, 0.52);
}

html[data-theme="light"] .contact-form input[type="text"]:focus,
html[data-theme="light"] .contact-form input[type="email"]:focus,
html[data-theme="light"] .contact-form select:focus,
html[data-theme="light"] .contact-form textarea:focus {
  background-color: #ffffff;
  border-color: #0071E3;
}

html[data-theme="light"] .comments-header {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .comment-like-btn {
  color: rgba(17, 24, 39, 0.45);
}

html[data-theme="light"] .comment-like-btn:hover {
  color: #111827;
}

html[data-theme="light"] .download-toast {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  color: #111827;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}

/* ========================================================
   LANGUAGE TOGGLE BUTTON & BIDIRECTIONAL (AR RTL / EN LTR)
   ======================================================== */
.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-family: var(--font-en);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  flex-shrink: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.lang-toggle-btn:hover,
.lang-toggle-btn:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.36);
  transform: scale(1.06);
  outline: none;
}

html[data-theme="light"] .standalone-topbar .lang-toggle-btn {
  color: #111827;
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.14);
}

html[data-theme="light"] .standalone-topbar .lang-toggle-btn:hover {
  background: rgba(15, 23, 42, 0.12);
}

@media (max-width: 768px) {
  .topbar .lang-toggle-btn {
    min-width: 28px !important;
    height: 28px !important;
    padding: 0 7px !important;
    font-size: 10px !important;
  }

  .standalone-topbar .lang-toggle-btn {
    min-width: 34px !important;
    height: 34px !important;
  }
}

/* English Mode (LTR) overrides */
html[lang="en"],
html[lang="en"] body,
html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3,
html[lang="en"] h4,
html[lang="en"] p,
html[lang="en"] a,
html[lang="en"] button,
html[lang="en"] input,
html[lang="en"] select,
html[lang="en"] textarea,
html[lang="en"] label,
html[lang="en"] span {
  font-family: var(--font-en);
}

html[dir="ltr"] .tools-appstore-section,
html[dir="ltr"] .appstore-detail-container,
html[dir="ltr"] .tool-detail-page,
html[dir="ltr"] .support-page,
html[dir="ltr"] .contact-form,
html[dir="ltr"] .comments-section {
  direction: ltr;
  text-align: left;
}

html[dir="ltr"] .contact-form input,
html[dir="ltr"] .contact-form select,
html[dir="ltr"] .contact-form textarea {
  text-align: left;
}

html[dir="ltr"] .projects-more-arrow {
  transform: rotate(180deg);
}

html[dir="ltr"] .sidebar-menu {
  left: 0;
  right: auto;
  border-left: none;
  border-right: 1px solid var(--border-subtle);
  box-shadow: 12px 0 45px rgba(0, 0, 0, 0.7);
  transform: translateX(-100%);
  direction: ltr;
  text-align: left;
}

html[dir="ltr"] .sidebar-menu.is-open {
  transform: translateX(0);
}

html[dir="ltr"] .sidebar-link:hover,
html[dir="ltr"] .sidebar-link:focus-visible {
  transform: translateX(4px);
}

html[data-theme="light"][dir="ltr"] .sidebar-menu {
  border-right-color: rgba(15, 23, 42, 0.1);
  box-shadow: 12px 0 40px rgba(15, 23, 42, 0.14);
}

html[data-theme="light"][dir="ltr"] .stats-list-item:not(:last-child) {
  border-right-color: rgba(15, 23, 42, 0.1);
}

/* Arabic typography refinements: preserve card and grid dimensions. */
html[lang="ar"] .portfolio-header h2,
html[lang="ar"] .teaser-subheading,
html[lang="ar"] .services-title,
html[lang="ar"] .projects-page-title,
html[lang="ar"] .service-name,
html[lang="ar"] .projects-grid-label,
html[lang="ar"] .appstore-tool-title,
html[lang="ar"] .tool-title-link,
html[lang="ar"] .tool-section-title,
html[lang="ar"] .support-title {
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.5;
}

html[lang="ar"] .service-desc,
html[lang="ar"] .collab-banner-desc,
html[lang="ar"] .tool-desc,
html[lang="ar"] .tools-clean-desc,
html[lang="ar"] .tools-section-subtitle,
html[lang="ar"] .appstore-detail-desc-card,
html[lang="ar"] .tool-detail-desc,
html[lang="ar"] .support-subtitle {
  font-weight: 400;
  line-height: 1.85;
  text-align: justify;
  text-align-last: start;
  text-justify: auto;
}

html[lang="ar"] .service-card-header {
  margin-bottom: 14px !important;
}

html[lang="ar"] .collab-banner-title {
  margin-bottom: 10px;
}

html[lang="ar"] .service-desc,
html[lang="ar"] .collab-banner-desc {
  margin-block-start: 2px;
}


