/* DSD LAB — Public website styles */

:root {
  --abyss: #060b14;
  --surface: #0d1526;
  --surface-high: #121c32;
  --border: rgba(255, 255, 255, 0.08);
  --text: #eef2ff;
  --text-muted: #94a3b8;
  --gold: #d4a853;
  --gold-dim: rgba(212, 168, 83, 0.15);
  --amethyst: #9b5de5;
  --neon-cyan: #00e8ff;
  --neon-purple: #c77dff;
  --radius: 16px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --glass: rgba(13, 21, 38, 0.72);
  --font: 'Segoe UI', Tahoma, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--abyss);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}
body.rtl { direction: rtl; }
body.ltr { direction: ltr; }
a { color: var(--gold); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.85; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, 92vw); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(6, 11, 20, 0.82);
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.85rem 0;
}
.brand { display: flex; flex-direction: column; gap: 0.1rem; }
.brand-name {
  font-size: 1.35rem; font-weight: 800; letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--gold), #f5e6b8, var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.brand-tagline { font-size: 0.72rem; color: var(--text-muted); }
.nav-desktop { display: flex; align-items: center; gap: 0.35rem; }
.nav-desktop a {
  color: var(--text-muted); padding: 0.45rem 0.85rem; border-radius: 999px; font-size: 0.92rem;
}
.nav-desktop a.active, .nav-desktop a:hover { color: var(--text); background: var(--gold-dim); }
.lang-switch { display: flex; gap: 0.25rem; margin-inline-start: 0.5rem; }
.lang-switch a {
  font-size: 0.78rem; padding: 0.25rem 0.55rem;
  border: 1px solid var(--border); border-radius: 8px; color: var(--text-muted);
}
.lang-switch a.active { border-color: var(--gold); color: var(--gold); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border);
  color: var(--text); border-radius: 10px; padding: 0.4rem 0.65rem; cursor: pointer;
}
.nav-mobile { display: none; flex-direction: column; padding-bottom: 1rem; gap: 0.35rem; }
.nav-mobile.open { display: flex; }
.nav-mobile a { color: var(--text-muted); padding: 0.55rem 0.75rem; border-radius: 10px; }
@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: block; }
}

.hero { position: relative; padding: 5rem 0 4rem; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(155, 93, 229, 0.22), transparent),
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(0, 232, 255, 0.12), transparent);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem; align-items: center; position: relative;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.85rem; border-radius: 999px;
  border: 1px solid rgba(0, 232, 255, 0.35);
  background: rgba(0, 232, 255, 0.08); color: var(--neon-cyan);
  font-size: 0.82rem; margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.15; margin: 0 0 1rem; font-weight: 800; }
.hero p.lead { font-size: 1.08rem; color: var(--text-muted); max-width: 36rem; margin-bottom: 1.75rem; }
.hero-visual {
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(212, 168, 83, 0.35);
  overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 4/3; background: var(--surface);
  position: relative;
}
.hero-visual--animated {
  border-color: rgba(0, 232, 255, 0.28);
  box-shadow:
    var(--shadow),
    0 0 48px rgba(0, 232, 255, 0.12),
    inset 0 0 60px rgba(155, 93, 229, 0.08);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-placeholder {
  display: grid; place-items: center; height: 100%; font-size: 4rem;
  background: linear-gradient(135deg, var(--surface), var(--surface-high));
}

/* ── Hero animated visual ── */
.hero-anim {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 280px;
  background:
    radial-gradient(circle at 50% 45%, rgba(13, 21, 38, 0.2), rgba(6, 11, 20, 0.95)),
    linear-gradient(160deg, #0a1224 0%, #060b14 55%, #0d1526 100%);
  overflow: hidden;
}

.hero-anim__aura {
  position: absolute;
  inset: -30%;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(0, 232, 255, 0.14),
    transparent,
    rgba(199, 125, 255, 0.12),
    transparent,
    rgba(212, 168, 83, 0.1),
    transparent
  );
  animation: heroAuraSpin 14s linear infinite;
}

.hero-anim__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid transparent;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
.hero-anim__ring--1 {
  width: 72%; height: 72%;
  border-color: rgba(0, 232, 255, 0.22);
  animation: heroRingPulse 4s ease-in-out infinite;
}
.hero-anim__ring--2 {
  width: 88%; height: 88%;
  border-color: rgba(212, 168, 83, 0.15);
  animation: heroRingPulse 4s ease-in-out infinite 1.2s;
}

.hero-anim__scan {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  box-shadow: 0 0 18px var(--neon-cyan), 0 0 40px rgba(0, 232, 255, 0.35);
  animation: heroScan 3.8s ease-in-out infinite;
  opacity: 0.85;
}

.hero-anim__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.hero-anim__core {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
}

.hero-anim__tooth {
  width: min(48%, 190px);
  height: auto;
  animation: heroToothFloat 5s ease-in-out infinite;
}

.hero-anim__stroke {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-anim__stroke--outer {
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  animation: heroDraw 3s ease forwards, heroPulseStroke 2.8s ease-in-out 3s infinite;
}
.hero-anim__stroke--inner {
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
  animation: heroDrawInner 2.2s ease 0.6s forwards, heroPulseStroke 2.8s ease-in-out 3.2s infinite;
}
.hero-anim__stroke--roots {
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: heroDrawRoots 1.2s ease 1.4s forwards;
}
.hero-anim__grid {
  stroke: rgba(0, 232, 255, 0.15);
  stroke-width: 0.8;
  stroke-dasharray: 4 6;
  animation: heroGridFade 2s ease 2s forwards;
  opacity: 0;
}
.hero-anim__node {
  fill: var(--neon-cyan);
  opacity: 0;
  animation: heroNodePop 0.5s ease forwards;
}
.hero-anim__node:nth-of-type(1) { animation-delay: 2.1s; }
.hero-anim__node:nth-of-type(2) { animation-delay: 2.25s; }
.hero-anim__node:nth-of-type(3) { animation-delay: 2.4s; }
.hero-anim__node:nth-of-type(4) { animation-delay: 2.55s; }
.hero-anim__node:nth-of-type(5) { animation-delay: 2.7s; }

.hero-anim__logo {
  position: absolute;
  bottom: 18%;
  font-size: clamp(0.75rem, 2vw, 0.95rem);
  font-weight: 800;
  letter-spacing: 0.28em;
  color: transparent;
  background: linear-gradient(90deg, var(--neon-cyan), var(--gold), var(--neon-purple));
  -webkit-background-clip: text;
  background-clip: text;
  animation: heroLogoGlow 3s ease-in-out infinite;
  text-shadow: 0 0 20px rgba(0, 232, 255, 0.3);
}

.hero-anim__chip {
  position: absolute;
  z-index: 3;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(13, 21, 38, 0.72);
  backdrop-filter: blur(8px);
  color: var(--text);
  white-space: nowrap;
  animation: heroChipFloat 4s ease-in-out infinite;
}
.hero-anim__chip--1 { top: 12%; left: 8%; animation-delay: 0s; border-color: rgba(0, 232, 255, 0.35); color: var(--neon-cyan); }
.hero-anim__chip--2 { top: 18%; right: 10%; animation-delay: 0.8s; border-color: rgba(212, 168, 83, 0.4); color: var(--gold); }
.hero-anim__chip--3 { bottom: 22%; left: 10%; animation-delay: 1.6s; border-color: rgba(199, 125, 255, 0.35); color: var(--neon-purple); }
.hero-anim__chip--4 { bottom: 14%; right: 8%; animation-delay: 2.4s; border-color: rgba(0, 232, 255, 0.25); }

.hero-anim__orbit {
  position: absolute;
  width: 78%; height: 78%;
  left: 11%; top: 11%;
  border-radius: 50%;
  animation: heroOrbitSpin 18s linear infinite;
  pointer-events: none;
}
.hero-anim__orbit span {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}
.hero-anim__orbit span:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.hero-anim__orbit span:nth-child(2) { bottom: 8%; left: 4%; background: var(--neon-cyan); box-shadow: 0 0 12px var(--neon-cyan); }
.hero-anim__orbit span:nth-child(3) { bottom: 8%; right: 4%; background: var(--neon-purple); box-shadow: 0 0 12px var(--neon-purple); }

@keyframes heroAuraSpin { to { transform: rotate(360deg); } }
@keyframes heroRingPulse {
  0%, 100% { opacity: 0.45; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.03); }
}
@keyframes heroScan {
  0%, 100% { top: 8%; opacity: 0; }
  10% { opacity: 0.9; }
  50% { top: 88%; opacity: 0.9; }
  60% { opacity: 0; }
}
@keyframes heroToothFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes heroDraw { to { stroke-dashoffset: 0; } }
@keyframes heroDrawInner { to { stroke-dashoffset: 0; } }
@keyframes heroDrawRoots { to { stroke-dashoffset: 0; } }
@keyframes heroPulseStroke {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 4px rgba(0, 232, 255, 0.4)); }
  50% { opacity: 0.75; filter: drop-shadow(0 0 10px rgba(212, 168, 83, 0.5)); }
}
@keyframes heroGridFade { to { opacity: 1; } }
@keyframes heroNodePop {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes heroLogoGlow {
  0%, 100% { opacity: 0.85; filter: brightness(1); }
  50% { opacity: 1; filter: brightness(1.2); }
}
@keyframes heroChipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes heroOrbitSpin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .hero-anim__aura,
  .hero-anim__ring,
  .hero-anim__scan,
  .hero-anim__tooth,
  .hero-anim__orbit,
  .hero-anim__chip,
  .hero-anim__stroke--outer,
  .hero-anim__stroke--inner,
  .hero-anim__stroke--roots {
    animation: none !important;
  }
  .hero-anim__stroke--outer,
  .hero-anim__stroke--inner,
  .hero-anim__stroke--roots { stroke-dashoffset: 0; }
  .hero-anim__grid, .hero-anim__node { opacity: 1; }
  .hero-anim__particles { display: none; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-anim { min-height: 240px; }
  .hero-anim__chip { font-size: 0.62rem; padding: 0.28rem 0.55rem; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.75rem 1.35rem; border-radius: 12px; font-weight: 600; font-size: 0.95rem;
  border: none; cursor: pointer;
}
.btn-gold {
  background: linear-gradient(135deg, #c9973a, var(--gold), #e8c878);
  color: #1a1205; box-shadow: 0 8px 24px rgba(212, 168, 83, 0.35);
}
.btn-outline { background: transparent; border: 1px solid var(--gold); color: var(--gold); }

.section { padding: 4rem 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 0.65rem; }
.section-head p { color: var(--text-muted); margin: 0; }
.section-label {
  display: inline-block; font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem;
}

.glass-card {
  background: var(--glass); backdrop-filter: blur(14px);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 1.35rem;
}
.neon-card { border-color: rgba(0, 232, 255, 0.25); box-shadow: 0 0 24px rgba(0, 232, 255, 0.08); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2rem; }
.stat-item {
  text-align: center; padding: 1.25rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
}
.stat-item strong { display: block; font-size: 1.75rem; color: var(--gold); }
.stat-item span { font-size: 0.85rem; color: var(--text-muted); }
@media (max-width: 700px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

.service-icon { font-size: 2rem; margin-bottom: 0.65rem; }
.service-card h3 { margin: 0 0 0.45rem; font-size: 1.05rem; }
.service-card p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

.portfolio-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem;
}
.portfolio-card { overflow: hidden; padding: 0; position: relative; }
.portfolio-card .thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--surface-high); }
.portfolio-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-card .body { padding: 1rem 1.15rem 1.2rem; }
.portfolio-card h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.portfolio-meta { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }
.tag {
  font-size: 0.72rem; padding: 0.2rem 0.55rem; border-radius: 999px;
  background: var(--gold-dim); color: var(--gold);
}
.featured-badge {
  position: absolute; top: 0.75rem; inset-inline-start: 0.75rem;
  background: var(--gold); color: #1a1205; font-size: 0.7rem; font-weight: 700;
  padding: 0.25rem 0.55rem; border-radius: 8px; z-index: 2;
}

.material-chip { display: flex; align-items: flex-start; gap: 0.75rem; }
.material-chip .emoji { font-size: 1.75rem; }
.material-chip h3 { margin: 0 0 0.25rem; font-size: 1rem; }
.material-chip p { margin: 0; font-size: 0.85rem; color: var(--text-muted); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-item { display: flex; gap: 0.85rem; margin-bottom: 1.25rem; }
.contact-info-item .icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; background: var(--gold-dim); flex-shrink: 0;
}
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.35rem; }
.form-control {
  width: 100%; padding: 0.75rem 0.9rem; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit;
}
textarea.form-control { min-height: 140px; resize: vertical; }

.site-footer {
  margin-top: 3rem; border-top: 1px solid var(--border);
  background: rgba(6, 11, 20, 0.95); padding: 2.5rem 0 1.5rem;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.45rem; }
.footer-links a { color: var(--text-muted); }
.dev-credit {
  display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.75rem;
  padding: 0.45rem 0.85rem; border-radius: 999px;
  border: 1px solid rgba(0, 232, 255, 0.3); background: rgba(0, 232, 255, 0.06);
  color: var(--neon-cyan); font-size: 0.78rem; letter-spacing: 0.06em;
}
.footer-bottom {
  text-align: center; padding-top: 1.5rem; border-top: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.85rem;
}

.alert { padding: 0.85rem 1rem; border-radius: 12px; margin-bottom: 1rem; }
.alert-success { background: rgba(46, 204, 113, 0.12); border: 1px solid rgba(46, 204, 113, 0.35); color: #6ee7a0; }
.alert-error { background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.35); color: #fca5a5; }

.pagination { display: flex; justify-content: center; gap: 0.35rem; margin-top: 2rem; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 0.45rem 0.75rem; border-radius: 8px; border: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.88rem;
}

.admin-body { background: #0a0f18; }
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: var(--surface); border-inline-end: 1px solid var(--border); padding: 1.25rem 1rem;
}
.admin-sidebar .logo { font-weight: 800; color: var(--gold); letter-spacing: 0.06em; margin-bottom: 1.5rem; display: block; }
.admin-nav a {
  display: block; padding: 0.55rem 0.75rem; border-radius: 10px;
  color: var(--text-muted); margin-bottom: 0.25rem; font-size: 0.92rem;
}
.admin-nav a.active, .admin-nav a:hover { background: var(--gold-dim); color: var(--text); }
.admin-main { padding: 1.5rem 2rem; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 0.75rem; }
.admin-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.25rem;
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.admin-table th, .admin-table td { padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--border); text-align: start; }
.admin-table img.thumb-sm { width: 56px; height: 42px; object-fit: cover; border-radius: 8px; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.admin-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; text-align: center; }
.admin-stat strong { display: block; font-size: 1.5rem; color: var(--gold); }
.admin-login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 2rem; }
.admin-login-card {
  width: min(420px, 100%); background: var(--surface); border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px); padding: 2rem; box-shadow: var(--shadow);
}
@media (max-width: 860px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { border-inline-end: none; border-bottom: 1px solid var(--border); }
}
.check-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
