/* ===== v7: نمط الزجاج الشفاف (Liquid Glass) =====
   مبني على كود .glass-card المرسل (النسخة الثانية): blur 5px، خلفية 0.05، حدّ فاتح،
   بدون إضاءة داخلية، مع خطّي لمعان علوي وجانبي. يطبَّق على: الشريط العلوي، زرّي الهيرو، شريط المطور. */

:root {
  --g-bg: rgba(255, 255, 255, 0.05);
  --g-blur: 5px;
  --g-border: rgba(255, 255, 255, 0.3);
  --g-line-a: rgba(255, 255, 255, 0.8);
  --g-line-b: rgba(255, 255, 255, 0.3);
  --g-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 0px 0px rgba(255, 255, 255, 0);
}

html[data-theme="light"] {
  --g-bg: rgba(255, 255, 255, 0.35);
  --g-border: rgba(20, 24, 36, 0.14);
  --g-line-a: rgba(255, 255, 255, 1);
  --g-line-b: rgba(255, 255, 255, 0.7);
  --g-shadow:
    0 8px 28px rgba(20, 24, 36, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(255, 255, 255, 0.4),
    inset 0 0 0px 0px rgba(255, 255, 255, 0);
}

/* القاعدة المشتركة */
html .nav,
html .hero-actions .btn,
html .dev-bar,
html .features-box {
  background: var(--g-bg);
  -webkit-backdrop-filter: blur(var(--g-blur));
  backdrop-filter: blur(var(--g-blur));
  border: 1px solid var(--g-border);
  box-shadow: var(--g-shadow);
  position: relative;
  overflow: hidden;
}

/* خط اللمعان العلوي + الجانبي */
html .nav::before,
html .hero-actions .btn::before,
html .dev-bar::before,
html .features-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--g-line-a), transparent);
  pointer-events: none;
}

html .nav::after,
html .hero-actions .btn::after,
html .dev-bar::after,
html .features-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, var(--g-line-a), transparent, var(--g-line-b));
  pointer-events: none;
}

/* ---------- الأزرار: بلا أي لون، واحد فوق الآخر ---------- */
html .hero-actions {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
}

html .hero-actions .btn,
html .hero-actions .btn.btn-primary,
html .hero-actions .btn.btn-secondary,
html[data-theme="light"] .hero-actions .btn.btn-primary,
html[data-theme="light"] .hero-actions .btn.btn-secondary {
  width: min(250px, 78vw);
  min-width: 0;
  padding: 9px 20px;
  font-size: 0.95rem;
  line-height: 1.45;
  text-align: center;
  color: var(--text-main, #fff);
  background: var(--g-bg);
  border: 1px solid var(--g-border);
  box-shadow: var(--g-shadow);
  text-shadow: none;
  outline: none;
  transition: transform 0.15s ease;
}

html .hero-actions .btn:active { transform: scale(0.97); }

/* لا لون ولا تحريك عند hover/focus (وخصوصًا على اللمس) */
html .hero-actions .btn:hover,
html .hero-actions .btn:focus,
html .hero-actions .btn:focus-visible,
html .hero-actions .btn.btn-primary:hover,
html .hero-actions .btn.btn-secondary:hover,
html.is-touch .hero-actions .btn:hover,
html.is-touch .hero-actions .btn.btn-primary:hover,
html.is-touch .hero-actions .btn.btn-secondary:hover,
html[data-theme="light"] .hero-actions .btn.btn-primary:hover,
html[data-theme="light"] .hero-actions .btn.btn-secondary:hover,
html.is-touch[data-theme="light"] .hero-actions .btn.btn-primary:hover,
html.is-touch[data-theme="light"] .hero-actions .btn.btn-secondary:hover {
  background: var(--g-bg);
  border-color: var(--g-border);
  box-shadow: var(--g-shadow);
  color: var(--text-main, #fff);
  outline: none;
}

/* ---------- الشريط العلوي ---------- */
html .nav { border-radius: 50px; }

html[data-theme="light"] .nav { border-color: var(--g-border); box-shadow: var(--g-shadow); }

/* ---------- مسافات ---------- */
html .gallery-wrapper { margin-top: 130px; }

@media (max-width: 480px) {
  html .gallery-wrapper { margin-top: 130px; }
}

/* ---------- قسم المطور: شريط عريض بنمط الزجاج ---------- */
.owner-section {
  padding: 56px 20px 24px;
  text-align: center;
}

.owner-section-title {
  width: 92%;
  max-width: 560px;
  margin: 0 auto 16px;
  padding: 0 14px;
  text-align: right;
  font-size: clamp(1.15rem, 4.6vw, 1.4rem);
  color: var(--text-main, #fff);
}

html .dev-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 92%;
  max-width: 560px;
  margin: 0 auto;
  padding: 12px 16px;
  border-radius: 50px;
  text-align: right;
}

.dev-photo {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--g-border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.dev-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dev-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  direction: ltr;
  text-align: right;
}

.dev-name {
  font-family: 'Inter', 'Handicrafts', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-main, #fff);
  line-height: 1.3;
}

.dev-role {
  font-family: 'Inter', 'Handicrafts', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-soft, #aaa);
  line-height: 1.3;
}

/* ---------- التذييل ---------- */
html .footer { margin-top: 32px; padding: 36px 20px; }

html .footer-links {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}

html .footer-links a { padding: 9px 18px; font-size: 0.9rem; }

html .footer-links a:hover { transform: none; }

/* ---------- أيقونات التواصل: تأثير holographic (تيليجرام + انستغرام) ---------- */
.holographic-stack {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  margin-bottom: 26px;
  perspective: 1000px;
}

.holographic-icon {
  position: relative;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.holographic-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  position: relative;
  z-index: 3;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 5px currentColor);
}

.holographic-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid;
  border-top-color: transparent;
  border-bottom-color: transparent;
  animation: holoRotate 3s linear infinite;
  opacity: 0.7;
}

.holographic-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 20%, currentColor 20%, currentColor 30%, transparent 30%, transparent 40%, currentColor 40%, currentColor 50%, transparent 50%);
  background-size: 15px 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.holographic-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 15px currentColor;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.holographic-icon.telegram { color: #2aabee; }
.holographic-icon.telegram:hover { color: #6fd0ff; }

.holographic-icon.instagram { color: #bc2a8d; }
.holographic-icon.instagram:hover { color: #f0489f; }

.holographic-icon:hover { transform: translateY(-8px) rotateX(20deg); }
.holographic-icon:hover svg { transform: scale(1.2) rotate(10deg); }
.holographic-icon:hover .holographic-ring { border-top-color: transparent; border-bottom-color: transparent; }
.holographic-icon:hover .holographic-particles { opacity: 0.3; animation: holoParticles 3s linear infinite; }
.holographic-icon:hover .holographic-pulse { opacity: 0.5; animation: holoPulse 2s ease-out infinite; }

.holographic-icon::before {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 5%;
  width: 90%;
  height: 20%;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  filter: blur(10px);
  transform: rotateX(80deg) translateZ(-20px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.holographic-icon:hover::before { opacity: 0.5; }

@keyframes holoRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes holoParticles { from { background-position: 0 0; } to { background-position: 30px 30px; } }
@keyframes holoPulse {
  0%   { transform: scale(0.8); opacity: 0.5; }
  50%  { transform: scale(1.1); opacity: 0.2; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* ---------- بطاقة المميزات: نفس نمط الزجاج ---------- */
html .features-box {
  background: var(--g-bg);
  border: 1px solid var(--g-border);
  box-shadow: var(--g-shadow);
}

html[data-theme="light"] .features-box {
  background: var(--g-bg);
  border-color: var(--g-border);
  box-shadow: var(--g-shadow);
}
