/* =========================
   Custom Font (Title)
========================= */
@font-face{
  font-family: "TheYearofHandicrafts";
  src: url("font/TheYearofHandicrafts-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root{
  /* ✅ تغيير الخلفية حسب طلبك */
  --bg0:#021017;
  --bg1:#021017;

  --cyan:#32d6ff;
  --cyan2:#0aa6ff;

  --white:#f6fbff;
  --gold:#f5b544;

  --line: rgba(120, 210, 255, .28);
  --line2: rgba(120, 210, 255, .12);

  --pillA: rgba(44, 160, 195, .55);
  --pillB: rgba(18, 88, 110, .42);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
html{ overflow-x:hidden; }
body{ overflow-x:hidden; }
html{
  scroll-behavior: smooth;
}

body{
  min-height:100vh;
  overflow-x:hidden;
  overflow-y:auto;
  margin:0;
  overflow-y:auto;
  color:var(--white);
  background:
    radial-gradient(1200px 600px at 35% 65%, rgba(10,170,255,.18), transparent 55%),
    radial-gradient(900px 500px at 75% 30%, rgba(50,214,255,.12), transparent 52%),
    linear-gradient(160deg, var(--bg0), var(--bg1));
  font-family: Poppins, Cairo, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

::selection{
  background: rgba(50,214,255,.25);
  color: var(--white);
}

/* Grain */
body::before{
  content:"";
  position:fixed; inset:0;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  opacity:.07;
  pointer-events:none;
  mix-blend-mode:overlay;
  z-index:0;
}

/* vignette */
.vignette{
  position:fixed;
  inset:0;
  pointer-events:none;
  background: radial-gradient(closest-side, transparent 45%, rgba(0,0,0,.55) 85%);
  opacity:.9;
  z-index:0;
  transform: scale(1.35);
  transform-origin:center;
}

/* Scrollbar colors */
*{
  scrollbar-color: rgba(50,214,255,.35) rgba(2,12,18,.35);
  scrollbar-width: thin;
}
*::-webkit-scrollbar{ width:10px; height:10px; }
*::-webkit-scrollbar-track{ background: rgba(2,12,18,.35); }
*::-webkit-scrollbar-thumb{
  background: rgba(50,214,255,.30);
  border: 2px solid rgba(2,12,18,.55);
  border-radius: 999px;
}
*::-webkit-scrollbar-thumb:hover{ background: rgba(50,214,255,.45); }

.wrap{
  position:relative;
  min-height:100vh;   /* ✅ بدل height */
  height:auto;        /* ✅ السماح بالطول الطبيعي */
  z-index:1;
  display:flex;
  flex-direction:column;
  overflow:visible;   /* ✅ بدل hidden */
}


/* ===== Header ===== */
header{
  padding:18px 18px 0;
  flex:0 0 auto;
}

.topbar{
  max-width:1200px;
  margin:0 auto;
  position:relative;
  border:1px solid rgba(120, 210, 255, .12);
  border-top:1px solid rgba(120, 210, 255, .28);
  border-radius:38px;
  padding:14px 18px;
  background: linear-gradient(180deg, rgba(6, 30, 40, .45), rgba(2, 12, 18, .18));
  box-shadow: 0 10px 35px rgba(0,0,0,.35);
  overflow:hidden;
}

.topbar::before{
  content:"";
  position:absolute; inset:-2px;
  border-radius:40px;
  background: radial-gradient(700px 120px at 50% 0%, rgba(50,214,255,.35), transparent 55%);
  pointer-events:none;
  opacity:.55;
}

.topbar-inner{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.social{
  display:flex;
  gap:10px;
  align-items:center;
}

/* ===== Social icons ===== */
.iconBtn{
  width:34px; height:34px;
  border-radius:50%;
  border:1px solid rgba(200, 245, 255, .35);
  background: rgba(6, 18, 24, .35);
  display:grid;
  place-items:center;
  box-shadow: 0 10px 25px rgba(0,0,0,.3);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
  cursor:pointer;
  text-decoration:none;
  position:relative; /* ✅ علشان الهالة */
}

/* ✅ Hover زي اللي انت عاوزه */
.iconBtn:hover{
  transform: translateY(-2px) scale(1.08);
  border-color: rgba(50,214,255,.6);
  background: rgba(20, 70, 88, .35);
  box-shadow:
    0 0 0 4px rgba(50,214,255,.25),
    0 0 18px rgba(50,214,255,.45),
    0 10px 25px rgba(0,0,0,.3);
}
.iconBtn svg{ width:18px; height:18px; fill:rgba(246,251,255,.9); }

/* ===== Nav ===== */
.deskNav{
  display:flex;
  gap:18px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.deskNav a{
  color: rgba(246,251,255,.85);
  text-decoration:none;
  font-size:15px;
  transition: opacity .2s ease, transform .2s ease;
  opacity:.9;
  white-space:nowrap;
}
.deskNav a:hover{ opacity:1; transform: translateY(-1px); }
.deskNav a.active{
  padding:8px 14px;
  border-radius:999px;
  border:1px solid rgba(50,214,255,.35);
  background: rgba(13, 55, 70, .35);
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
}

/* ===== Main ===== */
main{
  flex:1 1 auto;
  display:block;      /* مهم */
  padding: 10px 18px 20px;
  min-height:0;
}

.container{
  width:100%;
  max-width:1200px;
  margin:0 auto;
  height:auto;        /* مهم */
  display:block;      /* مهم */
}


.hero{
  width:100%;
  display:grid;
  grid-template-columns: 1.1fr 1fr;
  align-items:center;
  gap:36px;
  min-height:0;
}

/* ===== Left ===== */
.hero-visual{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  transform: translateY(-10px);
  min-height:520px;
  min-width:0;
  background: transparent;
}

/* ✅ إصلاح ظهور اللمبة/الفرشاة */
.visualStage{
  width:min(560px, 96%);
  height:520px;
  min-width:0;
  background: transparent !important;
  box-shadow: none !important;

  position: relative;   /* ✅ مرجع للحركة */
  overflow: visible;    /* ✅ يمنع قص اللمبة والفرشاة */
  border-radius: 0;
}


/* Photo */
.hero-photo{
  position:absolute;
  bottom:0px;
  left:50%;
  transform:translateX(-50%);
  max-height:90vh;
  width:auto;
  height:auto;
  filter:
    drop-shadow(0 25px 60px rgba(0,0,0,.6))
    drop-shadow(-12px 0 22px rgba(50,214,255,.25));
  pointer-events:none;
  user-select:none;
  z-index:2; /* ✅ تحت اللمبة/الفرشاة */
}

/* Floating items */
.float-item{
  position:absolute;
  cursor:grab;
  user-select:none;
  touch-action:none;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 14px 25px rgba(0,0,0,.45));
  z-index:6; /* ✅ فوق الصورة */
  will-change: left, top;
  left: var(--x);
  top: var(--y);
}
.float-item:active{ cursor:grabbing; }

.lamp{ width:180px; --x: 6%;  --y: 28%; }
.brush{ width:170px; --x: 78%; --y: 12%; }

@keyframes float{
  0%,100%{ transform:translateY(0); }
  50%{ transform:translateY(-12px); }
}

/* ===== Right ===== */
.hero-content{
  display:flex;
  flex-direction:column;
  justify-content:center;
  max-width:560px;
  transform: translateY(-6px);
  min-width:0;
}

.hero-title{
  width:100%;
  text-align:center;
  direction:rtl;

  /* ✅ المطلوب: خط عنوان "محمد مظهر" */
  font-family: "TheYearofHandicrafts", Cairo, Poppins, sans-serif;
  font-weight: 600;

  font-size:clamp(44px,4.5vw,70px);
  margin:0 0 14px 0;
  text-shadow: 0 18px 55px rgba(0,0,0,.55);
}
.hero-title .gold{ color: var(--gold); }

.hero-text{
  width:100%;
  text-align:center;
  color:rgba(255,255,255,.8);
  line-height:1.6;
  margin:0 0 18px 0;
  font-size:16px;
}

.divider{
  margin:0 auto 18px;
  width:min(560px, 100%);
  height:1px;
  background: linear-gradient(90deg, rgba(120,210,255,.35), rgba(120,210,255,.05));
  border-radius:999px;
}

.hero-actions{
  display:flex;
  justify-content:center;
  gap:16px;
  flex-wrap:wrap;
}

.btn{
  padding:12px 26px;
  border-radius:999px;
  border:1px solid rgba(50,214,255,.3);
  background:linear-gradient(180deg, rgba(44, 160, 195, .55), rgba(18, 88, 110, .42));
  color:#fff;
  font-weight:700;
  cursor:pointer;
  box-shadow: 0 16px 34px rgba(0,0,0,.28);
  transition: transform .18s ease, filter .18s ease, border-color .18s ease;
}
.btn:hover{
  transform: translateY(-2px);
  border-color: rgba(50,214,255,.45);
  filter: brightness(1.05);
}
.btn.secondary{
  background:linear-gradient(180deg, rgba(33, 140, 175, .46), rgba(10, 55, 72, .38));
}
.cornerWidget{
  position:fixed;
  right:22px;
  bottom:22px;
  width:52px;
  height:52px;
  border-radius:50%;
  border:1px solid rgba(50,214,255,.35);
  background: rgba(5, 18, 24, .45);
  display:grid;
  place-items:center;
  box-shadow: 0 18px 40px rgba(0,0,0,.38);
  z-index:60;

  cursor: pointer;
  user-select: none;

  pointer-events: auto; /* ✅ جديد: يضمن إن الزر يلقط الكليك */
}

.cornerWidget::before{
  content:"";
  position:absolute;
  inset:-6px;
  border-radius:50%;
  pointer-events:none; /* ✅ خليه none عشان مايغطيش الكليك */

  background:
    conic-gradient(from -90deg,
      rgba(50,214,255,.55) calc(var(--p, 0) * 1turn),
      rgba(50,214,255,.18) 0
    );

  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 0);
          mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 0);
}

/* ===== Mobile ===== */
@media (max-width: 980px){
  body{
    overflow-y:auto;
    overflow-x:hidden;
    height:auto;
  }
  .deskNav{ display:none; }

  header{ padding:10px 10px 0; }

  .topbar{
    padding:12px 14px;
    border-radius:26px;
  }

  .topbar-inner{ justify-content:center; }

  .social{ width:100%; justify-content:center; }

  main{
    padding:0;
    align-items:flex-start;
  }

  .container{
    height:auto;
    padding:0;
  }

  .hero{
    grid-template-columns:1fr;
    gap:10px;
    padding:0;
  }

  .hero-visual{
    transform:none;
    min-height:auto;
    margin-top:-18px;
    padding:0;
  }

  .visualStage{
    width:100%;
    max-width:520px;
    height:420px;
    margin:0 auto;
    overflow: visible; /* ✅ نفس الإصلاح للموبايل */
  }

  .hero-photo{
    max-height:62vh;
    bottom:-6px;
  }

  .lamp{ width:135px; --x: 6%;  --y: 46%; }
  .brush{ width:125px; --x: 72%; --y: 30%; }

  .hero-content{
    transform:none;
    max-width:520px;
    width:100%;
    margin:0 auto;
    padding:0 14px 22px;
  }

  .hero-title{
    font-size: clamp(34px, 9vw, 46px);
    margin:0 0 8px 0;
  }
  .hero-text{
    font-size:14px;
    margin:0 0 12px 0;
  }
  .divider{
    margin:0 auto 14px;
    width:100%;
  }

  .cornerWidget{
    right:14px;
    bottom:14px;
  }
}

@media (max-width: 380px){
  .visualStage{ height:380px; }
  .hero-photo{ max-height:58vh; }
  .lamp{ width:120px; }
  .brush{ width:110px; }
  .btn{ padding:10px 20px; }
}

/* =========================
   Mouse Circle Effect
========================= */
.mouse-dot,
.mouse-ring{
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 999999;
  opacity: 0;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.mouse-dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(50,214,255,.6);
}

.mouse-ring{
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid rgba(50,214,255,.35);
  box-shadow: 0 0 20px rgba(50,214,255,.15) inset;
}

html.mouse-active .mouse-dot,
html.mouse-active .mouse-ring{
  opacity: 1;
}

@media (hover: none) and (pointer: coarse){
  .mouse-dot, .mouse-ring{ display:none; }
}
/* =========================
   HERO Full Screen + Divider control
   (Add at END of style.css)
========================= */

/* 1) Hero يأخذ طول الشاشة */
.hero{
  min-height: 100svh; /* modern mobile safe */
  min-height: 100vh;  /* fallback */
}

/* 2) الخط الفاصل كـ pseudo داخل الهيرو */
.hero{
  position: relative;
}

/* الخط نفسه */
.hero::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:0;
  transform:translateX(-50%);
  width:100vw;
  height:1px;
  background: linear-gradient(
    90deg,
    rgba(50,214,255,0),
    rgba(50,214,255,.9),
    rgba(50,214,255,0)
  );
  pointer-events:none;
  z-index: 5;

  /* افتراضيًا مخفي */
  opacity: 0;
  transform: translateX(-50%) translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
}

/* glow خفيف تحت الخط */
.hero::before{
  content:"";
  position:absolute;
  left:50%;
  bottom:-6px;
  transform:translateX(-50%);
  width:100vw;
  height:12px;
  background: radial-gradient(
    60% 100% at 50% 50%,
    rgba(50,214,255,.18),
    rgba(50,214,255,0) 70%
  );
  filter: blur(2px);
  pointer-events:none;
  z-index: 4;

  /* افتراضيًا مخفي */
  opacity: 0;
  transition: opacity .25s ease;
}

/* 3) لما نعدّي الهيرو فعلاً يظهر الخط */
body.hero-passed .hero::after{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
body.hero-passed .hero::before{
  opacity: .9;
}
