/* style.css — Maxfit (RTL / Mobile-first) */

/* ---------- Fonts (Optional: put your local font in /fonts and set here) ---------- */
/*
@font-face{
  font-family: "IRANSansX";
  src: url("fonts/IRANSansX.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
*/

:root{
  --bg: #07090d;
  --bg2:#0b0f18;
  --card:#0f1626;
  --card2:#0c1220;
  --border: rgba(255,255,255,.10);
  --border2: rgba(255,255,255,.14);

  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --muted2: rgba(255,255,255,.60);

  --gold: #d7b56d;
  --gold2:#b6892d;

  --neon: #bffb4a;     /* green neon accent */
  --neon2:#7cff2a;

  --danger:#ff4b4b;
  --magenta:#ff3dd7;
  --blue:#4db3ff;
  --purple:#a875ff;

  --shadow: 0 18px 55px rgba(0,0,0,.55);
  --shadow2: 0 10px 26px rgba(0,0,0,.45);

  --radius: 18px;
  --radius2: 22px;
  --container: 1120px;

  --ring: 0 0 0 3px rgba(191,251,74,.25);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background: radial-gradient(1100px 600px at 20% -10%, rgba(215,181,109,.10), transparent 55%),
              radial-gradient(900px 600px at 90% 10%, rgba(191,251,74,.10), transparent 55%),
              linear-gradient(180deg, var(--bg), var(--bg2));
  color:var(--text);
  font-family: "IRANSansX", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height:1.7;
  overflow-x:hidden;
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
button, input, select, textarea{
  font: inherit;
  color: inherit;
}

/* ---------- Background FX ---------- */
.bg-glow{
  position:fixed;
  inset:-20vh -20vw;
  background:
    radial-gradient(800px 520px at 20% 20%, rgba(215,181,109,.12), transparent 60%),
    radial-gradient(900px 620px at 80% 30%, rgba(191,251,74,.10), transparent 60%),
    radial-gradient(700px 520px at 60% 90%, rgba(77,179,255,.08), transparent 65%);
  pointer-events:none;
  filter: blur(2px);
  z-index:-2;
}
.bg-grain{
  position:fixed;
  inset:0;
  background-image:url("assets/img/grain.png"); /* optional */
  opacity:.08;
  mix-blend-mode: overlay;
  pointer-events:none;
  z-index:-1;
}

/* ---------- Layout ---------- */
.container{
  width:min(var(--container), calc(100% - 32px));
  margin-inline:auto;
}

/* ---------- Header ---------- */
.header{
  position:sticky;
  top:0;
  z-index:50;
  background: linear-gradient(180deg, rgba(7,9,13,.92), rgba(7,9,13,.66));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width: 210px;
}
.brand__logo{
  width:44px; height:44px;
  object-fit:contain;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,.55));
}
.brand__name{
  font-weight:800;
  letter-spacing:.4px;
  color: rgba(255,255,255,.95);
}
.brand__tag{
  font-size:12px;
  color: var(--muted2);
  margin-top:-2px;
}

.nav--desktop{ display:none; }
.nav__link{
  padding:10px 12px;
  border-radius: 12px;
  color: var(--muted);
  transition: .18s ease;
}
.nav__link:hover{
  color: var(--text);
  background: rgba(255,255,255,.06);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset;
}

.icon-btn{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  border-radius: 14px;
  padding:10px 12px;
  cursor:pointer;
  transition: .18s ease;
}
.icon-btn:hover{
  border-color: rgba(191,251,74,.35);
  box-shadow: var(--ring);
}
.icon{
  display:block;
  width:18px; height:18px;
  position:relative;
}
.icon--burger::before,
.icon--burger::after,
.icon--burger span{
  content:"";
  position:absolute;
  left:0; right:0;
  height:2px;
  background: rgba(255,255,255,.85);
  border-radius: 8px;
}
.icon--burger::before{ top:2px; }
.icon--burger span{ top:8px; }
.icon--burger::after{ top:14px; }

/* Mobile menu */
.mobile-menu{
  border-top:1px solid rgba(255,255,255,.06);
  background: rgba(7,9,13,.92);
}
.mobile-menu__inner{
  display:flex;
  flex-direction:column;
  padding:10px 0 14px;
  gap:6px;
}
.mobile-menu__link{
  padding:12px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.86);
  transition:.18s ease;
}
.mobile-menu__link:hover{
  border-color: rgba(191,251,74,.30);
  box-shadow: var(--ring);
}

/* ---------- Hero ---------- */
.main{ padding-bottom: 30px; }

.hero{
  padding: 18px 0 22px;
}
.hero__inner{
  display:grid;
  gap:18px;
}
.hero__badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(215,181,109,.16), rgba(191,251,74,.10));
  border:1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.88);
  width: fit-content;
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset;
}
.hero__title{
  margin:10px 0 6px;
  font-size: clamp(26px, 6vw, 44px);
  line-height: 1.25;
  font-weight: 900;
  color: rgba(255,255,255,.96);
  text-shadow: 0 14px 36px rgba(0,0,0,.55);
}
.hero__subtitle{
  margin:0 0 14px;
  color: var(--muted);
  max-width: 58ch;
}
.hero__actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin: 10px 0 14px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 12px 14px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.92);
  cursor:pointer;
  transition: .18s ease;
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, var(--shadow2);
}
.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(191,251,74,.35);
  box-shadow: var(--ring), var(--shadow);
}
.btn--primary{
  border-color: rgba(191,251,74,.35);
  background: linear-gradient(180deg, rgba(191,251,74,.22), rgba(215,181,109,.18));
  color: rgba(255,255,255,.95);
}
.btn--ghost{
  background: rgba(255,255,255,.03);
}
.btn--block{
  width:100%;
  padding: 13px 14px;
  border-radius: 16px;
}

.hero__stats{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
  margin-top: 12px;
}
.stat{
  background: rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 10px 10px;
  text-align:center;
}
.stat__num{
  font-weight: 900;
  font-size: 16px;
  color: rgba(255,255,255,.92);
}
.stat__label{
  font-size: 12px;
  color: var(--muted2);
  margin-top:2px;
}

.hero__media{
  display:block;
}
.hero__frame{
  position:relative;
  border-radius: var(--radius2);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  box-shadow: var(--shadow);
}
.hero__image{
  width:100%;
  height: 240px;
  object-fit: cover;
  filter: contrast(1.08) saturate(1.08);
}
.hero__overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(520px 240px at 20% 10%, rgba(215,181,109,.18), transparent 55%),
    radial-gradient(520px 280px at 80% 20%, rgba(191,251,74,.12), transparent 60%),
    linear-gradient(180deg, rgba(7,9,13,.08), rgba(7,9,13,.55));
  pointer-events:none;
}

/* ---------- Sections ---------- */
.section{
  padding: 22px 0;
}
.section--thin{ padding: 14px 0 22px; }

.section__head{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom: 14px;
}
.section__title{
  margin:0;
  font-size: 20px;
  font-weight: 900;
}
.section__desc{
  margin:0;
  color: var(--muted);
}

/* ---------- Programs Grid (Menu-like cards) ---------- */
.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
}

.card{
  border-radius: var(--radius2);
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: var(--shadow2);
  position:relative;
}
.card__media{
  position:relative;
  height: 160px;
  overflow:hidden;
  background: rgba(0,0,0,.35);
}
.card__media img{
  width:100%;
  height:100%;
  object-fit: cover;
  filter: contrast(1.12) saturate(1.12);
  transform: scale(1.02);
}
.card__shine{
  position:absolute;
  inset:0;
  background:
    radial-gradient(420px 180px at 20% 25%, rgba(215,181,109,.16), transparent 60%),
    radial-gradient(380px 220px at 80% 35%, rgba(191,251,74,.14), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.55));
}

.card__body{
  padding: 12px 12px 14px;
}
.card__title{
  margin:0 0 4px;
  font-weight: 900;
  font-size: 18px;
}
.card__desc{
  margin:0 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.card__actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 8px 12px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.92);
  font-weight: 700;
  font-size: 12px;
  transition: .18s ease;
}
.pill:hover{
  border-color: rgba(191,251,74,.35);
  box-shadow: var(--ring);
}
.pill--soft{
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.86);
}
.dot-sep{
  width:4px; height:4px;
  border-radius:50%;
  background: rgba(255,255,255,.32);
}

/* Accent borders (subtle) */
.card--gold{ box-shadow: 0 0 0 1px rgba(215,181,109,.16) inset, var(--shadow2); }
.card--green{ box-shadow: 0 0 0 1px rgba(191,251,74,.16) inset, var(--shadow2); }
.card--red{ box-shadow: 0 0 0 1px rgba(255,75,75,.16) inset, var(--shadow2); }
.card--magenta{ box-shadow: 0 0 0 1px rgba(255,61,215,.16) inset, var(--shadow2); }
.card--blue{ box-shadow: 0 0 0 1px rgba(77,179,255,.16) inset, var(--shadow2); }
.card--purple{ box-shadow: 0 0 0 1px rgba(168,117,255,.16) inset, var(--shadow2); }

/* ---------- CTA ---------- */
.cta{
  margin-top: 14px;
  border-radius: var(--radius2);
  border:1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(680px 240px at 20% 10%, rgba(215,181,109,.16), transparent 60%),
    radial-gradient(680px 280px at 85% 40%, rgba(191,251,74,.12), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
  overflow:hidden;
}
.cta__inner{
  padding: 14px 14px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.cta__title{
  margin:0 0 4px;
  font-weight:900;
  font-size: 16px;
}
.cta__desc{
  margin:0;
  color: var(--muted);
  font-size: 13px;
}
.cta__actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* ---------- About Panel ---------- */
.panel{
  border-radius: var(--radius2);
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: var(--shadow2);
  overflow:hidden;
  display:grid;
}
.panel__content{
  padding: 14px 14px;
}
.panel__title{
  margin:0 0 6px;
  font-weight: 900;
  font-size: 18px;
}
.panel__text{
  margin:0 0 10px;
  color: var(--muted);
  font-size: 13px;
}
.bullets{
  margin:0;
  padding:0 18px 0 0;
  color: rgba(255,255,255,.86);
  font-size: 13px;
}
.bullets li{ margin:6px 0; }
.panel__media{
  border-top:1px solid rgba(255,255,255,.08);
}
.panel__media img{
  width:100%;
  height: 220px;
  object-fit: cover;
  filter: contrast(1.1) saturate(1.08);
}

/* ---------- Contact ---------- */
.contact{
  display:grid;
  gap:12px;
}
.contact__cards{
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
}
.info{
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.035);
  padding: 12px 12px;
}
.info__title{
  font-size: 12px;
  color: var(--muted2);
  margin-bottom: 4px;
}
.info__value{
  font-weight: 800;
  color: rgba(255,255,255,.92);
}

.form{
  border-radius: var(--radius2);
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow2);
  padding: 12px 12px;
}
.form__row{
  display:grid;
  gap:10px;
  grid-template-columns: 1fr;
}

.field{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom: 10px;
}
.field__label{
  font-size: 12px;
  color: var(--muted2);
}
.field__input{
  width:100%;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(10,14,24,.55);
  padding: 11px 12px;
  outline:none;
  color: rgba(255,255,255,.92);
  transition: .18s ease;
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset;
}
.field__input:focus{
  border-color: rgba(191,251,74,.40);
  box-shadow: var(--ring);
}
textarea.field__input{ resize: vertical; min-height: 110px; }

select.field__input{
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,.70) 50%),
    linear-gradient(135deg, rgba(255,255,255,.70) 50%, transparent 50%);
  background-position:
    calc(14px) calc(50% - 3px),
    calc(18px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-left: 34px;
}

.social{
  display:flex;
  gap:10px;
  justify-content:center;
  padding-top: 10px;
}
.social__btn{
  width:42px; height:42px;
  display:grid;
  place-items:center;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  font-weight:900;
  transition: .18s ease;
}
.social__btn:hover{
  border-color: rgba(215,181,109,.35);
  box-shadow: 0 0 0 3px rgba(215,181,109,.18);
}

/* ---------- Footer ---------- */
.footer{
  padding: 18px 0 28px;
  border-top:1px solid rgba(255,255,255,.06);
  background: rgba(7,9,13,.55);
}
.footer__inner{
  display:flex;
  flex-direction:column;
  gap:10px;
  color: var(--muted);
  font-size: 13px;
}
.footer__inner a{
  color: rgba(255,255,255,.85);
}
.footer__inner a:hover{
  color: rgba(191,251,74,.95);
}
.footer__left, .footer__right{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
}
.sep{
  opacity:.55;
}

/* ---------- Utilities ---------- */
.rtl{ direction: rtl; }
::selection{
  background: rgba(191,251,74,.22);
}

/* ---------- Responsive (Tablet/Desktop) ---------- */
@media (min-width: 680px){
  .hero__inner{
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
  }
  .hero__image{ height: 320px; }
  .grid{
    grid-template-columns: repeat(2, 1fr);
  }
  .form__row{
    grid-template-columns: 1fr 1fr;
  }
  .contact__cards{
    grid-template-columns: repeat(3, 1fr);
  }
  .panel{
    grid-template-columns: 1.1fr .9fr;
    align-items: stretch;
  }
  .panel__media{
    border-top:none;
    border-right:1px solid rgba(255,255,255,.08);
  }
  .panel__media img{ height: 100%; min-height: 260px; }
}

@media (min-width: 980px){
  .nav--desktop{ display:flex; gap:4px; }
  .header__burger{ display:none; }
  .mobile-menu{ display:none !important; }

  .hero{ padding: 26px 0 26px; }
  .hero__image{ height: 380px; }
  .grid{ grid-template-columns: repeat(3, 1fr); }
  .cta__inner{
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
  }
  .footer__inner{
    flex-direction:row;
    justify-content:space-between;
  }
  .footer__left, .footer__right{ justify-content:flex-start; }
}

/* ---------- Reduce Motion ---------- */
@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior:auto !important; }
  .btn, .pill, .social__btn{ transition:none !important; }
}
/* ===== MODAL ===== */
.modal{
position: fixed;
inset: 0;
background: rgba(0,0,0,.75);
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
visibility: hidden;
transition: .3s ease;
z-index: 999;
}

.modal.active{
opacity: 1;
visibility: visible;
}

.modal__content{
background: linear-gradient(180deg,#0f1626,#0c1220);
padding: 25px;
border-radius: 20px;
max-width: 420px;
width: 90%;
color: #fff;
box-shadow: 0 20px 60px rgba(0,0,0,.6);
border: 1px solid rgba(255,255,255,.1);
position: relative;
animation: pop .3s ease;
}

@keyframes pop{
from{transform: scale(.9);opacity:0}
to{transform: scale(1);opacity:1}
}

.modal__close{
position: absolute;
top: 10px;
left: 12px;
background: none;
border: none;
color: #fff;
font-size: 22px;
cursor: pointer;
}