:root {
  --bg: #0E1A2B;
  --bg-2: #12253D;
  --accent: #5BE7C4;
  --accent-2: #8ED1FC;
  --text: #E9F2FF;
  --muted: #A9B8D6;
  --card: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.12);
  --shadow: 0 10px 30px rgba(0,0,0,0.25);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans", Arial;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, #1A2F4A 0%, transparent 60%),
    radial-gradient(900px 500px at 110% 10%, #0B2A3F 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  min-height: 100dvh;
  overflow-x: hidden;
}

/* Teeth background animation */
.teeth-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.18;
}
.tooth {
  position: absolute;
  left: var(--x, 50%);
  width: 44px; height: 56px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 60% 35%, var(--accent-2) 0 4px, transparent 5px),
    radial-gradient(circle at 40% 35%, var(--accent-2) 0 4px, transparent 5px),
    linear-gradient(180deg, #fff, #E9F2FF 60%, #DDEBFF);
  clip-path: path("M22 0c9 0 16 6 16 15 0 7-4 10-6 18-1 4-3 10-6 10s-4-6-5-9-2-3-3 0-2 9-5 9-5-6-6-10C5 25 1 22 1 15 1 6 13 0 22 0z");
  top: 100%;
  border-radius: 16px 16px 28px 28px / 18px 18px 34px 34px;
  animation: floatUp 12s var(--d, 0s) linear infinite;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.25));
}
@keyframes floatUp {
  0% { transform: translate(-50%, 20vh) scale(0.8) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate(-50%, -40vh) scale(1) rotate(6deg); }
  100% { transform: translate(-50%, -120vh) scale(1.1) rotate(12deg); opacity: 0; }
}

/* Layout */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px clamp(16px, 4vw, 40px);
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  background: linear-gradient(180deg, rgba(10,20,35,0.85), rgba(10,20,35,0.35));
  border-bottom: 1px solid var(--border);
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo .logo-icon { width: 40px; height: 40px; }
.logo .name { font-weight: 800; letter-spacing: 0.5px; }
.logo .tagline { display: block; font-size: 12px; color: var(--muted); }
.logo.mini .logo-icon { width: 28px; height: 28px; }
.logo.mini .name { font-weight: 700; }

.top-actions { display: flex; gap: 10px; }

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(20px, 4vw, 40px);
  align-items: start;
  padding: clamp(24px, 5vw, 64px);
}
.hero-content h1 {
  font-size: clamp(28px, 4.4vw, 48px);
  line-height: 1.12;
  margin: 0 0 12px 0;
}
.lede { color: var(--muted); max-width: 60ch; }
.cta-row { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }

/* Right column stack */
.hero-side {
  display: grid;
  gap: 16px;
  align-content: start;
}

/* Welcome card */
.welcome-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.welcome-card::after {
  content: "";
  position: absolute; inset: -2px;
  background: conic-gradient(from 0deg, transparent 0 20%, rgba(142,209,252,0.25) 20% 40%, transparent 40% 60%, rgba(91,231,196,0.25) 60% 80%, transparent 80% 100%);
  filter: blur(18px);
  z-index: -1;
}
.welcome-badge {
  display: inline-block;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.6px;
  color: #0A1B2E;
  background: linear-gradient(135deg, var(--accent-2), #B9E5FF);
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.welcome-title {
  font-family: 'Inter', system-ui;
  font-weight: 800;
  margin: 0 0 6px;
  font-size: clamp(18px, 2.6vw, 24px);
}
.welcome-text { margin: 0; color: var(--muted); }

/* Photo card with WebKit-safe electric border */
.photo-card {
  position: relative;
  border-radius: 16px;
  padding: 2px;
  overflow: hidden;
}

.photo-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 10px;
  margin-top: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  animation: electricBorder 3s linear infinite;
}

.photo-card img {
  width: 100%;
  height: auto;
  border-radius: inherit;
  display: block;
}

/* Electric light animation */
@keyframes electricBorder {
  0% { box-shadow: 0 0 10px #5BE7C4, 0 0 20px #8ED1FC; }
  50% { box-shadow: 0 0 20px #8ED1FC, 0 0 40px #5BE7C4; }
  100% { box-shadow: 0 0 10px #5BE7C4, 0 0 20px #8ED1FC; }
}



.section { padding: clamp(24px, 5vw, 64px); }
.section h2 { margin: 0 0 12px 0; font-size: clamp(22px, 3vw, 34px); }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.25); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.contact-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}
.contact-item .icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  color: var(--accent);
}
.contact .label { font-weight: 700; margin-bottom: 4px; color: var(--accent-2); }
.contact .value { margin: 0 0 10px 0; color: var(--text); }

.phone-actions,
.contact-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.socials { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.social {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  color: var(--text);
  transform: translateZ(0);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.social:hover { transform: translateY(-3px) scale(1.03); border-color: rgba(255,255,255,0.3); box-shadow: var(--shadow); }
.social svg { width: 22px; height: 22px; }

.site-footer {
  padding: 20px clamp(16px, 4vw, 40px);
  border-top: 1px solid var(--border);
  background: rgba(10,20,35,0.6);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

.foot-links { display: flex; gap: 14px; flex-wrap: wrap; }
.small { color: var(--muted); margin: 6px 0 0; }
.tiny { color: var(--muted); font-size: 12px; text-align: center; margin-top: 16px; }
.electric-photo {
  position: relative;
  width: 220px;
  height: 220px;
  margin-top: 20px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(91, 231, 196, 0.4);
}

/* Buttons */
.btn {
  appearance: none; border: none; cursor: pointer;
  padding: 10px 14px; border-radius: 12px;
  font-weight: 700; color: #0b1422; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transform: translateZ(0);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn.primary { background: linear-gradient(135deg, var(--accent) 0%, #A6F1E3 100%); color: #092015; box-shadow: 0 8px 20px rgba(91,231,196,0.35); }
.btn.accent { background: linear-gradient(135deg, var(--accent-2), #B9E5FF); color: #0A1B2E; box-shadow: 0 8px 20px rgba(142,209,252,0.35); }
.btn.soft { background: rgba(255,255,255,0.08); color: var(--text); border: 1px solid var(--border); }
.btn.outline { background: transparent; color: var(--accent-2); border: 1px solid var(--accent-2); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn.tiny { padding: 6px 10px; font-weight: 700; font-size: 12px; border-radius: 10px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* RTL adjustments */
[dir="rtl"] {
  direction: rtl;
  font-family: 'Cairo', system-ui, Tahoma, Arial;
}
[dir="rtl"] .cta-row,
[dir="rtl"] .top-actions,
[dir="rtl"] .foot-links,
[dir="rtl"] .socials {
  flex-direction: row-reverse;
}
[dir="rtl"] .contact-item { grid-template-columns: 1fr 44px; }
[dir="rtl"] .contact-item .icon { order: 2; }

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-side { order: 2; }
}
