@font-face {

  font-family:'KalamehWM';

  src:url('../fonts/KalamehWM.woff2') format('woff2');

  font-weight:400;

  font-style:normal;
}

@font-face {

  font-family:'KalamehWB';

  src:url('../fonts/KalamehWB.woff2') format('woff2');

  font-weight:700;

  font-style:normal;
}

:root{
  --bg-dark-1:#040404;
  --bg-dark-2:#101010;
  --bg-dark-3:#070707;
  --text-light:#f5f5f5;
  --text-dim:rgba(255,255,255,.8);
  --panel-dark:rgba(255,255,255,.06);
  --panel-border:rgba(255,255,255,.08);
  --card-dark:rgba(255,255,255,.06);
  --footer-dark:#000;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  -webkit-tap-highlight-color:transparent;
}

html{
  touch-action:manipulation;
  scroll-behavior:smooth;
}

body{
  font-family:'KalamehWB', sans-serif;
  font-weight:400;
  background:linear-gradient(135deg,var(--bg-dark-1),var(--bg-dark-2),var(--bg-dark-3));
  color:var(--text-light);
  overflow-x:hidden;
  padding-bottom:150px;
}
  h1, h2, h3, .brand-title, .section-title{
  font-family:'KalamehWB', sans-serif;
  font-weight:700;
}

a{
  color:inherit;
  text-decoration:none;
}

button,
input{
  font:inherit;
}

.container{
  width:min(1200px,92%);
  margin:0 auto;
}

.page-section{
  padding-top:110px;
  padding-bottom:40px;
}

.page-title{
  font-size:clamp(2.2rem,5vw,4rem);
  margin-bottom:34px;
  text-align:center;
}

.section-title{
  font-size:clamp(1.7rem,4vw,3rem);
  margin-bottom:22px;
  text-align:center;
}

.content-block{
  margin-top:30px;
}

.hero-description{
  max-width:960px;
  line-height:2.2;
  font-size:1.05rem;
  color:var(--text-dim);
  margin-top:24px;
}

.footer{
  margin-top:80px;
  padding:42px 20px 55px;
  background:#000;
  text-align:center;
}

.footer-enamad{
  min-height:68px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:14px;
}

.footer-copy{
  color:#d8d8d8;
  font-size:.98rem;
}

.course-desc{
  margin-top:10px;
  line-height:2;
  opacity:.92;
}

.about-layout{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:22px;
}

.about-card{
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  backdrop-filter:blur(18px);
  border-radius:30px;
  padding:28px;
}

.about-photo{
  width:100%;
  display:block;
  border-radius:24px;
  object-fit:cover;
  aspect-ratio:1 / 1;
}

.qr-card{
  margin-top:22px;
  display:grid;
  grid-template-columns:1.2fr .8fr;
  align-items:center;
  gap:24px;
}

.qr-image{
  width:min(240px,100%);
  justify-self:center;
}

.qr-text h2{
  margin-bottom:10px;
  font-size:1.6rem;
}

.coach-summary{
  background:rgba(0,0,0,.42);
  border:1px solid rgba(255,255,255,.06);
  border-radius:34px;
  padding:28px;
  display:grid;
  grid-template-columns:.9fr 1.4fr;
  gap:26px;
  align-items:center;
}

.coach-photo-wrap{
  display:flex;
  justify-content:center;
}

.coach-photo{
  width:210px;
  height:210px;
  object-fit:cover;
  border-radius:50%;
  border:3px solid rgba(255,255,255,.08);
}

.coach-summary-content h2{
  font-size:2rem;
  margin-bottom:14px;
}

.coach-summary-content p{
  line-height:2.1;
  color:var(--text-dim);
}

.btn-titanium{
  margin-top:18px;
  border:none;
  padding:13px 24px;
  border-radius:16px;
  cursor:pointer;
  color:#111;
  background:linear-gradient(180deg,#fefefe 0%,#cfcfcf 22%,#ffffff 46%,#8f8f8f 70%,#ffffff 100%);
  background-size:200% 200%;
  box-shadow:0 0 18px rgba(255,255,255,.14);
  transition:transform .25s ease, box-shadow .25s ease;
  animation:titaniumFlow 7s linear infinite;
}

.btn-titanium:hover{
  transform:translateY(-2px);
  box-shadow:0 0 24px rgba(255,255,255,.24);
}

/* =========================================
   HERO FIX
========================================= */

.hero-section{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:120px 20px 260px;
  overflow:hidden;
}

.hero-content{
  position:relative;
  z-index:5;
  width:min(1100px,92%);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  margin:auto;
}

.brand-title {
  font-size:clamp(4.5rem,10vw,9rem);
  line-height:1.2;
  margin-top: 0;
  padding: 0.2em 0;
  margin-bottom:60px;
  font-weight:900;

  background:
  linear-gradient(
    180deg,
    #ffffff 0%,
    #d9d9d9 18%,
    #8f8f8f 36%,
    #ffffff 54%,
    #666666 72%,
    #f2f2f2 100%
  );

  background-size:200% 200%;
  background-clip:text;
  -webkit-text-fill-color:transparent;

  animation:titaniumFlow 8s linear infinite;
}

.header-line{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  flex-wrap:wrap;

  margin-bottom:34px;
}

.normal-text{
  color:rgba(255,255,255,.88);
  font-size:clamp(1.2rem,3vw,2rem);
  font-weight:600;
}

.hero-description{
  max-width:900px;
  line-height:2.3;
  font-size:1.05rem;
  color:rgba(255,255,255,.78);
  margin-top:12px;
  text-align:center;
}

/* =========================================
   STARS CANVAS
========================================= */

#starsCanvas{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  z-index:0;
  pointer-events:none;
}

/* =========================================
   BLUR PANEL FIX
========================================= */

.blur-panel{
  position:fixed;

  bottom:24px;
  left:50%;

  transform:translateX(-50%);

  width:min(700px,92%);
  height:84px;

  background:rgba(255,255,255,.08);

  border:1px solid rgba(255,255,255,.08);

  backdrop-filter:blur(24px);

  border-radius:30px;

  overflow:visible;

  z-index:9999;

  transition:background .35s ease;
}

/* حالت باز منو */

.blur-panel.menu-open{
  height:450px;
  padding-top:0;
}

/* =========================================
   PANEL ROW
========================================= */

.panel-row{
  position:absolute;

  left:0;
  right:0;
  bottom: 0;

  height:84px;

  display:grid;

  grid-template-columns:1fr 1fr 1fr;

  align-items:center;

  padding:0 24px;

  z-index:50;

  background:transparent;
}

.panel-right{
  display:flex;
  justify-content:flex-start;
}

.panel-center{
  display:flex;
  justify-content:center;
}

.panel-left{
  display:flex;
  justify-content:flex-end;
}

/* =========================================
   LOGO
========================================= */

.panel-right img{
  width:105px;
  height:86px;
  object-fit:contain;
  flex-shrink:0;
  cursor:pointer;
  display:block;
}

/* =========================================
   MENU
========================================= */

.panel-menu{
  position:absolute;

  bottom:84px;
  left:0;
  right:0;
  top: -5px;

  padding:18px 24px 24px;

  opacity:0;
  visibility:hidden;

  transform:translateY(15px);

  transition:
  opacity .3s ease,
  transform .3s ease;

  z-index:10;
}

.blur-panel.menu-open .panel-menu{
  opacity:1;
  visibility:visible;

  transform:translateY(0);
}

.menu-items{
  list-style:none;

  display:flex;
  flex-direction:column;

  gap:16px;

  padding:0 30px;
}

.menu-items li{
  width:100%;
}

.menu-items button{
  width:100%;

  border:none;

  background:rgba(255,255,255,.06);

  color:white;

  border-radius:18px;

  padding:14px;

  cursor:pointer;

  transition:.25s ease;
}

.menu-items button:hover{
  background:rgba(255,255,255,.12);
}

/* =========================================
   MENU BUTTON
========================================= */

.icon-btn{
  width:54px;
  height:54px;

  border:none;

  border-radius:16px;

  background:rgba(255,255,255,.08);

  color:white;

  font-size:1.4rem;

  cursor:pointer;

  transition:.3s ease;
}

.menu-toggle-rotate{
  transform:rotate(180deg);
}

/* =========================================
   TITANIUM BUTTON
========================================= */

.btn-glow{
  border:none;

  padding:13px 28px;

  border-radius:18px;

  cursor:pointer;

  font-weight:700;

  color:#111;

  background:
  linear-gradient(
    180deg,
    #ffffff 0%,
    #d0d0d0 22%,
    #ffffff 46%,
    #8f8f8f 70%,
    #ffffff 100%
  );

  background-size:200% 200%;
  animation:titaniumFlow 6s linear infinite;

  box-shadow:0 0 18px rgba(255,255,255,.15);
}

/* =========================================
   THEME SWITCH
========================================= */

.theme-switch{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;

  margin-top:8px;
}

.switch{
  position:relative;
  width:54px;
  height:28px;
}

.switch input{
  display:none;
}

.slider{
  position:absolute;
  inset:0;

  border-radius:999px;

  background:#444;

  cursor:pointer;
}

.slider::before{
  content:"";

  position:absolute;

  width:22px;
  height:22px;

  border-radius:50%;

  background:white;

  top:3px;
  left:4px;
  right:auto;

  transition:.3s ease;
}

.switch input:checked + .slider::before{
  left:auto;
  right:28px;
}
/* =========================================
   LIGHT MODE
========================================= */

body.light{
  background:#f4f4f4;
  color:#111;
}

body.light .normal-text,
body.light .hero-description{
  color:#222;
}

body.light .blur-panel{
  background:rgba(255,255,255,.75);
}

body.light .menu-items button{
  color:#111;
}

body.light .icon-btn{
  color:#111;
}

/* =========================================
   ANIMATION
========================================= */

@keyframes titaniumFlow{
  0%{
    background-position:0% 50%;
  }

  100%{
    background-position:100% 50%;
  }
}

/* --------------- موبایل --------------- */
@media (max-width: 480px){
  .blur-panel{
    bottom: 0;              /* روی گوشی کاملاً به پایین بچسبه */
  }

  .blur-panel.menu-open{
    height: 470px;          /* هر عددی که لازم داری؛ فعلاً تستی */
  }

  .panel-menu{
    top: 5px;               /* همون چیزی که الان خودت داری */
    bottom: 84px;           /* منو تا بالای ردیف دکمه‌ها امتداد پیدا کنه */
    padding-bottom: 24px;   /* آیتم آخر زیر دکمه‌ها نره */
  }
}

