/*
   المتغيرات العامة
============================================ */
:root {
  --bg: #05060d;
  --bg-2: #0a0d1a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.1);
  --text: #e8ecf5;
  --muted: #8a93a8;
  --grad-1: #00e0ff;
  --grad-2: #7c5cff;
  --grad-3: #ff3d9a;
  --grad: linear-gradient(135deg, #00e0ff 0%, #7c5cff 50%, #ff3d9a 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  --t: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  --font-ar: 'Cairo', sans-serif;
  --font-en: 'Space Grotesk', sans-serif;
}

/* ============================================
   إعادة الضبط
============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-ar);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

@media (max-width: 900px) {
  body {
    cursor: auto;
  }
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button,
input,
textarea {
  font-family: inherit;
}

/* ============================================
   الخلفية
============================================ */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

.glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #7c5cff, transparent 70%);
  top: -200px;
  right: -150px;
  animation: floatGlow 14s ease-in-out infinite;
}

.glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #00e0ff, transparent 70%);
  bottom: -150px;
  left: -150px;
  animation: floatGlow 18s ease-in-out infinite reverse;
}

@keyframes floatGlow {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(60px, -50px) scale(1.15);
  }
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(124, 92, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 92, 255, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
}

/* ============================================
   شريط التقدم
============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--grad);
  z-index: 9999;
  box-shadow: 0 0 14px rgba(124, 92, 255, 0.9);
  transition: width 0.1s linear;
}

/* ============================================
   المؤشر المخصص
============================================ */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: #fff;
}

.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  transition: width 0.25s, height 0.25s, background 0.25s, border-color 0.25s;
}

.cursor-ring.hovered {
  width: 62px;
  height: 62px;
  background: rgba(124, 92, 255, 0.16);
  border-color: rgba(124, 92, 255, 0.9);
}

@media (max-width: 900px) {

  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

/* ============================================
   الحاويات العامة
============================================ */
.container {
  width: min(1200px, 92%);
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.glass {
  background: var(--surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============================================
   الأزرار
============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: var(--t);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-grad {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.35);
}

.btn-grad::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ff3d9a, #00e0ff);
  opacity: 0;
  transition: opacity var(--t);
}

.btn-grad:hover::before {
  opacity: 1;
}

.btn-grad>* {
  position: relative;
  z-index: 1;
}

.btn-grad:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(124, 92, 255, 0.55);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--grad-2);
  background: var(--surface-2);
  transform: translateY(-3px);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 14px;
}

.btn-full {
  width: 100%;
}

/* ============================================
   شريط التنقل
============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--t);
}

.nav.scrolled {
  padding: 10px 0;
  background: rgba(5, 6, 13, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.nav-inner {
  width: min(1200px, 92%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 20px;
  font-family: var(--font-en);
}

.logo-mark {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 24px;
  animation: pulseLogo 2.5s ease-in-out infinite;
}

@keyframes pulseLogo {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }
}

.nav-links {
  display: flex;
  gap: 6px;
}

.nav-link {
  padding: 9px 16px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
  transition: var(--t);
  position: relative;
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav-link.active {
  color: #fff;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px rgba(124, 92, 255, 0.5);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--text);
  border-radius: 3px;
  transition: var(--t);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

@media (max-width: 980px) {
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 80%);
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 40px;
    background: rgba(8, 10, 20, 0.97);
    backdrop-filter: blur(24px);
    border-right: 1px solid var(--border);
    transition: right var(--t);
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-link {
    font-size: 18px;
    text-align: center;
  }
}

/* ============================================
   قسم الرئيسية
============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border-radius: 50px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 22px;
}

.dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22e07a;
  box-shadow: 0 0 0 0 rgba(34, 224, 122, 0.7);
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 224, 122, 0.7);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(34, 224, 122, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(34, 224, 122, 0);
  }
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 16px;
}

.hero-title span {
  display: block;
}

.typing-wrap {
  font-family: var(--font-en);
  font-size: clamp(1.2rem, 3vw, 1.9rem);
  font-weight: 600;
  color: var(--muted);
  min-height: 2.4em;
  margin-bottom: 20px;
  direction: ltr;
}

.typing {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.caret {
  color: var(--grad-2);
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero-desc {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 32px;
}

@media (max-width: 980px) {
  .hero-desc {
    margin-inline: auto;
  }
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

@media (max-width: 980px) {
  .hero-actions {
    justify-content: center;
  }
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .hero-stats {
    justify-content: center;
  }
}

.stat strong {
  display: block;
  font-family: var(--font-en);
  font-size: 2.1rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat span {
  font-size: 13px;
  color: var(--muted);
}

/* ============================================
   المكعب ثلاثي الأبعاد
============================================ */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1400px;
}

.cube-stage {
  width: 260px;
  height: 260px;
  position: relative;
  transform-style: preserve-3d;
  animation: stageFloat 6s ease-in-out infinite;
}

@keyframes stageFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-22px);
  }
}

.cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: rotateCube 18s linear infinite;
}

@keyframes rotateCube {
  0% {
    transform: rotateX(-18deg) rotateY(0deg);
  }

  100% {
    transform: rotateX(-18deg) rotateY(360deg);
  }
}

.cube .face {
  position: absolute;
  inset: 0;
  width: 260px;
  height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1.5px solid rgba(124, 92, 255, 0.55);
  background: rgba(10, 13, 26, 0.72);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  box-shadow: inset 0 0 40px rgba(124, 92, 255, 0.16);
  font-family: var(--font-en);
}

.cube .face span {
  font-size: 3rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cube .face small {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.cube .front {
  transform: rotateY(0deg) translateZ(130px);
}

.cube .back {
  transform: rotateY(180deg) translateZ(130px);
}

.cube .right {
  transform: rotateY(90deg) translateZ(130px);
}

.cube .left {
  transform: rotateY(-90deg) translateZ(130px);
}

.cube .top {
  transform: rotateX(90deg) translateZ(130px);
}

.cube .bottom {
  transform: rotateX(-90deg) translateZ(130px);
}

.cube-shadow {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 30px;
  background: radial-gradient(ellipse, rgba(124, 92, 255, 0.5), transparent 70%);
  filter: blur(14px);
  animation: shadowPulse 6s ease-in-out infinite;
}

@keyframes shadowPulse {

  0%,
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.7;
  }

  50% {
    transform: translateX(-50%) scale(0.82);
    opacity: 0.4;
  }
}

/* مؤشر التمرير */
.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 44px;
  border: 2px solid var(--border);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-hint span {
  width: 4px;
  height: 8px;
  background: var(--grad-2);
  border-radius: 4px;
  animation: scrollHint 1.8s ease-in-out infinite;
}

@keyframes scrollHint {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(16px);
    opacity: 0;
  }
}

/* ============================================
   الأقسام العامة
============================================ */
.section {
  padding: 110px 0;
  position: relative;
  z-index: 2;
}

.section-head {
  text-align: center;
  margin-bottom: 64px;
}

.kicker {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 50px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--grad-1);
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.3;
}

.section-sub {
  color: var(--muted);
  margin-top: 12px;
  font-size: 1rem;
}

/* ============================================
   قسم من أنا
============================================ */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
}

.about-card {
  padding: 34px 28px;
  position: relative;
  overflow: hidden;
  transition: var(--t);
}

.about-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.about-card p {
  color: var(--muted);
  font-size: 0.96rem;
}

.card-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.35), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

/* ============================================
   قسم المهارات
============================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.skill-card {
  padding: 26px;
  transition: var(--t);
  position: relative;
  overflow: hidden;
}

.skill-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.skill-head h3 {
  font-size: 1.05rem;
  font-weight: 700;
  flex: 1;
  font-family: var(--font-en);
}

.skill-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
}

.skill-icon.html {
  background: linear-gradient(135deg, #e34f26, #f06529);
}

.skill-icon.css {
  background: linear-gradient(135deg, #264de4, #2965f1);
}

.skill-icon.js {
  background: linear-gradient(135deg, #f7df1e, #e6c200);
  color: #111;
}

.skill-icon.py {
  background: linear-gradient(135deg, #3776ab, #ffd43b);
}

.skill-icon.react {
  background: linear-gradient(135deg, #61dafb, #21a1c4);
  color: #111;
}

.skill-icon.node {
  background: linear-gradient(135deg, #3c873a, #68a063);
}

.skill-icon.db {
  background: linear-gradient(135deg, #00758f, #f29111);
}

.skill-icon.git {
  background: linear-gradient(135deg, #f05033, #d63b1f);
}

.skill-percent {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--grad-1);
}

.skill-card p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 18px;
  min-height: 48px;
}

.bar {
  width: 100%;
  height: 7px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 10px;
  background: var(--grad);
  box-shadow: 0 0 16px rgba(124, 92, 255, 0.75);
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================
   قسم بيئة العمل
============================================ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.tool {
  padding: 30px 20px;
  text-align: center;
  transition: var(--t);
}

.tool:hover {
  transform: translateY(-8px);
  border-color: rgba(124, 92, 255, 0.55);
  box-shadow: 0 20px 50px rgba(124, 92, 255, 0.2);
}

.tool-logo {
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
  transition: var(--t);
}

.tool:hover .tool-logo {
  transform: rotate(-8deg) scale(1.1);
}

.tool-logo.vscode {
  background: linear-gradient(135deg, #007acc, #0098ff);
}

.tool-logo.git {
  background: linear-gradient(135deg, #f05033, #d63b1f);
}

.tool-logo.github {
  background: linear-gradient(135deg, #24292e, #57606a);
}

.tool-logo.docker {
  background: linear-gradient(135deg, #0db7ed, #099cec);
}

.tool-logo.postman {
  background: linear-gradient(135deg, #ff6c37, #e0531f);
}

.tool-logo.figma {
  background: linear-gradient(135deg, #f24e1e, #a259ff);
}

.tool-logo.terminal {
  background: linear-gradient(135deg, #1e1e2e, #45475a);
}

.tool-logo.npm {
  background: linear-gradient(135deg, #cb3837, #e04a49);
}

.tool h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  font-family: var(--font-en);
}

.tool span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ============================================
   قسم اللغات
============================================ */
.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  max-width: 720px;
  margin-inline: auto;
}

.lang-card {
  padding: 34px 24px;
  text-align: center;
  transition: var(--t);
}

.circle {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 22px;
}

.circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.circle .track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 8;
}

.circle .prog {
  fill: none;
  stroke: url(#gradLang);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 326.7;
  stroke-dashoffset: 326.7;
  transition: stroke-dashoffset 1.6s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 0 8px rgba(124, 92, 255, 0.8));
}

.circle-val {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-en);
  font-size: 1.6rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lang-card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.lang-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ============================================
   قسم التواصل
============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 26px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  padding: 44px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  transition: var(--t);
  position: relative;
  overflow: hidden;
}

.contact-card.wa-card:hover {
  transform: translateY(-8px);
  border-color: rgba(37, 211, 102, 0.6);
  box-shadow: 0 24px 60px rgba(37, 211, 102, 0.22);
}

.contact-icon {
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  transition: var(--t);
}

.contact-card:hover .contact-icon {
  transform: scale(1.08) rotate(-6deg);
}

.contact-icon.wa {
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 14px 40px rgba(37, 211, 102, 0.45);
}

.contact-icon svg {
  width: 48px;
  height: 48px;
  color: #fff;
}

.contact-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
}

.wa-number {
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 2px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-hint {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 6px;
}

/* نموذج التواصل */
.contact-form {
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  transition: var(--t);
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--grad-2);
  background: rgba(124, 92, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.12);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(138, 147, 168, 0.7);
}

.form-note {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

/* ============================================
   الفوتر
============================================ */
.footer {
  padding: 34px 0;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
  background: rgba(5, 6, 13, 0.6);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-made {
  font-size: 0.85rem;
}

/* ============================================
   زر العودة للأعلى
============================================ */
.to-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  border: none;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: var(--t);
  z-index: 900;
  box-shadow: 0 12px 30px rgba(124, 92, 255, 0.45);
}

.to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.to-top:hover {
  transform: translateY(-5px) scale(1.08);
}

/* ============================================
   أنيميشن الظهور
============================================ */
.reveal {
  opacity: 0;
  transform: translateY(45px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* تأثير Tilt */
.tilt {
  transform-style: preserve-3d;
  transition: transform 0.25s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  will-change: transform;
}

/* شريط التمرير */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00e0ff, #7c5cff, #ff3d9a);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--grad-2);
}

/* تحديد النص */
::selection {
  background: rgba(124, 92, 255, 0.4);
  color: #fff;
}

/* ============================================
   استجابة للجوال
============================================ */
@media (max-width: 600px) {
  .section {
    padding: 80px 0;
  }

  .section-head {
    margin-bottom: 44px;
  }

  .hero {
    padding: 110px 0 60px;
  }

  .cube-stage,
  .cube .face {
    width: 200px;
    height: 200px;
  }

  .cube .front {
    transform: rotateY(0deg) translateZ(100px);
  }

  .cube .back {
    transform: rotateY(180deg) translateZ(100px);
  }

  .cube .right {
    transform: rotateY(90deg) translateZ(100px);
  }

  .cube .left {
    transform: rotateY(-90deg) translateZ(100px);
  }

  .cube .top {
    transform: rotateX(90deg) translateZ(100px);
  }

  .cube .bottom {
    transform: rotateX(-90deg) translateZ(100px);
  }

  .cube .face span {
    font-size: 2.2rem;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat strong {
    font-size: 1.6rem;
  }

  .to-top {
    bottom: 20px;
    left: 20px;
    width: 42px;
    height: 42px;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
  }
}

