/* =========================================================
   Dynamic Premium UI (RTL) — New Palette
   Palette: #222831 / #393E46 / #00ADB5 / #EEEEEE
   Notes:
   - Bootstrap 5 friendly (works with .btn, .form-control, .navbar, ...)
   - SVG icons via .i + sprite
   ========================================================= */

:root{
  --bg:#222831;
  --panel:#393E46;
  --panel2:#2f353f;

  --text:#EEEEEE;
  --muted:rgba(238,238,238,.68);
  --border:rgba(255,255,255,.10);

  --accent:#00ADB5;
  --accent2:#00c2cc;
  --accent-soft:rgba(0,173,181,.16);

  --shadow:0 18px 60px rgba(0,0,0,.45);
  --shadow2:0 28px 90px rgba(0,0,0,.55);

  --radius:22px;
  --ring:0 0 0 6px rgba(0,173,181,.22);

  --container:1200px;
}

@font-face{
  font-family:"MyFont";
  src:url("../fonts/Anjoman-FaNum-Regular.woff2") format("woff2"),
      url("../fonts/Anjoman-FaNum-Regular.woff") format("woff");
  font-weight:400;
  font-style:normal;
  font-display:swap;
}

/* ===== Reset / Base ===== */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"MyFont",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(900px 520px at 14% 8%, rgba(0,173,181,.18), transparent 60%),
    radial-gradient(820px 480px at 88% 16%, rgba(0,173,181,.10), transparent 55%),
    linear-gradient(180deg, var(--bg), #1b2027);
  overflow-x:hidden;
  line-height:1.85;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
.text-muted2{color:var(--muted)!important}

/* subtle moving grid (dynamic feel) */
body:before{
  content:"";
  position:fixed;
  inset:-2px;
  background:
    linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity:.06;
  pointer-events:none;
  z-index:-2;
  transform: translateZ(0);
  animation: gridMove 18s linear infinite;
}
@keyframes gridMove{
  from{ background-position: 0 0, 0 0; }
  to  { background-position: 180px 0, 0 180px; }
}

/* ambient blob */
body:after{
  content:"";
  position:fixed;
  width:560px; height:560px;
  left:-220px; top:120px;
  filter: blur(60px);
  opacity:.26;
  background: radial-gradient(circle at 30% 30%, rgba(0,173,181,.75), transparent 60%);
  pointer-events:none;
  z-index:-1;
  animation: floaty 16s ease-in-out infinite;
}
@keyframes floaty{
  0%,100%{ transform: translate3d(0,0,0) scale(1); }
  50%{ transform: translate3d(0,-30px,0) scale(1.03); }
}

/* Focus */
:focus-visible{ outline:none; box-shadow:var(--ring); border-radius:14px; }

/* Container */
.container{
  width:100%;
  max-width:var(--container);
  margin-inline:auto;
  padding-inline:18px;
}

/* Optional custom cursor (desktop only) */
@media (hover:hover){
  body{ cursor: url("https://cur.cursors-4u.net/cursors/cur-2/cur119.cur"), auto; }
  a, button, .btn, [role="button"]{ cursor:pointer; }
}

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar{ transition: background .25s ease, border-color .25s ease; }
.navbar-blur{
  background:rgba(34,40,49,.78)!important;
  backdrop-filter: blur(12px);
  border-bottom:1px solid var(--border);
}
.navbar .nav-link{
  border-radius:999px;
  padding:.5rem .9rem;
  transition: background .18s ease, transform .18s ease;
}
.navbar .nav-link:hover{
  background: rgba(0,173,181,.14);
  transform: translateY(-1px);
}

/* Make bootstrap toggler visible on dark */
.navbar-toggler{ border-color: rgba(255,255,255,.14) !important; }
.navbar-toggler:focus{ box-shadow: var(--ring) !important; }
.navbar-toggler-icon{ filter: invert(1) brightness(1.2); }

/* =========================================================
   SVG ICONS
   ========================================================= */
.i{
  width:18px;
  height:18px;
  flex:0 0 18px;
  display:block;
  color: currentColor;
  opacity:.95;
}
.btn-icon{ gap:.6rem; }
.btn-icon span{ line-height:1; }

/* Meta lines (icon + text) */
.meta-lines{ margin:0; padding:0; list-style:none; }
.meta-lines li{
  display:flex;
  align-items:center;
  gap:10px;
}
.meta-lines li + li{ margin-top:10px; }
.meta-lines .i{ color: rgba(0,173,181,.95); }

/* =========================================================
   CARDS
   ========================================================= */
.card-dark{
  position:relative;
  border-radius:var(--radius);
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(57,62,70,.82), rgba(47,53,63,.74));
  box-shadow:var(--shadow);
  overflow:hidden;
}
.card-dark:before{
  content:"";
  position:absolute;
  inset:-2px;
  background: linear-gradient(90deg, rgba(0,173,181,.55), rgba(0,173,181,0) 35%, rgba(0,173,181,.45));
  opacity:.18;
  pointer-events:none;
}
.card-dark:after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(520px 260px at 18% 0%, rgba(0,173,181,.18), transparent 60%);
  opacity:.5;
  pointer-events:none;
}
.card-dark > *{ position:relative; }

.card-hover{ transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.card-hover:hover{
  transform: translateY(-7px);
  border-color: rgba(0,173,181,.50);
  box-shadow:var(--shadow2);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.6rem;
  text-align:center;
  user-select:none;
  border-radius:999px;
  padding:.72rem 1.05rem;
  font-weight:800;
  font-size:.95rem;
  line-height:1.1;
  border:0;
  -webkit-tap-highlight-color: transparent;
}

.btn-accent{
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color:#0f171b;
  box-shadow: 0 18px 55px rgba(0,173,181,.18);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn-accent:hover{
  transform: translateY(-2px);
  box-shadow: 0 24px 70px rgba(0,173,181,.26);
  filter:saturate(1.06);
}
.btn-accent:active{ transform: translateY(0); }

.btn-outline-glow{
  background: rgba(255,255,255,.02);
  color:var(--text);
  border:1px solid rgba(0,173,181,.70);
  box-shadow: 0 10px 32px rgba(0,0,0,.18);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.btn-outline-glow:hover{
  background: rgba(0,173,181,.14);
  transform: translateY(-1px);
  border-color: rgba(0,194,204,.88);
}

.btn-ghost{
  background: rgba(255,255,255,.03);
  border:1px solid var(--border);
  color: var(--muted);
  transition: background .18s ease, transform .18s ease, color .18s ease;
}
.btn-ghost:hover{
  background: rgba(255,255,255,.06);
  transform: translateY(-1px);
  color: var(--text);
}

/* button row center */
.btn-center{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
button.btn, a.btn{ justify-content:center; text-align:center; }

/* =========================================================
   BADGES
   ========================================================= */
.badge-soft{
  border:1px solid var(--border);
  background: rgba(0,173,181,.10);
  border-radius:999px;
  padding:.35rem .65rem;
  color: rgba(0,173,181,.95);
}

/* =========================================================
   TYPOGRAPHY / SECTIONS
   ========================================================= */
.hero-title{
  font-size: clamp(2rem, 3.2vw, 3rem);
  letter-spacing:-.02em;
  margin:0;
}
.lead{ line-height:1.95; }
.section{ padding: 78px 0; }
.hr-soft{ border-color: var(--border); opacity:1; }

/* =========================================================
   FORMS
   ========================================================= */
.form-control, .form-select{
  background: rgba(255,255,255,.04);
  border:1px solid var(--border);
  color:var(--text);
  border-radius:16px;
  transition: border-color .18s ease, background .18s ease;
}
.form-control:focus, .form-select:focus{
  background: rgba(255,255,255,.06);
  border-color: rgba(0,173,181,.78);
  box-shadow:none;
  color:var(--text);
}
::placeholder{ color: rgba(238,238,238,.45)!important; }

/* ===== Progress ===== */
.progress{
  overflow:hidden;
  background: rgba(255,255,255,.06);
  border:1px solid var(--border);
  border-radius:999px;
}
.progress-bar{
  border-radius:999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

/* ===== Blog cover ===== */
.cover{
  width:100%;
  aspect-ratio:16/9;
  border-radius:18px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  object-fit:cover;
}

/* ===== Footer ===== */
.footer{
  border-top:1px solid var(--border);
  padding:32px 0;
  color:var(--muted);
}

/* ===== Reveal ===== */
.reveal{
  opacity:0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible{ opacity:1; transform: translateY(0); }

/* RTL helpers */
[dir="rtl"] .text-start{ text-align:right !important; }
[dir="rtl"] .text-end{ text-align:left !important; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 992px){
  .section{ padding: 64px 0; }
}

@media (max-width: 768px){
  .container{ padding-inline: 14px; }
  .section{ padding: 56px 0; }

  /* Mobile: buttons full width + centered */
  .btn, a.btn, button.btn{ width:100%; }
  .btn-center{ flex-direction:column; align-items:stretch; }

  .i{ width:19px; height:19px; }
}

@media (max-width: 480px){
  .section{ padding: 48px 0; }
  .hero-title{ font-size: clamp(1.55rem, 6.6vw, 2.15rem); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  body:before, body:after{ animation:none; }
  .card-hover, .btn, .reveal, .navbar .nav-link{ transition:none !important; }
}
/* Icon sizing tweaks */
.btn-icon .i{ width:18px; height:18px; flex-basis:18px; }
@media (max-width:768px){
  .btn-icon .i{ width:17px; height:17px; flex-basis:17px; }
}


